Comparing version 0.0.6 to 1.0.0
@@ -16,4 +16,2 @@ var winston = require('winston'); | ||
showNamespace: false, | ||
env_module: "", | ||
showRequestId: false, | ||
level: "debug", | ||
@@ -24,2 +22,3 @@ namespaces: "codefresh,codefresh:*", | ||
baseNamespace: "codefresh", | ||
fields: {}, | ||
}; | ||
@@ -160,8 +159,11 @@ | ||
} | ||
if (globalOptions.env_module){ | ||
data.env_module = globalOptions.env_module; | ||
if(globalOptions.fields){ | ||
_.map(globalOptions.fields, (value, key) => { | ||
if(_.isFunction(value)){ | ||
data[key] = value(); | ||
} else { | ||
data[key] = value; | ||
} | ||
}); | ||
} | ||
if (globalOptions.showRequestId && domain.active && domain.active.requestId){ | ||
data.requestId = domain.active.requestId; | ||
} | ||
oldArguments.push(data); | ||
@@ -168,0 +170,0 @@ return oldArguments; |
{ | ||
"name": "cf-logs", | ||
"version": "0.0.6", | ||
"version": "1.0.0", | ||
"description": "codefresh logs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
684
1
0
31222