Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nocobase/logger

Package Overview
Dependencies
Maintainers
0
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nocobase/logger - npm Package Compare versions

Comparing version 1.3.39-beta to 1.4.0-alpha

8

lib/request-logger.js

@@ -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,

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc