@bian-womp/spark-graph 0.1.26 → 0.1.28

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/lib/cjs/index.cjs CHANGED
@@ -580,7 +580,7 @@ class GraphRuntime {
580
580
  throw new Error(`Typed output required for union source; allowed: ${srcTypes.join("|")}`);
581
581
  if (!srcTypes.includes(typeId))
582
582
  throw new Error(`Invalid typed output ${typeId}; allowed: ${srcTypes.join("|")}`);
583
- const payload = typeId;
583
+ const payload = getTypedOutputValue(v);
584
584
  const res = registry.resolveCoercion(typeId, dstDeclared);
585
585
  if (!res)
586
586
  return payload;
@@ -596,7 +596,7 @@ class GraphRuntime {
596
596
  throw new Error(`Typed output required for union source; allowed: ${srcTypes.join("|")}`);
597
597
  if (!srcTypes.includes(typeId))
598
598
  throw new Error(`Invalid typed output ${typeId}; allowed: ${srcTypes.join("|")}`);
599
- const payload = typeId;
599
+ const payload = getTypedOutputValue(v);
600
600
  const res = registry.resolveCoercion(typeId, dstDeclared);
601
601
  if (!res)
602
602
  return payload;