@tagma/sdk 0.2.0 → 0.2.1
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/package.json +1 -1
- package/src/engine.ts +3 -3
- package/src/pipeline-runner.ts +3 -3
package/package.json
CHANGED
package/src/engine.ts
CHANGED
|
@@ -750,10 +750,10 @@ function freezeStates(states: Map<string, TaskState>): ReadonlyMap<string, TaskS
|
|
|
750
750
|
const copy = new Map<string, TaskState>();
|
|
751
751
|
for (const [id, s] of states) {
|
|
752
752
|
copy.set(id, {
|
|
753
|
-
config: s.config,
|
|
754
|
-
trackConfig: s.trackConfig,
|
|
753
|
+
config: { ...s.config },
|
|
754
|
+
trackConfig: { ...s.trackConfig },
|
|
755
755
|
status: s.status,
|
|
756
|
-
result: s.result,
|
|
756
|
+
result: s.result ? { ...s.result } : null,
|
|
757
757
|
startedAt: s.startedAt,
|
|
758
758
|
finishedAt: s.finishedAt,
|
|
759
759
|
});
|
package/src/pipeline-runner.ts
CHANGED
|
@@ -129,10 +129,10 @@ function snapshotStates(src: ReadonlyMap<string, TaskState>): ReadonlyMap<string
|
|
|
129
129
|
const copy = new Map<string, TaskState>();
|
|
130
130
|
for (const [id, s] of src) {
|
|
131
131
|
copy.set(id, {
|
|
132
|
-
config: s.config,
|
|
133
|
-
trackConfig: s.trackConfig,
|
|
132
|
+
config: { ...s.config },
|
|
133
|
+
trackConfig: { ...s.trackConfig },
|
|
134
134
|
status: s.status,
|
|
135
|
-
result: s.result,
|
|
135
|
+
result: s.result ? { ...s.result } : null,
|
|
136
136
|
startedAt: s.startedAt,
|
|
137
137
|
finishedAt: s.finishedAt,
|
|
138
138
|
});
|