Add .js extension to msgpackr SSEClient to make Vitest happy
This commit is contained in:
@@ -35,6 +35,11 @@ publish:development:
|
||||
GITLAB_USER_EMAIL: 'ci@stack.xo.cash'
|
||||
GITLAB_USER_NAME: 'GitLab CI'
|
||||
script:
|
||||
# Add a small delay to allow GitLab to fully process the merge
|
||||
# NOTE: Temporary hack to check if publish is not working due to race condition.
|
||||
- echo "Waiting 30 seconds for GitLab to process merge..."
|
||||
- sleep 30
|
||||
|
||||
# Setup git config
|
||||
- git config --global user.email "${GITLAB_USER_EMAIL}"
|
||||
- git config --global user.name "${GITLAB_USER_NAME}"
|
||||
|
||||
@@ -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