@serwist/precaching 8.0.3 → 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,24 @@
1
+ import { addPlugins } from "./addPlugins.js";
2
+ import { addRoute } from "./addRoute.js";
3
+ import { cleanupOutdatedCaches } from "./cleanupOutdatedCaches.js";
4
+ import { createHandlerBoundToURL } from "./createHandlerBoundToURL.js";
5
+ import { getCacheKeyForURL } from "./getCacheKeyForURL.js";
6
+ import { matchPrecache } from "./matchPrecache.js";
7
+ import { precache } from "./precache.js";
8
+ import { precacheAndRoute } from "./precacheAndRoute.js";
9
+ import { PrecacheController } from "./PrecacheController.js";
10
+ import { PrecacheFallbackPlugin } from "./PrecacheFallbackPlugin.js";
11
+ import { PrecacheRoute } from "./PrecacheRoute.js";
12
+ import { PrecacheStrategy } from "./PrecacheStrategy.js";
13
+ /**
14
+ * Most consumers of this module will want to use the
15
+ * `@serwist/precaching.precacheAndRoute`
16
+ * method to add assets to the cache and respond to network requests with these
17
+ * cached assets.
18
+ *
19
+ * If you require more control over caching and routing, you can use the
20
+ * `@serwist/precaching.PrecacheController`
21
+ * interface.
22
+ */
23
+ export { addPlugins, addRoute, cleanupOutdatedCaches, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, PrecacheController, PrecacheFallbackPlugin, PrecacheRoute, PrecacheStrategy, };
24
+ export * from "./_types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/precaching",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "type": "module",
5
5
  "description": "This module efficiently precaches assets.",
6
6
  "files": [
@@ -23,20 +23,25 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
- "import": "./dist/index.js",
27
- "require": "./dist/index.old.cjs",
28
- "types": "./dist/index.d.ts"
26
+ "import": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.old.d.cts",
32
+ "default": "./dist/index.old.cjs"
33
+ }
29
34
  },
30
35
  "./package.json": "./package.json"
31
36
  },
32
37
  "dependencies": {
33
- "@serwist/core": "8.0.3",
34
- "@serwist/routing": "8.0.3",
35
- "@serwist/strategies": "8.0.3"
38
+ "@serwist/routing": "8.0.4",
39
+ "@serwist/strategies": "8.0.4",
40
+ "@serwist/core": "8.0.4"
36
41
  },
37
42
  "devDependencies": {
38
43
  "rollup": "3.28.1",
39
- "@serwist/constants": "8.0.3"
44
+ "@serwist/constants": "8.0.4"
40
45
  },
41
46
  "scripts": {
42
47
  "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",