cli-logger
Advanced tools
Comparing version 0.5.29 to 0.5.30
17
index.js
@@ -86,2 +86,3 @@ var EventEmitter = require('events').EventEmitter | ||
conf = conf || {}; | ||
constants(this); | ||
this.keys = keys; | ||
@@ -809,2 +810,11 @@ this.bitwise = (bitwise === true); | ||
function constants(target) { | ||
for(z in LEVELS) { | ||
target[z.toUpperCase()] = LEVELS[z]; | ||
} | ||
for(z in BITWISE) { | ||
target['BW_' + z.toUpperCase()] = BITWISE[z]; | ||
} | ||
} | ||
module.exports.levels = LEVELS; | ||
@@ -820,8 +830,3 @@ module.exports.bitwise = BITWISE; | ||
module.exports.RingBuffer = RingBuffer; | ||
for(z in LEVELS) { | ||
module.exports[z.toUpperCase()] = LEVELS[z]; | ||
} | ||
for(z in BITWISE) { | ||
module.exports['BW_' + z.toUpperCase()] = BITWISE[z]; | ||
} | ||
constants(module.exports); | ||
module.exports.RAW = RAW; | ||
@@ -828,0 +833,0 @@ module.exports.STREAM = STREAM; |
{ | ||
"name": "cli-logger", | ||
"version": "0.5.29", | ||
"version": "0.5.30", | ||
"description": "Logger implementation for command line interfaces", | ||
@@ -5,0 +5,0 @@ "author": "muji <noop@xpm.io>", |
123662
3084