@arrowsphere/api-client 3.180.0-rc.fdi.3 → 3.180.0-rc.fdi.4
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/build/axiosSingleton.js +3 -2
- package/package.json +1 -1
package/build/axiosSingleton.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AxiosSingleton = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
|
|
8
9
|
class AxiosSingleton {
|
|
9
10
|
static getInstance(configuration = {}) {
|
|
10
11
|
this._isLogging = !!configuration.isLogging;
|
|
@@ -47,7 +48,7 @@ class AxiosSingleton {
|
|
|
47
48
|
*/
|
|
48
49
|
static cleanRequestLog(request) {
|
|
49
50
|
var _a, _b, _c, _d;
|
|
50
|
-
const tempRequest =
|
|
51
|
+
const tempRequest = (0, cloneDeep_1.default)(request);
|
|
51
52
|
if ((_a = tempRequest.headers) === null || _a === void 0 ? void 0 : _a.apiKey) {
|
|
52
53
|
const apiKey = (_b = tempRequest.headers) === null || _b === void 0 ? void 0 : _b.apiKey;
|
|
53
54
|
tempRequest.headers.apiKey =
|
|
@@ -63,7 +64,7 @@ class AxiosSingleton {
|
|
|
63
64
|
*/
|
|
64
65
|
static cleanResponseLog(response) {
|
|
65
66
|
var _a, _b;
|
|
66
|
-
const tempResponse =
|
|
67
|
+
const tempResponse = (0, cloneDeep_1.default)(response);
|
|
67
68
|
if ((_a = tempResponse.config.headers) === null || _a === void 0 ? void 0 : _a.apiKey) {
|
|
68
69
|
const apiKey = (_b = tempResponse.config.headers) === null || _b === void 0 ? void 0 : _b.apiKey;
|
|
69
70
|
tempResponse.config.headers.apiKey =
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.180.0-rc.fdi.
|
|
7
|
+
"version": "3.180.0-rc.fdi.4",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|