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:
@@ -35,6 +35,11 @@ publish:development:
|
|||||||
GITLAB_USER_EMAIL: 'ci@stack.xo.cash'
|
GITLAB_USER_EMAIL: 'ci@stack.xo.cash'
|
||||||
GITLAB_USER_NAME: 'GitLab CI'
|
GITLAB_USER_NAME: 'GitLab CI'
|
||||||
script:
|
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
|
# Setup git config
|
||||||
- git config --global user.email "${GITLAB_USER_EMAIL}"
|
- git config --global user.email "${GITLAB_USER_EMAIL}"
|
||||||
- git config --global user.name "${GITLAB_USER_NAME}"
|
- 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';
|
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.
|
* SSEClientMsgpackr is a subclass of SSEClient that uses msgpackr to parse the events.
|
||||||
*/
|
*/
|
||||||
export class SSEClientMsgpackr extends SSEClient {
|
export class SSEClientMsgpackr extends SSEClient {
|
||||||
|
/**
|
||||||
/**
|
|
||||||
* Creates a new SSEClientMsgpackr instance.
|
* Creates a new SSEClientMsgpackr instance.
|
||||||
* @param {string} url The URL to connect to
|
* @param {string} url The URL to connect to
|
||||||
* @param {SSEClientOptions} options The options for the SSEClient
|
* @param {SSEClientOptions} options The options for the SSEClient
|
||||||
|
|||||||
Reference in New Issue
Block a user