@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.
@@ -160,6 +160,17 @@ function snapshotOwnTransitions(source) {
160
160
  return Object.fromEntries(entries);
161
161
  }
162
162
 
163
+ // src/base.ts
164
+ var MachineBase = class {
165
+ /**
166
+ * Initializes a new machine instance with its starting context.
167
+ * @param context - The initial state of the machine.
168
+ */
169
+ constructor(context) {
170
+ this.context = context;
171
+ }
172
+ };
173
+
163
174
  // src/generators.ts
164
175
  function run(flow, initial) {
165
176
  const generator = flow(initial);
@@ -2290,15 +2301,6 @@ function runMachine(initial, onChange) {
2290
2301
  }
2291
2302
  };
2292
2303
  }
2293
- var MachineBase = class {
2294
- /**
2295
- * Initializes a new machine instance with its starting context.
2296
- * @param context - The initial state of the machine.
2297
- */
2298
- constructor(context) {
2299
- this.context = context;
2300
- }
2301
- };
2302
2304
  function next(m, update) {
2303
2305
  return setContext(m, (ctx) => update(ctx));
2304
2306
  }