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

@deboxsoft/module-core

Package Overview
Dependencies
Maintainers
1
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/module-core - npm Package Compare versions

Comparing version 2.5.42 to 2.5.43

33

libs/index.js

@@ -251,3 +251,8 @@ var __defProp = Object.defineProperty;

var LOGGER_KEY = Symbol("logger");
var getLogger = () => Container.get(LOGGER_KEY);
var getLogger = () => {
if (Container.has(LOGGER_KEY)) {
return Container.get(LOGGER_KEY);
}
return createLoggerConsole();
};
var createLoggerConsole = (refresh = false) => {

@@ -258,8 +263,22 @@ if (!refresh && Container.has(LOGGER_KEY)) {

const logger = {
fatal: (...args) => console.error("fatal >>", ...args),
error: (...args) => console.error(...args),
info: (...args) => console.log(...args),
trace: (...args) => console.debug("trace >>", ...args),
debug: (...args) => console.debug(...args),
warn: (...args) => console.warn(...args)
fatal: (...args) => {
console.error("fatal >>", ...args);
},
error: (...args) => {
console.error(...args);
},
info: (...args) => {
console.log(...args);
},
trace: (...args) => {
console.debug("trace >>", ...args);
},
debug: (...args) => {
if (process.env.NODE_ENV !== "production") {
console.debug(...args);
}
},
warn: (...args) => {
console.warn(...args);
}
};

@@ -266,0 +285,0 @@ Container.set(LOGGER_KEY, logger);

{
"name": "@deboxsoft/module-core",
"version": "2.5.42",
"version": "2.5.43",
"license": "SEE LICENSE IN LICENSE",

@@ -5,0 +5,0 @@ "maintainers": [

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