Declare the logger contract in the library instead of depending on @larvit/log

This commit is contained in:
2026-08-27 13:42:58 +02:00
parent ff3667e120
commit 8d245c82c4
18 changed files with 110 additions and 50 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import type { LogInt } from '@larvit/log';
import type { PduObject } from './pdu.ts';
import type { Result } from './result.ts';
import type { SmppLog } from './log.ts';
import { maxSeqNr } from './pdu.ts';
export type WaitOptions = {
@@ -14,11 +14,11 @@ type Pending = {
/** Hands out sequence numbers and matches responses to the requests waiting for them. */
export class PendingRequests {
private readonly log: LogInt;
private readonly log: SmppLog;
private readonly pending = new Map<number, Pending>();
private ourSeqNr = 1;
constructor(log: LogInt) {
constructor(log: SmppLog) {
this.log = log;
}