@mimik/request-retry 4.0.4 → 4.0.5

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.
@@ -1,12 +1,10 @@
1
1
  import axios from 'axios';
2
2
  import { getRichError } from '@mimik/response-helper';
3
- import rfdc from 'rfdc';
4
-
5
- const clone = rfdc();
6
3
 
7
4
  const rp = (origOptions) => {
8
- const options = clone(origOptions);
5
+ const options = { ...origOptions }; // we will not do deep manipulation
9
6
 
7
+ if (options.metrics) delete options.metrics; // metrics has circular references
10
8
  if (options.uri) options.url = options.uri;
11
9
  delete options.uri;
12
10
  delete options.validateStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/request-retry",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Request retry wrapping axios",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -32,9 +32,8 @@
32
32
  "@mimik/request-helper": "^2.0.2",
33
33
  "@mimik/response-helper": "^4.0.6",
34
34
  "@mimik/sumologic-winston-logger": "^2.1.6",
35
- "axios": "1.12.1",
36
- "bluebird": "3.7.2",
37
- "rfdc": "1.4.1"
35
+ "axios": "1.12.2",
36
+ "bluebird": "3.7.2"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@eslint/js": "9.35.0",