@sprucelabs/spruce-skill-utils 31.2.3 → 31.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,9 +132,9 @@ export const stubLog = buildLog('STUB', {
|
|
|
132
132
|
});
|
|
133
133
|
const logLevels = ['INFO', 'WARN', 'ERROR', 'NONE'];
|
|
134
134
|
function shouldNotWrite(level) {
|
|
135
|
-
var _a, _b;
|
|
135
|
+
var _a, _b, _c, _d;
|
|
136
136
|
const requestedLogLevelStrength = logLevels.indexOf(level);
|
|
137
|
-
const allowedLogLevelStrength = logLevels.indexOf((_b = (_a =
|
|
137
|
+
const allowedLogLevelStrength = logLevels.indexOf((_d = (_c = (_b = (_a = getProcess()) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.LOG_LEVEL) === null || _c === void 0 ? void 0 : _c.toUpperCase()) !== null && _d !== void 0 ? _d : 'INFO');
|
|
138
138
|
if (allowedLogLevelStrength === -1) {
|
|
139
139
|
return false;
|
|
140
140
|
}
|
|
@@ -140,7 +140,7 @@ exports.stubLog = buildLog('STUB', {
|
|
|
140
140
|
const logLevels = ['INFO', 'WARN', 'ERROR', 'NONE'];
|
|
141
141
|
function shouldNotWrite(level) {
|
|
142
142
|
const requestedLogLevelStrength = logLevels.indexOf(level);
|
|
143
|
-
const allowedLogLevelStrength = logLevels.indexOf(
|
|
143
|
+
const allowedLogLevelStrength = logLevels.indexOf(getProcess()?.env?.LOG_LEVEL?.toUpperCase() ?? 'INFO');
|
|
144
144
|
if (allowedLogLevelStrength === -1) {
|
|
145
145
|
return false;
|
|
146
146
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "31.2.
|
|
6
|
+
"version": "31.2.5",
|
|
7
7
|
"skill": {
|
|
8
8
|
"namespace": "skill-utils",
|
|
9
9
|
"upgradeIgnoreList": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@sprucelabs/globby": "^2.0.501",
|
|
62
|
-
"@sprucelabs/schema": "^31.0.
|
|
62
|
+
"@sprucelabs/schema": "^31.0.13",
|
|
63
63
|
"chalk": "^4.1.2",
|
|
64
64
|
"dotenv": "^16.4.7",
|
|
65
65
|
"fs-extra": "^11.2.0",
|