@rotorsoft/act 1.32.7 → 1.32.9

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.
@@ -1377,6 +1377,12 @@ var InMemoryStore = class {
1377
1377
  const prev_max_event_id_by_stream = this._max_event_id_by_stream;
1378
1378
  const prev_max_non_snap_event_id = this._max_non_snap_event_id;
1379
1379
  const prev_pii = this._pii;
1380
+ const prev_correlated_at = this._correlated_at;
1381
+ const prev_correlators = new Map(
1382
+ [...this._correlators].map(([k, v]) => [k, { ...v }])
1383
+ );
1384
+ this._correlated_at = -1;
1385
+ for (const c of this._correlators.values()) c.at = -1;
1380
1386
  this._events = [];
1381
1387
  this._next_id = 0;
1382
1388
  this._streams = /* @__PURE__ */ new Map();
@@ -1413,6 +1419,8 @@ var InMemoryStore = class {
1413
1419
  this._max_event_id_by_stream = prev_max_event_id_by_stream;
1414
1420
  this._max_non_snap_event_id = prev_max_non_snap_event_id;
1415
1421
  this._pii = prev_pii;
1422
+ this._correlated_at = prev_correlated_at;
1423
+ this._correlators = prev_correlators;
1416
1424
  throw err;
1417
1425
  }
1418
1426
  }