@serwist/build 8.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/get-manifest.d.ts +19 -0
  4. package/dist/get-manifest.d.ts.map +1 -0
  5. package/dist/index.d.ts +10 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +1295 -0
  8. package/dist/index.old.cjs +1303 -0
  9. package/dist/inject-manifest.d.ts +29 -0
  10. package/dist/inject-manifest.d.ts.map +1 -0
  11. package/dist/lib/.swcrc.d.ts +7 -0
  12. package/dist/lib/.swcrc.d.ts.map +1 -0
  13. package/dist/lib/additional-precache-entries-transform.d.ts +14 -0
  14. package/dist/lib/additional-precache-entries-transform.d.ts.map +1 -0
  15. package/dist/lib/bundle.d.ts +12 -0
  16. package/dist/lib/bundle.d.ts.map +1 -0
  17. package/dist/lib/cdn-utils.d.ts +2 -0
  18. package/dist/lib/cdn-utils.d.ts.map +1 -0
  19. package/dist/lib/copy-serwist-libraries.d.ts +17 -0
  20. package/dist/lib/copy-serwist-libraries.d.ts.map +1 -0
  21. package/dist/lib/errors.d.ts +52 -0
  22. package/dist/lib/errors.d.ts.map +1 -0
  23. package/dist/lib/escape-regexp.d.ts +2 -0
  24. package/dist/lib/escape-regexp.d.ts.map +1 -0
  25. package/dist/lib/get-composite-details.d.ts +3 -0
  26. package/dist/lib/get-composite-details.d.ts.map +1 -0
  27. package/dist/lib/get-file-details.d.ts +15 -0
  28. package/dist/lib/get-file-details.d.ts.map +1 -0
  29. package/dist/lib/get-file-hash.d.ts +2 -0
  30. package/dist/lib/get-file-hash.d.ts.map +1 -0
  31. package/dist/lib/get-file-manifest-entries.d.ts +3 -0
  32. package/dist/lib/get-file-manifest-entries.d.ts.map +1 -0
  33. package/dist/lib/get-file-size.d.ts +2 -0
  34. package/dist/lib/get-file-size.d.ts.map +1 -0
  35. package/dist/lib/get-source-map-url.d.ts +2 -0
  36. package/dist/lib/get-source-map-url.d.ts.map +1 -0
  37. package/dist/lib/get-string-details.d.ts +3 -0
  38. package/dist/lib/get-string-details.d.ts.map +1 -0
  39. package/dist/lib/get-string-hash.d.ts +4 -0
  40. package/dist/lib/get-string-hash.d.ts.map +1 -0
  41. package/dist/lib/maximum-size-transform.d.ts +3 -0
  42. package/dist/lib/maximum-size-transform.d.ts.map +1 -0
  43. package/dist/lib/modify-url-prefix-transform.d.ts +5 -0
  44. package/dist/lib/modify-url-prefix-transform.d.ts.map +1 -0
  45. package/dist/lib/no-revision-for-urls-matching-transform.d.ts +3 -0
  46. package/dist/lib/no-revision-for-urls-matching-transform.d.ts.map +1 -0
  47. package/dist/lib/rebase-path.d.ts +5 -0
  48. package/dist/lib/rebase-path.d.ts.map +1 -0
  49. package/dist/lib/replace-and-update-source-map.d.ts +42 -0
  50. package/dist/lib/replace-and-update-source-map.d.ts.map +1 -0
  51. package/dist/lib/stringify-without-comments.d.ts +4 -0
  52. package/dist/lib/stringify-without-comments.d.ts.map +1 -0
  53. package/dist/lib/transform-manifest.d.ts +61 -0
  54. package/dist/lib/transform-manifest.d.ts.map +1 -0
  55. package/dist/lib/translate-url-to-sourcemap-paths.d.ts +6 -0
  56. package/dist/lib/translate-url-to-sourcemap-paths.d.ts.map +1 -0
  57. package/dist/lib/validate-options.d.ts +8 -0
  58. package/dist/lib/validate-options.d.ts.map +1 -0
  59. package/dist/schema/index.d.ts +444 -0
  60. package/dist/schema/index.d.ts.map +1 -0
  61. package/dist/types.d.ts +530 -0
  62. package/dist/types.d.ts.map +1 -0
  63. package/package.json +89 -0
