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

@strapi/logger

Package Overview
Dependencies
Maintainers
8
Versions
1510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strapi/logger - npm Package Compare versions

Comparing version 0.0.0-experimental.a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd to 0.0.0-experimental.a38c6dc3717b2e6e7da00e45bd349b69a6469aac

dist/formats/detailed-log.d.ts

4

dist/configs/output-file-configuration.d.ts

@@ -1,4 +0,4 @@

import { LoggerOptions } from 'winston';
declare const _default: (filename: string) => LoggerOptions;
import { transports, LoggerOptions } from 'winston';
declare const _default: (filename: string, fileTransportOptions?: transports.FileTransportOptions) => LoggerOptions;
export default _default;
//# sourceMappingURL=output-file-configuration.d.ts.map

@@ -5,2 +5,3 @@ export { default as prettyPrint } from './pretty-print';

export { default as excludeColors } from './exclude-colors';
export { default as detailedLogs } from './detailed-log';
//# sourceMappingURL=index.d.ts.map

@@ -68,4 +68,16 @@ "use strict";

});
const detailedLog = winston.format.printf(({ message, level, timestamp }) => {
if (typeof message !== "string") {
return message;
}
const newMessage = `[${timestamp}] ${level}: ${message}`;
return newMessage.replace(
// eslint-disable-next-line no-control-regex
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,
""
);
});
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
detailedLogs: detailedLog,
excludeColors,

@@ -83,3 +95,3 @@ levelFilter,

};
const outputFileConfiguration = (filename) => {
const outputFileConfiguration = (filename, fileTransportOptions = {}) => {
return {

@@ -91,3 +103,8 @@ level: LEVEL_LABEL,

new winston.transports.Console(),
new winston.transports.File({ level: "error", filename, format: excludeColors })
new winston.transports.File({
level: "error",
filename,
format: excludeColors,
...fileTransportOptions
})
]

@@ -94,0 +111,0 @@ };

{
"name": "@strapi/logger",
"version": "0.0.0-experimental.a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd",
"version": "0.0.0-experimental.a38c6dc3717b2e6e7da00e45bd349b69a6469aac",
"description": "Strapi's logger",

@@ -37,3 +37,2 @@ "homepage": "https://strapi.io",

"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",

@@ -47,5 +46,5 @@ "watch": "pack-up watch"

"devDependencies": {
"@strapi/pack-up": "0.0.0-experimental.a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd",
"eslint-config-custom": "0.0.0-experimental.a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd",
"tsconfig": "0.0.0-experimental.a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd"
"@strapi/pack-up": "4.23.0",
"eslint-config-custom": "0.0.0-experimental.a38c6dc3717b2e6e7da00e45bd349b69a6469aac",
"tsconfig": "0.0.0-experimental.a38c6dc3717b2e6e7da00e45bd349b69a6469aac"
},

@@ -56,3 +55,3 @@ "engines": {

},
"gitHead": "a32f1b7e76de72b7ef37f283aa8f7e82c46d5acd"
"gitHead": "a38c6dc3717b2e6e7da00e45bd349b69a6469aac"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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