@arrowsphere/api-client 3.355.0-rc.fdi.1 → 3.355.0-rc.fdi.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/build/axiosSingleton.js +14 -0
- package/package.json +1 -1
package/build/axiosSingleton.js
CHANGED
|
@@ -128,6 +128,20 @@ class AxiosSingleton {
|
|
|
128
128
|
else if (typeof value === 'object' && value !== null) {
|
|
129
129
|
sanitizedCopy[key] = AxiosSingleton.sanitizeObject(value, fieldsToObfuscate, seen); // 🔄 Récursion avec WeakMap
|
|
130
130
|
}
|
|
131
|
+
else if (typeof value === 'string') {
|
|
132
|
+
try {
|
|
133
|
+
const parsed = JSON.parse(value);
|
|
134
|
+
if (parsed && typeof parsed === 'object') {
|
|
135
|
+
sanitizedCopy[key] = JSON.stringify(AxiosSingleton.sanitizeObject(parsed, fieldsToObfuscate, seen));
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
sanitizedCopy[key] = value;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (_a) {
|
|
142
|
+
sanitizedCopy[key] = value;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
131
145
|
else {
|
|
132
146
|
sanitizedCopy[key] = value;
|
|
133
147
|
}
|
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.355.0-rc.fdi.
|
|
7
|
+
"version": "3.355.0-rc.fdi.2",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|