Comparing version 0.0.17 to 0.0.18
@@ -29,11 +29,11 @@ var fs = require('fs'); | ||
var isWin32 = (process.platform == 'win32'); | ||
var isWindows = (process.platform == 'win32'); | ||
logger.setPrefixes({ | ||
debug: magenta + (isWin32 ? '÷' : '\u2756') + ' ' + bash, | ||
trace: cyan + (isWin32 ? '+' : '\u271A') + ' ' + bash, | ||
log: grey + (isWin32 ? '\u2192' : '\u279C') + ' ' + bash, | ||
info: green + (isWin32 ? '\u221A' : '\u2714') + ' ' + bash, | ||
error: red + (isWin32 ? '\u00D7' : '\u2716') + ' ' + bash, | ||
warn: yellow + (isWin32 ? '*' : '\u2731') + ' ' + bash | ||
debug: magenta + (isWindows ? '÷' : '\u2756') + ' ' + bash, | ||
trace: cyan + (isWindows ? '+' : '\u271A') + ' ' + bash, | ||
log: grey + (isWindows ? '\u2192' : '\u279C') + ' ' + bash, | ||
info: green + (isWindows ? '\u221A' : '\u2714') + ' ' + bash, | ||
error: red + (isWindows ? '\u00D7' : '\u2716') + ' ' + bash, | ||
warn: yellow + (isWindows ? '*' : '\u2731') + ' ' + bash | ||
}); | ||
@@ -49,2 +49,5 @@ | ||
logger.setFormat(function (string, type) { | ||
if (string instanceof Error) { | ||
string = string.stack || string; | ||
} | ||
var color = (type == 'warn' ? yellow : (type == 'error' ? red : bash)); | ||
@@ -51,0 +54,0 @@ string = string.replace(/^\[(\w+)\] ([^\n]+)/, function (match, name, text) { |
@@ -15,25 +15,11 @@ { | ||
], | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"main": "cedar.js", | ||
"homepage": "http://github.com/lighterio/cedar", | ||
"repository": "http://github.com/lighterio/cedar.git", | ||
"bugs": { | ||
"url": "http://github.com/lighterio/cedar/issues" | ||
}, | ||
"author": { | ||
"name": "Sam Eubank", | ||
"email": "sameubank@gmail.com" | ||
}, | ||
"homepage": "https://github.com/lighterio/cedar", | ||
"repository": "https://github.com/lighterio/cedar.git", | ||
"bugs": "https://github.com/lighterio/cedar/issues", | ||
"author": "Sam Eubank <sameubank@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Sam Eubank", | ||
"email": "sameubank@gmail.com" | ||
} | ||
"Sam Eubank <sameubank@gmail.com>" | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://github.com/lighterio/cedar/blob/master/MIT-LICENSE.md" | ||
} | ||
], | ||
"engines": [ | ||
@@ -51,7 +37,8 @@ "node >= 0.2.6" | ||
"devDependencies": { | ||
"exam": "0.0.5", | ||
"zeriousify": "0.1.9", | ||
"exam": "^0.0.7", | ||
"zeriousify": "^0.1.9", | ||
"istanbul": "0.2.11", | ||
"coveralls": "2.10.0" | ||
} | ||
}, | ||
"license": "MIT" | ||
} |
# Cedar | ||
[![NPM Version](https://badge.fury.io/js/cedar.png)](http://badge.fury.io/js/cedar) | ||
[![Build Status](https://travis-ci.org/lighterio/cedar.png?branch=master)](https://travis-ci.org/lighterio/cedar) | ||
[![Code Coverage](https://coveralls.io/repos/lighterio/cedar/badge.png?branch=master)](https://coveralls.io/r/lighterio/cedar) | ||
[![Dependencies](https://david-dm.org/lighterio/cedar.png?theme=shields.io)](https://david-dm.org/lighterio/cedar) | ||
[![Support](http://img.shields.io/gittip/zerious.png)](https://www.gittip.com/lighterio/) | ||
[![NPM Version](https://img.shields.io/npm/v/cedar.svg) ![Downloads](https://img.shields.io/npm/dm/cedar.svg)](https://npmjs.org/package/cedar) | ||
[![Build Status](https://img.shields.io/travis/lighterio/cedar.svg)](https://travis-ci.org/lighterio/cedar) | ||
[![Code Coverage](https://img.shields.io/coveralls/lighterio/cedar/master.svg)](https://coveralls.io/r/lighterio/cedar) | ||
[![Dependencies](https://img.shields.io/david/lighterio/cedar.svg)](https://david-dm.org/lighterio/cedar) | ||
[![Support](https://img.shields.io/gratipay/Lighter.io.svg)](https://gratipay.com/Lighter.io/) | ||
@@ -9,0 +9,0 @@ Cedar is a Node.js logging library that is designed to be fast, simple and |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
603
23832
2