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

@ascot/log

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ascot/log - npm Package Compare versions

Comparing version 2.0.28 to 2.0.29

15

logger.js

@@ -26,8 +26,10 @@ "use strict";

(function (logs) {
let loggerConfig = {
name: null,
level: models_1.DEFAULT_LOG_LEVEL
};
function config() {
return global.logger || {
name: null,
level: models_1.DEFAULT_LOG_LEVEL
};
}
;
function setup(config) {
loggerConfig = config;
global.logger = config;

@@ -64,2 +66,3 @@ process.on("unhandledRejection", (reason, promise) => onUnhandledRejection(reason, promise));

options = options || {};
let loggerConfig = config();
if (loggerConfig && !loggerConfig.name) {

@@ -99,2 +102,3 @@ try {

const typeFn = models_1.LogLevelColors[level];
let loggerConfig = config();
let prefix = options && options.prefix;

@@ -151,3 +155,2 @@ let name = loggerConfig.name || "?";

logs.colors = chalk_1.default;
loggerConfig = global.logger || { level: "verbose" };
/*

@@ -154,0 +157,0 @@ export function stream(options: { prefix: string; level?: LogLevel; }) {

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "2.0.28"
"version": "2.0.29"
}
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