@serwist/broadcast-update 9.0.0-preview.6 → 9.0.0-preview.8
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/BroadcastCacheUpdate.d.ts +2 -26
- package/dist/BroadcastCacheUpdate.d.ts.map +1 -1
- package/dist/BroadcastUpdatePlugin.d.ts +4 -5
- package/dist/BroadcastUpdatePlugin.d.ts.map +1 -1
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -18
- package/dist/types.d.ts +36 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/BroadcastCacheUpdate.ts +9 -36
- package/src/BroadcastUpdatePlugin.ts +6 -9
- package/src/{utils/constants.ts → constants.ts} +2 -2
- package/src/index.ts +10 -7
- package/src/types.ts +39 -0
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/constants.d.ts.map +0 -1
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
import type { CacheDidUpdateCallbackParam } from "@serwist/core";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A list of headers that will be used to determine whether the responses
|
|
5
|
-
* differ.
|
|
6
|
-
*
|
|
7
|
-
* @default ['content-length', 'etag', 'last-modified']
|
|
8
|
-
*/
|
|
9
|
-
headersToCheck?: string[];
|
|
10
|
-
/**
|
|
11
|
-
* A function whose return value
|
|
12
|
-
* will be used as the `payload` field in any cache update messages sent
|
|
13
|
-
* to the window clients.
|
|
14
|
-
* @param options
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
generatePayload?: (options: CacheDidUpdateCallbackParam) => Record<string, any>;
|
|
18
|
-
/**
|
|
19
|
-
* If true (the default) then all open clients will receive a message. If false,
|
|
20
|
-
* then only the client that make the original request will be notified of the update.
|
|
21
|
-
*
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
notifyAllClients?: boolean;
|
|
25
|
-
}
|
|
2
|
+
import type { BroadcastCacheUpdateOptions } from "./types.js";
|
|
26
3
|
/**
|
|
27
4
|
* Uses the `postMessage()` API to inform any open windows/tabs when a cached
|
|
28
5
|
* response has been updated.
|
|
@@ -30,7 +7,7 @@ export interface BroadcastCacheUpdateOptions {
|
|
|
30
7
|
* For efficiency's sake, the underlying response bodies are not compared;
|
|
31
8
|
* only specific response headers are checked.
|
|
32
9
|
*/
|
|
33
|
-
declare class BroadcastCacheUpdate {
|
|
10
|
+
export declare class BroadcastCacheUpdate {
|
|
34
11
|
private readonly _headersToCheck;
|
|
35
12
|
private readonly _generatePayload;
|
|
36
13
|
private readonly _notifyAllClients;
|
|
@@ -67,5 +44,4 @@ declare class BroadcastCacheUpdate {
|
|
|
67
44
|
*/
|
|
68
45
|
notifyIfUpdated(options: CacheDidUpdateCallbackParam): Promise<void>;
|
|
69
46
|
}
|
|
70
|
-
export { BroadcastCacheUpdate };
|
|
71
47
|
//# sourceMappingURL=BroadcastCacheUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BroadcastCacheUpdate.d.ts","sourceRoot":"","sources":["../src/BroadcastCacheUpdate.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"BroadcastCacheUpdate.d.ts","sourceRoot":"","sources":["../src/BroadcastCacheUpdate.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAKjE,OAAO,KAAK,EAAE,2BAA2B,EAAiE,MAAM,YAAY,CAAC;AAuB7H;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAW;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4B;IAC7D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAU;IAE5C;;;;;OAKG;gBACS,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAE,2BAAgC;IAMnG;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,eAAe,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;CA4E3E"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { SerwistPlugin } from "@serwist/core";
|
|
2
|
-
import type { BroadcastCacheUpdateOptions } from "./
|
|
1
|
+
import type { CacheDidUpdateCallbackParam, SerwistPlugin } from "@serwist/core";
|
|
2
|
+
import type { BroadcastCacheUpdateOptions } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* This plugin will automatically broadcast a message whenever a cached response
|
|
5
5
|
* is updated.
|
|
6
6
|
*/
|
|
7
|
-
declare class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
7
|
+
export declare class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
8
8
|
private readonly _broadcastUpdate;
|
|
9
9
|
/**
|
|
10
10
|
* Construct a `@serwist/broadcast-update.BroadcastCacheUpdate` instance with
|
|
@@ -22,7 +22,6 @@ declare class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
|
22
22
|
* @private
|
|
23
23
|
* @param options The input object to this function.
|
|
24
24
|
*/
|
|
25
|
-
cacheDidUpdate:
|
|
25
|
+
cacheDidUpdate(options: CacheDidUpdateCallbackParam): void;
|
|
26
26
|
}
|
|
27
|
-
export { BroadcastUpdatePlugin };
|
|
28
27
|
//# sourceMappingURL=BroadcastUpdatePlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BroadcastUpdatePlugin.d.ts","sourceRoot":"","sources":["../src/BroadcastUpdatePlugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"BroadcastUpdatePlugin.d.ts","sourceRoot":"","sources":["../src/BroadcastUpdatePlugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGhF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D;;;GAGG;AACH,qBAAa,qBAAsB,YAAW,aAAa;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuB;IAExD;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,2BAA2B;IAIjD;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,2BAA2B;CAGpD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const CACHE_UPDATED_MESSAGE_TYPE = "CACHE_UPDATED";
|
|
2
|
+
export declare const CACHE_UPDATED_MESSAGE_META = "serwist-broadcast-update";
|
|
3
|
+
export declare const defaultNotifyAllClients = true;
|
|
4
|
+
export declare const defaultHeadersToCheck: string[];
|
|
5
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AACrE,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAC5C,eAAO,MAAM,qBAAqB,UAA8C,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { BroadcastCacheUpdateOptions } from "./BroadcastCacheUpdate.js";
|
|
2
1
|
import { BroadcastCacheUpdate } from "./BroadcastCacheUpdate.js";
|
|
3
2
|
import { BroadcastUpdatePlugin } from "./BroadcastUpdatePlugin.js";
|
|
3
|
+
import { CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck } from "./constants.js";
|
|
4
4
|
import { responsesAreSame } from "./responsesAreSame.js";
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export { BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame };
|
|
9
|
-
export type { BroadcastCacheUpdateOptions };
|
|
5
|
+
export { BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame, CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck, };
|
|
6
|
+
export type * from "./types.js";
|
|
10
7
|
//# 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":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC/G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,GACtB,CAAC;AAEF,mBAAmB,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { SerwistError, logger, assert, resultingClientExists, timeout
|
|
1
|
+
import { SerwistError, logger, assert, resultingClientExists, timeout } from '@serwist/core/internal';
|
|
2
|
+
|
|
3
|
+
const CACHE_UPDATED_MESSAGE_TYPE = "CACHE_UPDATED";
|
|
4
|
+
const CACHE_UPDATED_MESSAGE_META = "serwist-broadcast-update";
|
|
5
|
+
const defaultNotifyAllClients = true;
|
|
6
|
+
const defaultHeadersToCheck = [
|
|
7
|
+
"content-length",
|
|
8
|
+
"etag",
|
|
9
|
+
"last-modified"
|
|
10
|
+
];
|
|
2
11
|
|
|
3
12
|
const responsesAreSame = (firstResponse, secondResponse, headersToCheck)=>{
|
|
4
13
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -23,30 +32,21 @@ const responsesAreSame = (firstResponse, secondResponse, headersToCheck)=>{
|
|
|
23
32
|
});
|
|
24
33
|
};
|
|
25
34
|
|
|
26
|
-
const CACHE_UPDATED_MESSAGE_TYPE = "CACHE_UPDATED";
|
|
27
|
-
const CACHE_UPDATED_MESSAGE_META = "serwist-broadcast-update";
|
|
28
|
-
const NOTIFY_ALL_CLIENTS = true;
|
|
29
|
-
const DEFAULT_HEADERS_TO_CHECK = [
|
|
30
|
-
"content-length",
|
|
31
|
-
"etag",
|
|
32
|
-
"last-modified"
|
|
33
|
-
];
|
|
34
|
-
|
|
35
35
|
const isSafari = typeof navigator !== "undefined" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
36
|
-
|
|
36
|
+
const defaultPayloadGenerator = (data)=>{
|
|
37
37
|
return {
|
|
38
38
|
cacheName: data.cacheName,
|
|
39
39
|
updatedURL: data.request.url
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
class BroadcastCacheUpdate {
|
|
43
43
|
_headersToCheck;
|
|
44
44
|
_generatePayload;
|
|
45
45
|
_notifyAllClients;
|
|
46
46
|
constructor({ generatePayload, headersToCheck, notifyAllClients } = {}){
|
|
47
|
-
this._headersToCheck = headersToCheck ||
|
|
47
|
+
this._headersToCheck = headersToCheck || defaultHeadersToCheck;
|
|
48
48
|
this._generatePayload = generatePayload || defaultPayloadGenerator;
|
|
49
|
-
this._notifyAllClients = notifyAllClients ??
|
|
49
|
+
this._notifyAllClients = notifyAllClients ?? defaultNotifyAllClients;
|
|
50
50
|
}
|
|
51
51
|
async notifyIfUpdated(options) {
|
|
52
52
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -113,9 +113,9 @@ class BroadcastUpdatePlugin {
|
|
|
113
113
|
constructor(options){
|
|
114
114
|
this._broadcastUpdate = new BroadcastCacheUpdate(options);
|
|
115
115
|
}
|
|
116
|
-
cacheDidUpdate
|
|
117
|
-
|
|
118
|
-
}
|
|
116
|
+
cacheDidUpdate(options) {
|
|
117
|
+
void this._broadcastUpdate.notifyIfUpdated(options);
|
|
118
|
+
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export { BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame };
|
|
121
|
+
export { BroadcastCacheUpdate, BroadcastUpdatePlugin, CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck, responsesAreSame };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CacheDidUpdateCallbackParam } from "@serwist/core";
|
|
2
|
+
import type { CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE } from "./constants.js";
|
|
3
|
+
export interface BroadcastCacheUpdateOptions {
|
|
4
|
+
/**
|
|
5
|
+
* A list of headers that will be used to determine whether the responses
|
|
6
|
+
* differ.
|
|
7
|
+
*
|
|
8
|
+
* @default ['content-length', 'etag', 'last-modified']
|
|
9
|
+
*/
|
|
10
|
+
headersToCheck?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* A function whose return value
|
|
13
|
+
* will be used as the `payload` field in any cache update messages sent
|
|
14
|
+
* to the window clients.
|
|
15
|
+
* @param options
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
generatePayload?: (options: CacheDidUpdateCallbackParam) => Record<string, any>;
|
|
19
|
+
/**
|
|
20
|
+
* If true (the default) then all open clients will receive a message. If false,
|
|
21
|
+
* then only the client that make the original request will be notified of the update.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
notifyAllClients?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export type BroadcastPayload = Record<string, any>;
|
|
28
|
+
export interface BroadcastPayloadGenerator {
|
|
29
|
+
(options: CacheDidUpdateCallbackParam): BroadcastPayload;
|
|
30
|
+
}
|
|
31
|
+
export interface BroadcastMessage {
|
|
32
|
+
type: typeof CACHE_UPDATED_MESSAGE_TYPE;
|
|
33
|
+
meta: typeof CACHE_UPDATED_MESSAGE_META;
|
|
34
|
+
payload: BroadcastPayload;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE7F,MAAM,WAAW,2BAA2B;IAC1C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChF;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC,CAAC,OAAO,EAAE,2BAA2B,GAAG,gBAAgB,CAAC;CAC1D;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,0BAA0B,CAAC;IACxC,IAAI,EAAE,OAAO,0BAA0B,CAAC;IACxC,OAAO,EAAE,gBAAgB,CAAC;CAC3B"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/broadcast-update",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.8",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "A
|
|
5
|
+
"description": "A module that uses the Broadcast Channel API to announce when a cached response has updated",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@serwist/core": "9.0.0-preview.
|
|
32
|
+
"@serwist/core": "9.0.0-preview.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"rollup": "4.9.6",
|
|
36
36
|
"typescript": "5.4.0-dev.20240206",
|
|
37
|
-
"@serwist/constants": "9.0.0-preview.
|
|
37
|
+
"@serwist/constants": "9.0.0-preview.8"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"typescript": ">=5.0.0"
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
import type { CacheDidUpdateCallbackParam } from "@serwist/core";
|
|
10
10
|
import { assert, logger, resultingClientExists, timeout } from "@serwist/core/internal";
|
|
11
11
|
|
|
12
|
+
import { CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck, defaultNotifyAllClients } from "./constants.js";
|
|
12
13
|
import { responsesAreSame } from "./responsesAreSame.js";
|
|
13
|
-
import {
|
|
14
|
+
import type { BroadcastCacheUpdateOptions, BroadcastMessage, BroadcastPayload, BroadcastPayloadGenerator } from "./types.js";
|
|
14
15
|
|
|
15
16
|
// UA-sniff Safari: https://stackoverflow.com/questions/7944460/detect-safari-browser
|
|
16
17
|
// TODO(philipwalton): remove once this Safari bug fix has been released.
|
|
@@ -19,32 +20,6 @@ const isSafari = typeof navigator !== "undefined" && /^((?!chrome|android).)*saf
|
|
|
19
20
|
|
|
20
21
|
// Give TypeScript the correct global.
|
|
21
22
|
declare let self: ServiceWorkerGlobalScope;
|
|
22
|
-
|
|
23
|
-
export interface BroadcastCacheUpdateOptions {
|
|
24
|
-
/**
|
|
25
|
-
* A list of headers that will be used to determine whether the responses
|
|
26
|
-
* differ.
|
|
27
|
-
*
|
|
28
|
-
* @default ['content-length', 'etag', 'last-modified']
|
|
29
|
-
*/
|
|
30
|
-
headersToCheck?: string[];
|
|
31
|
-
/**
|
|
32
|
-
* A function whose return value
|
|
33
|
-
* will be used as the `payload` field in any cache update messages sent
|
|
34
|
-
* to the window clients.
|
|
35
|
-
* @param options
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
generatePayload?: (options: CacheDidUpdateCallbackParam) => Record<string, any>;
|
|
39
|
-
/**
|
|
40
|
-
* If true (the default) then all open clients will receive a message. If false,
|
|
41
|
-
* then only the client that make the original request will be notified of the update.
|
|
42
|
-
*
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
notifyAllClients?: boolean;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
23
|
/**
|
|
49
24
|
* Generates the default payload used in update messages. By default the
|
|
50
25
|
* payload includes the `cacheName` and `updatedURL` fields.
|
|
@@ -52,12 +27,12 @@ export interface BroadcastCacheUpdateOptions {
|
|
|
52
27
|
* @returns
|
|
53
28
|
* @private
|
|
54
29
|
*/
|
|
55
|
-
|
|
30
|
+
const defaultPayloadGenerator = (data: CacheDidUpdateCallbackParam): BroadcastPayload => {
|
|
56
31
|
return {
|
|
57
32
|
cacheName: data.cacheName,
|
|
58
33
|
updatedURL: data.request.url,
|
|
59
34
|
};
|
|
60
|
-
}
|
|
35
|
+
};
|
|
61
36
|
|
|
62
37
|
/**
|
|
63
38
|
* Uses the `postMessage()` API to inform any open windows/tabs when a cached
|
|
@@ -66,9 +41,9 @@ function defaultPayloadGenerator(data: CacheDidUpdateCallbackParam): Record<stri
|
|
|
66
41
|
* For efficiency's sake, the underlying response bodies are not compared;
|
|
67
42
|
* only specific response headers are checked.
|
|
68
43
|
*/
|
|
69
|
-
class BroadcastCacheUpdate {
|
|
44
|
+
export class BroadcastCacheUpdate {
|
|
70
45
|
private readonly _headersToCheck: string[];
|
|
71
|
-
private readonly _generatePayload:
|
|
46
|
+
private readonly _generatePayload: BroadcastPayloadGenerator;
|
|
72
47
|
private readonly _notifyAllClients: boolean;
|
|
73
48
|
|
|
74
49
|
/**
|
|
@@ -78,9 +53,9 @@ class BroadcastCacheUpdate {
|
|
|
78
53
|
* @param options
|
|
79
54
|
*/
|
|
80
55
|
constructor({ generatePayload, headersToCheck, notifyAllClients }: BroadcastCacheUpdateOptions = {}) {
|
|
81
|
-
this._headersToCheck = headersToCheck ||
|
|
56
|
+
this._headersToCheck = headersToCheck || defaultHeadersToCheck;
|
|
82
57
|
this._generatePayload = generatePayload || defaultPayloadGenerator;
|
|
83
|
-
this._notifyAllClients = notifyAllClients ??
|
|
58
|
+
this._notifyAllClients = notifyAllClients ?? defaultNotifyAllClients;
|
|
84
59
|
}
|
|
85
60
|
|
|
86
61
|
/**
|
|
@@ -143,7 +118,7 @@ class BroadcastCacheUpdate {
|
|
|
143
118
|
type: CACHE_UPDATED_MESSAGE_TYPE,
|
|
144
119
|
meta: CACHE_UPDATED_MESSAGE_META,
|
|
145
120
|
payload: this._generatePayload(options),
|
|
146
|
-
};
|
|
121
|
+
} satisfies BroadcastMessage;
|
|
147
122
|
|
|
148
123
|
// For navigation requests, wait until the new window client exists
|
|
149
124
|
// before sending the message
|
|
@@ -184,5 +159,3 @@ class BroadcastCacheUpdate {
|
|
|
184
159
|
}
|
|
185
160
|
}
|
|
186
161
|
}
|
|
187
|
-
|
|
188
|
-
export { BroadcastCacheUpdate };
|
|
@@ -6,17 +6,16 @@
|
|
|
6
6
|
https://opensource.org/licenses/MIT.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { SerwistPlugin } from "@serwist/core";
|
|
10
|
-
import { dontWaitFor } from "@serwist/core/internal";
|
|
9
|
+
import type { CacheDidUpdateCallbackParam, SerwistPlugin } from "@serwist/core";
|
|
11
10
|
|
|
12
|
-
import type { BroadcastCacheUpdateOptions } from "./BroadcastCacheUpdate.js";
|
|
13
11
|
import { BroadcastCacheUpdate } from "./BroadcastCacheUpdate.js";
|
|
12
|
+
import type { BroadcastCacheUpdateOptions } from "./types.js";
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* This plugin will automatically broadcast a message whenever a cached response
|
|
17
16
|
* is updated.
|
|
18
17
|
*/
|
|
19
|
-
class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
18
|
+
export class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
20
19
|
private readonly _broadcastUpdate: BroadcastCacheUpdate;
|
|
21
20
|
|
|
22
21
|
/**
|
|
@@ -38,9 +37,7 @@ class BroadcastUpdatePlugin implements SerwistPlugin {
|
|
|
38
37
|
* @private
|
|
39
38
|
* @param options The input object to this function.
|
|
40
39
|
*/
|
|
41
|
-
cacheDidUpdate:
|
|
42
|
-
|
|
43
|
-
}
|
|
40
|
+
cacheDidUpdate(options: CacheDidUpdateCallbackParam) {
|
|
41
|
+
void this._broadcastUpdate.notifyIfUpdated(options);
|
|
42
|
+
}
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
export { BroadcastUpdatePlugin };
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
|
|
9
9
|
export const CACHE_UPDATED_MESSAGE_TYPE = "CACHE_UPDATED";
|
|
10
10
|
export const CACHE_UPDATED_MESSAGE_META = "serwist-broadcast-update";
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
11
|
+
export const defaultNotifyAllClients = true;
|
|
12
|
+
export const defaultHeadersToCheck = ["content-length", "etag", "last-modified"];
|
package/src/index.ts
CHANGED
|
@@ -6,15 +6,18 @@
|
|
|
6
6
|
https://opensource.org/licenses/MIT.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { BroadcastCacheUpdateOptions } from "./BroadcastCacheUpdate.js";
|
|
10
9
|
import { BroadcastCacheUpdate } from "./BroadcastCacheUpdate.js";
|
|
11
10
|
import { BroadcastUpdatePlugin } from "./BroadcastUpdatePlugin.js";
|
|
11
|
+
import { CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck } from "./constants.js";
|
|
12
12
|
import { responsesAreSame } from "./responsesAreSame.js";
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export {
|
|
15
|
+
BroadcastCacheUpdate,
|
|
16
|
+
BroadcastUpdatePlugin,
|
|
17
|
+
responsesAreSame,
|
|
18
|
+
CACHE_UPDATED_MESSAGE_META,
|
|
19
|
+
CACHE_UPDATED_MESSAGE_TYPE,
|
|
20
|
+
defaultHeadersToCheck,
|
|
21
|
+
};
|
|
17
22
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
export type { BroadcastCacheUpdateOptions };
|
|
23
|
+
export type * from "./types.js";
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CacheDidUpdateCallbackParam } from "@serwist/core";
|
|
2
|
+
import type { CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE } from "./constants.js";
|
|
3
|
+
|
|
4
|
+
export interface BroadcastCacheUpdateOptions {
|
|
5
|
+
/**
|
|
6
|
+
* A list of headers that will be used to determine whether the responses
|
|
7
|
+
* differ.
|
|
8
|
+
*
|
|
9
|
+
* @default ['content-length', 'etag', 'last-modified']
|
|
10
|
+
*/
|
|
11
|
+
headersToCheck?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* A function whose return value
|
|
14
|
+
* will be used as the `payload` field in any cache update messages sent
|
|
15
|
+
* to the window clients.
|
|
16
|
+
* @param options
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
generatePayload?: (options: CacheDidUpdateCallbackParam) => Record<string, any>;
|
|
20
|
+
/**
|
|
21
|
+
* If true (the default) then all open clients will receive a message. If false,
|
|
22
|
+
* then only the client that make the original request will be notified of the update.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
notifyAllClients?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type BroadcastPayload = Record<string, any>;
|
|
30
|
+
|
|
31
|
+
export interface BroadcastPayloadGenerator {
|
|
32
|
+
(options: CacheDidUpdateCallbackParam): BroadcastPayload;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface BroadcastMessage {
|
|
36
|
+
type: typeof CACHE_UPDATED_MESSAGE_TYPE;
|
|
37
|
+
meta: typeof CACHE_UPDATED_MESSAGE_META;
|
|
38
|
+
payload: BroadcastPayload;
|
|
39
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.d.ts","../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/modules/index.d.ts","../../core/dist/cacheNames.d.ts","../../core/dist/clientsClaim.d.ts","../../core/dist/copyResponse.d.ts","../../core/dist/registerQuotaErrorCallback.d.ts","../../core/dist/_private/cacheNames.d.ts","../../core/dist/setCacheNameDetails.d.ts","../../core/dist/types.d.ts","../../core/dist/index.d.ts","../../core/dist/_private/Deferred.d.ts","../../core/dist/models/messages/messages.d.ts","../../core/dist/_private/SerwistError.d.ts","../../core/dist/_private/assert.d.ts","../../core/dist/_private/cacheMatchIgnoreParams.d.ts","../../core/dist/_private/canConstructReadableStream.d.ts","../../core/dist/_private/canConstructResponseFromBodyStream.d.ts","../../core/dist/_private/dontWaitFor.d.ts","../../core/dist/_private/executeQuotaErrorCallbacks.d.ts","../../core/dist/_private/getFriendlyURL.d.ts","../../core/dist/_private/logger.d.ts","../../core/dist/_private/resultingClientExists.d.ts","../../core/dist/_private/timeout.d.ts","../../core/dist/_private/waitUntil.d.ts","../../core/dist/index.internal.d.ts","../src/responsesAreSame.ts","../src/utils/constants.ts","../src/BroadcastCacheUpdate.ts","../src/BroadcastUpdatePlugin.ts","../src/index.ts","../../../node_modules/.pnpm/@types+eslint@8.44.5/node_modules/@types/eslint/helpers.d.ts","../../../node_modules/.pnpm/@types+estree@1.0.5/node_modules/@types/estree/index.d.ts","../../../node_modules/.pnpm/@types+json-schema@7.0.14/node_modules/@types/json-schema/index.d.ts","../../../node_modules/.pnpm/@types+eslint@8.44.5/node_modules/@types/eslint/index.d.ts","../../../node_modules/.pnpm/@types+eslint-scope@3.7.6/node_modules/@types/eslint-scope/index.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.11.16/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+shell-quote@1.7.5/node_modules/@types/shell-quote/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true,"impliedFormat":1},{"version":"5746fca0ef5189a855357e258108524603574457c811ce8143e3279efde9f5b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true,"impliedFormat":1},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true,"impliedFormat":1},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","impliedFormat":1},{"version":"31973b272be35eab5ecf20a38ea54bec84cdc0317117590cb813c72fe0ef75b3","impliedFormat":99},{"version":"7d2521dd735894a4d0032bd70796ca6512b11326a53fdbd6ec5eb1163409bd16","impliedFormat":99},{"version":"c5a34f4b64ab0dde69222575958260bc9bfacd4bea56bb7e58433e3375d17778","impliedFormat":99},{"version":"471f6a08e110c73e1344f5eebf196f2a2b87603d068652dfb2d9b31018e20e19","impliedFormat":99},{"version":"fd391a1b2475d719f0eae71f6f1edcd4abcc62e4bd2a4d526965fc37c718b44f","impliedFormat":99},{"version":"b24f6d1a0b1a9e3ab526c28bf7ebf99d852d6c2b14ba0a8c50a7e318f7d0a2a4","impliedFormat":99},{"version":"bd4029a50f09a4da98a2c69c9ac5b829ceef8993f3c985193826fc1cc1c75a96","impliedFormat":99},{"version":"26a28e23c3783bff6e0c13cbe98c65a011df503c09ad41304101b4f60e3d8e7a","impliedFormat":99},{"version":"9cdf7ca0e809b461e72c5601bb9bf06bcf47929fe09db62bb44cc2b470ecdbb4","impliedFormat":99},{"version":"a574de9fe4eec4516a0a63f59772b144f4dc222757202fa82cf09f4ec35174b8","impliedFormat":99},{"version":"33c39a5e907f4a0c263847587282d059323a074798854377e346e093b4503f57","impliedFormat":99},{"version":"ca0aa97ab3504c6c8c7430683f13d1177b8f1e5be20307cfc759513da5242e6b","impliedFormat":99},{"version":"e191ca66a6c47aaaab833c74e312403abb28aa183bb0c55d721852e1ed5c096e","impliedFormat":99},{"version":"47fd2862d4c9aa31710807c224013ddb420525ab5550f25cf4eab4136f668577","impliedFormat":99},{"version":"c1cb3fe7f5ed410f76b5b4eca8cf38de1732782dea26385d215769634a360530","impliedFormat":99},{"version":"646db342752e9fb179a5acf452356612546817069530437751e36a6d81ba0b6d","impliedFormat":99},{"version":"8cd15d7695bb2bc46b4e313bca98a7837746174ee2a653557775862f530e43ad","impliedFormat":99},{"version":"54504ce2503ada08b9de131a103fcceefcf461622ff3ce897909792c47fb0e84","impliedFormat":99},{"version":"ddd6d77fb7964285c00ca59ead133259fa852af96f51e8d64e2efab10ee228d4","impliedFormat":99},{"version":"5aaf0209dc4b2bda29dd8d5d53afcfde26976273d95b461466423bdf5906bc75","affectsGlobalScope":true,"impliedFormat":99},{"version":"91d58c34a52dc7d5a0c9ed69e9235fa38918c53010351bc9281ec42f6f0fd627","impliedFormat":99},{"version":"da8fc4713215519d6ce1adae4c439cf50b5ec500647d3a0a27bb7a84b69b82a9","impliedFormat":99},{"version":"03fe00d8f8ac400537003a5261ab2479548a1ed8fe14ba042b727fab81fdbf8d","impliedFormat":99},{"version":"7ef06548457a4841c16164f827a6818de39c6812bbf8b8d9e02d1007221f3320","impliedFormat":99},{"version":"56d54065b7193b3d825bde22b4507ab33158beac2d3208f23b452966dc704f32","impliedFormat":99},{"version":"8dc233c2496c9183a3150a2fa7b90075ef48ca6aedd369992a0915d7688ef41a","impliedFormat":99},{"version":"33ccddaf6f58155a4b95cecd2a78f4c89308d8d0d9f8f52087851bb1b50cd530","impliedFormat":99},{"version":"14b6b7b3464818061aec42cbcdfd0ebfbe2229d2b384d1c0b6fad34352756801","impliedFormat":99},{"version":"02491009c83c25fa33db9ce52f7268b6aa8ca1b62615d0eedd12f31f8985fc41","impliedFormat":99},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true,"impliedFormat":1},{"version":"ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"df95e00612c1faa5e0e7ef0dba589b18665bbeb3221db2b6cee1fe4d0e61921f","impliedFormat":1},{"version":"1f68ab0e055994eb337b67aa87d2a15e0200951e9664959b3866ee6f6b11a0fe","impliedFormat":1},{"version":"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","impliedFormat":1},{"version":"3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","impliedFormat":1},{"version":"e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","impliedFormat":1},{"version":"471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","impliedFormat":1},{"version":"c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","impliedFormat":1},{"version":"40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","impliedFormat":1},{"version":"8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","impliedFormat":1},{"version":"4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1","impliedFormat":1},{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true,"impliedFormat":1},{"version":"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c","impliedFormat":1},{"version":"e2eb1ce13a9c0fa7ab62c63909d81973ef4b707292667c64f1e25e6e53fa7afa","affectsGlobalScope":true,"impliedFormat":1},{"version":"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","impliedFormat":1},{"version":"7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba","impliedFormat":1},{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"a1d2988ad9d2aef7b9915a22b5e52c165c83a878f2851c35621409046bbe3c05","affectsGlobalScope":true,"impliedFormat":1},{"version":"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","impliedFormat":1},{"version":"4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","impliedFormat":1},{"version":"8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","impliedFormat":1},{"version":"af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","impliedFormat":1},{"version":"b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e","impliedFormat":1},{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true,"impliedFormat":1},{"version":"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","impliedFormat":1},{"version":"313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","impliedFormat":1},{"version":"f1ace2d2f98429e007d017c7a445efad2aaebf8233135abdb2c88b8c0fef91ab","impliedFormat":1},{"version":"87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","impliedFormat":1},{"version":"396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","impliedFormat":1},{"version":"21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac","impliedFormat":1},{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true,"impliedFormat":1},{"version":"440aa12c483d9dcd62b8cad2ddf4549ef3e54926c2aa6c78d520dcd320ba4980","impliedFormat":1},{"version":"45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","impliedFormat":1},{"version":"0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7","impliedFormat":1},{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true,"impliedFormat":1},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true,"impliedFormat":1},{"version":"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","impliedFormat":1},{"version":"54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","impliedFormat":1},{"version":"d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","impliedFormat":1},{"version":"8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","impliedFormat":1},{"version":"01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","impliedFormat":1},{"version":"8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"7424817d5eb498771e6d1808d726ec38f75d2eaf3fa359edd5c0c540c52725c1","impliedFormat":1},{"version":"9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024","impliedFormat":1},{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true,"impliedFormat":1},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","impliedFormat":1},{"version":"4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","impliedFormat":1},{"version":"7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","impliedFormat":1},{"version":"7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df","impliedFormat":1},{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true,"impliedFormat":1},{"version":"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","impliedFormat":1},{"version":"79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","impliedFormat":1},{"version":"37dc027f781c75f0f546e329cfac7cf92a6b289f42458f47a9adc25e516b6839","impliedFormat":1},{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","impliedFormat":1},{"version":"a315a141f52f92232e0e7756f77cfed8e3ecb031317166711fb5d906e404a2ac","impliedFormat":1}],"root":[[72,76]],"options":{"allowSyntheticDefaultImports":true,"checkJs":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"importHelpers":true,"module":199,"noEmitHelpers":true,"noErrorTruncation":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":false,"skipLibCheck":true,"sourceMap":false,"strict":true,"target":99},"fileIdsList":[[78,80],[77,78,79],[82],[118],[119,124,152],[120,131,132,139,149,160],[120,121,131,139],[122,161],[123,124,132,140],[124,149,157],[125,127,131,139],[118,126],[127,128],[131],[129,131],[118,131],[131,132,133,149,160],[131,132,133,146,149,152],[116,119,165],[127,131,134,139,149,160],[131,132,134,135,139,149,157,160],[134,136,149,157,160],[82,83,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167],[131,137],[138,160,165],[127,131,139,149],[140],[141],[118,142],[143,159,165],[144],[145],[131,146,147],[146,148,161,163],[119,131,149,150,151,152],[119,149,151],[149,150],[152],[153],[118,149],[131,155,156],[155,156],[124,139,149,157],[158],[139,159],[119,134,145,160],[124,161],[149,162],[138,163],[164],[119,124,131,133,142,149,160,163,165],[149,166],[47],[93,97,160],[93,149,160],[88],[90,93,157,160],[139,157],[168],[88,168],[90,93,139,160],[85,86,89,92,119,131,149,160],[85,91],[89,93,119,152,160,168],[119,168],[109,119,168],[87,88,168],[93],[87,88,89,90,91,92,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115],[93,100,101],[91,93,101,102],[92],[85,88,93],[93,97,101,102],[97],[91,93,96,160],[85,90,91,93,97,100],[119,149],[88,93,109,119,165,168],[48,56,71,72,73],[48,56,71,74],[48,72,74,75],[48,71],[48],[55,58],[55],[49,50,51,52,54,55],[53,57,59,60,61,62,63,64,65,66,67,68,69,70],[53]],"referencedMap":[[81,1],[80,2],[82,3],[83,3],[118,4],[119,5],[120,6],[121,7],[122,8],[123,9],[124,10],[125,11],[126,12],[127,13],[128,13],[130,14],[129,15],[131,16],[132,17],[133,18],[117,19],[134,20],[135,21],[136,22],[168,23],[137,24],[138,25],[139,26],[140,27],[141,28],[142,29],[143,30],[144,31],[145,32],[146,33],[147,33],[148,34],[149,35],[151,36],[150,37],[152,38],[153,39],[154,40],[155,41],[156,42],[157,43],[158,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[48,53],[100,54],[107,55],[99,54],[114,56],[91,57],[90,58],[113,59],[108,60],[111,61],[93,62],[92,63],[88,64],[87,65],[110,66],[89,67],[94,68],[98,68],[116,69],[115,68],[102,70],[103,71],[105,72],[101,73],[104,74],[109,59],[96,75],[97,76],[106,77],[86,78],[112,79],[74,80],[75,81],[76,82],[72,83],[73,84],[59,85],[60,86],[56,87],[71,88],[54,89]],"exportedModulesMap":[[81,1],[80,2],[82,3],[83,3],[118,4],[119,5],[120,6],[121,7],[122,8],[123,9],[124,10],[125,11],[126,12],[127,13],[128,13],[130,14],[129,15],[131,16],[132,17],[133,18],[117,19],[134,20],[135,21],[136,22],[168,23],[137,24],[138,25],[139,26],[140,27],[141,28],[142,29],[143,30],[144,31],[145,32],[146,33],[147,33],[148,34],[149,35],[151,36],[150,37],[152,38],[153,39],[154,40],[155,41],[156,42],[157,43],[158,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[48,53],[100,54],[107,55],[99,54],[114,56],[91,57],[90,58],[113,59],[108,60],[111,61],[93,62],[92,63],[88,64],[87,65],[110,66],[89,67],[94,68],[98,68],[116,69],[115,68],[102,70],[103,71],[105,72],[101,73],[104,74],[109,59],[96,75],[97,76],[106,77],[86,78],[112,79],[74,80],[75,81],[76,82],[72,83],[73,84],[59,85],[60,86],[56,87],[71,88],[54,89]],"semanticDiagnosticsPerFile":[81,77,80,78,79,82,83,118,119,120,121,122,123,124,125,126,127,128,130,129,131,132,133,117,167,134,135,136,168,137,138,139,140,141,142,143,144,145,146,147,148,149,151,150,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,169,84,48,47,45,46,8,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,44,9,100,107,99,114,91,90,113,108,111,93,92,88,87,110,89,94,95,98,85,116,115,102,103,105,101,104,109,96,97,106,86,112,74,75,76,72,73,57,59,60,61,53,62,63,64,65,66,67,68,69,70,49,50,51,56,71,58,52,54,55]},"version":"5.3.3"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const CACHE_UPDATED_MESSAGE_TYPE = "CACHE_UPDATED";
|
|
2
|
-
export declare const CACHE_UPDATED_MESSAGE_META = "serwist-broadcast-update";
|
|
3
|
-
export declare const NOTIFY_ALL_CLIENTS = true;
|
|
4
|
-
export declare const DEFAULT_HEADERS_TO_CHECK: string[];
|
|
5
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AACrE,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,wBAAwB,EAAE,MAAM,EAAgD,CAAC"}
|