@spoosh/plugin-polling 0.1.0-beta.0 → 0.1.1

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 +1 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install @spoosh/plugin-polling
15
15
  ```typescript
16
16
  import { pollingPlugin } from "@spoosh/plugin-polling";
17
17
 
18
- const plugins = [pollingPlugin()];
18
+ const plugins = [pollingPlugin()] as const;
19
19
 
20
20
  // Static polling interval (5 seconds)
21
21
  useRead((api) => api.posts.$get(), { pollingInterval: 5000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-polling",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.1",
4
4
  "description": "Automatic polling/refetching plugin for Spoosh",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  }
35
35
  },
36
36
  "peerDependencies": {
37
- "@spoosh/core": ">=0.1.0"
37
+ "@spoosh/core": ">=0.2.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@spoosh/core": "0.1.0-beta.0",
41
- "@spoosh/test-utils": "0.1.0-beta.0"
40
+ "@spoosh/core": "0.2.0",
41
+ "@spoosh/test-utils": "0.1.1"
42
42
  },
43
43
  "scripts": {
44
44
  "dev": "tsup --watch",