@rotorsoft/act 2.0.3 → 2.0.5
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/README.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/utils.d.ts +0 -14
- package/dist/@types/utils.d.ts.map +1 -1
- package/dist/{chunk-YAHM7P64.js → chunk-3JULRYQO.js} +1 -1
- package/dist/chunk-3JULRYQO.js.map +1 -0
- package/dist/{chunk-KGJQXN3S.cjs → chunk-XW4EAUS6.cjs} +1 -1
- package/dist/chunk-XW4EAUS6.cjs.map +1 -0
- package/dist/index.cjs +103 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +3 -3
- package/dist/test/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KGJQXN3S.cjs.map +0 -1
- package/dist/chunk-YAHM7P64.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
store,
|
|
49
49
|
throw_if_stale,
|
|
50
50
|
validate
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3JULRYQO.js";
|
|
52
52
|
import {
|
|
53
53
|
ActorSchema,
|
|
54
54
|
CausationEventSchema,
|
|
@@ -3688,7 +3688,6 @@ var Act = class {
|
|
|
3688
3688
|
do_options
|
|
3689
3689
|
);
|
|
3690
3690
|
if (!snapshots[0].patch) return snapshots;
|
|
3691
|
-
const me = this.registry.actions[action2];
|
|
3692
3691
|
this._wake(snapshots.map((s) => s.event.name));
|
|
3693
3692
|
const by_stream = /* @__PURE__ */ new Map();
|
|
3694
3693
|
for (const s of snapshots) {
|
|
@@ -3696,10 +3695,10 @@ var Act = class {
|
|
|
3696
3695
|
if (of_stream) of_stream.push(s);
|
|
3697
3696
|
else by_stream.set(s.event.stream, [s]);
|
|
3698
3697
|
}
|
|
3699
|
-
for (const
|
|
3700
|
-
const owner =
|
|
3701
|
-
|
|
3702
|
-
)
|
|
3698
|
+
for (const of_stream of by_stream.values()) {
|
|
3699
|
+
const owner = this._event_to_state.get(
|
|
3700
|
+
of_stream[0].event.name
|
|
3701
|
+
);
|
|
3703
3702
|
this.emit("committed", of_stream);
|
|
3704
3703
|
this._notify(`committed:${owner.name}`, of_stream);
|
|
3705
3704
|
}
|