Socket
Socket
Sign inDemoInstall

@falsy/logger

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@falsy/logger - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

5

build/__tests__/logger.spec.js

@@ -75,2 +75,7 @@ "use strict";

}));
it('should not log debug when log level is info ', () => __awaiter(void 0, void 0, void 0, function* () {
logger().debug(undefined, 'function-2', 'my message');
const log = yield readLog();
expect(log).toEqual(['']);
}));
it('logs error', () => __awaiter(void 0, void 0, void 0, function* () {

@@ -77,0 +82,0 @@ logger().error('tr1', 'function-2', 'my message', { message: 'System threw error' });

2

build/index.js

@@ -85,3 +85,3 @@ "use strict";

new winston_1.transports.Console({
level: 'debug',
level: config.level || 'debug',
format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.timestamp(), winston_1.format.json(), customFormat),

@@ -88,0 +88,0 @@ handleExceptions: true,

{
"name": "@falsy/logger",
"version": "3.0.1",
"version": "3.0.2",
"packageManager": "yarn@3.0.1",

@@ -25,3 +25,2 @@ "main": "build/index.js",

"@types/winston": "^2.4.4",
"@types/winston-syslog": "^2.4.0",
"jest": "^27.5.1",

@@ -28,0 +27,0 @@ "jest-junit": "^13.0.0",

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