@backstage/backend-app-api 0.7.3 → 0.7.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/CHANGELOG.md +6 -0
- package/alpha/package.json +1 -1
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/alpha/package.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -863,11 +863,14 @@ const _WinstonLogger = class _WinstonLogger {
|
|
|
863
863
|
const replace = (obj) => {
|
|
864
864
|
var _a;
|
|
865
865
|
for (const key in obj) {
|
|
866
|
-
if (
|
|
866
|
+
if (Object.hasOwn(obj, key)) {
|
|
867
867
|
if (typeof obj[key] === "object") {
|
|
868
868
|
obj[key] = replace(obj[key]);
|
|
869
869
|
} else if (typeof obj[key] === "string") {
|
|
870
|
-
|
|
870
|
+
try {
|
|
871
|
+
obj[key] = (_a = obj[key]) == null ? void 0 : _a.replace(redactionPattern, "[REDACTED]");
|
|
872
|
+
} catch {
|
|
873
|
+
}
|
|
871
874
|
}
|
|
872
875
|
}
|
|
873
876
|
}
|