@peerbit/shared-log 13.2.12 → 13.2.13

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/src/sync/index.ts CHANGED
@@ -127,7 +127,7 @@ export type SharedLogNativeWireSync = {
127
127
  export type RawExchangeHeadsSender = (
128
128
  hashes: string[],
129
129
  to: string[],
130
- options?: { priority?: number },
130
+ options?: { priority?: number; signal?: AbortSignal },
131
131
  ) => Promise<number | undefined>;
132
132
 
133
133
  export type HashSymbolInput = readonly bigint[] | BigUint64Array;
@@ -212,6 +212,7 @@ export interface Syncronizer<R extends "u32" | "u64"> {
212
212
  onMaybeMissingEntries(properties: {
213
213
  entries: Map<string, SyncEntryCoordinates<R>>;
214
214
  targets: string[];
215
+ signal?: AbortSignal;
215
216
  }): Promise<void> | void;
216
217
 
217
218
  onMessage(