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

zaq

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zaq - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

4

package.json
{
"name": "zaq",
"version": "2.1.5",
"version": "2.1.6",
"description": "Yet another fun little logging utility.",
"main": "zaq.js",
"main": "index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "node tests/main.js"

@@ -24,3 +24,3 @@ const fs = require('fs');

const gutter = ' '.repeat(gutterSize);
return prefix + gutter;

@@ -53,3 +53,3 @@ }

const deprecationWarning = `zaq method ${red(name)} is deprecated and will be removed in future versions of zaq.`;
zaq.warn(deprecationWarning);

@@ -60,3 +60,3 @@

const replacementWarning = `${dim('Using alternative method')} ${replacementName ? blue(replacementName) : replacement.name} ${dim('instead.')}`
zaq.warn(replacementWarning);

@@ -78,12 +78,12 @@

let { timestamps, logLevel, acceptLevels, stripColors } = options;
const timestamp = timestamps ? dim(moment().format()) : null;
switch (true) {
case timestamps:
input = timestamp + input.split('\n').join('\n' + timestamp);
case stripColors:
input = stripAnsi(input);
case (isNumber(logLevel) && getLevelValue(level) < logLevel):

@@ -93,3 +93,3 @@ case (isArray(acceptLevels) && !acceptLevels.includes(level)):

return;
case isFunction(handler):

@@ -109,3 +109,3 @@ return handler(input);

throw new TypeError('zaq.dispose requires a valid handler index for removal.');
return delete zaq.loggers[index];

@@ -254,3 +254,3 @@ }

const output = `${NAMESPACE} ${centered ? `${filler} ${text} ${filler}` : `${text} ${filler}`}`;
return zaq.space(output, space, 'info');

@@ -262,5 +262,5 @@ };

const basename = path.basename(file);
let stats;
try {

@@ -271,10 +271,10 @@ stats = fs.statSync(file);

}
let filesize = (stats.size / 1024).toFixed(2);
zaq.info(`File ${blue.italic(basename)} is ${blue(filesize)} kb`);
};
namespaceCache.set(namespace, zaq);
return zaq;

@@ -281,0 +281,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