Add .js extension to msgpackr SSEClient to make Vitest happy

This commit is contained in:
Jim Hamill
2025-04-20 04:16:02 +00:00
parent 5e7843510e
commit 38669296b8
2 changed files with 7 additions and 3 deletions
@@ -1,4 +1,4 @@
import { SSEClient, SSEClientOptions, SSEvent } from './sse-client';
import { SSEClient, SSEClientOptions, SSEvent } from './sse-client.js';
import { unpackMultiple } from 'msgpackr';
@@ -6,8 +6,7 @@ import { unpackMultiple } from 'msgpackr';
* SSEClientMsgpackr is a subclass of SSEClient that uses msgpackr to parse the events.
*/
export class SSEClientMsgpackr extends SSEClient {
/**
/**
* Creates a new SSEClientMsgpackr instance.
* @param {string} url The URL to connect to
* @param {SSEClientOptions} options The options for the SSEClient