@serwist/precaching 9.0.0-preview.7 → 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.
@@ -13,6 +13,5 @@ import type { RouteHandlerCallback } from "@serwist/core";
13
13
  * response from the network if there's a precache miss.
14
14
  * @return
15
15
  */
16
- declare function createHandlerBoundToURL(url: string): RouteHandlerCallback;
17
- export { createHandlerBoundToURL };
16
+ export declare const createHandlerBoundToURL: (url: string) => RouteHandlerCallback;
18
17
  //# sourceMappingURL=createHandlerBoundToURL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createHandlerBoundToURL.d.ts","sourceRoot":"","sources":["../src/createHandlerBoundToURL.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D;;;;;;;;;;;;;GAaG;AACH,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAGlE;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"createHandlerBoundToURL.d.ts","sourceRoot":"","sources":["../src/createHandlerBoundToURL.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB,QAAS,MAAM,KAAG,oBAGrD,CAAC"}
package/dist/index.js CHANGED
@@ -555,10 +555,10 @@ const cleanupOutdatedCaches = ()=>{
555
555
  });
556
556
  };
557
557
 
558
- function createHandlerBoundToURL(url) {
558
+ const createHandlerBoundToURL = (url)=>{
559
559
  const precacheController = getOrCreatePrecacheController();
560
560
  return precacheController.createHandlerBoundToURL(url);
561
- }
561
+ };
562
562
 
563
563
  function getCacheKeyForURL(url) {
564
564
  const precacheController = getOrCreatePrecacheController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/precaching",
3
- "version": "9.0.0-preview.7",
3
+ "version": "9.0.0-preview.8",
4
4
  "type": "module",
5
5
  "description": "This module efficiently precaches assets.",
6
6
  "files": [
@@ -28,15 +28,15 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@serwist/core": "9.0.0-preview.7",
32
- "@serwist/routing": "9.0.0-preview.7",
33
- "@serwist/strategies": "9.0.0-preview.7"
31
+ "@serwist/core": "9.0.0-preview.8",
32
+ "@serwist/routing": "9.0.0-preview.8",
33
+ "@serwist/strategies": "9.0.0-preview.8"
34
34
  },
35
35
  "devDependencies": {
36
36
  "rollup": "4.9.6",
37
37
  "typescript": "5.4.0-dev.20240206",
38
- "@serwist/constants": "9.0.0-preview.7",
39
- "@serwist/utils": "9.0.0-preview.7"
38
+ "@serwist/constants": "9.0.0-preview.8",
39
+ "@serwist/utils": "9.0.0-preview.8"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "typescript": ">=5.0.0"
@@ -24,9 +24,7 @@ import { getOrCreatePrecacheController } from "./utils/getOrCreatePrecacheContro
24
24
  * response from the network if there's a precache miss.
25
25
  * @return
26
26
  */
27
- function createHandlerBoundToURL(url: string): RouteHandlerCallback {
27
+ export const createHandlerBoundToURL = (url: string): RouteHandlerCallback => {
28
28
  const precacheController = getOrCreatePrecacheController();
29
29
  return precacheController.createHandlerBoundToURL(url);
30
- }
31
-
32
- export { createHandlerBoundToURL };
30
+ };