@serwist/build 9.0.0-preview.0 → 9.0.0-preview.10
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 +0 -2
- package/dist/chunks/serwist-config-error.js +1 -4
- package/dist/chunks/webpack.js +1 -2
- package/dist/index.js +10 -216
- package/dist/index.next.js +5 -2
- package/dist/lib/errors.d.ts +0 -3
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/get-file-details.d.ts +2 -2
- package/dist/lib/get-file-details.d.ts.map +1 -1
- package/dist/schema/assertType.d.ts +3 -0
- package/dist/schema/assertType.d.ts.map +1 -0
- package/dist/schema/base.d.ts.map +1 -1
- package/dist/schema/getManifest.d.ts.map +1 -1
- package/dist/schema/glob.d.ts.map +1 -1
- package/dist/schema/injectManifest.d.ts.map +1 -1
- package/dist/schema/next.d.ts +12 -15
- package/dist/schema/next.d.ts.map +1 -1
- package/dist/schema/swDest.d.ts.map +1 -1
- package/dist/schema/vite.d.ts.map +1 -1
- package/dist/schema/webpack.d.ts +0 -6
- package/dist/schema/webpack.d.ts.map +1 -1
- package/dist/types.d.ts +9 -16
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/lib/errors.ts +0 -6
- package/src/lib/get-file-details.ts +5 -5
- package/src/lib/get-file-manifest-entries.ts +4 -4
- package/src/schema/assertType.ts +5 -0
- package/src/schema/base.ts +5 -1
- package/src/schema/getManifest.ts +5 -6
- package/src/schema/glob.ts +11 -11
- package/src/schema/injectManifest.ts +8 -6
- package/src/schema/next.ts +10 -12
- package/src/schema/swDest.ts +8 -2
- package/src/schema/vite.ts +5 -5
- package/src/schema/webpack.ts +11 -12
- package/src/types.ts +9 -16
- package/src/_types.js +0 -112
package/src/_types.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2018 Google LLC
|
|
3
|
-
|
|
4
|
-
Use of this source code is governed by an MIT-style
|
|
5
|
-
license that can be found in the LICENSE file or at
|
|
6
|
-
https://opensource.org/licenses/MIT.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @typedef {Object} ManifestEntry
|
|
11
|
-
* @property {string} url The URL to the asset in the manifest.
|
|
12
|
-
* @property {string} revision The revision details for the file. This should be
|
|
13
|
-
* either a hash generated based on the file contents, or `null` if there is
|
|
14
|
-
* versioning already included in the URL.
|
|
15
|
-
* @property {string} [integrity] Integrity metadata that will be used when
|
|
16
|
-
* making the network request for the URL.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @typedef {Object} ManifestTransformResult
|
|
21
|
-
* @property {Array<module:workbox-build.ManifestEntry>} manifest
|
|
22
|
-
* @property {Array<string>|undefined} warnings
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @typedef {Object} RuntimeCachingEntry
|
|
27
|
-
*
|
|
28
|
-
* @property {string|module:workbox-routing~handlerCallback} handler
|
|
29
|
-
* Either the name of one of the [built-in strategy classes]{@link module:workbox-strategies},
|
|
30
|
-
* or custom handler callback to use when the generated route matches.
|
|
31
|
-
*
|
|
32
|
-
* @property {string|RegExp|module:workbox-routing~matchCallback} urlPattern
|
|
33
|
-
* The value that will be passed to [`registerRoute()`]{@link module:workbox-routing.registerRoute},
|
|
34
|
-
* used to determine whether the generated route will match a given request.
|
|
35
|
-
*
|
|
36
|
-
* @property {string} [method='GET'] The
|
|
37
|
-
* [HTTP method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) that
|
|
38
|
-
* will match the generated route.
|
|
39
|
-
*
|
|
40
|
-
* @property {Object} [options]
|
|
41
|
-
*
|
|
42
|
-
* @property {Object} [options.backgroundSync]
|
|
43
|
-
*
|
|
44
|
-
* @property {string} [options.backgroundSync.name] The `name` property to use
|
|
45
|
-
* when creating the
|
|
46
|
-
* [`BackgroundSyncPlugin`]{@link module:workbox-background-sync.BackgroundSyncPlugin}.
|
|
47
|
-
*
|
|
48
|
-
* @property {Object} [options.backgroundSync.options] The `options` property
|
|
49
|
-
* to use when creating the
|
|
50
|
-
* [`BackgroundSyncPlugin`]{@link module:workbox-background-sync.BackgroundSyncPlugin}.
|
|
51
|
-
*
|
|
52
|
-
* @property {Object} [options.broadcastUpdate]
|
|
53
|
-
*
|
|
54
|
-
* @property {string} [options.broadcastUpdate.channelName] The `channelName`
|
|
55
|
-
* property to use when creating the
|
|
56
|
-
* [`BroadcastCacheUpdatePlugin`]{@link module:workbox-broadcast-update.BroadcastUpdatePlugin}.
|
|
57
|
-
*
|
|
58
|
-
* @property {Object} [options.broadcastUpdate.options] The `options` property
|
|
59
|
-
* to use when creating the
|
|
60
|
-
* [`BroadcastCacheUpdatePlugin`]{@link module:workbox-broadcast-update.BroadcastUpdatePlugin}.
|
|
61
|
-
*
|
|
62
|
-
* @property {Object} [options.cacheableResponse]
|
|
63
|
-
*
|
|
64
|
-
* @property {Object} [options.cacheableResponse.headers] The `headers` property
|
|
65
|
-
* to use when creating the
|
|
66
|
-
* [`CacheableResponsePlugin`]{@link module:workbox-cacheable-response.CacheableResponsePlugin}.
|
|
67
|
-
*
|
|
68
|
-
* @property {Array<number>} [options.cacheableResponse.statuses] `statuses`
|
|
69
|
-
* property to use when creating the
|
|
70
|
-
* [`CacheableResponsePlugin`]{@link module:workbox-cacheable-response.CacheableResponsePlugin}.
|
|
71
|
-
*
|
|
72
|
-
* @property {string} [options.cacheName] The `cacheName` to use when
|
|
73
|
-
* constructing one of the
|
|
74
|
-
* [Workbox strategy classes]{@link module:workbox-strategies}.
|
|
75
|
-
*
|
|
76
|
-
* @property {Object} [options.fetchOptions] The `fetchOptions` property value
|
|
77
|
-
* to use when constructing one of the
|
|
78
|
-
* [Workbox strategy classes]{@link module:workbox-strategies}.
|
|
79
|
-
*
|
|
80
|
-
* @property {Object} [options.expiration]
|
|
81
|
-
*
|
|
82
|
-
* @property {number} [options.expiration.maxAgeSeconds] The `maxAgeSeconds`
|
|
83
|
-
* property to use when creating the
|
|
84
|
-
* [`ExpirationPlugin`]{@link module:workbox-expiration.ExpirationPlugin}.
|
|
85
|
-
*
|
|
86
|
-
* @property {number} [options.expiration.maxEntries] The `maxEntries`
|
|
87
|
-
* property to use when creating the
|
|
88
|
-
* [`ExpirationPlugin`]{@link module:workbox-expiration.ExpirationPlugin}.
|
|
89
|
-
*
|
|
90
|
-
* @property {Object} [options.precacheFallback]
|
|
91
|
-
*
|
|
92
|
-
* @property {string} [options.precacheFallback.fallbackURL] The `fallbackURL`
|
|
93
|
-
* property to use when creating the
|
|
94
|
-
* [`PrecacheFallbackPlugin`]{@link module:workbox-precaching.PrecacheFallbackPlugin}.
|
|
95
|
-
*
|
|
96
|
-
* @property {boolean} [options.rangeRequests] Set to `true` to add the
|
|
97
|
-
* [`RangeRequestsPlugin`]{@link module:workbox-range-requests.RangeRequestsPlugin}
|
|
98
|
-
* for the strategy being configured.
|
|
99
|
-
*
|
|
100
|
-
* @property {Object} [options.matchOptions] The `matchOptions` property value
|
|
101
|
-
* to use when constructing one of the
|
|
102
|
-
* [Workbox strategy classes]{@link module:workbox-strategies}.
|
|
103
|
-
*
|
|
104
|
-
* @property {number} [options.networkTimeoutSeconds] The
|
|
105
|
-
* `networkTimeoutSeconds` property value to use when creating a
|
|
106
|
-
* [`NetworkFirst`]{@link module:workbox-strategies.NetworkFirst} strategy.
|
|
107
|
-
*
|
|
108
|
-
* @property {Array<Object>} [options.plugins]
|
|
109
|
-
* One or more [additional plugins](https://developers.google.com/web/tools/workbox/guides/using-plugins#custom_plugins)
|
|
110
|
-
* to apply to the handler. Useful when you want a plugin that doesn't have a
|
|
111
|
-
* "shortcut" configuration.
|
|
112
|
-
*/
|