@serwist/nuxt 9.0.0-preview.21 → 9.0.0-preview.25
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/module.d.mts +0 -1
- package/dist/module.d.ts +0 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/plugins/client.mjs +2 -2
- package/package.json +17 -21
package/dist/module.d.mts
CHANGED
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
@@ -6,7 +6,7 @@ import { createReadStream } from 'node:fs';
|
|
6
6
|
import fs from 'node:fs/promises';
|
7
7
|
import pathe from 'pathe';
|
8
8
|
|
9
|
-
const version = "9.0.0-preview.
|
9
|
+
const version = "9.0.0-preview.25";
|
10
10
|
|
11
11
|
function configurePwaOptions(options, nuxt, nitroConfig) {
|
12
12
|
let buildAssetsDir = nuxt.options.app.buildAssetsDir ?? "_nuxt/";
|
@@ -112,7 +112,7 @@ const module = defineNuxtModule({
|
|
112
112
|
const resolver = createResolver(import.meta.url);
|
113
113
|
let ctx;
|
114
114
|
let api;
|
115
|
-
const {
|
115
|
+
const { client: _client, ...userOptions } = options;
|
116
116
|
const client = { registerPlugin: true, ..._client };
|
117
117
|
const runtimeDir = resolver.resolve("./runtime");
|
118
118
|
if (!nuxt.options.ssr)
|
@@ -124,7 +124,7 @@ const module = defineNuxtModule({
|
|
124
124
|
});
|
125
125
|
}
|
126
126
|
nuxt.hook("prepare:types", ({ references }) => {
|
127
|
-
references.push({ path: resolver.resolve(runtimeDir, "plugins/augmentation") });
|
127
|
+
references.push({ path: resolver.resolve(runtimeDir, "plugins/augmentation.d.ts") });
|
128
128
|
});
|
129
129
|
nuxt.hook("nitro:init", (nitro) => {
|
130
130
|
configurePwaOptions(options, nuxt, nitro.options);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { swUrl, swScope, swType } from "virtual:serwist";
|
2
2
|
import { defineNuxtPlugin } from "#imports";
|
3
3
|
const plugin = defineNuxtPlugin(async () => {
|
4
|
-
const serwist = await
|
4
|
+
const serwist = "serviceWorker" in navigator ? new (await import("@serwist/window")).Serwist(swUrl, { scope: swScope, type: swType }) : void 0;
|
5
5
|
return {
|
6
6
|
provide: {
|
7
7
|
serwist
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@serwist/nuxt",
|
3
|
-
"version": "9.0.0-preview.
|
3
|
+
"version": "9.0.0-preview.25",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A Nuxt module that integrates Serwist into your application.",
|
6
6
|
"files": [
|
@@ -23,8 +23,8 @@
|
|
23
23
|
"engines": {
|
24
24
|
"node": ">=18.0.0"
|
25
25
|
},
|
26
|
-
"repository": "https://
|
27
|
-
"bugs": "https://
|
26
|
+
"repository": "https://github.com/serwist/serwist",
|
27
|
+
"bugs": "https://github.com/serwist/serwist/issues",
|
28
28
|
"homepage": "https://serwist.pages.dev",
|
29
29
|
"main": "./dist/module.mjs",
|
30
30
|
"types": "./dist/types.d.ts",
|
@@ -45,38 +45,34 @@
|
|
45
45
|
"vite",
|
46
46
|
"@nuxt/kit",
|
47
47
|
"@serwist/build",
|
48
|
-
"@serwist/core",
|
49
48
|
"@serwist/vite",
|
50
49
|
"pathe",
|
51
50
|
"ufo",
|
52
|
-
"virtual:serwist-nuxt-configuration"
|
51
|
+
"virtual:serwist-nuxt-configuration",
|
52
|
+
"virtual:serwist"
|
53
53
|
]
|
54
54
|
},
|
55
55
|
"dependencies": {
|
56
|
-
"@nuxt/kit": "3.11.
|
56
|
+
"@nuxt/kit": "3.11.2",
|
57
57
|
"fast-json-stable-stringify": "2.1.0",
|
58
58
|
"pathe": "1.1.2",
|
59
59
|
"ufo": "1.5.3",
|
60
|
-
"@serwist/build": "9.0.0-preview.
|
61
|
-
"@serwist/vite": "9.0.0-preview.
|
62
|
-
"@serwist/window": "9.0.0-preview.
|
60
|
+
"@serwist/build": "9.0.0-preview.25",
|
61
|
+
"@serwist/vite": "9.0.0-preview.25",
|
62
|
+
"@serwist/window": "9.0.0-preview.25"
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
65
65
|
"@nuxt/module-builder": "0.5.5",
|
66
|
-
"@nuxt/schema": "3.11.
|
67
|
-
"@
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"eslint": "8.57.0",
|
71
|
-
"nuxt": "3.11.1",
|
72
|
-
"publint": "0.2.7",
|
66
|
+
"@nuxt/schema": "3.11.2",
|
67
|
+
"@types/node": "20.12.7",
|
68
|
+
"eslint": "9.0.0",
|
69
|
+
"nuxt": "3.11.2",
|
73
70
|
"rimraf": "5.0.5",
|
74
71
|
"serve": "14.2.1",
|
75
|
-
"typescript": "5.5.0-dev.
|
76
|
-
"vite": "5.2.
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"@serwist/constants": "9.0.0-preview.21"
|
72
|
+
"typescript": "5.5.0-dev.20240415",
|
73
|
+
"vite": "5.2.8",
|
74
|
+
"vue-tsc": "2.0.13",
|
75
|
+
"@serwist/configs": "9.0.0-preview.25"
|
80
76
|
},
|
81
77
|
"peerDependencies": {
|
82
78
|
"typescript": ">=5.0.0",
|