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 1.2.0 to 1.2.1

3

package.json
{
"name": "zaq",
"version": "1.2.0",
"version": "1.2.1",
"description": "Yet another fun little logging utility.",

@@ -31,2 +31,3 @@ "main": "zaq.js",

"chalk": "^1.1.3",
"moment": "^2.18.1",
"node-jawn": "^1.1.13",

@@ -33,0 +34,0 @@ "path": "^0.12.7",

const jawn = require('node-jawn');
const _ = require('underscore');
const path = require('path');
const moment = require('moment');
const fs = require('fs');

@@ -8,15 +9,22 @@ const chalk = require('chalk');

const zaq = {
version: '1.2.0',
version: '1.2.1',
verbose: true,
loggers: [ console.log ]
loggers: [ { handler: console.log } ]
};
zaq.log = (...input) => {
zaq.loggers.forEach(logger => logger(...input));
zaq.log = (input) => {
zaq.loggers.forEach(({ handler, options }) => {
if (options.timestamp) input = (chalk.dim(moment().format('l LTS '))) + input;
handler(input);
});
}
zaq.use = (logger) => {
if (zaq.loggers.indexOf(logger) === -1) zaq.loggers.push(logger);
zaq.use = (handler, options = {}) => {
return zaq.loggers.push({ handler, options });
}
zaq.unuse = (index) => {
return zaq.loggers.splice(index, 1);
}
zaq.obj = (obj = null, color = 'cyan') => {

@@ -23,0 +31,0 @@ let msg = chalk[color]('\n >>>> ');

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