@typeonce/effect-machine-devtools 0.41.1 → 0.42.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeonce/effect-machine-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Local development tools for Effect Machine",
|
|
5
5
|
"author": "Sandro Maglione",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"elkjs": "0.12.0",
|
|
35
35
|
"typescript": "6.0.3",
|
|
36
36
|
"vite": "8.1.5",
|
|
37
|
-
"@typeonce/effect-machine": "^0.
|
|
37
|
+
"@typeonce/effect-machine": "^0.42.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"effect": "^4.0.0"
|
|
@@ -105,16 +105,14 @@ export const parallelOwnerRoutingMachine = Machine.make({
|
|
|
105
105
|
states: {
|
|
106
106
|
Print: {
|
|
107
107
|
initial: { Options: ({}) => ({}), Operation: ({}) => ({}) },
|
|
108
|
-
invoke: {
|
|
109
|
-
src: "source1",
|
|
110
|
-
onFailure: { target: "Print.Operation.Active", decoded: true, data: () => (new Active({})) }
|
|
111
|
-
},
|
|
108
|
+
invoke: { src: "source1" },
|
|
112
109
|
on: {
|
|
113
110
|
PrintRequested: {
|
|
114
111
|
target: "Print.Operation.Printing",
|
|
115
112
|
decoded: true,
|
|
116
113
|
data: () => (new Printing({}))
|
|
117
|
-
}
|
|
114
|
+
},
|
|
115
|
+
ChildSignal: { target: "Print.Operation.Active", decoded: true, data: () => (new Active({})) }
|
|
118
116
|
},
|
|
119
117
|
states: {
|
|
120
118
|
Options: {
|
|
@@ -192,11 +192,6 @@ export const parentProtocolMachine = Machine.make({
|
|
|
192
192
|
target: "Complete",
|
|
193
193
|
decoded: true,
|
|
194
194
|
data: ({ output }) => (new ParentComplete({ result: output }))
|
|
195
|
-
},
|
|
196
|
-
onFailure: {
|
|
197
|
-
target: "Failed",
|
|
198
|
-
decoded: true,
|
|
199
|
-
data: ({ error }) => (new ParentFailed({ message: String(error) }))
|
|
200
195
|
}
|
|
201
196
|
},
|
|
202
197
|
on: {
|