@flowgram.ai/runtime-js 0.5.5 → 0.5.7
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/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -242,7 +242,7 @@ var WorkflowStatus = /* @__PURE__ */ ((WorkflowStatus2) => {
|
|
|
242
242
|
WorkflowStatus2["Processing"] = "processing";
|
|
243
243
|
WorkflowStatus2["Succeeded"] = "succeeded";
|
|
244
244
|
WorkflowStatus2["Failed"] = "failed";
|
|
245
|
-
WorkflowStatus2["
|
|
245
|
+
WorkflowStatus2["Cancelled"] = "canceled";
|
|
246
246
|
return WorkflowStatus2;
|
|
247
247
|
})(WorkflowStatus || {});
|
|
248
248
|
var IValidation = Symbol.for("Validation");
|
|
@@ -2096,7 +2096,7 @@ var WorkflowRuntimeStatus = class _WorkflowRuntimeStatus {
|
|
|
2096
2096
|
return this._status;
|
|
2097
2097
|
}
|
|
2098
2098
|
get terminated() {
|
|
2099
|
-
return [WorkflowStatus.Succeeded, WorkflowStatus.Failed, WorkflowStatus.
|
|
2099
|
+
return [WorkflowStatus.Succeeded, WorkflowStatus.Failed, WorkflowStatus.Cancelled].includes(
|
|
2100
2100
|
this.status
|
|
2101
2101
|
);
|
|
2102
2102
|
}
|
|
@@ -2138,7 +2138,7 @@ var WorkflowRuntimeStatus = class _WorkflowRuntimeStatus {
|
|
|
2138
2138
|
if (this.terminated) {
|
|
2139
2139
|
return;
|
|
2140
2140
|
}
|
|
2141
|
-
this._status = WorkflowStatus.
|
|
2141
|
+
this._status = WorkflowStatus.Cancelled;
|
|
2142
2142
|
this._endTime = Date.now();
|
|
2143
2143
|
}
|
|
2144
2144
|
export() {
|