@spoosh/plugin-throttle 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
@@ -18,7 +18,7 @@ import { throttlePlugin } from "@spoosh/plugin-throttle";
18
18
  const plugins = [
19
19
  // ...otherPlugins,
20
20
  throttlePlugin(), // register at end to block even force fetches
21
- ];
21
+ ] as const;
22
22
 
23
23
  // Max 1 request per second - extras return cached data
24
24
  const { data } = useRead((api) => api.expensive.$get(), { throttle: 1000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-throttle",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.1",
4
4
  "description": "Request throttling plugin for Spoosh - limits request frequency",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
36
- "@spoosh/core": ">=0.1.0"
36
+ "@spoosh/core": ">=0.2.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@spoosh/core": "0.1.0-beta.0",
40
- "@spoosh/test-utils": "0.1.0-beta.0"
39
+ "@spoosh/core": "0.2.0",
40
+ "@spoosh/test-utils": "0.1.1"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "tsup --watch",