@serwist/core 8.4.1 → 8.4.2
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A utility method that makes it easier to use `event.waitUntil` with
|
|
3
|
+
* async functions and return the result.
|
|
4
|
+
*
|
|
5
|
+
* @param event
|
|
6
|
+
* @param asyncFn
|
|
7
|
+
* @returns
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
declare function waitUntil(event: ExtendableEvent, asyncFn: () => Promise<any>): Promise<any>;
|
|
11
|
+
export { waitUntil };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Deferred } from "./_private/Deferred.js";
|
|
2
|
+
import { SerwistError } from "./_private/SerwistError.js";
|
|
3
|
+
import { assert } from "./_private/assert.js";
|
|
4
|
+
import { cacheMatchIgnoreParams } from "./_private/cacheMatchIgnoreParams.js";
|
|
5
|
+
import { cacheNames as privateCacheNames } from "./_private/cacheNames.js";
|
|
6
|
+
import { canConstructReadableStream } from "./_private/canConstructReadableStream.js";
|
|
7
|
+
import { canConstructResponseFromBodyStream } from "./_private/canConstructResponseFromBodyStream.js";
|
|
8
|
+
import { dontWaitFor } from "./_private/dontWaitFor.js";
|
|
9
|
+
import { executeQuotaErrorCallbacks } from "./_private/executeQuotaErrorCallbacks.js";
|
|
10
|
+
import { getFriendlyURL } from "./_private/getFriendlyURL.js";
|
|
11
|
+
import { logger } from "./_private/logger.js";
|
|
12
|
+
import { resultingClientExists } from "./_private/resultingClientExists.js";
|
|
13
|
+
import { timeout } from "./_private/timeout.js";
|
|
14
|
+
import { waitUntil } from "./_private/waitUntil.js";
|
|
15
|
+
export { assert, cacheMatchIgnoreParams, canConstructReadableStream, canConstructResponseFromBodyStream, Deferred, dontWaitFor, executeQuotaErrorCallbacks, getFriendlyURL, logger, privateCacheNames, resultingClientExists, SerwistError, timeout, waitUntil, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PartialCacheNameDetails } from "./_private/cacheNames.js";
|
|
2
|
+
/**
|
|
3
|
+
* Modifies the default cache names used by the Serwist packages.
|
|
4
|
+
* Cache names are generated as `<prefix>-<Cache Name>-<suffix>`.
|
|
5
|
+
*
|
|
6
|
+
* @param details
|
|
7
|
+
*/
|
|
8
|
+
declare function setCacheNameDetails(details: PartialCacheNameDetails): void;
|
|
9
|
+
export { setCacheNameDetails };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/core",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This module is used by a number of the other Serwist modules to share common code.",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"rollup": "4.9.1",
|
|
55
|
-
"@serwist/constants": "8.4.
|
|
55
|
+
"@serwist/constants": "8.4.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
|