@spoosh/plugin-retry 0.1.6 → 0.1.8
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -34,8 +34,8 @@ function retryPlugin(config = {}) {
|
|
|
34
34
|
const pluginOptions = context.pluginOptions;
|
|
35
35
|
const retries = pluginOptions?.retries ?? defaultRetries;
|
|
36
36
|
const retryDelay = pluginOptions?.retryDelay ?? defaultRetryDelay;
|
|
37
|
-
context.
|
|
38
|
-
...context.
|
|
37
|
+
context.request = {
|
|
38
|
+
...context.request,
|
|
39
39
|
retries,
|
|
40
40
|
retryDelay
|
|
41
41
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -8,8 +8,8 @@ function retryPlugin(config = {}) {
|
|
|
8
8
|
const pluginOptions = context.pluginOptions;
|
|
9
9
|
const retries = pluginOptions?.retries ?? defaultRetries;
|
|
10
10
|
const retryDelay = pluginOptions?.retryDelay ?? defaultRetryDelay;
|
|
11
|
-
context.
|
|
12
|
-
...context.
|
|
11
|
+
context.request = {
|
|
12
|
+
...context.request,
|
|
13
13
|
retries,
|
|
14
14
|
retryDelay
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-retry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Automatic retry plugin for Spoosh with configurable attempts and delay",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@spoosh/core": ">=0.
|
|
36
|
+
"@spoosh/core": ">=0.11.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/core": "0.
|
|
40
|
-
"@spoosh/test-utils": "0.1.
|
|
39
|
+
"@spoosh/core": "0.11.1",
|
|
40
|
+
"@spoosh/test-utils": "0.1.6"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "tsup --watch",
|