@kirha/planner 0.1.2 → 0.1.3
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/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20650,7 +20650,8 @@ function resolveValue(value, outputsByStepId) {
|
|
|
20650
20650
|
for (const [i, ref] of value.$values.entries()) {
|
|
20651
20651
|
const stepOutput = outputsByStepId.get(ref.$fromStep);
|
|
20652
20652
|
const resolvedValue = getNestedValue(stepOutput, parsePath(ref.$outputKey));
|
|
20653
|
-
|
|
20653
|
+
const stringified = typeof resolvedValue === "object" && resolvedValue !== null ? JSON.stringify(resolvedValue) : String(resolvedValue);
|
|
20654
|
+
result = result.replace(`{${i}}`, stringified);
|
|
20654
20655
|
}
|
|
20655
20656
|
return result;
|
|
20656
20657
|
}
|
|
@@ -20870,7 +20871,13 @@ function validateStringTemplateReference({
|
|
|
20870
20871
|
actualType: "string"
|
|
20871
20872
|
}));
|
|
20872
20873
|
}
|
|
20873
|
-
const stringCoercible = exports_external.union([
|
|
20874
|
+
const stringCoercible = exports_external.union([
|
|
20875
|
+
exports_external.string(),
|
|
20876
|
+
exports_external.number(),
|
|
20877
|
+
exports_external.boolean(),
|
|
20878
|
+
exports_external.object({}),
|
|
20879
|
+
exports_external.array(exports_external.any())
|
|
20880
|
+
]);
|
|
20874
20881
|
for (const ref of reference.$values) {
|
|
20875
20882
|
validateOutputReference({
|
|
20876
20883
|
reference: ref,
|