logginator
Advanced tools
Comparing version 1.1.8 to 1.2.0
10
index.js
@@ -76,3 +76,8 @@ var fs = require('fs'); | ||
module.exports = function (config) { | ||
module.exports = function (name, config) { | ||
if (typeof name != 'string') { | ||
config = name; | ||
name = moduleName(module); | ||
} | ||
config = config || defaultConfig; | ||
@@ -96,4 +101,3 @@ if (!Array.isArray(config)) config = []; // Handle {} as no output | ||
var tag = moduleName(module); | ||
return log.createSublogger(tag); | ||
return log.createSublogger(name); | ||
}; |
{ | ||
"name": "logginator", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"description": "Creates an instance of TaggedLogger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
6576
118
5
1