@serwist/strategies 8.0.0

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,3 @@
1
+ import type { SerwistPlugin } from "@serwist/core";
2
+ export declare const cacheOkAndOpaquePlugin: SerwistPlugin;
3
+ //# sourceMappingURL=cacheOkAndOpaquePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cacheOkAndOpaquePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/cacheOkAndOpaquePlugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,sBAAsB,EAAE,aAepC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const messages: {
2
+ strategyStart: (strategyName: string, request: Request) => string;
3
+ printFinalResponse: (response?: Response) => void;
4
+ };
5
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/utils/messages.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ;kCACW,MAAM,WAAW,OAAO,KAAG,MAAM;oCAC/B,QAAQ,KAAG,IAAI;CAOhD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@serwist/strategies",
3
+ "version": "8.0.0",
4
+ "type": "module",
5
+ "description": "A service worker helper library implementing common caching strategies.",
6
+ "files": [
7
+ "dist",
8
+ "!dist/**/dts"
9
+ ],
10
+ "keywords": [
11
+ "serwist",
12
+ "serwistjs",
13
+ "service worker",
14
+ "sw",
15
+ "router",
16
+ "routing"
17
+ ],
18
+ "author": "Google's Web DevRel Team, Serwist's Team",
19
+ "license": "MIT",
20
+ "repository": "serwist/serwist",
21
+ "bugs": "https://github.com/serwist/serwist/issues",
22
+ "homepage": "https://ducanh-next-pwa.vercel.app",
23
+ "module": "./dist/index.js",
24
+ "main": "./dist/index.old.cjs",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "import": "./dist/index.js",
29
+ "require": "./dist/index.old.cjs",
30
+ "types": "./dist/index.d.ts"
31
+ },
32
+ "./package.json": "./package.json"
33
+ },
34
+ "dependencies": {
35
+ "@serwist/core": "8.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "rollup": "3.28.1",
39
+ "@serwist/constants": "8.0.0"
40
+ },
41
+ "scripts": {
42
+ "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
43
+ "lint": "eslint src --ext ts,tsx,js,jsx,cjs,mjs",
44
+ "typecheck": "tsc"
45
+ }
46
+ }