Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bench/nested-deps/fuzzponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,37 +137,37 @@ if (require.main === module) {
.option('minLen', {
demandOption: false,
default: MIN_COMPONENT_NAME_LEN,
describe: 'the smallest acceptible component name length',
describe: 'the smallest acceptable component name length',
type: 'number',
})
.option('maxLen', {
demandOption: false,
default: MAX_COMPONENT_NAME_LEN,
describe: 'the largest acceptible component name length',
describe: 'the largest acceptable component name length',
type: 'number',
})
.option('minLen', {
demandOption: false,
default: MIN_COMPONENT_NAME_LEN,
describe: 'the smallest acceptible component name length',
describe: 'the smallest acceptable component name length',
type: 'number',
})
.option('maxLen', {
demandOption: false,
default: MAX_COMPONENT_NAME_LEN,
describe: 'the largest acceptible component name length',
describe: 'the largest acceptable component name length',
type: 'number',
})
.option('minChild', {
demandOption: false,
default: MIN_CHILDREN,
describe: 'the smallest number of acceptible component children',
describe: 'the smallest number of acceptable component children',
type: 'number',
})
.option('maxChild', {
demandOption: false,
default: MAX_CHILDREN,
describe: 'the largest number of acceptible component children',
describe: 'the largest number of acceptable component children',
type: 'number',
})
.option('extension', {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/lib/utils/node-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
hasValue: false
}
Inclusion of hasValue is in case an eslint rule cares about boolean values
explicitely assigned to attribute vs the attribute being used as a flag
explicitly assigned to attribute vs the attribute being used as a flag
*/
class NodeAttributes {
constructor(ASTnode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function getCssError(

const res = regexCssError.exec(err.message)
if (res) {
const [, _lineNumer, _column, reason] = res
const lineNumber = Math.max(1, parseInt(_lineNumer, 10))
const [, _lineNumber, _column, reason] = res
const lineNumber = Math.max(1, parseInt(_lineNumber, 10))
const column = Math.max(1, parseInt(_column, 10))

return new SimpleWebpackError(
Expand Down
2 changes: 1 addition & 1 deletion packages/next/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default class Document<P = {}> extends Component<DocumentProps & P> {
}
}

// Add a speical property to the built-in `Document` component so later we can
// Add a special property to the built-in `Document` component so later we can
// identify if a user customized `Document` is used or not.
;(Document as any).__next_internal_document =
function InternalFunctionDocument() {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/lib/squoosh/avif/avif_node_dec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/lib/squoosh/avif/avif_node_enc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/lib/squoosh/webp/webp_node_dec.js
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/lib/squoosh/webp/webp_node_enc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ var Module = (function () {
}
function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol')
throwInternalError('Replacing nonexistent public symbol')
}
if (
undefined !== Module[name].overloadTable &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out')

describe('Export Dyanmic Pages', () => {
describe('Export Dynamic Pages', () => {
let server
let port
beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware/core/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ function responseTests(locale = '') {
}

function interfaceTests(locale = '') {
it(`${locale} \`globalThis\` is accesible`, async () => {
it(`${locale} \`globalThis\` is accessible`, async () => {
const res = await fetchViaHTTP(context.appPort, '/interface/globalthis')
const globals = await res.json()
expect(globals.length > 0).toBe(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ describe('Required Server Files', () => {
expect($('#index').text()).toBe('index page')
})

it('should match the root dyanmic page correctly', async () => {
it('should match the root dynamic page correctly', async () => {
const res = await fetchViaHTTP(appPort, '/index', undefined, {
headers: {
'x-matched-path': '/[slug]',
Expand Down
2 changes: 1 addition & 1 deletion test/integration/typescript/pages/ssg/blog/[post].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getStaticProps = async (
const posts: Post[] = [
{
author: 'Vercel',
content: 'hello wolrd',
content: 'hello world',
},
]

Expand Down
2 changes: 1 addition & 1 deletion test/production/required-server-files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ describe('should set-up next', () => {
expect($('#index').text()).toBe('index page')
})

it('should match the root dyanmic page correctly', async () => {
it('should match the root dynamic page correctly', async () => {
const res = await fetchViaHTTP(appPort, '/index', undefined, {
headers: {
'x-matched-path': '/[slug]',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/split-cookies-string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('splitCookiesString', () => {
})
})

describe('with a mutliple cookies', () => {
describe('with a multiple cookies', () => {
it('should parse a plain value', () => {
const { joined, expected } = generateCookies(
{
Expand Down