Merge branch 'add_js_extension_to_msgpackr_sseclient' into 'development'

Add .js extension to msgpackr SSEClient to make Vitest happy

See merge request GeneralProtocols/xo/stack!70
This commit is contained in:
Jim Hamill
2025-04-20 04:16:02 +00:00
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -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