@workglow/task-graph 0.0.105 → 0.0.107

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/node.js CHANGED
@@ -426,7 +426,11 @@ function stripOriginAnnotations(schema) {
426
426
  strippedProperties[key] = prop;
427
427
  continue;
428
428
  }
429
- const { "x-source-task-id": _id, "x-source-task-ids": _ids, ...rest } = prop;
429
+ const {
430
+ "x-source-task-id": _id,
431
+ "x-source-task-ids": _ids,
432
+ ...rest
433
+ } = prop;
430
434
  strippedProperties[key] = rest;
431
435
  }
432
436
  return { ...schema, properties: strippedProperties };
@@ -897,7 +901,7 @@ function getOutputStreamMode(outputSchema) {
897
901
  const mode = ports[0].mode;
898
902
  for (let i = 1;i < ports.length; i++) {
899
903
  if (ports[i].mode !== mode) {
900
- throw new Error(`Mixed stream modes on a single task are not supported: ` + `port "${ports[0].port}" is "${mode}" but port "${ports[i].port}" is "${ports[i].mode}"`);
904
+ return "mixed";
901
905
  }
902
906
  }
903
907
  return mode;
@@ -6205,4 +6209,4 @@ export {
6205
6209
  ConditionalTask
6206
6210
  };
6207
6211
 
6208
- //# debugId=E66B1E17B5EBC70464756E2164756E21
6212
+ //# debugId=2F150893F8D8A27F64756E2164756E21