@flowgram.ai/runtime-js 0.5.6 → 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/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -283,7 +283,7 @@ var WorkflowStatus = /* @__PURE__ */ ((WorkflowStatus2) => {
|
|
|
283
283
|
WorkflowStatus2["Processing"] = "processing";
|
|
284
284
|
WorkflowStatus2["Succeeded"] = "succeeded";
|
|
285
285
|
WorkflowStatus2["Failed"] = "failed";
|
|
286
|
-
WorkflowStatus2["
|
|
286
|
+
WorkflowStatus2["Cancelled"] = "canceled";
|
|
287
287
|
return WorkflowStatus2;
|
|
288
288
|
})(WorkflowStatus || {});
|
|
289
289
|
var IValidation = Symbol.for("Validation");
|
|
@@ -2137,7 +2137,7 @@ var WorkflowRuntimeStatus = class _WorkflowRuntimeStatus {
|
|
|
2137
2137
|
return this._status;
|
|
2138
2138
|
}
|
|
2139
2139
|
get terminated() {
|
|
2140
|
-
return [WorkflowStatus.Succeeded, WorkflowStatus.Failed, WorkflowStatus.
|
|
2140
|
+
return [WorkflowStatus.Succeeded, WorkflowStatus.Failed, WorkflowStatus.Cancelled].includes(
|
|
2141
2141
|
this.status
|
|
2142
2142
|
);
|
|
2143
2143
|
}
|
|
@@ -2179,7 +2179,7 @@ var WorkflowRuntimeStatus = class _WorkflowRuntimeStatus {
|
|
|
2179
2179
|
if (this.terminated) {
|
|
2180
2180
|
return;
|
|
2181
2181
|
}
|
|
2182
|
-
this._status = WorkflowStatus.
|
|
2182
|
+
this._status = WorkflowStatus.Cancelled;
|
|
2183
2183
|
this._endTime = Date.now();
|
|
2184
2184
|
}
|
|
2185
2185
|
export() {
|