@serwist/build 9.0.0-preview.8 → 9.0.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.
- package/dist/chunks/glob.js +3 -3
- package/dist/chunks/injectManifest.js +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -50
- package/dist/index.schema.d.ts +13 -0
- package/dist/index.schema.d.ts.map +1 -0
- package/dist/index.schema.js +9 -0
- package/dist/lib/additional-precache-entries-transform.d.ts +6 -8
- package/dist/lib/additional-precache-entries-transform.d.ts.map +1 -1
- package/dist/lib/get-file-details.d.ts +3 -9
- package/dist/lib/get-file-details.d.ts.map +1 -1
- package/dist/lib/get-file-hash.d.ts +1 -1
- package/dist/lib/get-file-hash.d.ts.map +1 -1
- package/dist/lib/get-file-manifest-entries.d.ts +2 -2
- package/dist/lib/get-file-manifest-entries.d.ts.map +1 -1
- package/dist/lib/get-string-details.d.ts +1 -1
- package/dist/lib/get-string-details.d.ts.map +1 -1
- package/dist/lib/get-string-hash.d.ts +1 -1
- package/dist/lib/get-string-hash.d.ts.map +1 -1
- package/dist/lib/transform-manifest.d.ts +4 -3
- package/dist/lib/transform-manifest.d.ts.map +1 -1
- package/dist/lib/validate-options.d.ts +1 -3
- package/dist/lib/validate-options.d.ts.map +1 -1
- package/dist/schema/assertType.d.ts +1 -0
- package/dist/schema/assertType.d.ts.map +1 -1
- package/dist/schema/base.d.ts +24 -24
- package/dist/schema/getManifest.d.ts +24 -24
- package/dist/schema/injectManifest.d.ts +27 -27
- package/dist/schema/injectManifest.d.ts.map +1 -1
- package/dist/schema/manifestEntry.d.ts +3 -3
- package/dist/schema/manifestTransform.d.ts +18 -18
- package/dist/{lib/serwist-config-error.d.ts → schema/serwistConfigError.d.ts} +1 -1
- package/dist/schema/serwistConfigError.d.ts.map +1 -0
- package/dist/types.d.ts +9 -152
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -24
- package/src/index.schema.ts +29 -0
- package/src/index.ts +2 -3
- package/src/inject-manifest.ts +1 -1
- package/src/lib/additional-precache-entries-transform.ts +4 -8
- package/src/lib/get-composite-details.ts +2 -2
- package/src/lib/get-file-details.ts +9 -17
- package/src/lib/get-file-hash.ts +4 -4
- package/src/lib/get-file-manifest-entries.ts +5 -5
- package/src/lib/get-string-details.ts +5 -7
- package/src/lib/get-string-hash.ts +1 -1
- package/src/lib/transform-manifest.ts +28 -16
- package/src/lib/validate-options.ts +2 -23
- package/src/schema/assertType.ts +2 -0
- package/src/schema/injectManifest.ts +4 -4
- package/src/schema/manifestEntry.ts +1 -1
- package/src/types.ts +9 -184
- package/dist/chunks/vite.js +0 -7
- package/dist/chunks/webpack.js +0 -33
- package/dist/index.next.d.ts +0 -3
- package/dist/index.next.d.ts.map +0 -1
- package/dist/index.next.js +0 -38
- package/dist/lib/serwist-config-error.d.ts.map +0 -1
- package/dist/lib/validate-next-options.d.ts +0 -3
- package/dist/lib/validate-next-options.d.ts.map +0 -1
- package/dist/schema/next.d.ts +0 -240
- package/dist/schema/next.d.ts.map +0 -1
- package/dist/schema/vite.d.ts +0 -196
- package/dist/schema/vite.d.ts.map +0 -1
- package/dist/schema/webpack.d.ts +0 -225
- package/dist/schema/webpack.d.ts.map +0 -1
- package/src/index.next.ts +0 -3
- package/src/lib/validate-next-options.ts +0 -14
- package/src/schema/next.ts +0 -33
- package/src/schema/vite.ts +0 -18
- package/src/schema/webpack.ts +0 -46
- package/dist/chunks/{serwist-config-error.js → validationErrorMap.js} +7 -7
- /package/src/{lib/serwist-config-error.ts → schema/serwistConfigError.ts} +0 -0
package/dist/chunks/glob.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
const manifestEntry = z.object({
|
|
4
4
|
integrity: z.string().optional(),
|
|
5
|
-
revision: z.string().nullable(),
|
|
5
|
+
revision: z.string().nullable().optional(),
|
|
6
6
|
url: z.string()
|
|
7
7
|
}).strict("Do not pass invalid properties to ManifestEntry!");
|
|
8
8
|
|
|
@@ -48,11 +48,11 @@ const globPartial = z.object({
|
|
|
48
48
|
z.array(z.string())
|
|
49
49
|
])).optional()
|
|
50
50
|
}).strict("Do not pass invalid properties to GlobPartial!");
|
|
51
|
-
z.object({
|
|
51
|
+
const optionalGlobDirectoryPartial = z.object({
|
|
52
52
|
globDirectory: z.string().optional()
|
|
53
53
|
}).strict("Do not pass invalid properties to OptionalGlobDirectoryPartial!");
|
|
54
54
|
const requiredGlobDirectoryPartial = z.object({
|
|
55
55
|
globDirectory: z.string()
|
|
56
56
|
}).strict("Do not pass invalid properties to RequiredGlobDirectoryPartial!");
|
|
57
57
|
|
|
58
|
-
export { basePartial as b, globPartial as g, requiredGlobDirectoryPartial as r };
|
|
58
|
+
export { manifestTransform as a, basePartial as b, manifestTransformResult as c, globPartial as g, manifestEntry as m, optionalGlobDirectoryPartial as o, requiredGlobDirectoryPartial as r };
|
|
@@ -8,16 +8,16 @@ const requiredSwDestPartial = z.object({
|
|
|
8
8
|
swDest: z.string()
|
|
9
9
|
}).strict("Do not pass invalid properties to RequiredSwDest!");
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const baseInjectPartial = z.object({
|
|
12
12
|
injectionPoint: z.string().default("self.__SW_MANIFEST"),
|
|
13
13
|
swSrc: z.string()
|
|
14
14
|
}).strict("Do not pass invalid properties to InjectPartial!");
|
|
15
|
-
const injectManifestOptions = basePartial.merge(globPartial).merge(
|
|
15
|
+
const injectManifestOptions = basePartial.merge(globPartial).merge(baseInjectPartial).merge(requiredSwDestPartial).merge(requiredGlobDirectoryPartial).strict("Do not pass invalid properties to InjectManifestOptions!");
|
|
16
16
|
|
|
17
17
|
var injectManifest = /*#__PURE__*/Object.freeze({
|
|
18
18
|
__proto__: null,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
baseInjectPartial: baseInjectPartial,
|
|
20
|
+
injectManifestOptions: injectManifestOptions
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export { injectManifest as a,
|
|
23
|
+
export { injectManifest as a, baseInjectPartial as b, injectManifestOptions as i, optionalSwDestPartial as o, requiredSwDestPartial as r };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { rebasePath } from "./lib/rebase-path.js";
|
|
|
9
9
|
import { replaceAndUpdateSourceMap } from "./lib/replace-and-update-source-map.js";
|
|
10
10
|
import { transformManifest } from "./lib/transform-manifest.js";
|
|
11
11
|
import { translateURLToSourcemapPaths } from "./lib/translate-url-to-sourcemap-paths.js";
|
|
12
|
-
import {
|
|
13
|
-
export { errors, escapeRegExp, getFileManifestEntries, getManifest, getSourceMapURL, injectManifest, rebasePath, replaceAndUpdateSourceMap, stringify, transformManifest, translateURLToSourcemapPaths,
|
|
12
|
+
import { validateGetManifestOptions, validateInjectManifestOptions } from "./lib/validate-options.js";
|
|
13
|
+
export { errors, escapeRegExp, getFileManifestEntries, getManifest, getSourceMapURL, injectManifest, rebasePath, replaceAndUpdateSourceMap, stringify, transformManifest, translateURLToSourcemapPaths, validateGetManifestOptions, validateInjectManifestOptions, };
|
|
14
14
|
export type * from "./types.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAEtG,OAAO,EACL,MAAM,EACN,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,cAAc,EACd,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,iBAAiB,EACjB,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,GAC9B,CAAC;AAEF,mBAAmB,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import stringify from 'fast-json-stable-stringify';
|
|
2
2
|
export { default as stringify } from 'fast-json-stable-stringify';
|
|
3
|
-
import assert from 'assert';
|
|
3
|
+
import assert from 'node:assert';
|
|
4
4
|
import { oneLine } from 'common-tags';
|
|
5
|
-
import crypto from 'crypto';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import crypto from 'node:crypto';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { globSync } from 'glob';
|
|
8
|
+
import { readFileSync } from 'node:fs';
|
|
8
9
|
import fse from 'fs-extra';
|
|
9
10
|
import prettyBytes from 'pretty-bytes';
|
|
10
|
-
import { v as validationErrorMap, S as SerwistConfigError } from './chunks/
|
|
11
|
+
import { v as validationErrorMap, S as SerwistConfigError } from './chunks/validationErrorMap.js';
|
|
12
|
+
import upath from 'upath';
|
|
11
13
|
import { SourceMapGenerator, SourceMapConsumer } from 'source-map';
|
|
12
14
|
import 'zod';
|
|
13
15
|
|
|
@@ -100,7 +102,7 @@ const getCompositeDetails = (compositeURL, dependencyDetails)=>{
|
|
|
100
102
|
let compositeHash = "";
|
|
101
103
|
for (const fileDetails of dependencyDetails){
|
|
102
104
|
totalSize += fileDetails.size;
|
|
103
|
-
compositeHash += fileDetails.hash;
|
|
105
|
+
compositeHash += fileDetails.hash === null ? "" : fileDetails.hash;
|
|
104
106
|
}
|
|
105
107
|
const md5 = crypto.createHash("md5");
|
|
106
108
|
md5.update(compositeHash);
|
|
@@ -118,14 +120,14 @@ function getStringHash(input) {
|
|
|
118
120
|
return md5.digest("hex");
|
|
119
121
|
}
|
|
120
122
|
|
|
121
|
-
|
|
123
|
+
const getFileHash = (file)=>{
|
|
122
124
|
try {
|
|
123
|
-
const buffer =
|
|
125
|
+
const buffer = readFileSync(file);
|
|
124
126
|
return getStringHash(buffer);
|
|
125
127
|
} catch (err) {
|
|
126
128
|
throw new Error(`${errors["unable-to-get-file-hash"]} '${err instanceof Error && err.message ? err.message : ""}'`);
|
|
127
129
|
}
|
|
128
|
-
}
|
|
130
|
+
};
|
|
129
131
|
|
|
130
132
|
function getFileSize(file) {
|
|
131
133
|
try {
|
|
@@ -139,11 +141,11 @@ function getFileSize(file) {
|
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
|
|
144
|
+
const getFileDetails = ({ globDirectory, globFollow, globIgnores, globPattern })=>{
|
|
143
145
|
let globbedFiles;
|
|
144
146
|
let warning = "";
|
|
145
147
|
try {
|
|
146
|
-
globbedFiles =
|
|
148
|
+
globbedFiles = globSync(globPattern, {
|
|
147
149
|
cwd: globDirectory,
|
|
148
150
|
follow: globFollow,
|
|
149
151
|
ignore: globIgnores
|
|
@@ -160,12 +162,12 @@ function getFileDetails({ globDirectory, globFollow, globIgnores, globPattern })
|
|
|
160
162
|
}
|
|
161
163
|
const globbedFileDetails = [];
|
|
162
164
|
for (const file of globbedFiles){
|
|
163
|
-
const fullPath =
|
|
165
|
+
const fullPath = path.join(globDirectory, file);
|
|
164
166
|
const fileSize = getFileSize(fullPath);
|
|
165
167
|
if (fileSize !== null) {
|
|
166
168
|
const fileHash = getFileHash(fullPath);
|
|
167
169
|
globbedFileDetails.push({
|
|
168
|
-
file:
|
|
170
|
+
file: path.relative(globDirectory, fullPath),
|
|
169
171
|
hash: fileHash,
|
|
170
172
|
size: fileSize
|
|
171
173
|
});
|
|
@@ -175,15 +177,13 @@ function getFileDetails({ globDirectory, globFollow, globIgnores, globPattern })
|
|
|
175
177
|
globbedFileDetails,
|
|
176
178
|
warning
|
|
177
179
|
};
|
|
178
|
-
}
|
|
180
|
+
};
|
|
179
181
|
|
|
180
|
-
|
|
181
|
-
return {
|
|
182
|
+
const getStringDetails = (url, str)=>({
|
|
182
183
|
file: url,
|
|
183
184
|
hash: getStringHash(str),
|
|
184
185
|
size: str.length
|
|
185
|
-
};
|
|
186
|
-
}
|
|
186
|
+
});
|
|
187
187
|
|
|
188
188
|
const additionalPrecacheEntriesTransform = (additionalPrecacheEntries)=>{
|
|
189
189
|
return (manifest)=>{
|
|
@@ -198,7 +198,7 @@ const additionalPrecacheEntriesTransform = (additionalPrecacheEntries)=>{
|
|
|
198
198
|
url: additionalEntry
|
|
199
199
|
});
|
|
200
200
|
} else {
|
|
201
|
-
if (additionalEntry && additionalEntry.revision === undefined) {
|
|
201
|
+
if (additionalEntry && !additionalEntry.integrity && additionalEntry.revision === undefined) {
|
|
202
202
|
stringEntries.add(additionalEntry.url);
|
|
203
203
|
}
|
|
204
204
|
manifest.push(Object.assign({
|
|
@@ -306,13 +306,11 @@ async function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsM
|
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
const allWarnings = [];
|
|
309
|
-
const normalizedManifest = fileDetails.map((fileDetails)=>{
|
|
310
|
-
return {
|
|
309
|
+
const normalizedManifest = fileDetails.map((fileDetails)=>({
|
|
311
310
|
url: fileDetails.file.replace(/\\/g, "/"),
|
|
312
311
|
revision: fileDetails.hash,
|
|
313
312
|
size: fileDetails.size
|
|
314
|
-
};
|
|
315
|
-
});
|
|
313
|
+
}));
|
|
316
314
|
const transformsToApply = [];
|
|
317
315
|
if (maximumFileSizeToCacheInBytes) {
|
|
318
316
|
transformsToApply.push(maximumSizeTransform(maximumFileSizeToCacheInBytes));
|
|
@@ -352,7 +350,7 @@ async function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsM
|
|
|
352
350
|
};
|
|
353
351
|
}
|
|
354
352
|
|
|
355
|
-
async
|
|
353
|
+
const getFileManifestEntries = async ({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns = [], globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, disablePrecacheManifest })=>{
|
|
356
354
|
if (disablePrecacheManifest) {
|
|
357
355
|
return {
|
|
358
356
|
count: 0,
|
|
@@ -430,7 +428,7 @@ async function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBust
|
|
|
430
428
|
});
|
|
431
429
|
transformedManifest.warnings.push(...warnings);
|
|
432
430
|
return transformedManifest;
|
|
433
|
-
}
|
|
431
|
+
};
|
|
434
432
|
|
|
435
433
|
const validateGetManifestOptions = async (input)=>{
|
|
436
434
|
const result = await (await import('./chunks/getManifest.js')).getManifestOptions.spa(input, {
|
|
@@ -456,30 +454,6 @@ const validateInjectManifestOptions = async (input)=>{
|
|
|
456
454
|
}
|
|
457
455
|
return result.data;
|
|
458
456
|
};
|
|
459
|
-
const validateWebpackInjectManifestOptions = async (input)=>{
|
|
460
|
-
const result = await (await import('./chunks/webpack.js')).webpackInjectManifestOptions.spa(input, {
|
|
461
|
-
errorMap: validationErrorMap
|
|
462
|
-
});
|
|
463
|
-
if (!result.success) {
|
|
464
|
-
throw new SerwistConfigError({
|
|
465
|
-
moduleName: "@serwist/webpack-plugin",
|
|
466
|
-
message: JSON.stringify(result.error.format(), null, 2)
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
return result.data;
|
|
470
|
-
};
|
|
471
|
-
const validateViteInjectManifestOptions = async (input)=>{
|
|
472
|
-
const result = await (await import('./chunks/vite.js')).viteInjectManifestOptions.spa(input, {
|
|
473
|
-
errorMap: validationErrorMap
|
|
474
|
-
});
|
|
475
|
-
if (!result.success) {
|
|
476
|
-
throw new SerwistConfigError({
|
|
477
|
-
moduleName: "@serwist/vite",
|
|
478
|
-
message: JSON.stringify(result.error.format(), null, 2)
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
return result.data;
|
|
482
|
-
};
|
|
483
457
|
|
|
484
458
|
const getManifest = async (config)=>{
|
|
485
459
|
const options = await validateGetManifestOptions(config);
|
|
@@ -649,4 +623,4 @@ const injectManifest = async (config)=>{
|
|
|
649
623
|
};
|
|
650
624
|
};
|
|
651
625
|
|
|
652
|
-
export { errors, escapeRegExp, getFileManifestEntries, getManifest, getSourceMapURL, injectManifest, rebasePath, replaceAndUpdateSourceMap, transformManifest, translateURLToSourcemapPaths,
|
|
626
|
+
export { errors, escapeRegExp, getFileManifestEntries, getManifest, getSourceMapURL, injectManifest, rebasePath, replaceAndUpdateSourceMap, transformManifest, translateURLToSourcemapPaths, validateGetManifestOptions, validateInjectManifestOptions };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Assignable, type Equals, assertType } from "./schema/assertType.js";
|
|
2
|
+
import { basePartial } from "./schema/base.js";
|
|
3
|
+
import { getManifestOptions } from "./schema/getManifest.js";
|
|
4
|
+
import { globPartial, optionalGlobDirectoryPartial, requiredGlobDirectoryPartial } from "./schema/glob.js";
|
|
5
|
+
import { baseInjectPartial, injectManifestOptions } from "./schema/injectManifest.js";
|
|
6
|
+
import { manifestEntry } from "./schema/manifestEntry.js";
|
|
7
|
+
import { manifestTransform, manifestTransformResult } from "./schema/manifestTransform.js";
|
|
8
|
+
import { SerwistConfigError } from "./schema/serwistConfigError.js";
|
|
9
|
+
import { optionalSwDestPartial, requiredSwDestPartial } from "./schema/swDest.js";
|
|
10
|
+
import { validationErrorMap } from "./schema/validationErrorMap.js";
|
|
11
|
+
export { assertType, basePartial, globPartial, baseInjectPartial as injectPartial, injectManifestOptions, getManifestOptions, manifestEntry, manifestTransform, manifestTransformResult, optionalGlobDirectoryPartial, requiredGlobDirectoryPartial, optionalSwDestPartial, requiredSwDestPartial, validationErrorMap, SerwistConfigError, };
|
|
12
|
+
export type { Assignable, Equals };
|
|
13
|
+
//# sourceMappingURL=index.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.schema.d.ts","sourceRoot":"","sources":["../src/index.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,IAAI,aAAa,EAClC,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,CAAC;AACF,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { b as basePartial, g as globPartial, m as manifestEntry, a as manifestTransform, c as manifestTransformResult, o as optionalGlobDirectoryPartial, r as requiredGlobDirectoryPartial } from './chunks/glob.js';
|
|
2
|
+
export { getManifestOptions } from './chunks/getManifest.js';
|
|
3
|
+
export { i as injectManifestOptions, b as injectPartial, o as optionalSwDestPartial, r as requiredSwDestPartial } from './chunks/injectManifest.js';
|
|
4
|
+
export { S as SerwistConfigError, v as validationErrorMap } from './chunks/validationErrorMap.js';
|
|
5
|
+
import 'zod';
|
|
6
|
+
|
|
7
|
+
function assertType() {}
|
|
8
|
+
|
|
9
|
+
export { assertType };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { ManifestEntry } from "../types.js";
|
|
2
|
-
type AdditionalManifestEntriesTransform = {
|
|
3
|
-
|
|
2
|
+
type AdditionalManifestEntriesTransform = (manifest: (ManifestEntry & {
|
|
3
|
+
size: number;
|
|
4
|
+
})[]) => {
|
|
5
|
+
manifest: (ManifestEntry & {
|
|
4
6
|
size: number;
|
|
5
|
-
})[]
|
|
6
|
-
|
|
7
|
-
size: number;
|
|
8
|
-
})[];
|
|
9
|
-
warnings: string[];
|
|
10
|
-
};
|
|
7
|
+
})[];
|
|
8
|
+
warnings: string[];
|
|
11
9
|
};
|
|
12
10
|
export declare const additionalPrecacheEntriesTransform: (additionalPrecacheEntries: (ManifestEntry | string)[]) => AdditionalManifestEntriesTransform;
|
|
13
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additional-precache-entries-transform.d.ts","sourceRoot":"","sources":["../../src/lib/additional-precache-entries-transform.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,kCAAkC,GAAG
|
|
1
|
+
{"version":3,"file":"additional-precache-entries-transform.d.ts","sourceRoot":"","sources":["../../src/lib/additional-precache-entries-transform.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,kCAAkC,GAAG,CAAC,QAAQ,EAAE,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,KAAK;IAC5F,QAAQ,EAAE,CAAC,aAAa,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAC/C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,kCAAkC,8BAA+B,CAAC,aAAa,GAAG,MAAM,CAAC,EAAE,KAAG,kCAqC1G,CAAC"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import type { GlobPartial } from "../types.js";
|
|
2
|
-
|
|
3
|
-
file: string;
|
|
4
|
-
hash: string;
|
|
5
|
-
size: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function getFileDetails({ globDirectory, globFollow, globIgnores, globPattern, }: Omit<GlobPartial, "globDirectory" | "globPatterns" | "templatedURLs"> & {
|
|
1
|
+
import type { FileDetails, GlobPartial } from "../types.js";
|
|
2
|
+
export declare const getFileDetails: ({ globDirectory, globFollow, globIgnores, globPattern, }: Omit<GlobPartial, "globDirectory" | "globPatterns" | "templatedURLs"> & {
|
|
8
3
|
globDirectory: string;
|
|
9
4
|
globPattern: string;
|
|
10
|
-
})
|
|
5
|
+
}) => {
|
|
11
6
|
globbedFileDetails: FileDetails[];
|
|
12
7
|
warning: string;
|
|
13
8
|
};
|
|
14
|
-
export {};
|
|
15
9
|
//# sourceMappingURL=get-file-details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-details.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-details.ts"],"names":[],"mappings":"
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const getFileHash: (file: string) => string;
|
|
2
2
|
//# sourceMappingURL=get-file-hash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-hash.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-hash.ts"],"names":[],"mappings":"AAaA,
|
|
1
|
+
{"version":3,"file":"get-file-hash.d.ts","sourceRoot":"","sources":["../../src/lib/get-file-hash.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAO1C,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare
|
|
1
|
+
import type { GetManifestOptionsComplete, GetManifestResult } from "../types.js";
|
|
2
|
+
export declare const getFileManifestEntries: ({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns, globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, disablePrecacheManifest, }: GetManifestOptionsComplete) => Promise<GetManifestResult>;
|
|
3
3
|
//# sourceMappingURL=get-file-manifest-entries.d.ts.map
|
|
@@ -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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-string-details.d.ts","sourceRoot":"","sources":["../../src/lib/get-string-details.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,
|
|
1
|
+
{"version":3,"file":"get-string-details.d.ts","sourceRoot":"","sources":["../../src/lib/get-string-details.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,eAAO,MAAM,gBAAgB,QAAS,MAAM,OAAO,MAAM,KAAG,WAI1D,CAAC"}
|
|
@@ -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,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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
4
|
* `revision` properties of some or all of the
|
|
@@ -53,9 +53,10 @@ interface ManifestTransformResultWithWarnings {
|
|
|
53
53
|
manifestEntries: ManifestEntry[] | undefined;
|
|
54
54
|
warnings: string[];
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
interface TransformManifestOptions extends Pick<BaseResolved, "additionalPrecacheEntries" | "dontCacheBustURLsMatching" | "manifestTransforms" | "maximumFileSizeToCacheInBytes" | "modifyURLPrefix" | "disablePrecacheManifest"> {
|
|
57
57
|
fileDetails: FileDetails[];
|
|
58
58
|
transformParam?: unknown;
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
|
+
export declare function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam, disablePrecacheManifest, }: TransformManifestOptions): Promise<ManifestTransformResultWithWarnings>;
|
|
60
61
|
export {};
|
|
61
62
|
//# sourceMappingURL=transform-manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/transform-manifest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,
|
|
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,6 +1,4 @@
|
|
|
1
|
-
import type { GetManifestOptionsComplete, InjectManifestOptionsComplete
|
|
1
|
+
import type { GetManifestOptionsComplete, InjectManifestOptionsComplete } from "../types.js";
|
|
2
2
|
export declare const validateGetManifestOptions: (input: unknown) => Promise<GetManifestOptionsComplete>;
|
|
3
3
|
export declare const validateInjectManifestOptions: (input: unknown) => Promise<InjectManifestOptionsComplete>;
|
|
4
|
-
export declare const validateWebpackInjectManifestOptions: (input: unknown) => Promise<WebpackInjectManifestOptionsComplete>;
|
|
5
|
-
export declare const validateViteInjectManifestOptions: (input: unknown) => Promise<ViteInjectManifestOptionsComplete>;
|
|
6
4
|
//# sourceMappingURL=validate-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-options.ts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertType.d.ts","sourceRoot":"","sources":["../../src/schema/assertType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AAEtF,wBAAgB,UAAU,CAAC,EAAE,SAAS,IAAI,UAEzC"}
|
|
1
|
+
{"version":3,"file":"assertType.d.ts","sourceRoot":"","sources":["../../src/schema/assertType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AAEtF,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAE9D,wBAAgB,UAAU,CAAC,EAAE,SAAS,IAAI,UAEzC"}
|
package/dist/schema/base.d.ts
CHANGED
|
@@ -2,100 +2,100 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const basePartial: z.ZodObject<{
|
|
3
3
|
additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4
4
|
integrity: z.ZodOptional<z.ZodString>;
|
|
5
|
-
revision: z.ZodNullable<z.ZodString
|
|
5
|
+
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
url: z.ZodString;
|
|
7
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
|
-
revision: string | null;
|
|
9
8
|
url: string;
|
|
10
9
|
integrity?: string | undefined;
|
|
10
|
+
revision?: string | null | undefined;
|
|
11
11
|
}, {
|
|
12
|
-
revision: string | null;
|
|
13
12
|
url: string;
|
|
14
13
|
integrity?: string | undefined;
|
|
14
|
+
revision?: string | null | undefined;
|
|
15
15
|
}>]>, "many">>;
|
|
16
16
|
disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
|
|
17
17
|
dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
|
|
18
18
|
manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
|
|
19
19
|
integrity: z.ZodOptional<z.ZodString>;
|
|
20
|
-
revision: z.ZodNullable<z.ZodString
|
|
20
|
+
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
url: z.ZodString;
|
|
22
22
|
size: z.ZodNumber;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
revision: string | null;
|
|
25
24
|
url: string;
|
|
26
25
|
size: number;
|
|
27
26
|
integrity?: string | undefined;
|
|
27
|
+
revision?: string | null | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
revision: string | null;
|
|
30
29
|
url: string;
|
|
31
30
|
size: number;
|
|
32
31
|
integrity?: string | undefined;
|
|
32
|
+
revision?: string | null | undefined;
|
|
33
33
|
}>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
|
|
34
34
|
manifest: z.ZodArray<z.ZodObject<{
|
|
35
35
|
integrity: z.ZodOptional<z.ZodString>;
|
|
36
|
-
revision: z.ZodNullable<z.ZodString
|
|
36
|
+
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
url: z.ZodString;
|
|
38
38
|
size: z.ZodNumber;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
revision: string | null;
|
|
41
40
|
url: string;
|
|
42
41
|
size: number;
|
|
43
42
|
integrity?: string | undefined;
|
|
43
|
+
revision?: string | null | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
revision: string | null;
|
|
46
45
|
url: string;
|
|
47
46
|
size: number;
|
|
48
47
|
integrity?: string | undefined;
|
|
48
|
+
revision?: string | null | undefined;
|
|
49
49
|
}>, "many">;
|
|
50
50
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51
51
|
}, "strict", z.ZodTypeAny, {
|
|
52
52
|
manifest: {
|
|
53
|
-
revision: string | null;
|
|
54
53
|
url: string;
|
|
55
54
|
size: number;
|
|
56
55
|
integrity?: string | undefined;
|
|
56
|
+
revision?: string | null | undefined;
|
|
57
57
|
}[];
|
|
58
58
|
warnings?: string[] | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
manifest: {
|
|
61
|
-
revision: string | null;
|
|
62
61
|
url: string;
|
|
63
62
|
size: number;
|
|
64
63
|
integrity?: string | undefined;
|
|
64
|
+
revision?: string | null | undefined;
|
|
65
65
|
}[];
|
|
66
66
|
warnings?: string[] | undefined;
|
|
67
67
|
}>>, z.ZodObject<{
|
|
68
68
|
manifest: z.ZodArray<z.ZodObject<{
|
|
69
69
|
integrity: z.ZodOptional<z.ZodString>;
|
|
70
|
-
revision: z.ZodNullable<z.ZodString
|
|
70
|
+
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
71
|
url: z.ZodString;
|
|
72
72
|
size: z.ZodNumber;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
revision: string | null;
|
|
75
74
|
url: string;
|
|
76
75
|
size: number;
|
|
77
76
|
integrity?: string | undefined;
|
|
77
|
+
revision?: string | null | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
revision: string | null;
|
|
80
79
|
url: string;
|
|
81
80
|
size: number;
|
|
82
81
|
integrity?: string | undefined;
|
|
82
|
+
revision?: string | null | undefined;
|
|
83
83
|
}>, "many">;
|
|
84
84
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
86
|
manifest: {
|
|
87
|
-
revision: string | null;
|
|
88
87
|
url: string;
|
|
89
88
|
size: number;
|
|
90
89
|
integrity?: string | undefined;
|
|
90
|
+
revision?: string | null | undefined;
|
|
91
91
|
}[];
|
|
92
92
|
warnings?: string[] | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
manifest: {
|
|
95
|
-
revision: string | null;
|
|
96
95
|
url: string;
|
|
97
96
|
size: number;
|
|
98
97
|
integrity?: string | undefined;
|
|
98
|
+
revision?: string | null | undefined;
|
|
99
99
|
}[];
|
|
100
100
|
warnings?: string[] | undefined;
|
|
101
101
|
}>]>>, "many">>;
|
|
@@ -105,61 +105,61 @@ export declare const basePartial: z.ZodObject<{
|
|
|
105
105
|
disablePrecacheManifest: boolean;
|
|
106
106
|
maximumFileSizeToCacheInBytes: number;
|
|
107
107
|
additionalPrecacheEntries?: (string | {
|
|
108
|
-
revision: string | null;
|
|
109
108
|
url: string;
|
|
110
109
|
integrity?: string | undefined;
|
|
110
|
+
revision?: string | null | undefined;
|
|
111
111
|
})[] | undefined;
|
|
112
112
|
dontCacheBustURLsMatching?: RegExp | undefined;
|
|
113
113
|
manifestTransforms?: ((args_0: {
|
|
114
|
-
revision: string | null;
|
|
115
114
|
url: string;
|
|
116
115
|
size: number;
|
|
117
116
|
integrity?: string | undefined;
|
|
117
|
+
revision?: string | null | undefined;
|
|
118
118
|
}[], args_1: unknown) => {
|
|
119
119
|
manifest: {
|
|
120
|
-
revision: string | null;
|
|
121
120
|
url: string;
|
|
122
121
|
size: number;
|
|
123
122
|
integrity?: string | undefined;
|
|
123
|
+
revision?: string | null | undefined;
|
|
124
124
|
}[];
|
|
125
125
|
warnings?: string[] | undefined;
|
|
126
126
|
} | Promise<{
|
|
127
127
|
manifest: {
|
|
128
|
-
revision: string | null;
|
|
129
128
|
url: string;
|
|
130
129
|
size: number;
|
|
131
130
|
integrity?: string | undefined;
|
|
131
|
+
revision?: string | null | undefined;
|
|
132
132
|
}[];
|
|
133
133
|
warnings?: string[] | undefined;
|
|
134
134
|
}>)[] | undefined;
|
|
135
135
|
modifyURLPrefix?: Record<string, string> | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
additionalPrecacheEntries?: (string | {
|
|
138
|
-
revision: string | null;
|
|
139
138
|
url: string;
|
|
140
139
|
integrity?: string | undefined;
|
|
140
|
+
revision?: string | null | undefined;
|
|
141
141
|
})[] | undefined;
|
|
142
142
|
disablePrecacheManifest?: boolean | undefined;
|
|
143
143
|
dontCacheBustURLsMatching?: RegExp | undefined;
|
|
144
144
|
manifestTransforms?: ((args_0: {
|
|
145
|
-
revision: string | null;
|
|
146
145
|
url: string;
|
|
147
146
|
size: number;
|
|
148
147
|
integrity?: string | undefined;
|
|
148
|
+
revision?: string | null | undefined;
|
|
149
149
|
}[], args_1: unknown) => {
|
|
150
150
|
manifest: {
|
|
151
|
-
revision: string | null;
|
|
152
151
|
url: string;
|
|
153
152
|
size: number;
|
|
154
153
|
integrity?: string | undefined;
|
|
154
|
+
revision?: string | null | undefined;
|
|
155
155
|
}[];
|
|
156
156
|
warnings?: string[] | undefined;
|
|
157
157
|
} | Promise<{
|
|
158
158
|
manifest: {
|
|
159
|
-
revision: string | null;
|
|
160
159
|
url: string;
|
|
161
160
|
size: number;
|
|
162
161
|
integrity?: string | undefined;
|
|
162
|
+
revision?: string | null | undefined;
|
|
163
163
|
}[];
|
|
164
164
|
warnings?: string[] | undefined;
|
|
165
165
|
}>)[] | undefined;
|