@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.cjs
CHANGED
|
@@ -1775,6 +1775,15 @@ async function load(me, stream, callback, asOf) {
|
|
|
1775
1775
|
...cached ? { after: cached.event_id } : { with_snaps: true, ...asOf }
|
|
1776
1776
|
}
|
|
1777
1777
|
);
|
|
1778
|
+
if (replayed > 0 && !timeTravel && event) {
|
|
1779
|
+
await cache().set(stream, {
|
|
1780
|
+
state: state2,
|
|
1781
|
+
version,
|
|
1782
|
+
event_id: event.id,
|
|
1783
|
+
patches,
|
|
1784
|
+
snaps
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1778
1787
|
return { event, state: state2, version, patches, snaps, cache_hit, replayed };
|
|
1779
1788
|
}
|
|
1780
1789
|
async function action(me, action2, target, payload, reactingTo, skipValidation = false) {
|