Comparing version 0.16.2 to 0.16.3
@@ -76,8 +76,8 @@ 'use strict'; | ||
var _a, _b; | ||
var _a, _b, _c, _d, _e; | ||
const levels = ['error', 'warn', 'info', 'debug']; | ||
const toLevel = (string) => levels.includes(string) ? string : null; | ||
const currentLevel = ((_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env.SOFA_DEBUG) | ||
const currentLevel = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.SOFA_DEBUG) | ||
? 'debug' | ||
: (_b = toLevel(process.env.SOFA_LOGGER_LEVEL)) !== null && _b !== void 0 ? _b : 'info'; | ||
: (_e = toLevel((_d = (_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.env) === null || _d === void 0 ? void 0 : _d.SOFA_LOGGER_LEVEL)) !== null && _e !== void 0 ? _e : 'info'; | ||
const log = (level, color, args) => { | ||
@@ -84,0 +84,0 @@ if (levels.indexOf(level) <= levels.indexOf(currentLevel)) { |
{ | ||
"name": "sofa-api", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"description": "Create REST APIs with GraphQL", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
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
91765
0