@serwist/build 9.0.2 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"get-manifest.d.ts","sourceRoot":"","sources":["../src/get-manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,WAAkB,kBAAkB,KAAG,QAAQ,iBAAiB,CAIvF,CAAC"}
1
+ {"version":3,"file":"get-manifest.d.ts","sourceRoot":"","sources":["../src/get-manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,WAAkB,kBAAkB,KAAG,OAAO,CAAC,iBAAiB,CAIvF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inject-manifest.d.ts","sourceRoot":"","sources":["../src/inject-manifest.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,WAAkB,qBAAqB,KAAG,QAAQ,WAAW,CAyFvF,CAAC"}
1
+ {"version":3,"file":"inject-manifest.d.ts","sourceRoot":"","sources":["../src/inject-manifest.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,WAAkB,qBAAqB,KAAG,OAAO,CAAC,WAAW,CAyFvF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-details.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-details.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK5D,eAAO,MAAM,cAAc,6DAKxB,KAAK,WAAW,EAAE,eAAe,GAAG,cAAc,GAAG,eAAe,CAAC,GAAG;IAEzE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG;IACF,kBAAkB,EAAE,WAAW,EAAE,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;CAkCjB,CAAC"}
1
+ {"version":3,"file":"get-file-details.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-details.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK5D,eAAO,MAAM,cAAc,6DAKxB,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,cAAc,GAAG,eAAe,CAAC,GAAG;IAEzE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG;IACF,kBAAkB,EAAE,WAAW,EAAE,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;CAkCjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-manifest-entries.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-manifest-entries.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAe,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAO9F,eAAO,MAAM,sBAAsB,4OAahC,0BAA0B,KAAG,QAAQ,iBAAiB,CA+FxD,CAAC"}
1
+ {"version":3,"file":"get-file-manifest-entries.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-manifest-entries.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAe,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAO9F,eAAO,MAAM,sBAAsB,4OAahC,0BAA0B,KAAG,OAAO,CAAC,iBAAiB,CA+FxD,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import crypto from "node:crypto";
3
2
  export declare function getStringHash(input: crypto.BinaryLike): string;
4
3
  //# sourceMappingURL=get-string-hash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-string-hash.d.ts","sourceRoot":"","sources":["../../src/lib/get-string-hash.ts"],"names":[],"mappings":";AAQA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAI9D"}
1
+ {"version":3,"file":"get-string-hash.d.ts","sourceRoot":"","sources":["../../src/lib/get-string-hash.ts"],"names":[],"mappings":"AAQA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAI9D"}
@@ -1,8 +1,7 @@
1
1
  import type { BaseResolved, FileDetails, ManifestEntry } from "../types.js";
2
2
  /**
3
3
  * A `ManifestTransform` function can be used to modify the modify the `url` or
4
- * `revision` properties of some or all of the
5
- * `@serwist/build.ManifestEntry` in the manifest.
4
+ * `revision` properties of some or all of the {@linkcode ManifestEntry} in the manifest.
6
5
  *
7
6
  * Deleting the `revision` property of an entry will cause
8
7
  * the corresponding `url` to be precached without cache-busting parameters
@@ -1 +1 @@
1
- {"version":3,"file":"transform-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/transform-manifest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAO/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,UAAU,mCAAmC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAID,UAAU,wBACR,SAAQ,IAAI,CACV,YAAY,EACV,2BAA2B,GAC3B,2BAA2B,GAC3B,oBAAoB,GACpB,+BAA+B,GAC/B,iBAAiB,GACjB,yBAAyB,CAC5B;IACD,WAAW,EAAE,WAAW,EAAE,CAAC;IAG3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAsB,iBAAiB,CAAC,EACtC,yBAAyB,EACzB,yBAAyB,EACzB,WAAW,EACX,kBAAkB,EAClB,6BAA6B,EAC7B,eAAe,EACf,cAAc,EACd,uBAAuB,GACxB,EAAE,wBAAwB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAuEzE"}
1
+ {"version":3,"file":"transform-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/transform-manifest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAO/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,UAAU,mCAAmC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAID,UAAU,wBACR,SAAQ,IAAI,CACV,YAAY,EACV,2BAA2B,GAC3B,2BAA2B,GAC3B,oBAAoB,GACpB,+BAA+B,GAC/B,iBAAiB,GACjB,yBAAyB,CAC5B;IACD,WAAW,EAAE,WAAW,EAAE,CAAC;IAG3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAsB,iBAAiB,CAAC,EACtC,yBAAyB,EACzB,yBAAyB,EACzB,WAAW,EACX,kBAAkB,EAClB,6BAA6B,EAC7B,eAAe,EACf,cAAc,EACd,uBAAuB,GACxB,EAAE,wBAAwB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAuEzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-options.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE7F,eAAO,MAAM,0BAA0B,UAAiB,OAAO,KAAG,QAAQ,0BAA0B,CAMnG,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAiB,OAAO,KAAG,QAAQ,6BAA6B,CAMzG,CAAC"}
1
+ {"version":3,"file":"validate-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-options.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE7F,eAAO,MAAM,0BAA0B,UAAiB,OAAO,KAAG,OAAO,CAAC,0BAA0B,CAMnG,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAiB,OAAO,KAAG,OAAO,CAAC,6BAA6B,CAMzG,CAAC"}
@@ -15,12 +15,13 @@ export declare const basePartial: z.ZodObject<{
15
15
  }>]>, "many">>;
16
16
  disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
17
17
  dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
18
- manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
18
+ manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
19
19
  integrity: z.ZodOptional<z.ZodString>;
20
20
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  url: z.ZodString;
22
+ }, {
22
23
  size: z.ZodNumber;
23
- }, "strip", z.ZodTypeAny, {
24
+ }>, "strip", z.ZodTypeAny, {
24
25
  url: string;
25
26
  size: number;
26
27
  integrity?: string | undefined;
@@ -31,12 +32,13 @@ export declare const basePartial: z.ZodObject<{
31
32
  integrity?: string | undefined;
32
33
  revision?: string | null | undefined;
33
34
  }>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
34
- manifest: z.ZodArray<z.ZodObject<{
35
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
35
36
  integrity: z.ZodOptional<z.ZodString>;
36
37
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
38
  url: z.ZodString;
39
+ }, {
38
40
  size: z.ZodNumber;
39
- }, "strip", z.ZodTypeAny, {
41
+ }>, "strip", z.ZodTypeAny, {
40
42
  url: string;
41
43
  size: number;
42
44
  integrity?: string | undefined;
@@ -65,12 +67,13 @@ export declare const basePartial: z.ZodObject<{
65
67
  }[];
66
68
  warnings?: string[] | undefined;
67
69
  }>>, z.ZodObject<{
68
- manifest: z.ZodArray<z.ZodObject<{
70
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
69
71
  integrity: z.ZodOptional<z.ZodString>;
70
72
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
73
  url: z.ZodString;
74
+ }, {
72
75
  size: z.ZodNumber;
73
- }, "strip", z.ZodTypeAny, {
76
+ }>, "strip", z.ZodTypeAny, {
74
77
  url: string;
75
78
  size: number;
76
79
  integrity?: string | undefined;
@@ -134,12 +137,13 @@ export declare const basePartial: z.ZodObject<{
134
137
  }>)[] | undefined;
135
138
  modifyURLPrefix?: Record<string, string> | undefined;
136
139
  }, {
140
+ disablePrecacheManifest?: boolean | undefined;
141
+ maximumFileSizeToCacheInBytes?: number | undefined;
137
142
  additionalPrecacheEntries?: (string | {
138
143
  url: string;
139
144
  integrity?: string | undefined;
140
145
  revision?: string | null | undefined;
141
146
  })[] | undefined;
142
- disablePrecacheManifest?: boolean | undefined;
143
147
  dontCacheBustURLsMatching?: RegExp | undefined;
144
148
  manifestTransforms?: ((args_0: {
145
149
  url: string;
@@ -163,7 +167,6 @@ export declare const basePartial: z.ZodObject<{
163
167
  }[];
164
168
  warnings?: string[] | undefined;
165
169
  }>)[] | undefined;
166
- maximumFileSizeToCacheInBytes?: number | undefined;
167
170
  modifyURLPrefix?: Record<string, string> | undefined;
168
171
  }>;
169
172
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASmC,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASmC,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import type { z } from "zod";
2
- export declare const getManifestOptions: z.ZodObject<{
3
- disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
4
- maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
2
+ export declare const getManifestOptions: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
3
  additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
6
4
  integrity: z.ZodOptional<z.ZodString>;
7
5
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15,13 +13,15 @@ export declare const getManifestOptions: z.ZodObject<{
15
13
  integrity?: string | undefined;
16
14
  revision?: string | null | undefined;
17
15
  }>]>, "many">>;
16
+ disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
18
17
  dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
19
- manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
18
+ manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
20
19
  integrity: z.ZodOptional<z.ZodString>;
21
20
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
21
  url: z.ZodString;
22
+ }, {
23
23
  size: z.ZodNumber;
24
- }, "strip", z.ZodTypeAny, {
24
+ }>, "strip", z.ZodTypeAny, {
25
25
  url: string;
26
26
  size: number;
27
27
  integrity?: string | undefined;
@@ -32,12 +32,13 @@ export declare const getManifestOptions: z.ZodObject<{
32
32
  integrity?: string | undefined;
33
33
  revision?: string | null | undefined;
34
34
  }>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
35
- manifest: z.ZodArray<z.ZodObject<{
35
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
36
36
  integrity: z.ZodOptional<z.ZodString>;
37
37
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  url: z.ZodString;
39
+ }, {
39
40
  size: z.ZodNumber;
40
- }, "strip", z.ZodTypeAny, {
41
+ }>, "strip", z.ZodTypeAny, {
41
42
  url: string;
42
43
  size: number;
43
44
  integrity?: string | undefined;
@@ -66,12 +67,13 @@ export declare const getManifestOptions: z.ZodObject<{
66
67
  }[];
67
68
  warnings?: string[] | undefined;
68
69
  }>>, z.ZodObject<{
69
- manifest: z.ZodArray<z.ZodObject<{
70
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
70
71
  integrity: z.ZodOptional<z.ZodString>;
71
72
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
73
  url: z.ZodString;
74
+ }, {
73
75
  size: z.ZodNumber;
74
- }, "strip", z.ZodTypeAny, {
76
+ }>, "strip", z.ZodTypeAny, {
75
77
  url: string;
76
78
  size: number;
77
79
  integrity?: string | undefined;
@@ -100,14 +102,17 @@ export declare const getManifestOptions: z.ZodObject<{
100
102
  }[];
101
103
  warnings?: string[] | undefined;
102
104
  }>]>>, "many">>;
105
+ maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
103
106
  modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
107
+ }, {
104
108
  globFollow: z.ZodDefault<z.ZodBoolean>;
105
109
  globIgnores: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
106
110
  globPatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
107
111
  globStrict: z.ZodDefault<z.ZodBoolean>;
108
112
  templatedURLs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
113
+ }>, {
109
114
  globDirectory: z.ZodString;
110
- }, "strict", z.ZodTypeAny, {
115
+ }>, "strict", z.ZodTypeAny, {
111
116
  disablePrecacheManifest: boolean;
112
117
  maximumFileSizeToCacheInBytes: number;
113
118
  globFollow: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getManifest.d.ts","sourceRoot":"","sources":["../../src/schema/getManifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGmC,CAAC"}
1
+ {"version":3,"file":"getManifest.d.ts","sourceRoot":"","sources":["../../src/schema/getManifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGmC,CAAC"}
@@ -9,9 +9,7 @@ export declare const baseInjectPartial: z.ZodObject<{
9
9
  swSrc: string;
10
10
  injectionPoint?: string | undefined;
11
11
  }>;
12
- export declare const injectManifestOptions: z.ZodObject<{
13
- disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
14
- maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
12
+ export declare const injectManifestOptions: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
15
13
  additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
16
14
  integrity: z.ZodOptional<z.ZodString>;
17
15
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -25,13 +23,15 @@ export declare const injectManifestOptions: z.ZodObject<{
25
23
  integrity?: string | undefined;
26
24
  revision?: string | null | undefined;
27
25
  }>]>, "many">>;
26
+ disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
28
27
  dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
29
- manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
28
+ manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
30
29
  integrity: z.ZodOptional<z.ZodString>;
31
30
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
31
  url: z.ZodString;
32
+ }, {
33
33
  size: z.ZodNumber;
34
- }, "strip", z.ZodTypeAny, {
34
+ }>, "strip", z.ZodTypeAny, {
35
35
  url: string;
36
36
  size: number;
37
37
  integrity?: string | undefined;
@@ -42,12 +42,13 @@ export declare const injectManifestOptions: z.ZodObject<{
42
42
  integrity?: string | undefined;
43
43
  revision?: string | null | undefined;
44
44
  }>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
45
- manifest: z.ZodArray<z.ZodObject<{
45
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
46
46
  integrity: z.ZodOptional<z.ZodString>;
47
47
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  url: z.ZodString;
49
+ }, {
49
50
  size: z.ZodNumber;
50
- }, "strip", z.ZodTypeAny, {
51
+ }>, "strip", z.ZodTypeAny, {
51
52
  url: string;
52
53
  size: number;
53
54
  integrity?: string | undefined;
@@ -76,12 +77,13 @@ export declare const injectManifestOptions: z.ZodObject<{
76
77
  }[];
77
78
  warnings?: string[] | undefined;
78
79
  }>>, z.ZodObject<{
79
- manifest: z.ZodArray<z.ZodObject<{
80
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
80
81
  integrity: z.ZodOptional<z.ZodString>;
81
82
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
83
  url: z.ZodString;
84
+ }, {
83
85
  size: z.ZodNumber;
84
- }, "strip", z.ZodTypeAny, {
86
+ }>, "strip", z.ZodTypeAny, {
85
87
  url: string;
86
88
  size: number;
87
89
  integrity?: string | undefined;
@@ -110,17 +112,22 @@ export declare const injectManifestOptions: z.ZodObject<{
110
112
  }[];
111
113
  warnings?: string[] | undefined;
112
114
  }>]>>, "many">>;
115
+ maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
113
116
  modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
117
+ }, {
114
118
  globFollow: z.ZodDefault<z.ZodBoolean>;
115
119
  globIgnores: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
116
120
  globPatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
117
121
  globStrict: z.ZodDefault<z.ZodBoolean>;
118
122
  templatedURLs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
123
+ }>, {
119
124
  injectionPoint: z.ZodDefault<z.ZodString>;
120
125
  swSrc: z.ZodString;
126
+ }>, {
121
127
  swDest: z.ZodString;
128
+ }>, {
122
129
  globDirectory: z.ZodString;
123
- }, "strict", z.ZodTypeAny, {
130
+ }>, "strict", z.ZodTypeAny, {
124
131
  disablePrecacheManifest: boolean;
125
132
  maximumFileSizeToCacheInBytes: number;
126
133
  globFollow: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"injectManifest.d.ts","sourceRoot":"","sources":["../../src/schema/injectManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAK+B,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKmC,CAAC"}
1
+ {"version":3,"file":"injectManifest.d.ts","sourceRoot":"","sources":["../../src/schema/injectManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAK+B,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKmC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const manifestTransformResult: z.ZodObject<{
3
- manifest: z.ZodArray<z.ZodObject<{
3
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
4
  integrity: z.ZodOptional<z.ZodString>;
5
5
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  url: z.ZodString;
7
+ }, {
7
8
  size: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
+ }>, "strip", z.ZodTypeAny, {
9
10
  url: string;
10
11
  size: number;
11
12
  integrity?: string | undefined;
@@ -34,12 +35,13 @@ export declare const manifestTransformResult: z.ZodObject<{
34
35
  }[];
35
36
  warnings?: string[] | undefined;
36
37
  }>;
37
- export declare const manifestTransform: z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
38
+ export declare const manifestTransform: z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
38
39
  integrity: z.ZodOptional<z.ZodString>;
39
40
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
41
  url: z.ZodString;
42
+ }, {
41
43
  size: z.ZodNumber;
42
- }, "strip", z.ZodTypeAny, {
44
+ }>, "strip", z.ZodTypeAny, {
43
45
  url: string;
44
46
  size: number;
45
47
  integrity?: string | undefined;
@@ -50,12 +52,13 @@ export declare const manifestTransform: z.ZodFunction<z.ZodTuple<[z.ZodArray<z.Z
50
52
  integrity?: string | undefined;
51
53
  revision?: string | null | undefined;
52
54
  }>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
53
- manifest: z.ZodArray<z.ZodObject<{
55
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
54
56
  integrity: z.ZodOptional<z.ZodString>;
55
57
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
58
  url: z.ZodString;
59
+ }, {
57
60
  size: z.ZodNumber;
58
- }, "strip", z.ZodTypeAny, {
61
+ }>, "strip", z.ZodTypeAny, {
59
62
  url: string;
60
63
  size: number;
61
64
  integrity?: string | undefined;
@@ -84,12 +87,13 @@ export declare const manifestTransform: z.ZodFunction<z.ZodTuple<[z.ZodArray<z.Z
84
87
  }[];
85
88
  warnings?: string[] | undefined;
86
89
  }>>, z.ZodObject<{
87
- manifest: z.ZodArray<z.ZodObject<{
90
+ manifest: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
88
91
  integrity: z.ZodOptional<z.ZodString>;
89
92
  revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
93
  url: z.ZodString;
94
+ }, {
91
95
  size: z.ZodNumber;
92
- }, "strip", z.ZodTypeAny, {
96
+ }>, "strip", z.ZodTypeAny, {
93
97
  url: string;
94
98
  size: number;
95
99
  integrity?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"manifestTransform.d.ts","sourceRoot":"","sources":["../../src/schema/manifestTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKmC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAG7B,CAAC"}
1
+ {"version":3,"file":"manifestTransform.d.ts","sourceRoot":"","sources":["../../src/schema/manifestTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKmC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAG7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/build",
3
- "version": "9.0.2",
3
+ "version": "9.0.4",
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": [
@@ -48,22 +48,22 @@
48
48
  "common-tags": "1.8.2",
49
49
  "fast-json-stable-stringify": "2.1.0",
50
50
  "fs-extra": "11.2.0",
51
- "glob": "10.3.12",
51
+ "glob": "11.0.0",
52
52
  "pretty-bytes": "6.1.1",
53
- "rollup": "4.14.3",
53
+ "rollup": "4.18.1",
54
54
  "source-map": "0.8.0-beta.0",
55
55
  "upath": "2.0.1",
56
- "zod": "3.22.4"
56
+ "zod": "3.23.8"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/common-tags": "1.8.4",
60
60
  "@types/fs-extra": "11.0.4",
61
- "@types/node": "20.12.7",
61
+ "@types/node": "20.14.10",
62
62
  "@types/stringify-object": "4.0.5",
63
- "type-fest": "4.15.0",
64
- "typescript": "5.5.0-dev.20240415",
65
- "@serwist/configs": "9.0.2",
66
- "@serwist/utils": "9.0.2"
63
+ "type-fest": "4.21.0",
64
+ "typescript": "5.5.3",
65
+ "@serwist/configs": "9.0.4",
66
+ "@serwist/utils": "9.0.4"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "typescript": ">=5.0.0"
@@ -15,8 +15,7 @@ import { noRevisionForURLsMatchingTransform } from "./no-revision-for-urls-match
15
15
 
16
16
  /**
17
17
  * A `ManifestTransform` function can be used to modify the modify the `url` or
18
- * `revision` properties of some or all of the
19
- * `@serwist/build.ManifestEntry` in the manifest.
18
+ * `revision` properties of some or all of the {@linkcode ManifestEntry} in the manifest.
20
19
  *
21
20
  * Deleting the `revision` property of an entry will cause
22
21
  * the corresponding `url` to be precached without cache-busting parameters
@@ -61,7 +60,6 @@ import { noRevisionForURLsMatchingTransform } from "./no-revision-for-urls-match
61
60
  * @returns The array of entries with the transformation applied,
62
61
  * and optionally, any warnings that should be reported back to the build tool.
63
62
  */
64
-
65
63
  interface ManifestTransformResultWithWarnings {
66
64
  count: number;
67
65
  size: number;