@mimik/request-retry 4.0.1 → 4.0.2
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 +3 -1
- package/eslint.config.js +1 -1
- package/index.js +5 -3
- package/package.json +17 -17
package/README.md
CHANGED
package/eslint.config.js
CHANGED
package/index.js
CHANGED
|
@@ -39,7 +39,9 @@ Promise.config({ cancellation: true });
|
|
|
39
39
|
/**
|
|
40
40
|
* @module request-retry
|
|
41
41
|
* @example
|
|
42
|
-
*
|
|
42
|
+
* import { rpRetry } from '@mimik/request-retry';
|
|
43
|
+
* or
|
|
44
|
+
* import rp from '@mimik/request-retry';
|
|
43
45
|
*/
|
|
44
46
|
|
|
45
47
|
/**
|
|
@@ -88,7 +90,7 @@ Promise.config({ cancellation: true });
|
|
|
88
90
|
* - `body` takes precedence on `json` if `json` is an object and are used to assign `data`
|
|
89
91
|
* - `qs` is used to assign to `params`
|
|
90
92
|
*/
|
|
91
|
-
const rpRetry = (origOptions) => {
|
|
93
|
+
export const rpRetry = (origOptions) => {
|
|
92
94
|
const startHrTime = process.hrtime();
|
|
93
95
|
const options = origOptions;
|
|
94
96
|
const { metrics } = options;
|
|
@@ -198,6 +200,6 @@ const rpRetry = (origOptions) => {
|
|
|
198
200
|
});
|
|
199
201
|
};
|
|
200
202
|
|
|
201
|
-
export {
|
|
203
|
+
export default {
|
|
202
204
|
rpRetry,
|
|
203
205
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/request-retry",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Request retry wrapping axios",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
"url": "https://bitbucket.org/mimiktech/request-retry"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mimik/request-helper": "^2.0.
|
|
33
|
-
"@mimik/response-helper": "^4.0.
|
|
34
|
-
"@mimik/sumologic-winston-logger": "^2.0.
|
|
35
|
-
"axios": "1.
|
|
32
|
+
"@mimik/request-helper": "^2.0.2",
|
|
33
|
+
"@mimik/response-helper": "^4.0.3",
|
|
34
|
+
"@mimik/sumologic-winston-logger": "^2.0.3",
|
|
35
|
+
"axios": "1.10.0",
|
|
36
36
|
"bluebird": "3.7.2",
|
|
37
37
|
"lodash.clone": "4.5.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@eslint/js": "9.
|
|
41
|
-
"@mimik/eslint-plugin-document-env": "^2.0.
|
|
42
|
-
"@stylistic/eslint-plugin": "
|
|
43
|
-
"acorn": "8.
|
|
44
|
-
"body-parser": "
|
|
40
|
+
"@eslint/js": "9.31.0",
|
|
41
|
+
"@mimik/eslint-plugin-document-env": "^2.0.8",
|
|
42
|
+
"@stylistic/eslint-plugin": "5.2.0",
|
|
43
|
+
"acorn": "8.15.0",
|
|
44
|
+
"body-parser": "2.2.0",
|
|
45
45
|
"c8": "10.1.3",
|
|
46
|
-
"chai": "5.2.
|
|
47
|
-
"eslint": "9.
|
|
48
|
-
"eslint-plugin-import": "2.
|
|
49
|
-
"express": "
|
|
46
|
+
"chai": "5.2.1",
|
|
47
|
+
"eslint": "9.31.0",
|
|
48
|
+
"eslint-plugin-import": "2.32.0",
|
|
49
|
+
"express": "5.1.0",
|
|
50
50
|
"husky": "9.1.7",
|
|
51
|
-
"jsdoc-to-markdown": "9.1.
|
|
52
|
-
"mocha": "11.1
|
|
51
|
+
"jsdoc-to-markdown": "9.1.2",
|
|
52
|
+
"mocha": "11.7.1",
|
|
53
53
|
"mochawesome": "7.1.3",
|
|
54
|
-
"sinon": "
|
|
54
|
+
"sinon": "21.0.0"
|
|
55
55
|
}
|
|
56
56
|
}
|