@serwist/core 8.0.2 → 8.0.4

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,15 @@
1
+ import { assert } from "./_private/assert.js";
2
+ import { cacheMatchIgnoreParams } from "./_private/cacheMatchIgnoreParams.js";
3
+ import { cacheNames as privateCacheNames } from "./_private/cacheNames.js";
4
+ import { canConstructReadableStream } from "./_private/canConstructReadableStream.js";
5
+ import { canConstructResponseFromBodyStream } from "./_private/canConstructResponseFromBodyStream.js";
6
+ import { Deferred } from "./_private/Deferred.js";
7
+ import { dontWaitFor } from "./_private/dontWaitFor.js";
8
+ import { executeQuotaErrorCallbacks } from "./_private/executeQuotaErrorCallbacks.js";
9
+ import { getFriendlyURL } from "./_private/getFriendlyURL.js";
10
+ import { logger } from "./_private/logger.js";
11
+ import { resultingClientExists } from "./_private/resultingClientExists.js";
12
+ import { SerwistError } from "./_private/SerwistError.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,11 @@
1
+ import { cacheNames } from "./cacheNames.js";
2
+ import { clientsClaim } from "./clientsClaim.js";
3
+ import { copyResponse } from "./copyResponse.js";
4
+ import { registerQuotaErrorCallback } from "./registerQuotaErrorCallback.js";
5
+ import { setCacheNameDetails } from "./setCacheNameDetails.js";
6
+ /**
7
+ * All Serwist libraries use `@serwist/core` for shared code as well as
8
+ * setting default values that need to be shared (like cache names).
9
+ */
10
+ export { cacheNames, clientsClaim, copyResponse, registerQuotaErrorCallback, setCacheNameDetails };
11
+ export * from "./types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/core",
3
- "version": "8.0.2",
3
+ "version": "8.0.4",
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": [
@@ -25,31 +25,34 @@
25
25
  "*": {
26
26
  "internal": [
27
27
  "./dist/index.internal.d.ts"
28
- ],
29
- "types": [
30
- "./dist/types.d.ts"
31
28
  ]
32
29
  }
33
30
  },
34
31
  "exports": {
35
32
  ".": {
36
- "import": "./dist/index.js",
37
- "require": "./dist/index.old.cjs",
38
- "types": "./dist/index.d.ts"
33
+ "import": {
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "require": {
38
+ "types": "./dist/index.old.d.cts",
39
+ "default": "./dist/index.old.cjs"
40
+ }
39
41
  },
40
42
  "./internal": {
41
- "import": "./dist/index.internal.js",
42
- "require": "./dist/index.internal.old.cjs",
43
- "types": "./dist/index.internal.d.ts"
44
- },
45
- "./types": {
46
- "types": "./dist/types.d.ts",
47
- "default": null
43
+ "import": {
44
+ "types": "./dist/index.internal.d.ts",
45
+ "default": "./dist/index.internal.js"
46
+ },
47
+ "require": {
48
+ "types": "./dist/index.internal.old.d.cts",
49
+ "default": "./dist/index.internal.old.cjs"
50
+ }
48
51
  }
49
52
  },
50
53
  "devDependencies": {
51
54
  "rollup": "3.28.1",
52
- "@serwist/constants": "8.0.2"
55
+ "@serwist/constants": "8.0.4"
53
56
  },
54
57
  "scripts": {
55
58
  "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",