caterpillar
Advanced tools
Comparing version 1.1.2 to 1.1.3
## History | ||
- v1.1.3 October 18, 2012 | ||
- Updated cli-color from 0.1 to 0.2 | ||
- Make cli-color an optional dependency | ||
- v1.1.2 August 10, 2012 | ||
@@ -4,0 +8,0 @@ - Rejigged directory structure |
@@ -9,3 +9,7 @@ // Generated by CoffeeScript 1.3.3 | ||
cliColor = require('cli-color'); | ||
try { | ||
cliColor = require('cli-color'); | ||
} catch (err) { | ||
cliColor = null; | ||
} | ||
@@ -174,3 +178,3 @@ Formatter = (function() { | ||
} else { | ||
color = color && cliColor[color] || function(str) { | ||
color = color && (cliColor != null ? cliColor[color] : void 0) || function(str) { | ||
return str; | ||
@@ -180,3 +184,3 @@ }; | ||
debugFormatter = false; | ||
messageFormatter = cliColor.bold; | ||
messageFormatter = color && (cliColor != null ? cliColor.bold : void 0); | ||
messageString = "" + levelName + " " + message; | ||
@@ -183,0 +187,0 @@ if (messageFormatter) { |
{ | ||
"name": "caterpillar", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Caterpillar is an awesome, simple console logger for node.js. It supports grouping of messages, filtering log levels, colors, times, modules, custom formatters and custom transports. It's awesome.", | ||
@@ -30,8 +30,8 @@ "homepage": "https://github.com/bevry/caterpillar", | ||
}, | ||
"dependencies": { | ||
"cli-color": "0.1.x" | ||
"dependencies": {}, | ||
"optionalDependencies": { | ||
"cli-color": "0.2.x" | ||
}, | ||
"devDependencies": { | ||
"coffee-script": "1.3.x", | ||
"docco": "0.3.x" | ||
"coffee-script": "1.3.x" | ||
}, | ||
@@ -38,0 +38,0 @@ "directories": { |
@@ -10,3 +10,3 @@ # Caterpillar | ||
Running the [console example](https://github.com/bevry/caterpillar/blob/master/examples/console.coffee#files) with `coffee examples/console.coffee` | ||
Running the [console example](https://github.com/bevry/caterpillar/blob/master/example/console.coffee#files) with `coffee examples/console.coffee` | ||
@@ -18,3 +18,3 @@ <img src="https://github.com/bevry/caterpillar/raw/master/media/caterpillar-normal.png"/> | ||
Running the [console example](https://github.com/bevry/caterpillar/blob/master/examples/console.coffee#files) with `coffee examples/console.coffee -d` | ||
Running the [console example](https://github.com/bevry/caterpillar/blob/master/example/console.coffee#files) with `coffee examples/console.coffee -d` | ||
@@ -28,3 +28,3 @@ When you set the log level to level 7 (debug level), then the `ConsoleFormatter` will also output a debug line, containing the time, file, function and line number of what triggered the log message | ||
Please refer to the [console example](https://github.com/bevry/caterpillar/blob/master/examples/console.coffee#files) for usage | ||
Please refer to the [console example](https://github.com/bevry/caterpillar/blob/master/example/console.coffee#files) for usage | ||
@@ -31,0 +31,0 @@ |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
102696
1
428
0
0
+ Addedcli-color@0.2.3(transitive)
+ Addedes5-ext@0.9.2(transitive)
+ Addedevent-emitter@0.2.2(transitive)
+ Addedmemoizee@0.2.6(transitive)
+ Addednext-tick@0.1.0(transitive)
- Removedcli-color@0.1.x
- Removedcli-color@0.1.7(transitive)
- Removedes5-ext@0.8.2(transitive)