jsfe 0.9.59 → 0.9.60

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1425,7 +1425,7 @@ function interpolateObject(obj, data, args = {}, engine) {
1425
1425
  }
1426
1426
  return obj;
1427
1427
  }
1428
- function makeLogger(level = process.env.LOG_LEVEL || "warn") {
1428
+ function makeLogger(level = (typeof process !== 'undefined' && process.env?.LOG_LEVEL) || "warn") {
1429
1429
  const ORDER = { debug: 10, info: 20, warn: 30, error: 40 };
1430
1430
  let current = ORDER[level] ?? ORDER.warn;
1431
1431
  const allow = (lvl) => ORDER[lvl] >= current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsfe",
3
- "version": "0.9.59",
3
+ "version": "0.9.60",
4
4
  "description": "TypeScript workflow engine for conversational/automation apps: multi-flow orchestration, interrupt/resume, stack-based control, robust errors, and flexible tool/REST integration.",
5
5
  "license": "MIT",
6
6
  "author": "Ron Pinkas",