@serwist/build 9.0.8 → 9.1.0-preview.0
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.
|
@@ -9,8 +9,8 @@ const requiredSwDestPartial = z.object({
|
|
|
9
9
|
}).strict("Do not pass invalid properties to RequiredSwDest!");
|
|
10
10
|
|
|
11
11
|
const baseInjectPartial = z.object({
|
|
12
|
-
injectionPoint: z.string().default("self.__SW_MANIFEST"),
|
|
13
|
-
swSrc: z.string()
|
|
12
|
+
injectionPoint: z.string().min(1, "`injectionPoint` must not be empty!").default("self.__SW_MANIFEST"),
|
|
13
|
+
swSrc: z.string().min(1, "`swSrc` must not be empty!")
|
|
14
14
|
}).strict("Do not pass invalid properties to InjectPartial!");
|
|
15
15
|
const injectManifestOptions = basePartial.merge(globPartial).merge(baseInjectPartial).merge(requiredSwDestPartial).merge(requiredGlobDirectoryPartial).strict("Do not pass invalid properties to InjectManifestOptions!");
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-size.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-size.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAAM,GAAG,IAUnD,
|
|
1
|
+
{"version":3,"file":"get-file-size.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-size.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAAM,GAAG,IAUnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/build",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.1.0-preview.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates into your build process, helping you generate a manifest of local files that should be precached.",
|
|
6
6
|
"files": [
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"common-tags": "1.8.2",
|
|
52
52
|
"glob": "10.4.5",
|
|
53
53
|
"pretty-bytes": "6.1.1",
|
|
54
|
-
"rollup": "4.21.3",
|
|
55
54
|
"source-map": "0.8.0-beta.0",
|
|
56
55
|
"zod": "3.23.8"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@types/common-tags": "1.8.4",
|
|
60
|
-
"@types/node": "22.
|
|
59
|
+
"@types/node": "22.8.6",
|
|
60
|
+
"rollup": "4.24.3",
|
|
61
61
|
"type-fest": "4.26.1",
|
|
62
|
-
"typescript": "5.6.
|
|
63
|
-
"@serwist/configs": "9.0.
|
|
64
|
-
"@serwist/utils": "9.0.
|
|
62
|
+
"typescript": "5.6.3",
|
|
63
|
+
"@serwist/configs": "9.1.0-preview.0",
|
|
64
|
+
"@serwist/utils": "9.1.0-preview.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"typescript": ">=5.0.0"
|
package/src/index.ts
CHANGED
package/src/lib/get-file-size.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { requiredSwDestPartial } from "./swDest.js";
|
|
|
7
7
|
|
|
8
8
|
export const baseInjectPartial = z
|
|
9
9
|
.object({
|
|
10
|
-
injectionPoint: z.string().default("self.__SW_MANIFEST"),
|
|
11
|
-
swSrc: z.string(),
|
|
10
|
+
injectionPoint: z.string().min(1, "`injectionPoint` must not be empty!").default("self.__SW_MANIFEST"),
|
|
11
|
+
swSrc: z.string().min(1, "`swSrc` must not be empty!"),
|
|
12
12
|
})
|
|
13
13
|
.strict("Do not pass invalid properties to InjectPartial!");
|
|
14
14
|
|