@rljson/db 0.0.18 → 0.0.20

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.
@@ -11,6 +11,7 @@ export declare class Connector {
11
11
  private _callbacks;
12
12
  private _conflictCallbacks;
13
13
  private _missedRef;
14
+ private _lastSentRef;
14
15
  private _isListening;
15
16
  private _sentRefsCurrent;
16
17
  private _sentRefsPrevious;
@@ -103,4 +104,5 @@ export declare class Connector {
103
104
  get route(): Route;
104
105
  get origin(): string;
105
106
  get isListening(): boolean;
107
+ get lastSentRef(): string | null;
106
108
  }
package/dist/db.js CHANGED
@@ -24,6 +24,7 @@ class Connector {
24
24
  _callbacks = [];
25
25
  _conflictCallbacks = [];
26
26
  _missedRef = null;
27
+ _lastSentRef = null;
27
28
  _isListening = false;
28
29
  // Two-generation dedup sets — bounded memory
29
30
  _sentRefsCurrent = /* @__PURE__ */ new Set();
@@ -61,6 +62,7 @@ class Connector {
61
62
  payload.p = [...this._lastPredecessors];
62
63
  }
63
64
  }
65
+ this._lastSentRef = ref;
64
66
  this.socket.emit(this._events.ref, payload);
65
67
  }
66
68
  // ...........................................................................
@@ -298,6 +300,9 @@ class Connector {
298
300
  get isListening() {
299
301
  return this._isListening;
300
302
  }
303
+ get lastSentRef() {
304
+ return this._lastSentRef;
305
+ }
301
306
  }
302
307
  class BaseController {
303
308
  constructor(_core, _tableKey) {