@serwist/webpack-plugin 9.0.13 → 9.0.14
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/lib/schema.d.ts +12 -16
- package/dist/lib/schema.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/lib/types.ts +1 -1
package/dist/lib/schema.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const injectPartial: z.ZodObject<{
|
|
|
28
28
|
webpackCompilationPlugins?: any[] | undefined;
|
|
29
29
|
swDest?: string | undefined;
|
|
30
30
|
}>;
|
|
31
|
-
export declare const injectManifestOptions: z.ZodObject<
|
|
31
|
+
export declare const injectManifestOptions: z.ZodObject<{
|
|
32
32
|
additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
33
33
|
integrity: z.ZodOptional<z.ZodString>;
|
|
34
34
|
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -44,13 +44,13 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
44
44
|
}>]>, "many">>;
|
|
45
45
|
disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
|
|
46
46
|
dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
|
|
47
|
-
manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<
|
|
47
|
+
manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
|
|
48
48
|
integrity: z.ZodOptional<z.ZodString>;
|
|
49
49
|
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
url: z.ZodString;
|
|
51
|
-
}
|
|
51
|
+
} & {
|
|
52
52
|
size: z.ZodNumber;
|
|
53
|
-
}
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
url: string;
|
|
55
55
|
size: number;
|
|
56
56
|
integrity?: string | undefined;
|
|
@@ -61,13 +61,13 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
61
61
|
integrity?: string | undefined;
|
|
62
62
|
revision?: string | null | undefined;
|
|
63
63
|
}>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
|
|
64
|
-
manifest: z.ZodArray<z.ZodObject<
|
|
64
|
+
manifest: z.ZodArray<z.ZodObject<{
|
|
65
65
|
integrity: z.ZodOptional<z.ZodString>;
|
|
66
66
|
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
url: z.ZodString;
|
|
68
|
-
}
|
|
68
|
+
} & {
|
|
69
69
|
size: z.ZodNumber;
|
|
70
|
-
}
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
url: string;
|
|
72
72
|
size: number;
|
|
73
73
|
integrity?: string | undefined;
|
|
@@ -96,13 +96,13 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
96
96
|
}[];
|
|
97
97
|
warnings?: string[] | undefined;
|
|
98
98
|
}>>, z.ZodObject<{
|
|
99
|
-
manifest: z.ZodArray<z.ZodObject<
|
|
99
|
+
manifest: z.ZodArray<z.ZodObject<{
|
|
100
100
|
integrity: z.ZodOptional<z.ZodString>;
|
|
101
101
|
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
102
|
url: z.ZodString;
|
|
103
|
-
}
|
|
103
|
+
} & {
|
|
104
104
|
size: z.ZodNumber;
|
|
105
|
-
}
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
url: string;
|
|
107
107
|
size: number;
|
|
108
108
|
integrity?: string | undefined;
|
|
@@ -133,21 +133,17 @@ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape
|
|
|
133
133
|
}>]>>, "many">>;
|
|
134
134
|
maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
|
|
135
135
|
modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
|
-
}, {
|
|
137
136
|
chunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
138
137
|
exclude: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
|
|
139
138
|
excludeChunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
139
|
include: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
|
|
141
|
-
}>, {
|
|
142
140
|
injectionPoint: z.ZodDefault<z.ZodString>;
|
|
143
141
|
swSrc: z.ZodString;
|
|
144
|
-
}
|
|
145
|
-
swDest: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}>, {
|
|
142
|
+
} & {
|
|
147
143
|
compileSrc: z.ZodDefault<z.ZodBoolean>;
|
|
148
144
|
swDest: z.ZodOptional<z.ZodString>;
|
|
149
145
|
webpackCompilationPlugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
150
|
-
}
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
151
147
|
exclude: (string | RegExp | ((args_0: any) => boolean))[];
|
|
152
148
|
compileSrc: boolean;
|
|
153
149
|
disablePrecacheManifest: boolean;
|
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,cAAc;;;;;;;;;;;;;;;EASmC,CAAC;AAE/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CAAC;;;;;qBAA6H,CAAC;oBAA0C,CAAC;;gBAA0D,CAAC;;mCAA+E,EAAG,UAAU,CAAC,EAAE,SAAS;qBAAuB,EAAG,WAAW,CAAC,EAAE,SAAS,CAAC,EAAE,SAAS,EAAC,EAAG,SAAS;;;;;oBA5B/iF,EAAG,UAAU,CAC/G,EAAE,SAAS;WAEX,EAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAyB0oE,CAAC;oBAA0C,CAAC;;;;;;;qBAAvrC,CAAC;oBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAm0C,CAAC;oBAA0C,CAAC;;;;;;;qBAAvrC,CAAC;oBAA0C,CAAC;;;;;;;;EAD7sC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/webpack-plugin",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A plugin for your webpack build process, helping you generate a manifest of local files that should be precached.",
|
|
6
6
|
"files": [
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"pretty-bytes": "6.1.1",
|
|
62
|
-
"zod": "3.24.
|
|
63
|
-
"@serwist/build": "9.0.
|
|
62
|
+
"zod": "3.24.3",
|
|
63
|
+
"@serwist/build": "9.0.14"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@types/node": "22.14.
|
|
66
|
+
"@types/node": "22.14.1",
|
|
67
67
|
"@types/webpack": "5.28.5",
|
|
68
|
-
"rollup": "4.
|
|
68
|
+
"rollup": "4.40.0",
|
|
69
69
|
"typescript": "5.6.3",
|
|
70
|
-
"webpack": "5.
|
|
71
|
-
"@serwist/configs": "9.0.
|
|
72
|
-
"@serwist/utils": "9.0.
|
|
70
|
+
"webpack": "5.99.6",
|
|
71
|
+
"@serwist/configs": "9.0.14",
|
|
72
|
+
"@serwist/utils": "9.0.14"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"typescript": ">=5.0.0",
|
package/src/lib/types.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { WebpackPluginFunction, WebpackPluginInstance, Asset, Compilation }
|
|
|
12
12
|
export interface ConditionCallbackOptions {
|
|
13
13
|
asset: Asset;
|
|
14
14
|
compilation: Compilation;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
|
|
17
17
|
export type ConditionCallback = (options: ConditionCallbackOptions) => boolean;
|
|
18
18
|
|