@spoosh/plugin-refetch 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 +6 -7
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -16,13 +16,12 @@ npm install @spoosh/plugin-refetch
16
16
  import { Spoosh } from "@spoosh/core";
17
17
  import { refetchPlugin } from "@spoosh/plugin-refetch";
18
18
 
19
- const client = new Spoosh<ApiSchema, Error>("/api")
20
- .use([
21
- refetchPlugin({
22
- refetchOnFocus: true,
23
- refetchOnReconnect: true,
24
- }),
25
- ]);
19
+ const client = new Spoosh<ApiSchema, Error>("/api").use([
20
+ refetchPlugin({
21
+ refetchOnFocus: true,
22
+ refetchOnReconnect: true,
23
+ }),
24
+ ]);
26
25
 
27
26
  // Uses plugin defaults
28
27
  useRead((api) => api.posts.$get());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-refetch",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Auto-refetch plugin for Spoosh - refetch on focus and reconnect",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  }
35
35
  },
36
36
  "peerDependencies": {
37
- "@spoosh/core": ">=0.3.0"
37
+ "@spoosh/core": ">=0.4.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@spoosh/core": "0.3.0",
41
- "@spoosh/test-utils": "0.1.3"
40
+ "@spoosh/core": "0.4.0",
41
+ "@spoosh/test-utils": "0.1.4"
42
42
  },
43
43
  "scripts": {
44
44
  "dev": "tsup --watch",