@naylence/agent-sdk 0.3.4-test.720 → 0.3.4-test.721
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.
package/dist/browser/index.js
CHANGED
|
@@ -15671,12 +15671,12 @@
|
|
|
15671
15671
|
// --- END ENV SHIM ---
|
|
15672
15672
|
|
|
15673
15673
|
// This file is auto-generated during build - do not edit manually
|
|
15674
|
-
// Generated from package.json version: 0.3.5-test.
|
|
15674
|
+
// Generated from package.json version: 0.3.5-test.921
|
|
15675
15675
|
/**
|
|
15676
15676
|
* The package version, injected at build time.
|
|
15677
15677
|
* @internal
|
|
15678
15678
|
*/
|
|
15679
|
-
const VERSION$1 = '0.3.5-test.
|
|
15679
|
+
const VERSION$1 = '0.3.5-test.921';
|
|
15680
15680
|
|
|
15681
15681
|
/**
|
|
15682
15682
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -16174,15 +16174,22 @@
|
|
|
16174
16174
|
return LogLevel.OFF;
|
|
16175
16175
|
}
|
|
16176
16176
|
// Check FAME_LOG_LEVEL environment variable
|
|
16177
|
-
|
|
16177
|
+
let envLevel;
|
|
16178
|
+
if (isNode && typeof process !== 'undefined') {
|
|
16179
|
+
envLevel = process.env.FAME_LOG_LEVEL;
|
|
16180
|
+
}
|
|
16181
|
+
else if (typeof window !== 'undefined' && window.__ENV__) {
|
|
16182
|
+
envLevel = window.__ENV__.FAME_LOG_LEVEL;
|
|
16183
|
+
}
|
|
16184
|
+
if (envLevel) {
|
|
16178
16185
|
try {
|
|
16179
|
-
const
|
|
16186
|
+
const normalized = envLevel.trim().toUpperCase();
|
|
16180
16187
|
// Direct enum name match (e.g., "DEBUG", "INFO")
|
|
16181
|
-
if (
|
|
16182
|
-
return LogLevel[
|
|
16188
|
+
if (normalized in LogLevel) {
|
|
16189
|
+
return LogLevel[normalized];
|
|
16183
16190
|
}
|
|
16184
16191
|
// Try alternative mappings
|
|
16185
|
-
if (
|
|
16192
|
+
if (normalized === 'WARN')
|
|
16186
16193
|
return LogLevel.WARNING;
|
|
16187
16194
|
}
|
|
16188
16195
|
catch {
|