@nocobase/logger
Advanced tools
Comparing version 1.3.39-beta to 1.4.0-alpha
@@ -45,2 +45,8 @@ /** | ||
const defaultResponseWhitelist = ["status"]; | ||
const defaultActionBlackList = [ | ||
"params.values.password", | ||
"params.values.confirmPassword", | ||
"params.values.oldPassword", | ||
"params.values.newPassword" | ||
]; | ||
const requestLogger = /* @__PURE__ */ __name((appName, requestLogger2, options) => { | ||
@@ -78,3 +84,3 @@ return async (ctx, next) => { | ||
res: (0, import_lodash.pick)(ctx.response.toJSON(), (options == null ? void 0 : options.responseWhitelist) || defaultResponseWhitelist), | ||
action: (_d = (_c = ctx.action) == null ? void 0 : _c.toJSON) == null ? void 0 : _d.call(_c), | ||
action: (0, import_lodash.omit)((_d = (_c = ctx.action) == null ? void 0 : _c.toJSON) == null ? void 0 : _d.call(_c), defaultActionBlackList), | ||
userId: (_f = (_e = ctx.auth) == null ? void 0 : _e.user) == null ? void 0 : _f.id, | ||
@@ -81,0 +87,0 @@ status: ctx.status, |
{ | ||
"name": "@nocobase/logger", | ||
"version": "1.3.39-beta", | ||
"version": "1.4.0-alpha", | ||
"description": "nocobase logging library", | ||
@@ -21,3 +21,3 @@ "license": "AGPL-3.0", | ||
}, | ||
"gitHead": "68daadf8575cddf9eeb09a1a672f9baf7aabe67a" | ||
"gitHead": "f097a2bddec152522b5645bd5d451f4c866d2060" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68827
869