@serwist/nuxt 9.0.0-preview.11 → 9.0.0-preview.13
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 +4 -4
- package/dist/module.d.ts +4 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -2
- package/package.json +16 -16
package/dist/module.d.mts
CHANGED
@@ -18,7 +18,7 @@ import { PluginOptions } from '@serwist/vite';
|
|
18
18
|
* const b: B = { a: "hehe" }; //invalid
|
19
19
|
* const c: B = { a: "hehe", b: "hehe" }; //invalid
|
20
20
|
*/
|
21
|
-
type
|
21
|
+
type Require<T, U extends keyof T> = T & Required<Pick<T, U>>;
|
22
22
|
/**
|
23
23
|
* Make certain fields in a object type optional
|
24
24
|
*
|
@@ -32,7 +32,7 @@ type RequiredFields<T, U extends keyof T> = T & Required<Pick<T, U>>;
|
|
32
32
|
* const b: B = { a: "hehe" }; //valid
|
33
33
|
* const b: B = {}; //invalid
|
34
34
|
*/
|
35
|
-
type
|
35
|
+
type Optional<T, U extends keyof T> = Omit<T, U> & Partial<Pick<T, U>>;
|
36
36
|
|
37
37
|
interface ClientOptions {
|
38
38
|
/**
|
@@ -40,7 +40,7 @@ interface ClientOptions {
|
|
40
40
|
*/
|
41
41
|
registerPlugin?: boolean;
|
42
42
|
}
|
43
|
-
interface ModuleOptions extends
|
43
|
+
interface ModuleOptions extends Optional<PluginOptions, "swSrc" | "swDest" | "globDirectory"> {
|
44
44
|
manifest?: string;
|
45
45
|
/**
|
46
46
|
* Options for plugin.
|
@@ -48,7 +48,7 @@ interface ModuleOptions extends OptionalFields<PluginOptions, "swSrc" | "swDest"
|
|
48
48
|
client?: ClientOptions;
|
49
49
|
}
|
50
50
|
|
51
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
51
|
+
declare const _default: _nuxt_schema.NuxtModule<Require<ModuleOptions, "swUrl" | "swSrc" | "swDest" | "globDirectory" | "injectionPoint">>;
|
52
52
|
|
53
53
|
declare module "@nuxt/schema" {
|
54
54
|
interface NuxtConfig {
|
package/dist/module.d.ts
CHANGED
@@ -18,7 +18,7 @@ import { PluginOptions } from '@serwist/vite';
|
|
18
18
|
* const b: B = { a: "hehe" }; //invalid
|
19
19
|
* const c: B = { a: "hehe", b: "hehe" }; //invalid
|
20
20
|
*/
|
21
|
-
type
|
21
|
+
type Require<T, U extends keyof T> = T & Required<Pick<T, U>>;
|
22
22
|
/**
|
23
23
|
* Make certain fields in a object type optional
|
24
24
|
*
|
@@ -32,7 +32,7 @@ type RequiredFields<T, U extends keyof T> = T & Required<Pick<T, U>>;
|
|
32
32
|
* const b: B = { a: "hehe" }; //valid
|
33
33
|
* const b: B = {}; //invalid
|
34
34
|
*/
|
35
|
-
type
|
35
|
+
type Optional<T, U extends keyof T> = Omit<T, U> & Partial<Pick<T, U>>;
|
36
36
|
|
37
37
|
interface ClientOptions {
|
38
38
|
/**
|
@@ -40,7 +40,7 @@ interface ClientOptions {
|
|
40
40
|
*/
|
41
41
|
registerPlugin?: boolean;
|
42
42
|
}
|
43
|
-
interface ModuleOptions extends
|
43
|
+
interface ModuleOptions extends Optional<PluginOptions, "swSrc" | "swDest" | "globDirectory"> {
|
44
44
|
manifest?: string;
|
45
45
|
/**
|
46
46
|
* Options for plugin.
|
@@ -48,7 +48,7 @@ interface ModuleOptions extends OptionalFields<PluginOptions, "swSrc" | "swDest"
|
|
48
48
|
client?: ClientOptions;
|
49
49
|
}
|
50
50
|
|
51
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
51
|
+
declare const _default: _nuxt_schema.NuxtModule<Require<ModuleOptions, "swUrl" | "swSrc" | "swDest" | "globDirectory" | "injectionPoint">>;
|
52
52
|
|
53
53
|
declare module "@nuxt/schema" {
|
54
54
|
interface NuxtConfig {
|
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.13";
|
10
10
|
|
11
11
|
function configurePwaOptions(options, nuxt, nitroConfig) {
|
12
12
|
let buildAssetsDir = nuxt.options.app.buildAssetsDir ?? "_nuxt/";
|
@@ -96,7 +96,6 @@ const module = defineNuxtModule({
|
|
96
96
|
return {
|
97
97
|
base: nuxt.options.app.baseURL,
|
98
98
|
scope: nuxt.options.app.baseURL,
|
99
|
-
injectRegister: false,
|
100
99
|
client: {
|
101
100
|
registerPlugin: true
|
102
101
|
},
|
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.13",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A Nuxt module that integrates Serwist into your application.",
|
6
6
|
"files": [
|
@@ -53,30 +53,30 @@
|
|
53
53
|
]
|
54
54
|
},
|
55
55
|
"dependencies": {
|
56
|
-
"@nuxt/kit": "3.10.
|
56
|
+
"@nuxt/kit": "3.10.3",
|
57
57
|
"fast-json-stable-stringify": "2.1.0",
|
58
58
|
"pathe": "1.1.2",
|
59
|
-
"ufo": "1.
|
60
|
-
"@serwist/build": "9.0.0-preview.
|
61
|
-
"@serwist/vite": "9.0.0-preview.
|
62
|
-
"@serwist/window": "9.0.0-preview.
|
59
|
+
"ufo": "1.4.0",
|
60
|
+
"@serwist/build": "9.0.0-preview.13",
|
61
|
+
"@serwist/vite": "9.0.0-preview.13",
|
62
|
+
"@serwist/window": "9.0.0-preview.13"
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
65
65
|
"@nuxt/module-builder": "0.5.5",
|
66
|
-
"@nuxt/schema": "3.10.
|
66
|
+
"@nuxt/schema": "3.10.3",
|
67
67
|
"@nuxt/test-utils": "3.11.0",
|
68
|
-
"@playwright/test": "1.
|
69
|
-
"@types/node": "20.11.
|
70
|
-
"eslint": "8.
|
71
|
-
"nuxt": "3.10.
|
68
|
+
"@playwright/test": "1.42.1",
|
69
|
+
"@types/node": "20.11.24",
|
70
|
+
"eslint": "8.57.0",
|
71
|
+
"nuxt": "3.10.3",
|
72
72
|
"publint": "0.2.7",
|
73
73
|
"rimraf": "5.0.5",
|
74
74
|
"serve": "14.2.1",
|
75
|
-
"typescript": "5.
|
76
|
-
"vite": "5.
|
77
|
-
"vitest": "1.
|
78
|
-
"vue-tsc": "
|
79
|
-
"@serwist/constants": "9.0.0-preview.
|
75
|
+
"typescript": "5.5.0-dev.20240304",
|
76
|
+
"vite": "5.1.4",
|
77
|
+
"vitest": "1.3.1",
|
78
|
+
"vue-tsc": "2.0.4",
|
79
|
+
"@serwist/constants": "9.0.0-preview.13"
|
80
80
|
},
|
81
81
|
"peerDependencies": {
|
82
82
|
"typescript": ">=5.0.0",
|