@teamkeel/testing-runtime 0.469.1 → 0.471.0
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/package.json +1 -1
- package/src/Executor.mjs +8 -1
- package/src/FlowExecutor.mjs +6 -1
package/package.json
CHANGED
package/src/Executor.mjs
CHANGED
|
@@ -95,7 +95,14 @@ export class Executor {
|
|
|
95
95
|
try {
|
|
96
96
|
d = JSON.parse(t);
|
|
97
97
|
} catch (e) {
|
|
98
|
-
|
|
98
|
+
// testing-runtime is a separate package from functions-runtime
|
|
99
|
+
// (its own independent `pnpm install`, not a live workspace
|
|
100
|
+
// link - see packages/functions-runtime/src/logger.ts's
|
|
101
|
+
// top-of-file note), so it can't cleanly reach for the
|
|
102
|
+
// structured `log` helper there. Keep console.log but gate it
|
|
103
|
+
// on KEEL_LOG_LEVEL (the one env var the whole project now
|
|
104
|
+
// uses) instead of the retired DEBUG var.
|
|
105
|
+
if (process.env.KEEL_LOG_LEVEL === "debug") {
|
|
99
106
|
console.log(e);
|
|
100
107
|
}
|
|
101
108
|
// If JSON parsing fails then throw an error with the
|
package/src/FlowExecutor.mjs
CHANGED
|
@@ -281,7 +281,12 @@ function handleResponse(r) {
|
|
|
281
281
|
try {
|
|
282
282
|
d = JSON.parse(t);
|
|
283
283
|
} catch (e) {
|
|
284
|
-
|
|
284
|
+
// testing-runtime is a separate package from functions-runtime (its
|
|
285
|
+
// own independent `pnpm install`, not a live workspace link), so it
|
|
286
|
+
// can't cleanly reach for the structured `log` helper there. Keep
|
|
287
|
+
// console.log but gate it on KEEL_LOG_LEVEL instead of the retired
|
|
288
|
+
// DEBUG var.
|
|
289
|
+
if (process.env.KEEL_LOG_LEVEL === "debug") {
|
|
285
290
|
console.log(e);
|
|
286
291
|
}
|
|
287
292
|
// If JSON parsing fails then throw an error with the
|