Skip to content

Commit f84921f

Browse files
chore: Fix typos (#2086)
Co-authored-by: Patryk Kuniczak <p.kuniczak@gmail.com>
1 parent 872494e commit f84921f

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

packages/wxt/e2e/tests/output-structure.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ describe('Output Directory Structure', () => {
335335
await project.build({
336336
vite: () => ({
337337
build: {
338-
// Make output for snapshot readible
338+
// Make output for the snapshot readable
339339
minify: false,
340340
},
341341
}),
@@ -408,7 +408,7 @@ describe('Output Directory Structure', () => {
408408
await project.build({
409409
vite: () => ({
410410
build: {
411-
// Make output for snapshot readible
411+
// Make output for the snapshot readable
412412
minify: false,
413413
},
414414
}),

packages/wxt/src/core/builders/vite/plugins/extensionApiMock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function extensionApiMock(config: ResolvedConfig): vite.PluginOption {
2727
],
2828
},
2929
ssr: {
30-
// Inline all WXT modules subdependencies can be mocked
30+
// Inline all WXT modules sub-dependencies can be mocked
3131
noExternal: ['wxt'],
3232
},
3333
};

packages/wxt/src/core/utils/building/find-entrypoints.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ async function getPopupEntrypoint(
266266
info: EntrypointInfo,
267267
options: Record<string, any>,
268268
): Promise<PopupEntrypoint> {
269-
const stictOptions: PopupEntrypoint['options'] = resolvePerBrowserOptions(
269+
const strictOptions: PopupEntrypoint['options'] = resolvePerBrowserOptions(
270270
{
271271
browserStyle: options.browserStyle,
272272
exclude: options.exclude,
@@ -278,16 +278,16 @@ async function getPopupEntrypoint(
278278
},
279279
wxt.config.browser,
280280
);
281-
if (stictOptions.mv2Key && stictOptions.mv2Key !== 'page_action')
282-
stictOptions.mv2Key = 'browser_action';
281+
if (strictOptions.mv2Key && strictOptions.mv2Key !== 'page_action')
282+
strictOptions.mv2Key = 'browser_action';
283283

284284
// themeIcons is an array of objects, not a per-browser option
285285
const themeIcons = options.themeIcons;
286286

287287
return {
288288
type: 'popup',
289289
name: 'popup',
290-
options: { ...stictOptions, themeIcons },
290+
options: { ...strictOptions, themeIcons },
291291
inputPath: info.inputPath,
292292
outputDir: wxt.config.outDir,
293293
};

packages/wxt/src/core/utils/building/internal-build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function printValidationResults({
137137
console.log();
138138
errors.forEach((err) => {
139139
const type = err.type === 'error' ? pc.red('ERROR') : pc.yellow('WARN');
140-
const recieved = pc.dim(`(recieved: ${JSON.stringify(err.value)})`);
141-
wxt.logger.log(` - ${type} ${err.message} ${recieved}`);
140+
const received = pc.dim(`(received: ${JSON.stringify(err.value)})`);
141+
wxt.logger.log(` - ${type} ${err.message} ${received}`);
142142
});
143143
console.log();
144144
});

packages/wxt/src/core/utils/manifest.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,13 @@ function discoverIcons(
465465
}
466466

467467
function addDevModeCsp(manifest: Browser.runtime.Manifest): void {
468-
let permissonUrl = wxt.server?.origin;
469-
if (permissonUrl) {
470-
const permissionUrlInstance = new URL(permissonUrl);
468+
let permissionUrl = wxt.server?.origin;
469+
if (permissionUrl) {
470+
const permissionUrlInstance = new URL(permissionUrl);
471471
permissionUrlInstance.port = '';
472-
permissonUrl = permissionUrlInstance.toString();
472+
permissionUrl = permissionUrlInstance.toString();
473473
}
474-
const permission = `${permissonUrl}*`;
474+
const permission = `${permissionUrl}*`;
475475
const allowedCsp = wxt.server?.origin ?? 'http://localhost:*';
476476

477477
if (manifest.manifest_version === 3) {
@@ -675,7 +675,7 @@ function convertCspToMv2(manifest: Browser.runtime.Manifest): void {
675675
}
676676

677677
/**
678-
* Make sure all resources are in MV3 format. If not, add a wanring
678+
* Make sure all resources are in MV3 format. If not, add a warning.
679679
*/
680680
function validateMv3WebAccessibleResources(
681681
manifest: Browser.runtime.Manifest,

packages/wxt/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface InlineConfig {
2121
* Directory containing all source code. Set to `"src"` to move all source code to a `src/`
2222
* directory.
2323
*
24-
* After changing, don't forget to move the `public/` and `entrypoints/` directories into the new
24+
* After changing, remember to move the `public/` and `entrypoints/` directories into the new
2525
* source dir.
2626
*
2727
* @default config.root

packages/wxt/src/virtual/background-entrypoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let result;
4141
try {
4242
initPlugins();
4343
result = definition.main();
44-
// @ts-expect-error: res shouldn't be a promise, but we're checking it anyways
44+
// @ts-expect-error: Res shouldn't be a promise, but we're checking it anyways
4545
if (result instanceof Promise) {
4646
console.warn(
4747
"The background's main() function return a promise, but it must be synchronous",

0 commit comments

Comments
 (0)