@lbu/insight
Advanced tools
Comparing version 0.0.92 to 0.0.93
{ | ||
"name": "@lbu/insight", | ||
"version": "0.0.92", | ||
"version": "0.0.93", | ||
"description": "Simple logger in NDJSON format", | ||
@@ -15,5 +15,2 @@ "main": "./index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@lbu/stdlib": "0.0.92" | ||
}, | ||
"maintainers": [ | ||
@@ -40,3 +37,3 @@ { | ||
}, | ||
"gitHead": "68be0c5c1f7177797820b1cf2ef061542004dfd3" | ||
"gitHead": "9b8657e966d916d33ccc25eda1a4d408281e178a" | ||
} |
@@ -1,4 +0,5 @@ | ||
import { environment } from "@lbu/stdlib"; | ||
import { writeNDJSON, writePretty } from "./writer.js"; | ||
let environment = undefined; | ||
/** | ||
@@ -9,2 +10,6 @@ * @param {LoggerOptions} [options] | ||
export function newLogger(options) { | ||
if (environment === undefined) { | ||
environment = JSON.parse(JSON.stringify(process.env)); | ||
} | ||
const app = environment.APP_NAME; | ||
@@ -11,0 +16,0 @@ const isProduction = |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
18101
0
480
2
- Removed@lbu/stdlib@0.0.92
- Removed@lbu/stdlib@0.0.92(transitive)
- Removed@types/node@14.14.6(transitive)
- Removeddotenv@8.2.0(transitive)
- Removedlodash.merge@4.6.2(transitive)