Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "zaq", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Yet another fun little logging utility.", | ||
"main": "zaq.js", | ||
"scripts": { | ||
"build": "uglifyjs zaq.js -o zaq.min.js", | ||
"test": "node test.js" | ||
@@ -32,11 +31,5 @@ }, | ||
"moment": "^2.18.1", | ||
"node-jawn": "^1.1.13", | ||
"path": "^0.12.7", | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"uglify-js": "^3.0.24", | ||
"uglify-js-es6": "^2.8.9" | ||
"strip-ansi": "^4.0.0" | ||
} | ||
} |
const fs = require('fs'); | ||
const path = require('path'); | ||
const chalk = require('chalk'); | ||
const _ = require('underscore'); | ||
const moment = require('moment'); | ||
@@ -9,4 +8,3 @@ const stripAnsi = require('strip-ansi'); | ||
const zaq = { | ||
version: '1.2.6', | ||
verbose: true, | ||
version: '1.2.7', | ||
loggers: [ { handler: console.log } ] | ||
@@ -35,3 +33,3 @@ }; | ||
let msg = chalk[color]('\n >>>> '); | ||
obj = (_.isString(obj) ? obj : zaq.pretty(obj))+''; | ||
obj = (typeof obj === 'string' ? obj : zaq.pretty(obj))+''; | ||
msg += obj.split('\n').join('\n' + chalk[color].dim(' :::: ')); | ||
@@ -38,0 +36,0 @@ return msg; |
Sorry, the diff of this file is not supported yet
4
0
871774
111
+ Addedstrip-ansi@^4.0.0
+ Addedansi-regex@3.0.1(transitive)
+ Addedstrip-ansi@4.0.0(transitive)
- Removednode-jawn@^1.1.13
- Removedunderscore@^1.8.3
- Removednode-jawn@1.2.2(transitive)
- Removedunderscore@1.13.7(transitive)