@@ -0,0 +1,444 @@
1
+ export declare const optionsSchemas: {
2
+ GetManifest: {
3
+ additionalProperties: boolean;
4
+ type: string;
5
+ properties: {
6
+ additionalPrecacheEntries: {
7
+ description: string;
8
+ type: string;
9
+ items: {
10
+ anyOf: ({
11
+ $ref: string;
12
+ type?: undefined;
13
+ } | {
14
+ type: string;
15
+ $ref?: undefined;
16
+ })[];
17
+ };
18
+ };
19
+ dontCacheBustURLsMatching: {
20
+ description: string;
21
+ $ref: string;
22
+ };
23
+ manifestTransforms: {
24
+ description: string;
25
+ type: string;
26
+ items: {};
27
+ };
28
+ maximumFileSizeToCacheInBytes: {
29
+ description: string;
30
+ default: number;
31
+ type: string;
32
+ };
33
+ modifyURLPrefix: {
34
+ description: string;
35
+ type: string;
36
+ additionalProperties: {
37
+ type: string;
38
+ };
39
+ };
40
+ globFollow: {
41
+ description: string;
42
+ default: boolean;
43
+ type: string;
44
+ };
45
+ globIgnores: {
46
+ description: string;
47
+ default: string[];
48
+ type: string;
49
+ items: {
50
+ type: string;
51
+ };
52
+ };
53
+ globPatterns: {
54
+ description: string;
55
+ default: string[];
56
+ type: string;
57
+ items: {
58
+ type: string;
59
+ };
60
+ };
61
+ globStrict: {
62
+ description: string;
63
+ default: boolean;
64
+ type: string;
65
+ };
66
+ templatedURLs: {
67
+ description: string;
68
+ type: string;
69
+ additionalProperties: {
70
+ anyOf: ({
71
+ type: string;
72
+ items: {
73
+ type: string;
74
+ };
75
+ } | {
76
+ type: string;
77
+ items?: undefined;
78
+ })[];
79
+ };
80
+ };
81
+ globDirectory: {
82
+ description: string;
83
+ type: string;
84
+ };
85
+ };
86
+ required: string[];
87
+ definitions: {
88
+ ManifestEntry: {
89
+ type: string;
90
+ properties: {
91
+ integrity: {
92
+ type: string;
93
+ };
94
+ revision: {
95
+ type: string[];
96
+ };
97
+ url: {
98
+ type: string;
99
+ };
100
+ };
101
+ additionalProperties: boolean;
102
+ required: string[];
103
+ };
104
+ RegExp: {
105
+ type: string;
106
+ properties: {
107
+ source: {
108
+ type: string;
109
+ };
110
+ global: {
111
+ type: string;
112
+ };
113
+ ignoreCase: {
114
+ type: string;
115
+ };
116
+ multiline: {
117
+ type: string;
118
+ };
119
+ lastIndex: {
120
+ type: string;
121
+ };
122
+ flags: {
123
+ type: string;
124
+ };
125
+ sticky: {
126
+ type: string;
127
+ };
128
+ unicode: {
129
+ type: string;
130
+ };
131
+ dotAll: {
132
+ type: string;
133
+ };
134
+ };
135
+ additionalProperties: boolean;
136
+ required: string[];
137
+ };
138
+ };
139
+ $schema: string;
140
+ };
141
+ InjectManifest: {
142
+ additionalProperties: boolean;
143
+ type: string;
144
+ properties: {
145
+ additionalPrecacheEntries: {
146
+ description: string;
147
+ type: string;
148
+ items: {
149
+ anyOf: ({
150
+ $ref: string;
151
+ type?: undefined;
152
+ } | {
153
+ type: string;
154
+ $ref?: undefined;
155
+ })[];
156
+ };
157
+ };
158
+ dontCacheBustURLsMatching: {
159
+ description: string;
160
+ $ref: string;
161
+ };
162
+ manifestTransforms: {
163
+ description: string;
164
+ type: string;
165
+ items: {};
166
+ };
167
+ maximumFileSizeToCacheInBytes: {
168
+ description: string;
169
+ default: number;
170
+ type: string;
171
+ };
172
+ modifyURLPrefix: {
173
+ description: string;
174
+ type: string;
175
+ additionalProperties: {
176
+ type: string;
177
+ };
178
+ };
179
+ globFollow: {
180
+ description: string;
181
+ default: boolean;
182
+ type: string;
183
+ };
184
+ globIgnores: {
185
+ description: string;
186
+ default: string[];
187
+ type: string;
188
+ items: {
189
+ type: string;
190
+ };
191
+ };
192
+ globPatterns: {
193
+ description: string;
194
+ default: string[];
195
+ type: string;
196
+ items: {
197
+ type: string;
198
+ };
199
+ };
200
+ globStrict: {
201
+ description: string;
202
+ default: boolean;
203
+ type: string;
204
+ };
205
+ templatedURLs: {
206
+ description: string;
207
+ type: string;
208
+ additionalProperties: {
209
+ anyOf: ({
210
+ type: string;
211
+ items: {
212
+ type: string;
213
+ };
214
+ } | {
215
+ type: string;
216
+ items?: undefined;
217
+ })[];
218
+ };
219
+ };
220
+ injectionPoint: {
221
+ description: string;
222
+ default: string;
223
+ type: string;
224
+ };
225
+ swSrc: {
226
+ description: string;
227
+ type: string;
228
+ };
229
+ swDest: {
230
+ description: string;
231
+ type: string;
232
+ };
233
+ globDirectory: {
234
+ description: string;
235
+ type: string;
236
+ };
237
+ };
238
+ required: string[];
239
+ definitions: {
240
+ ManifestEntry: {
241
+ type: string;
242
+ properties: {
243
+ integrity: {
244
+ type: string;
245
+ };
246
+ revision: {
247
+ type: string[];
248
+ };
249
+ url: {
250
+ type: string;
251
+ };
252
+ };
253
+ additionalProperties: boolean;
254
+ required: string[];
255
+ };
256
+ RegExp: {
257
+ type: string;
258
+ properties: {
259
+ source: {
260
+ type: string;
261
+ };
262
+ global: {
263
+ type: string;
264
+ };
265
+ ignoreCase: {
266
+ type: string;
267
+ };
268
+ multiline: {
269
+ type: string;
270
+ };
271
+ lastIndex: {
272
+ type: string;
273
+ };
274
+ flags: {
275
+ type: string;
276
+ };
277
+ sticky: {
278
+ type: string;
279
+ };
280
+ unicode: {
281
+ type: string;
282
+ };
283
+ dotAll: {
284
+ type: string;
285
+ };
286
+ };
287
+ additionalProperties: boolean;
288
+ required: string[];
289
+ };
290
+ };
291
+ $schema: string;
292
+ };
293
+ WebpackInjectManifest: {
294
+ additionalProperties: boolean;
295
+ type: string;
296
+ properties: {
297
+ additionalPrecacheEntries: {
298
+ description: string;
299
+ type: string;
300
+ items: {
301
+ anyOf: ({
302
+ $ref: string;
303
+ type?: undefined;
304
+ } | {
305
+ type: string;
306
+ $ref?: undefined;
307
+ })[];
308
+ };
309
+ };
310
+ dontCacheBustURLsMatching: {
311
+ description: string;
312
+ $ref: string;
313
+ };
314
+ manifestTransforms: {
315
+ description: string;
316
+ type: string;
317
+ items: {};
318
+ };
319
+ maximumFileSizeToCacheInBytes: {
320
+ description: string;
321
+ default: number;
322
+ type: string;
323
+ };
324
+ modifyURLPrefix: {
325
+ description: string;
326
+ type: string;
327
+ additionalProperties: {
328
+ type: string;
329
+ };
330
+ };
331
+ chunks: {
332
+ description: string;
333
+ type: string;
334
+ items: {
335
+ type: string;
336
+ };
337
+ };
338
+ exclude: {
339
+ description: string;
340
+ type: string;
341
+ items: {};
342
+ };
343
+ excludeChunks: {
344
+ description: string;
345
+ type: string;
346
+ items: {
347
+ type: string;
348
+ };
349
+ };
350
+ include: {
351
+ description: string;
352
+ type: string;
353
+ items: {};
354
+ };
355
+ mode: {
356
+ description: string;
357
+ type: string[];
358
+ };
359
+ injectionPoint: {
360
+ description: string;
361
+ default: string;
362
+ type: string;
363
+ };
364
+ swSrc: {
365
+ description: string;
366
+ type: string;
367
+ };
368
+ compileSrc: {
369
+ description: string;
370
+ default: boolean;
371
+ type: string;
372
+ };
373
+ swDest: {
374
+ description: string;
375
+ type: string;
376
+ };
377
+ webpackCompilationPlugins: {
378
+ description: string;
379
+ type: string;
380
+ items: {};
381
+ };
382
+ disablePrecacheManifest: {
383
+ description: string;
384
+ default: boolean;
385
+ type: string;
386
+ };
387
+ };
388
+ required: string[];
389
+ definitions: {
390
+ ManifestEntry: {
391
+ type: string;
392
+ properties: {
393
+ integrity: {
394
+ type: string;
395
+ };
396
+ revision: {
397
+ type: string[];
398
+ };
399
+ url: {
400
+ type: string;
401
+ };
402
+ };
403
+ additionalProperties: boolean;
404
+ required: string[];
405
+ };
406
+ RegExp: {
407
+ type: string;
408
+ properties: {
409
+ source: {
410
+ type: string;
411
+ };
412
+ global: {
413
+ type: string;
414
+ };
415
+ ignoreCase: {
416
+ type: string;
417
+ };
418
+ multiline: {
419
+ type: string;
420
+ };
421
+ lastIndex: {
422
+ type: string;
423
+ };
424
+ flags: {
425
+ type: string;
426
+ };
427
+ sticky: {
428
+ type: string;
429
+ };
430
+ unicode: {
431
+ type: string;
432
+ };
433
+ dotAll: {
434
+ type: string;
435
+ };
436
+ };
437
+ additionalProperties: boolean;
438
+ required: string[];
439
+ };
440
+ };
441
+ $schema: string;
442
+ };
443
+ };
444
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIa,CAAC"}