New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nocobase/logger

Package Overview
Dependencies
Maintainers
0
Versions
449
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.0-alpha.20240807100243 to 1.3.0-alpha.20240814073548

4

lib/system-logger.js

@@ -111,3 +111,3 @@ /**

write: {
value: function(info) {
value: /* @__PURE__ */ __name(function(info) {
const infoClone = Object.assign({}, defaultRequestMetadata, info);

@@ -120,3 +120,3 @@ if (info instanceof Error) {

logger.write(infoClone);
}
}, "value")
}

@@ -123,0 +123,0 @@ });

@@ -49,13 +49,13 @@ /**

const Transports = {
console: (options) => new import_winston.default.transports.Console(options),
file: (options) => new import_winston.default.transports.File({
console: /* @__PURE__ */ __name((options) => new import_winston.default.transports.Console(options), "console"),
file: /* @__PURE__ */ __name((options) => new import_winston.default.transports.File({
maxsize: Number(process.env.LOGGER_MAX_SIZE) || 1024 * 1024 * 20,
maxFiles: Number(process.env.LOGGER_MAX_FILES) || 10,
...options
}),
dailyRotateFile: (options) => new import_winston.default.transports.DailyRotateFile({
}), "file"),
dailyRotateFile: /* @__PURE__ */ __name((options) => new import_winston.default.transports.DailyRotateFile({
maxSize: Number(process.env.LOGGER_MAX_SIZE),
maxFiles: Number(process.env.LOGGER_MAX_FILES) || "14d",
...options
})
}), "dailyRotateFile")
};

@@ -76,15 +76,15 @@ const getTransports = /* @__PURE__ */ __name((options) => {

const transports = {
console: () => Transports.console({
console: /* @__PURE__ */ __name(() => Transports.console({
format: import_winston.default.format.combine(format)
}),
file: () => Transports.file({
}), "console"),
file: /* @__PURE__ */ __name(() => Transports.file({
dirname,
filename: filename.includes(".log") ? filename : `${filename}.log`,
format
}),
dailyRotateFile: () => Transports.dailyRotateFile({
}), "file"),
dailyRotateFile: /* @__PURE__ */ __name(() => Transports.dailyRotateFile({
dirname,
filename: filename.includes("%DATE%") || filename.includes(".log") ? filename : `${filename}_%DATE%.log`,
format
})
}), "dailyRotateFile")
};

@@ -91,0 +91,0 @@ return (configTransports == null ? void 0 : configTransports.map((t) => typeof t === "string" ? transports[t]() : t)) || transports["console"]();

{
"name": "@nocobase/logger",
"version": "1.3.0-alpha.20240807100243",
"version": "1.3.0-alpha.20240814073548",
"description": "nocobase logging library",

@@ -21,3 +21,3 @@ "license": "AGPL-3.0",

},
"gitHead": "540c3fe4cfb7c20de0e6639f935a98b736d7b754"
"gitHead": "cb195a2da766088e2a368f60ee2e933579d0987c"
}
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