Add .js extension to msgpackr SSEClient to make Vitest happy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user