From 38669296b8ce202296423aad651dc72b83ce5638 Mon Sep 17 00:00:00 2001 From: Jim Hamill Date: Sun, 20 Apr 2025 04:16:02 +0000 Subject: [PATCH] Add .js extension to msgpackr SSEClient to make Vitest happy --- .gitlab-ci.yml | 5 +++++ packages/stack/src/utils/sse-client-msgpackr.ts | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 197c742..9fcd20d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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}" diff --git a/packages/stack/src/utils/sse-client-msgpackr.ts b/packages/stack/src/utils/sse-client-msgpackr.ts index 44bb06d..6f7583f 100644 --- a/packages/stack/src/utils/sse-client-msgpackr.ts +++ b/packages/stack/src/utils/sse-client-msgpackr.ts @@ -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