@arrowsphere/api-client 3.180.0-rc.fdi.7 → 3.180.0-rc.fdi.8
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 +2 -1
- package/package.json +1 -1
package/build/axiosSingleton.js
CHANGED
|
@@ -52,6 +52,7 @@ class AxiosSingleton {
|
|
|
52
52
|
return response;
|
|
53
53
|
}
|
|
54
54
|
static sanitizeObject(obj, fieldsToObfuscate = ['apiKey', 'password'], seen = new WeakMap()) {
|
|
55
|
+
console.log('obj', obj);
|
|
55
56
|
if (!obj || typeof obj !== 'object')
|
|
56
57
|
return obj;
|
|
57
58
|
// Vérifie si l'objet a déjà été traité (évite les boucles infinies)
|
|
@@ -62,7 +63,7 @@ class AxiosSingleton {
|
|
|
62
63
|
// Stocke l'objet dans WeakMap avant la récursion
|
|
63
64
|
seen.set(obj, sanitizedCopy);
|
|
64
65
|
for (const [key, value] of Object.entries(obj)) {
|
|
65
|
-
if (fieldsToObfuscate.includes(key
|
|
66
|
+
if (fieldsToObfuscate.includes(key)) {
|
|
66
67
|
sanitizedCopy[key] = '***'; // Masquage des champs sensibles
|
|
67
68
|
}
|
|
68
69
|
else if (typeof value === 'object' && value !== null) {
|
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.8",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|