@mimik/request-retry 4.0.8 → 4.0.9
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/lib/rp-axios-wrapper.js +4 -1
- package/package.json +1 -7
package/lib/rp-axios-wrapper.js
CHANGED
|
@@ -17,7 +17,10 @@ const rp = (origOptions) => {
|
|
|
17
17
|
delete options.json;
|
|
18
18
|
}
|
|
19
19
|
else delete options.json;
|
|
20
|
-
if (options.qs)
|
|
20
|
+
if (options.qs) {
|
|
21
|
+
options.params = options.qs;
|
|
22
|
+
delete options.qs;
|
|
23
|
+
}
|
|
21
24
|
return axios(options)
|
|
22
25
|
.then((res) => {
|
|
23
26
|
if (options.resolveWithFullResponse) return res;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/request-retry",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.9",
|
|
4
4
|
"description": "Request retry wrapping axios",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,12 +12,6 @@
|
|
|
12
12
|
"prepublishOnly": "npm run docs && npm run lint && npm run test-ci",
|
|
13
13
|
"commit-ready": "npm run docs && npm run lint && npm run test-ci"
|
|
14
14
|
},
|
|
15
|
-
"husky": {
|
|
16
|
-
"hooks": {
|
|
17
|
-
"pre-commit": "npm run commit-ready",
|
|
18
|
-
"pre-push": "npm run test"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
15
|
"keywords": [
|
|
22
16
|
"mimik",
|
|
23
17
|
"microservice"
|