serwist 9.0.11 → 9.0.13
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/printInstallDetails.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.legacy.js +1 -1
- package/dist/lib/precaching/PrecacheFallbackPlugin.d.ts +4 -4
- package/dist/lib/precaching/PrecacheFallbackPlugin.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/lib/precaching/PrecacheFallbackPlugin.ts +4 -4
|
@@ -1598,4 +1598,4 @@ const printInstallDetails = (urlsToPrecache, urlsAlreadyPrecached)=>{
|
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
1600
|
|
|
1601
|
-
export { BackgroundSyncPlugin as B,
|
|
1601
|
+
export { BackgroundSyncPlugin as B, NetworkFirst as N, PrecacheStrategy as P, Route as R, Strategy as S, NetworkOnly as a, NavigationRoute as b, createCacheKey as c, disableDevLogs as d, enableNavigationPreload as e, defaultMethod as f, generateURLVariations as g, PrecacheInstallReportPlugin as h, parallel as i, printInstallDetails as j, printCleanupDetails as k, cacheOkAndOpaquePlugin as l, messages as m, normalizeHandler as n, copyResponse as o, parseRoute as p, disableNavigationPreload as q, isNavigationPreloadSupported as r, setCacheNameDetails as s, StrategyHandler as t, RegExpRoute as u, BackgroundSyncQueue as v, BackgroundSyncQueueStore as w, StorableRequest as x };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Route, g as generateURLVariations, B as BackgroundSyncPlugin, N as
|
|
1
|
+
import { R as Route, g as generateURLVariations, B as BackgroundSyncPlugin, N as NetworkFirst, a as NetworkOnly, P as PrecacheStrategy, e as enableNavigationPreload, s as setCacheNameDetails, b as NavigationRoute, S as Strategy, d as disableDevLogs, c as createCacheKey, f as defaultMethod, n as normalizeHandler, p as parseRoute, h as PrecacheInstallReportPlugin, i as parallel, j as printInstallDetails, k as printCleanupDetails, m as messages, l as cacheOkAndOpaquePlugin } from './chunks/printInstallDetails.js';
|
|
2
2
|
export { v as BackgroundSyncQueue, w as BackgroundSyncQueueStore, u as RegExpRoute, x as StorableRequest, t as StrategyHandler, o as copyResponse, q as disableNavigationPreload, r as isNavigationPreloadSupported } from './chunks/printInstallDetails.js';
|
|
3
3
|
import { l as logger, g as getFriendlyURL, c as cacheNames$1, a as clientsClaim, b as cleanupOutdatedCaches, f as finalAssertExports, S as SerwistError, w as waitUntil, t as timeout, q as quotaErrorCallbacks } from './chunks/waitUntil.js';
|
|
4
4
|
import { r as resultingClientExists } from './chunks/resultingClientExists.js';
|
package/dist/index.legacy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrecacheStrategy, c as createCacheKey,
|
|
1
|
+
import { P as PrecacheStrategy, c as createCacheKey, h as PrecacheInstallReportPlugin, i as parallel, j as printInstallDetails, k as printCleanupDetails, R as Route, g as generateURLVariations, f as defaultMethod, n as normalizeHandler, p as parseRoute, S as Strategy, b as NavigationRoute, B as BackgroundSyncPlugin, N as NetworkFirst, a as NetworkOnly, e as enableNavigationPreload, s as setCacheNameDetails, d as disableDevLogs } from './chunks/printInstallDetails.js';
|
|
2
2
|
import { c as cacheNames, f as finalAssertExports, S as SerwistError, l as logger, w as waitUntil, g as getFriendlyURL, b as cleanupOutdatedCaches, a as clientsClaim } from './chunks/waitUntil.js';
|
|
3
3
|
import 'idb';
|
|
4
4
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { Serwist } from "../../Serwist.js";
|
|
2
2
|
import type { HandlerDidErrorCallbackParam, SerwistPlugin } from "../../types.js";
|
|
3
3
|
export interface PrecacheFallbackEntry {
|
|
4
|
+
/**
|
|
5
|
+
* A precached URL to be used as a fallback.
|
|
6
|
+
*/
|
|
7
|
+
url: string;
|
|
4
8
|
/**
|
|
5
9
|
* A function that checks whether the fallback entry can be used
|
|
6
10
|
* for a request.
|
|
7
11
|
*/
|
|
8
12
|
matcher: (param: HandlerDidErrorCallbackParam) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* A precached URL to be used as a fallback.
|
|
11
|
-
*/
|
|
12
|
-
url: string;
|
|
13
13
|
}
|
|
14
14
|
export interface PrecacheFallbackPluginOptions {
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrecacheFallbackPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/precaching/PrecacheFallbackPlugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAElF,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PrecacheFallbackPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/precaching/PrecacheFallbackPlugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAElF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,OAAO,CAAC;CAC3D;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,YAAY,EAAE,CAAC,MAAM,GAAG,qBAAqB,CAAC,EAAE,CAAC;IACjD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,qBAAa,sBAAuB,YAAW,aAAa;IAC1D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqC;IACnE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC;;;;OAIG;gBACS,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,6BAA6B;IAKpE;;;;OAIG;IACG,eAAe,CAAC,KAAK,EAAE,4BAA4B;CAgB1D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serwist",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Swiss Army knife for service workers.",
|
|
6
6
|
"files": [
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"./package.json": "./package.json"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"idb": "8.0.
|
|
52
|
+
"idb": "8.0.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"rollup": "4.
|
|
55
|
+
"rollup": "4.39.0",
|
|
56
56
|
"typescript": "5.6.3",
|
|
57
|
-
"@serwist/configs": "9.0.
|
|
58
|
-
"@serwist/utils": "9.0.
|
|
57
|
+
"@serwist/configs": "9.0.13",
|
|
58
|
+
"@serwist/utils": "9.0.13"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"typescript": ">=5.0.0"
|
|
@@ -10,15 +10,15 @@ import type { Serwist } from "../../Serwist.js";
|
|
|
10
10
|
import type { HandlerDidErrorCallbackParam, SerwistPlugin } from "../../types.js";
|
|
11
11
|
|
|
12
12
|
export interface PrecacheFallbackEntry {
|
|
13
|
+
/**
|
|
14
|
+
* A precached URL to be used as a fallback.
|
|
15
|
+
*/
|
|
16
|
+
url: string;
|
|
13
17
|
/**
|
|
14
18
|
* A function that checks whether the fallback entry can be used
|
|
15
19
|
* for a request.
|
|
16
20
|
*/
|
|
17
21
|
matcher: (param: HandlerDidErrorCallbackParam) => boolean;
|
|
18
|
-
/**
|
|
19
|
-
* A precached URL to be used as a fallback.
|
|
20
|
-
*/
|
|
21
|
-
url: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface PrecacheFallbackPluginOptions {
|