@vite-pwa/nuxt 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/pwa-icons.mjs +1 -1
- package/dist/module.d.mts +1 -10
- package/dist/module.d.ts +1 -10
- package/dist/module.json +5 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/pwa.client.d.ts +1 -1
- package/dist/shared/{nuxt.6add4eb9.mjs → nuxt.388692a4.mjs} +2 -2
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +9 -6
- /package/dist/runtime/components/{NuxtPwaAssets.mjs → NuxtPwaAssets.js} +0 -0
- /package/dist/runtime/components/{VitePwaManifest.mjs → VitePwaManifest.js} +0 -0
- /package/dist/runtime/composables/{index.mjs → index.js} +0 -0
- /package/dist/runtime/plugins/{pwa.client.mjs → pwa.client.js} +0 -0
|
@@ -3,7 +3,7 @@ import { resolve, relative, basename } from 'node:path';
|
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import { instructions } from '@vite-pwa/assets-generator/api/instructions';
|
|
5
5
|
import { loadConfig } from '@vite-pwa/assets-generator/config';
|
|
6
|
-
import { p as pwaIcons, g as generatePwaImageType } from '../shared/nuxt.
|
|
6
|
+
import { p as pwaIcons, g as generatePwaImageType } from '../shared/nuxt.388692a4.mjs';
|
|
7
7
|
import '@nuxt/kit';
|
|
8
8
|
import 'vite-plugin-pwa';
|
|
9
9
|
import 'node:crypto';
|
package/dist/module.d.mts
CHANGED
|
@@ -33,17 +33,8 @@ interface PwaModuleOptions extends Partial<VitePWAOptions> {
|
|
|
33
33
|
client?: ClientOptions;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
declare const _default: _nuxt_schema.NuxtModule<PwaModuleOptions>;
|
|
37
|
-
|
|
38
36
|
interface ModuleOptions extends PwaModuleOptions {
|
|
39
37
|
}
|
|
40
|
-
declare
|
|
41
|
-
interface NuxtConfig {
|
|
42
|
-
['pwa']?: Partial<ModuleOptions>;
|
|
43
|
-
}
|
|
44
|
-
interface NuxtOptions {
|
|
45
|
-
['pwa']?: ModuleOptions;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
38
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
48
39
|
|
|
49
40
|
export { type ClientOptions, type ModuleOptions, type PwaModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -33,17 +33,8 @@ interface PwaModuleOptions extends Partial<VitePWAOptions> {
|
|
|
33
33
|
client?: ClientOptions;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
declare const _default: _nuxt_schema.NuxtModule<PwaModuleOptions>;
|
|
37
|
-
|
|
38
36
|
interface ModuleOptions extends PwaModuleOptions {
|
|
39
37
|
}
|
|
40
|
-
declare
|
|
41
|
-
interface NuxtConfig {
|
|
42
|
-
['pwa']?: Partial<ModuleOptions>;
|
|
43
|
-
}
|
|
44
|
-
interface NuxtOptions {
|
|
45
|
-
['pwa']?: ModuleOptions;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
38
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
48
39
|
|
|
49
40
|
export { type ClientOptions, type ModuleOptions, type PwaModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { createHash } from 'node:crypto';
|
|
|
6
6
|
import { createReadStream } from 'node:fs';
|
|
7
7
|
import { resolve } from 'pathe';
|
|
8
8
|
|
|
9
|
-
const version = "0.10.
|
|
9
|
+
const version = "0.10.2";
|
|
10
10
|
|
|
11
11
|
function configurePWAOptions(nuxt3_8, options, nuxt, nitroConfig) {
|
|
12
12
|
if (!options.outDir) {
|
|
@@ -292,7 +292,7 @@ async function registerPwaIconsTypes(options, nuxt, resolver, runtimeDir) {
|
|
|
292
292
|
dts = void 0;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
nuxt.options.alias["#pwa"] = resolver.resolve(runtimeDir, "composables/index.
|
|
295
|
+
nuxt.options.alias["#pwa"] = resolver.resolve(runtimeDir, "composables/index.js");
|
|
296
296
|
nuxt.options.build.transpile.push("#pwa");
|
|
297
297
|
addImports([
|
|
298
298
|
"useTransparentPwaIcon",
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['pwa']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['pwa']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['pwa']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['pwa']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ClientOptions, ModuleOptions, PwaModuleOptions, default } from './module.js'
|
|
1
|
+
export { type ClientOptions, type ModuleOptions, type PwaModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['pwa']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['pwa']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['pwa']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['pwa']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ClientOptions, ModuleOptions, PwaModuleOptions, default } from './module'
|
|
1
|
+
export { type ClientOptions, type ModuleOptions, type PwaModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-pwa/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "0.10.2",
|
|
5
|
+
"packageManager": "pnpm@9.9.0",
|
|
6
6
|
"description": "Zero-config PWA for Nuxt 3",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -51,8 +51,11 @@
|
|
|
51
51
|
"lint-fix": "nr lint --fix",
|
|
52
52
|
"test:build:serve": "PORT=4173 node playground/.output/server/index.mjs",
|
|
53
53
|
"test:generate:serve": "PORT=4173 serve playground/dist",
|
|
54
|
-
"test:build": "nr dev:build && TEST_BUILD=true vitest run && TEST_BUILD=true playwright test",
|
|
55
|
-
"test:generate": "nr dev:generate && vitest run && playwright test",
|
|
54
|
+
"test:build": "nr dev:build && NUXT_ECOSYSTEM_CI=true TEST_BUILD=true vitest run && TEST_BUILD=true playwright test",
|
|
55
|
+
"test:generate": "nr dev:generate && NUXT_ECOSYSTEM_CI=true vitest run && playwright test",
|
|
56
|
+
"test:build:local": "nr dev:build && TEST_BUILD=true vitest run && TEST_BUILD=true playwright test",
|
|
57
|
+
"test:generate:local": "nr dev:generate && vitest run && playwright test",
|
|
58
|
+
"test:local": "nr test:build:local && nr test:generate:local",
|
|
56
59
|
"test": "nr test:build && nr test:generate",
|
|
57
60
|
"test:with-build": "nr dev:prepare && nr prepack && nr test"
|
|
58
61
|
},
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
"devDependencies": {
|
|
66
69
|
"@antfu/eslint-config": "^0.43.1",
|
|
67
70
|
"@antfu/ni": "^0.21.10",
|
|
68
|
-
"@nuxt/module-builder": "^0.
|
|
71
|
+
"@nuxt/module-builder": "^0.8.3",
|
|
69
72
|
"@nuxt/schema": "^3.10.1",
|
|
70
73
|
"@nuxt/test-utils": "^3.11.0",
|
|
71
74
|
"@playwright/test": "^1.40.1",
|
|
@@ -108,4 +111,4 @@
|
|
|
108
111
|
"stackblitz": {
|
|
109
112
|
"startCommand": "nr prepack && nr dev:prepare && nr dev"
|
|
110
113
|
}
|
|
111
|
-
}
|
|
114
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|