@rotorsoft/act 0.33.0 → 0.33.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/dist/.tsbuildinfo +1 -1
- package/dist/@types/config.d.ts +2 -0
- package/dist/@types/config.d.ts.map +1 -1
- package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
- package/dist/@types/ports.d.ts +6 -1
- package/dist/@types/ports.d.ts.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
package/dist/index.js
CHANGED
|
@@ -1607,6 +1607,15 @@ async function load(me, stream, callback, asOf) {
|
|
|
1607
1607
|
...cached ? { after: cached.event_id } : { with_snaps: true, ...asOf }
|
|
1608
1608
|
}
|
|
1609
1609
|
);
|
|
1610
|
+
if (replayed > 0 && !timeTravel && event) {
|
|
1611
|
+
await cache().set(stream, {
|
|
1612
|
+
state: state2,
|
|
1613
|
+
version,
|
|
1614
|
+
event_id: event.id,
|
|
1615
|
+
patches,
|
|
1616
|
+
snaps
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1610
1619
|
return { event, state: state2, version, patches, snaps, cache_hit, replayed };
|
|
1611
1620
|
}
|
|
1612
1621
|
async function action(me, action2, target, payload, reactingTo, skipValidation = false) {
|