From fb3362783c749265630e0881c07614777c147050 Mon Sep 17 00:00:00 2001 From: Harvmaster Date: Wed, 12 Aug 2026 03:32:24 +0000 Subject: [PATCH] fixes --- source/exponential-backoff.ts | 2 +- source/sse-session/sse-session.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/exponential-backoff.ts b/source/exponential-backoff.ts index 0236df9..fc6f903 100644 --- a/source/exponential-backoff.ts +++ b/source/exponential-backoff.ts @@ -181,7 +181,7 @@ export class ExponentialBackoff { // Validate the max attempts assertIsFinite('maxAttempts', options.maxAttempts); assertIsInteger('maxAttempts', options.maxAttempts); - assertIsHigherThan('maxAttempts', options.maxAttempts, 0); + assertIsHigherThan('maxAttempts', options.maxAttempts, -1); // Validate the base delay assertIsFinite('baseDelay', options.baseDelay); diff --git a/source/sse-session/sse-session.ts b/source/sse-session/sse-session.ts index ce60486..ac28a49 100644 --- a/source/sse-session/sse-session.ts +++ b/source/sse-session/sse-session.ts @@ -1,6 +1,6 @@ import type { SSESessionOptions, SSESessionEventMap, SSEvent } from './types.ts'; -import { EventEmitter } from 'eventemitter3'; +import { EventEmitter } from '../event-emitter.ts'; import { HTTPError, ResponseBodyNullError } from '../errors.ts'; import { tryAsync } from '../misc.ts';