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

@dbux/common

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbux/common - npm Package Compare versions

Comparing version 0.1.5 to 0.1.7

4

package.json
{
"name": "@dbux/common",
"version": "0.1.5",
"version": "0.1.7",
"description": "",

@@ -17,3 +17,3 @@ "module": "src/index.js",

"_moduleAliases": {},
"gitHead": "8b86112956ad0ffdda025886b1503ea3a1ba4959"
"gitHead": "fab42020aa9f1914b0af362496ed930343164f78"
}
/* eslint no-console: 0 */
import NanoEvents from 'nanoevents';
import EmptyArray from '../util/EmptyArray';

@@ -81,2 +82,3 @@ const errors = [];

const f = logFunctions[name];
// const nsArgs = (ns && [ns] || EmptyArray);
this[name] = (...args) => {

@@ -91,3 +93,3 @@ f(ns, ...args);

export function newLogger(ns) {
return new Logger(`DBUX ${ns}`);
return new Logger(ns && `DBUX ${ns}`);
}

@@ -132,4 +134,8 @@

function wrapNs(ns) {
return ns && `[${ns}]` || '';
}
export function loglog(ns, ...args) {
outputStreams.log(`[${ns}]`, ...args);
outputStreams.log(wrapNs(ns), ...args);
}

@@ -140,10 +146,10 @@

// color decoration
// prettyDebug(`[${ns}]`, ...args);
// prettyDebug(wrapNs(ns), ...args);
// no color
outputStreams.debug(`[${ns}]`, ...args);
outputStreams.debug(wrapNs(ns), ...args);
}
export function logWarn(ns, ...args) {
ns = `[${ns}]`;
ns = wrapNs(ns);
outputStreams.warn(ns, ...args);

@@ -154,3 +160,3 @@ report('warn', ns, ...args);

export function logError(ns, ...args) {
ns = `[${ns}]`;
ns = wrapNs(ns);
outputStreams.error(ns, ...args);

@@ -157,0 +163,0 @@ report('error', ns, ...args);

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