@serwist/vite 9.0.3 → 9.0.4
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/index.js +1 -1
- package/dist/lib/schema.d.ts +26 -134
- package/dist/lib/schema.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { validationErrorMap, SerwistConfigError } from '@serwist/build/schema';
|
|
|
7
7
|
import { normalizePath } from 'vite';
|
|
8
8
|
import process from 'node:process';
|
|
9
9
|
|
|
10
|
-
var version = "9.0.
|
|
10
|
+
var version = "9.0.4";
|
|
11
11
|
|
|
12
12
|
const logSerwistResult = (buildResult, viteOptions)=>{
|
|
13
13
|
const { logLevel = "info" } = viteOptions;
|
package/dist/lib/schema.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const hooks: z.ZodObject<{
|
|
|
4
4
|
closeBundleOrder: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pre">, z.ZodLiteral<"post">, z.ZodNull]>>;
|
|
5
5
|
configureOptions: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodAny], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
7
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
8
8
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
9
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
9
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
11
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
12
12
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
13
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
13
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const devOptions: z.ZodObject<{
|
|
16
16
|
bundle: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -33,13 +33,13 @@ export declare const injectManifestPartial: z.ZodObject<{
|
|
|
33
33
|
closeBundleOrder: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pre">, z.ZodLiteral<"post">, z.ZodNull]>>;
|
|
34
34
|
configureOptions: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodAny], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
36
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
37
37
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
38
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
38
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
40
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
41
41
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
42
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
42
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
43
43
|
}>>;
|
|
44
44
|
swUrl: z.ZodDefault<z.ZodString>;
|
|
45
45
|
plugins: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
@@ -62,9 +62,9 @@ export declare const injectManifestPartial: z.ZodObject<{
|
|
|
62
62
|
base: string;
|
|
63
63
|
disable: boolean;
|
|
64
64
|
integration: {
|
|
65
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
65
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
66
66
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
67
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
67
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
68
68
|
};
|
|
69
69
|
swUrl: string;
|
|
70
70
|
plugins: any[];
|
|
@@ -81,9 +81,9 @@ export declare const injectManifestPartial: z.ZodObject<{
|
|
|
81
81
|
type?: "classic" | "module" | undefined;
|
|
82
82
|
disable?: boolean | undefined;
|
|
83
83
|
integration?: {
|
|
84
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
84
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
85
85
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
86
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
86
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
87
87
|
} | undefined;
|
|
88
88
|
swUrl?: string | undefined;
|
|
89
89
|
plugins?: any[] | undefined;
|
|
@@ -223,13 +223,13 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
223
223
|
closeBundleOrder: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pre">, z.ZodLiteral<"post">, z.ZodNull]>>;
|
|
224
224
|
configureOptions: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodAny], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
226
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
227
227
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
228
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
228
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
229
229
|
}, {
|
|
230
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
230
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
231
231
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
232
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
232
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
233
233
|
}>>;
|
|
234
234
|
swUrl: z.ZodDefault<z.ZodString>;
|
|
235
235
|
plugins: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
@@ -252,9 +252,9 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
252
252
|
base: string;
|
|
253
253
|
disable: boolean;
|
|
254
254
|
integration: {
|
|
255
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
255
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
256
256
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
257
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
257
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
258
258
|
};
|
|
259
259
|
swUrl: string;
|
|
260
260
|
plugins: any[];
|
|
@@ -285,34 +285,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
285
285
|
size: number;
|
|
286
286
|
integrity?: string | undefined;
|
|
287
287
|
revision?: string | null | undefined;
|
|
288
|
-
}[], args_1: unknown) =>
|
|
289
|
-
manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
290
|
-
integrity: z.ZodOptional<z.ZodString>;
|
|
291
|
-
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
-
url: z.ZodString;
|
|
293
|
-
}, {
|
|
294
|
-
size: z.ZodNumber;
|
|
295
|
-
}>, "strip", z.ZodTypeAny, {
|
|
296
|
-
url: string;
|
|
297
|
-
size: number;
|
|
298
|
-
integrity?: string | undefined;
|
|
299
|
-
revision?: string | null | undefined;
|
|
300
|
-
}, {
|
|
301
|
-
url: string;
|
|
302
|
-
size: number;
|
|
303
|
-
integrity?: string | undefined;
|
|
304
|
-
revision?: string | null | undefined;
|
|
305
|
-
}>, "many">;
|
|
306
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
307
|
-
}, "strict", z.ZodTypeAny, {
|
|
308
|
-
manifest: {
|
|
309
|
-
url: string;
|
|
310
|
-
size: number;
|
|
311
|
-
integrity?: string | undefined;
|
|
312
|
-
revision?: string | null | undefined;
|
|
313
|
-
}[];
|
|
314
|
-
warnings?: string[] | undefined;
|
|
315
|
-
}, {
|
|
288
|
+
}[], args_1: unknown) => {
|
|
316
289
|
manifest: {
|
|
317
290
|
url: string;
|
|
318
291
|
size: number;
|
|
@@ -320,34 +293,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
320
293
|
revision?: string | null | undefined;
|
|
321
294
|
}[];
|
|
322
295
|
warnings?: string[] | undefined;
|
|
323
|
-
}
|
|
324
|
-
manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
325
|
-
integrity: z.ZodOptional<z.ZodString>;
|
|
326
|
-
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
-
url: z.ZodString;
|
|
328
|
-
}, {
|
|
329
|
-
size: z.ZodNumber;
|
|
330
|
-
}>, "strip", z.ZodTypeAny, {
|
|
331
|
-
url: string;
|
|
332
|
-
size: number;
|
|
333
|
-
integrity?: string | undefined;
|
|
334
|
-
revision?: string | null | undefined;
|
|
335
|
-
}, {
|
|
336
|
-
url: string;
|
|
337
|
-
size: number;
|
|
338
|
-
integrity?: string | undefined;
|
|
339
|
-
revision?: string | null | undefined;
|
|
340
|
-
}>, "many">;
|
|
341
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
342
|
-
}, "strict", z.ZodTypeAny, {
|
|
343
|
-
manifest: {
|
|
344
|
-
url: string;
|
|
345
|
-
size: number;
|
|
346
|
-
integrity?: string | undefined;
|
|
347
|
-
revision?: string | null | undefined;
|
|
348
|
-
}[];
|
|
349
|
-
warnings?: string[] | undefined;
|
|
350
|
-
}, {
|
|
296
|
+
} | Promise<{
|
|
351
297
|
manifest: {
|
|
352
298
|
url: string;
|
|
353
299
|
size: number;
|
|
@@ -355,7 +301,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
355
301
|
revision?: string | null | undefined;
|
|
356
302
|
}[];
|
|
357
303
|
warnings?: string[] | undefined;
|
|
358
|
-
}>
|
|
304
|
+
}>)[] | undefined;
|
|
359
305
|
modifyURLPrefix?: Record<string, string> | undefined;
|
|
360
306
|
templatedURLs?: Record<string, string | string[]> | undefined;
|
|
361
307
|
}, {
|
|
@@ -368,9 +314,9 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
368
314
|
type?: "classic" | "module" | undefined;
|
|
369
315
|
disable?: boolean | undefined;
|
|
370
316
|
integration?: {
|
|
371
|
-
beforeBuildServiceWorker?: ((args_0: any) =>
|
|
317
|
+
beforeBuildServiceWorker?: ((args_0: any) => void | Promise<void>) | undefined;
|
|
372
318
|
closeBundleOrder?: "pre" | "post" | null | undefined;
|
|
373
|
-
configureOptions?: ((args_0: any, args_1: any) =>
|
|
319
|
+
configureOptions?: ((args_0: any, args_1: any) => void | Promise<void>) | undefined;
|
|
374
320
|
} | undefined;
|
|
375
321
|
swUrl?: string | undefined;
|
|
376
322
|
plugins?: any[] | undefined;
|
|
@@ -392,34 +338,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
392
338
|
size: number;
|
|
393
339
|
integrity?: string | undefined;
|
|
394
340
|
revision?: string | null | undefined;
|
|
395
|
-
}[], args_1: unknown) =>
|
|
396
|
-
manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
397
|
-
integrity: z.ZodOptional<z.ZodString>;
|
|
398
|
-
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
-
url: z.ZodString;
|
|
400
|
-
}, {
|
|
401
|
-
size: z.ZodNumber;
|
|
402
|
-
}>, "strip", z.ZodTypeAny, {
|
|
403
|
-
url: string;
|
|
404
|
-
size: number;
|
|
405
|
-
integrity?: string | undefined;
|
|
406
|
-
revision?: string | null | undefined;
|
|
407
|
-
}, {
|
|
408
|
-
url: string;
|
|
409
|
-
size: number;
|
|
410
|
-
integrity?: string | undefined;
|
|
411
|
-
revision?: string | null | undefined;
|
|
412
|
-
}>, "many">;
|
|
413
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
414
|
-
}, "strict", z.ZodTypeAny, {
|
|
415
|
-
manifest: {
|
|
416
|
-
url: string;
|
|
417
|
-
size: number;
|
|
418
|
-
integrity?: string | undefined;
|
|
419
|
-
revision?: string | null | undefined;
|
|
420
|
-
}[];
|
|
421
|
-
warnings?: string[] | undefined;
|
|
422
|
-
}, {
|
|
341
|
+
}[], args_1: unknown) => {
|
|
423
342
|
manifest: {
|
|
424
343
|
url: string;
|
|
425
344
|
size: number;
|
|
@@ -427,34 +346,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
427
346
|
revision?: string | null | undefined;
|
|
428
347
|
}[];
|
|
429
348
|
warnings?: string[] | undefined;
|
|
430
|
-
}
|
|
431
|
-
manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
432
|
-
integrity: z.ZodOptional<z.ZodString>;
|
|
433
|
-
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
url: z.ZodString;
|
|
435
|
-
}, {
|
|
436
|
-
size: z.ZodNumber;
|
|
437
|
-
}>, "strip", z.ZodTypeAny, {
|
|
438
|
-
url: string;
|
|
439
|
-
size: number;
|
|
440
|
-
integrity?: string | undefined;
|
|
441
|
-
revision?: string | null | undefined;
|
|
442
|
-
}, {
|
|
443
|
-
url: string;
|
|
444
|
-
size: number;
|
|
445
|
-
integrity?: string | undefined;
|
|
446
|
-
revision?: string | null | undefined;
|
|
447
|
-
}>, "many">;
|
|
448
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
449
|
-
}, "strict", z.ZodTypeAny, {
|
|
450
|
-
manifest: {
|
|
451
|
-
url: string;
|
|
452
|
-
size: number;
|
|
453
|
-
integrity?: string | undefined;
|
|
454
|
-
revision?: string | null | undefined;
|
|
455
|
-
}[];
|
|
456
|
-
warnings?: string[] | undefined;
|
|
457
|
-
}, {
|
|
349
|
+
} | Promise<{
|
|
458
350
|
manifest: {
|
|
459
351
|
url: string;
|
|
460
352
|
size: number;
|
|
@@ -462,7 +354,7 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
462
354
|
revision?: string | null | undefined;
|
|
463
355
|
}[];
|
|
464
356
|
warnings?: string[] | undefined;
|
|
465
|
-
}>
|
|
357
|
+
}>)[] | undefined;
|
|
466
358
|
maximumFileSizeToCacheInBytes?: number | undefined;
|
|
467
359
|
modifyURLPrefix?: Record<string, string> | undefined;
|
|
468
360
|
globFollow?: boolean | undefined;
|
package/dist/lib/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/lib/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/lib/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;;;;;;;;;EAIhB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;EAGrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;iBAvBkC,CAAC;gBACnD,CAAC;;;iBAA4E,CAAC;gBAGjF,CAAC;;;;;;;;;;;;;iBAciB,CAAC;gBAAsC,CAAC;;;;iBAEvC,CAAC;gBAGL,CAAC;;;;;;;;;;;qBAO4N,CAAC;oBAA0C,CAAC;;;;qBAAkH,CAAC;oBAA0C,CAAC;;;;;;;qBAAiP,CAAC;oBAA0C,CAAC;;gBAA0D,CAAC;;;;;qBAA6H,CAAC;oBAA0C,CAAC;;gBAA0D,CAAC;;;;;;;;;;;qBAA8Z,CAAC;oBAA0C,CAAC;;;;qBAAkH,CAAC;oBAA0C,CAAC;;;;;;;qBAAiP,CAAC;oBAA0C,CAAC;;gBAA0D,CAAC;;;;;qBAA6H,CAAC;oBAA0C,CAAC;;gBAA0D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA3U,CAAC;oBAA0C,CAAC;;;;;;;qBAAhtC,CAAC;oBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA41C,CAAC;oBAA0C,CAAC;;;;;;;qBAAhtC,CAAC;oBAA0C,CAAC;;;;;;;;;;;;EADj4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/vite",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Vite application.",
|
|
6
6
|
"files": [
|
|
@@ -69,21 +69,21 @@
|
|
|
69
69
|
"./package.json": "./package.json"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"glob": "
|
|
72
|
+
"glob": "11.0.0",
|
|
73
73
|
"kolorist": "1.8.0",
|
|
74
74
|
"zod": "3.23.8",
|
|
75
|
-
"@serwist/build": "9.0.
|
|
76
|
-
"serwist": "9.0.
|
|
75
|
+
"@serwist/build": "9.0.4",
|
|
76
|
+
"serwist": "9.0.4"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@types/node": "20.14.
|
|
80
|
-
"rollup": "4.18.
|
|
81
|
-
"typescript": "5.5.
|
|
82
|
-
"vite": "5.
|
|
83
|
-
"@serwist/configs": "9.0.
|
|
84
|
-
"serwist": "9.0.
|
|
85
|
-
"@serwist/utils": "9.0.
|
|
86
|
-
"@serwist/window": "9.0.
|
|
79
|
+
"@types/node": "20.14.10",
|
|
80
|
+
"rollup": "4.18.1",
|
|
81
|
+
"typescript": "5.5.3",
|
|
82
|
+
"vite": "5.3.4",
|
|
83
|
+
"@serwist/configs": "9.0.4",
|
|
84
|
+
"serwist": "9.0.4",
|
|
85
|
+
"@serwist/utils": "9.0.4",
|
|
86
|
+
"@serwist/window": "9.0.4"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"typescript": ">=5.0.0",
|