Skip to content

Commit a2495a6

Browse files
authored
chore: fix typos (nuxt#7219)
1 parent 1002d3f commit a2495a6

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

RELEASE_PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Bugfixes for upcoming features won't be ported of course.
3838

3939
### Edge Release Channel
4040

41-
After experimenting with `nuxt-edge` releases in the last time, the decisiion to do **nightly releases** for now instead of
41+
After experimenting with `nuxt-edge` releases in the last time, the decision to do **nightly releases** for now instead of
4242
releasing a version after _each commit_ was made.
4343

4444
## End of Life

packages/core/src/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default class ModuleContainer {
164164
throw new Error(message)
165165
} else {
166166
// TODO: Remove in next major version
167-
message += ' Silently ignoring module as programatic usage detected.'
167+
message += ' Silently ignoring module as programmatic usage detected.'
168168
consola.warn(message)
169169
return
170170
}

packages/core/test/module.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,6 @@ describe('core: module', () => {
473473
const result = await module.addModule('test-build-module', true)
474474

475475
expect(result).toBeUndefined()
476-
expect(consola.warn).toBeCalledWith('Module `test-build-module` not found. Please ensure `test-build-module` is in `devDependencies` and installed. HINT: During build step, for npm/yarn, `NODE_ENV=production` or `--production` should NOT be used. Silently ignoring module as programatic usage detected.')
476+
expect(consola.warn).toBeCalledWith('Module `test-build-module` not found. Please ensure `test-build-module` is in `devDependencies` and installed. HINT: During build step, for npm/yarn, `NODE_ENV=production` or `--production` should NOT be used. Silently ignoring module as programmatic usage detected.')
477477
})
478478
})

packages/generator/test/generator.route.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('generator: generate route', () => {
224224
expect(returned).toEqual(true)
225225
})
226226

227-
test('should generate file in flat folder if route is epmty', async () => {
227+
test('should generate file in flat folder if route is empty', async () => {
228228
const nuxt = createNuxt()
229229
nuxt.options.build.html = { minify: false }
230230
const generator = new Generator(nuxt)

packages/server/src/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ export default class Server {
182182
middleware = this._requireMiddleware(middleware)
183183
}
184184

185-
// Normalize handler to handle (backward compatiblity)
185+
// Normalize handler to handle (backward compatibility)
186186
if (middleware.handler && !middleware.handle) {
187187
middleware.handle = middleware.handler
188188
delete middleware.handler
189189
}
190190

191-
// Normalize path to route (backward compatiblity)
191+
// Normalize path to route (backward compatibility)
192192
if (middleware.path && !middleware.route) {
193193
middleware.route = middleware.path
194194
delete middleware.path
@@ -265,7 +265,7 @@ export default class Server {
265265
middleware.route = middleware.route.slice(0, -1)
266266
}
267267

268-
// Assign _middleware to handle to make accessable from app.stack
268+
// Assign _middleware to handle to make accessible from app.stack
269269
middleware.handle._middleware = middleware
270270

271271
return middleware

packages/utils/src/locking.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function lock ({ id, dir, root, options }) {
6565
}
6666

6767
if (!lockPaths.size) {
68-
// make sure to always cleanup our temporate lockPaths
68+
// make sure to always cleanup our temporary lockPaths
6969
onExit(() => {
7070
for (const lockPath of lockPaths) {
7171
fs.removeSync(lockPath)

packages/utils/test/locking.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('util: locking', () => {
115115
expect(fs.remove).toHaveBeenCalledTimes(1)
116116
})
117117

118-
test('lock release also cleansup onExit set', async () => {
118+
test('lock release also cleanup onExit set', async () => {
119119
const release = jest.fn()
120120
properlock.lock.mockImplementation(() => release)
121121

packages/utils/test/timer.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ describe('util: timer', () => {
8383
const timer = new Timer()
8484
const hrtime = process.hrtime
8585
process.hrtime = {
86-
bigint: jest.fn(() => 'bingint hrtime')
86+
bigint: jest.fn(() => 'bigint hrtime')
8787
}
8888

8989
const time = timer.hrtime()
9090

91-
expect(time).toEqual('bingint hrtime')
91+
expect(time).toEqual('bigint hrtime')
9292
expect(process.hrtime.bigint).toBeCalledTimes(1)
9393

9494
process.hrtime = hrtime

packages/vue-app/template/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Object.assign(Vue.config, <%= serialize(vue.config) %>)<%= isTest ? '// eslint-d
4848
<% if (nuxtOptions.render.ssrLog) { %>
4949
const logs = NUXT.logs || []
5050
if (logs.length > 0) {
51-
const ssrLogSyle = 'background: #2E495E;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;'
52-
console.group && console.group<%= nuxtOptions.render.ssrLog === 'collapsed' ? 'Collapsed' : '' %> ('%cNuxt SSR', ssrLogSyle)
51+
const ssrLogStyle = 'background: #2E495E;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;'
52+
console.group && console.group<%= nuxtOptions.render.ssrLog === 'collapsed' ? 'Collapsed' : '' %> ('%cNuxt SSR', ssrLogStyle)
5353
logs.forEach(logObj => (console[logObj.type] || console.log)(...logObj.args))
5454
delete NUXT.logs
5555
console.groupEnd && console.groupEnd()

packages/vue-app/template/components/nuxt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export default {
8383
})
8484
}
8585

86-
// if an error occured within NuxtError show a simple
86+
// if an error occurred within NuxtError show a simple
8787
// error message instead to prevent looping
8888
if (this.errorFromNuxtError) {
8989
this.$nextTick(() => (this.errorFromNuxtError = false))
9090

9191
return h('div', {}, [
92-
h('h2', 'An error occured while showing the error page'),
93-
h('p', 'Unfortunately an error occured and while showing the error page another error occured'),
92+
h('h2', 'An error occurred while showing the error page'),
93+
h('p', 'Unfortunately an error occurred and while showing the error page another error occurred'),
9494
h('p', `Error details: ${this.errorFromNuxtError.toString()}`),
9595
h('nuxt-link', { props: { to: '/' } }, 'Go back to home')
9696
])

scripts/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default class Package {
239239
case 'ERROR':
240240
return this.logger.error(event.error)
241241

242-
// Eencountered an unrecoverable error
242+
// Encountered an unrecoverable error
243243
case 'FATAL':
244244
return this.logger.fatal(event.error)
245245

test/dev/ssr.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const url = route => 'http://localhost:' + port + route
1717
// == Uniq Test ==
1818
// The idea behind is pages using a shared nextId() which returns an incrementing id
1919
// So all responses should strictly be different and length of unique responses should equal to responses
20-
// We strictly compare <foorbar>{id}</foorbar> section
20+
// We strictly compare <Foobar>{id}</Foobar> section
2121
// Because other response parts such as window.__NUXT may be different resulting false positive passes.
2222
const uniqueTest = async (url) => {
2323
const results = []

test/e2e/error.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('basic browser', () => {
3333
await page.nuxt.navigate('/squared')
3434

3535
expect(await page.$text('header')).toBe('Error layout')
36-
expect(await page.$text('h2')).toBe('An error occured while showing the error page')
36+
expect(await page.$text('h2')).toBe('An error occurred while showing the error page')
3737
})
3838

3939
test('/about loads normally', async () => {

0 commit comments

Comments
 (0)