@doeixd/machine 1.0.2 → 1.0.3

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.
@@ -142,6 +142,17 @@ function snapshotOwnTransitions(source) {
142
142
  return Object.fromEntries(entries);
143
143
  }
144
144
 
145
+ // src/base.ts
146
+ var MachineBase = class {
147
+ /**
148
+ * Initializes a new machine instance with its starting context.
149
+ * @param context - The initial state of the machine.
150
+ */
151
+ constructor(context) {
152
+ this.context = context;
153
+ }
154
+ };
155
+
145
156
  // src/generators.ts
146
157
  function run(flow, initial) {
147
158
  const generator = flow(initial);
@@ -1836,15 +1847,6 @@ function runMachine(initial, onChange) {
1836
1847
  }
1837
1848
  };
1838
1849
  }
1839
- var MachineBase = class {
1840
- /**
1841
- * Initializes a new machine instance with its starting context.
1842
- * @param context - The initial state of the machine.
1843
- */
1844
- constructor(context) {
1845
- this.context = context;
1846
- }
1847
- };
1848
1850
  function next(m, update) {
1849
1851
  return setContext(m, (ctx) => update(ctx));
1850
1852
  }