Comparing version 0.8.5 to 0.8.6
@@ -90,9 +90,2 @@ "use strict"; | ||
var customMethos = arguments[0].methods; | ||
if(customMethos) { | ||
customMethos = Array.isArray(customMethos) ? customMethos : [customMethos]; | ||
_config.methods = _config.methods.concat(customMethos); | ||
} | ||
delete arguments[0].methods; | ||
// union user's config and default | ||
@@ -99,0 +92,0 @@ _config = utils.union(_config, arguments); |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"author": "LI Long <lilong@gmail.com>", | ||
@@ -12,0 +12,0 @@ "license": "MIT", |
@@ -297,1 +297,10 @@ "use strict"; | ||
exports["simple"] = function() { | ||
var logger = require('../').console(); | ||
var o = logger.log('hello'); | ||
assert.equal(o['message'], 'hello'); | ||
assert.equal(o['file'], 'test.js'); | ||
assert.equal(o['line'], 299); | ||
assert.equal(o['level'], 0); | ||
} | ||
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
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
54992
1116