@blacklane/kiev-js
Advanced tools
Comparing version 0.1.4 to 0.2.0
@@ -33,6 +33,3 @@ 'use strict'; | ||
}; | ||
{ | ||
return data; | ||
} | ||
return JSON.stringify(data); | ||
} | ||
@@ -39,0 +36,0 @@ /** |
@@ -29,7 +29,2 @@ var LogLevel; | ||
}; | ||
if (process.env.NODE_ENV === 'development') { | ||
return data; | ||
} | ||
return JSON.stringify(data); | ||
@@ -36,0 +31,0 @@ } |
{ | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -39,18 +39,17 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-config-standard-with-typescript": "^15.0.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^4.2.5", | ||
"tsdx": "^0.13.2", | ||
"tslib": "^1.11.1", | ||
"typescript": "^3.8.3", | ||
"husky": "^4.3.0", | ||
"jest": "^25.1.0", | ||
"ts-jest": "^25.2.1", | ||
"@types/faker": "^4.1.10" | ||
"tsdx": "^0.14.0", | ||
"tslib": "^1.14.0", | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -72,2 +71,2 @@ "description": "A simple logging library to generate JSON formatted logging messages.", | ||
"homepage": "https://github.com/blacklane/kiev-js#readme" | ||
} | ||
} |
@@ -27,2 +27,6 @@ # Kiev-js | ||
### Configuration | ||
The log will print a plain JSON object if the NODE_ENV environment variable is set to 'development'. **do not use development in production** | ||
### Tests & Linter | ||
@@ -35,2 +39,2 @@ | ||
This project is using [Simplified flow (GitHub flow)](http://handbook.int.blacklane.io/git.html#simplified-flow-github-flow) for development. Check the linked handbook for details. | ||
This project is using [Simplified flow (GitHub flow)](http://handbook.int.blacklane.io/git.html#simplified-flow-github-flow) for development. Check the linked handbook for details. |
@@ -42,6 +42,2 @@ enum LogLevel { | ||
if (process.env.NODE_ENV === 'development') { | ||
return data | ||
} | ||
return JSON.stringify(data) | ||
@@ -48,0 +44,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
15
39
26418
290