@spoosh/plugin-retry 0.1.4 → 0.1.6

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Automatic retry plugin for Spoosh with configurable attempts and delay.
4
4
 
5
- **[Documentation](https://spoosh.dev/docs/plugins/retry)** · **Requirements:** TypeScript >= 5.0 · **Peer Dependencies:** `@spoosh/core`
5
+ **[Documentation](https://spoosh.dev/docs/react/plugins/retry)** · **Requirements:** TypeScript >= 5.0 · **Peer Dependencies:** `@spoosh/core`
6
6
 
7
7
  ## Installation
8
8
 
@@ -21,10 +21,10 @@ const client = new Spoosh<ApiSchema, Error>("/api").use([
21
21
  ]);
22
22
 
23
23
  // Per-query override
24
- useRead((api) => api.posts.$get(), { retries: 5, retryDelay: 2000 });
24
+ useRead((api) => api("posts").GET(), { retries: 5, retryDelay: 2000 });
25
25
 
26
26
  // Disable retries for a specific request
27
- useRead((api) => api.posts.$get(), { retries: false });
27
+ useRead((api) => api("posts").GET(), { retries: false });
28
28
  ```
29
29
 
30
30
  ## Options
package/dist/index.d.mts CHANGED
@@ -29,7 +29,7 @@ type RetryWriteResult = object;
29
29
  *
30
30
  * @param config - Plugin configuration
31
31
  *
32
- * @see {@link https://spoosh.dev/docs/plugins/retry | Retry Plugin Documentation}
32
+ * @see {@link https://spoosh.dev/docs/react/plugins/retry | Retry Plugin Documentation}
33
33
  *
34
34
  * @example
35
35
  * ```ts
@@ -42,7 +42,7 @@ type RetryWriteResult = object;
42
42
  * ]);
43
43
  *
44
44
  * // Per-query override
45
- * useRead((api) => api.posts.$get(), {
45
+ * useRead((api) => api("posts").GET(), {
46
46
  * retries: 5,
47
47
  * retryDelay: 2000,
48
48
  * });
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ type RetryWriteResult = object;
29
29
  *
30
30
  * @param config - Plugin configuration
31
31
  *
32
- * @see {@link https://spoosh.dev/docs/plugins/retry | Retry Plugin Documentation}
32
+ * @see {@link https://spoosh.dev/docs/react/plugins/retry | Retry Plugin Documentation}
33
33
  *
34
34
  * @example
35
35
  * ```ts
@@ -42,7 +42,7 @@ type RetryWriteResult = object;
42
42
  * ]);
43
43
  *
44
44
  * // Per-query override
45
- * useRead((api) => api.posts.$get(), {
45
+ * useRead((api) => api("posts").GET(), {
46
46
  * retries: 5,
47
47
  * retryDelay: 2000,
48
48
  * });
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-retry",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Automatic retry plugin for Spoosh with configurable attempts and delay",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/nxnom/spoosh.git",
8
+ "url": "git+https://github.com/spooshdev/spoosh.git",
9
9
  "directory": "packages/plugin-retry"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/nxnom/spoosh/issues"
12
+ "url": "https://github.com/spooshdev/spoosh/issues"
13
13
  },
14
- "homepage": "https://spoosh.dev/react/docs/plugins/retry",
14
+ "homepage": "https://spoosh.dev/docs/react/plugins/retry",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
@@ -36,7 +36,7 @@
36
36
  "@spoosh/core": ">=0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@spoosh/core": "0.4.2",
39
+ "@spoosh/core": "0.10.0",
40
40
  "@spoosh/test-utils": "0.1.5"
41
41
  },
42
42
  "scripts": {