@spoosh/plugin-cache 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -16,10 +16,9 @@ npm install @spoosh/plugin-cache
16
16
  import { Spoosh } from "@spoosh/core";
17
17
  import { cachePlugin } from "@spoosh/plugin-cache";
18
18
 
19
- const client = new Spoosh<ApiSchema, Error>("/api")
20
- .use([
21
- cachePlugin({ staleTime: 5000 }),
22
- ]);
19
+ const client = new Spoosh<ApiSchema, Error>("/api").use([
20
+ cachePlugin({ staleTime: 5000 }),
21
+ ]);
23
22
 
24
23
  // Per-query override
25
24
  useRead((api) => api.posts.$get(), { staleTime: 10000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-cache",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Response caching plugin for Spoosh with configurable stale time",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
36
- "@spoosh/core": ">=0.3.0"
36
+ "@spoosh/core": ">=0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@spoosh/core": "0.3.0",
40
- "@spoosh/test-utils": "0.1.3"
39
+ "@spoosh/core": "0.4.0",
40
+ "@spoosh/test-utils": "0.1.4"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "tsup --watch",