@rotorsoft/act 1.23.33 → 1.23.34
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/act.d.ts +6 -0
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/internal/correlate-cycle.d.ts +18 -0
- package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/{chunk-5B45U2IS.js → chunk-TTOT5CRM.js} +5 -2
- package/dist/{chunk-5B45U2IS.js.map → chunk-TTOT5CRM.js.map} +1 -1
- package/dist/index.cjs +46 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -1
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +4 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +2 -2
package/dist/test/index.cjs
CHANGED
|
@@ -1277,8 +1277,11 @@ var InMemoryStore = class {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
this._events = this._events.filter((e) => !stream_set.has(e.stream));
|
|
1280
|
+
const restarted = new Set(
|
|
1281
|
+
full.filter((t) => t.snapshot !== void 0).map((t) => t.stream)
|
|
1282
|
+
);
|
|
1280
1283
|
for (const stream of stream_set) {
|
|
1281
|
-
this._streams.delete(stream);
|
|
1284
|
+
if (!restarted.has(stream)) this._streams.delete(stream);
|
|
1282
1285
|
this._stream_versions.delete(stream);
|
|
1283
1286
|
this._max_event_id_by_stream.delete(stream);
|
|
1284
1287
|
this._pii.delete(stream);
|