@aspecto/logger
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ "use strict"; | ||
const nodeEnv = (((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) || 'unknown').toLowerCase(); | ||
const isDev = nodeEnv.includes('dev') || nodeEnv.includes('blackbox') || nodeEnv.includes('testing'); | ||
const isDev = nodeEnv.includes('dev') || nodeEnv.includes('blackbox') || nodeEnv.includes('test'); | ||
const printLog = isDev ? dev_logger_1.default : prod_logger_1.default; | ||
@@ -14,0 +14,0 @@ const createLogFn = (level, outputAs = types_1.OutputLevel.Log) => (message, extra) => printLog(level, outputAs, message, extra); |
{ | ||
"name": "@aspecto/logger", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -12,13 +12,5 @@ "main": "dist/index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@gitlab.com/habmic/aspecto-logs.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://gitlab.com/habmic/aspecto-logs/issues" | ||
}, | ||
"homepage": "https://gitlab.com/habmic/aspecto-logs#README", | ||
"dependencies": { | ||
@@ -25,0 +17,0 @@ "serialize-error": "^5.0.0" |
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12560
1.73%15
7.14%203
9.73%2
100%2
100%3
50%