@backstage/backend-app-api 0.7.1 → 0.7.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/CHANGELOG.md +6 -0
- package/alpha/package.json +1 -1
- package/dist/index.cjs.js +14 -9
- 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
|
@@ -857,16 +857,21 @@ const _WinstonLogger = class _WinstonLogger {
|
|
|
857
857
|
static redacter() {
|
|
858
858
|
const redactionSet = /* @__PURE__ */ new Set();
|
|
859
859
|
let redactionPattern = void 0;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
860
|
+
const replace = (obj) => {
|
|
861
|
+
var _a;
|
|
862
|
+
for (const key in obj) {
|
|
863
|
+
if (obj.hasOwnProperty(key)) {
|
|
864
|
+
if (typeof obj[key] === "object") {
|
|
865
|
+
obj[key] = replace(obj[key]);
|
|
866
|
+
} else if (typeof obj[key] === "string") {
|
|
867
|
+
obj[key] = (_a = obj[key]) == null ? void 0 : _a.replace(redactionPattern, "[REDACTED]");
|
|
868
|
+
}
|
|
867
869
|
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
+
}
|
|
871
|
+
return obj;
|
|
872
|
+
};
|
|
873
|
+
return {
|
|
874
|
+
format: winston.format(replace)(),
|
|
870
875
|
add(newRedactions) {
|
|
871
876
|
let added = 0;
|
|
872
877
|
for (const redactionToTrim of newRedactions) {
|