@spoosh/plugin-debounce 0.1.2 → 0.1.4
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.
- package/README.md +1 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -16,10 +16,7 @@ npm install @spoosh/plugin-debounce
|
|
|
16
16
|
import { Spoosh } from "@spoosh/core";
|
|
17
17
|
import { debouncePlugin } from "@spoosh/plugin-debounce";
|
|
18
18
|
|
|
19
|
-
const client = new Spoosh<ApiSchema, Error>("/api")
|
|
20
|
-
.use([
|
|
21
|
-
debouncePlugin(),
|
|
22
|
-
]);
|
|
19
|
+
const client = new Spoosh<ApiSchema, Error>("/api").use([debouncePlugin()]);
|
|
23
20
|
|
|
24
21
|
// Wait 300ms after typing stops before fetching
|
|
25
22
|
const { data } = useRead(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-debounce",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Request debouncing plugin for Spoosh - waits for inactivity before fetching",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/nxnom/spoosh/issues"
|
|
13
13
|
},
|
|
14
|
-
"homepage": "https://spoosh.dev/docs/plugins/debounce",
|
|
14
|
+
"homepage": "https://spoosh.dev/react/docs/plugins/debounce",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@spoosh/core": ">=0.
|
|
36
|
+
"@spoosh/core": ">=0.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/
|
|
40
|
-
"@spoosh/
|
|
39
|
+
"@spoosh/test-utils": "0.1.5",
|
|
40
|
+
"@spoosh/core": "0.4.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "tsup --watch",
|