From 28322fac0723165901ec79830101b449f614f4e0 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 23 Nov 2025 19:22:16 +0530 Subject: [PATCH] fixes. --- .github/workflows/copilot-setup-steps.yml | 2 +- .github/workflows/e2e.yml | 2 +- .github/workflows/tests.yml | 2 +- bun.lock | 2 ++ src/lib/helpers/files.ts | 5 ++--- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 358f14d19..63c2db7d7 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v2 with: - version: latest + bun-version: latest - name: Install dependencies run: bun install --frozen-lockfile diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5f4c9f890..c1be74f27 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v2 with: - version: latest + bun-version: latest - name: Install dependencies run: bun install --frozen-lockfile diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aab395df1..24b012f14 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v2 with: - version: latest + bun-version: latest - name: Audit dependencies run: bun audit --audit-level high diff --git a/bun.lock b/bun.lock index 9f91b9ed0..3be33e574 100644 --- a/bun.lock +++ b/bun.lock @@ -1567,6 +1567,8 @@ "@sentry/sveltekit/magic-string": ["magic-string@0.30.7", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA=="], + "@testing-library/jest-dom/aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="], + "@testing-library/jest-dom/dom-accessibility-api": ["dom-accessibility-api@0.6.3", "", {}, "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w=="], "@typescript-eslint/eslint-plugin/ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], diff --git a/src/lib/helpers/files.ts b/src/lib/helpers/files.ts index b72e289f6..de236f5f2 100644 --- a/src/lib/helpers/files.ts +++ b/src/lib/helpers/files.ts @@ -65,11 +65,10 @@ export async function gzipUpload(files: FileList) { data: f.buffer })) ); - const blob = new Blob([tar], { type: 'application/gzip' }); - const file = new File([blob], 'deployment.tar.gz', { + const blob = new Blob([new Uint8Array(tar)], { type: 'application/gzip' }); + uploadFile = new File([blob], 'deployment.tar.gz', { type: 'application/gzip' }); - uploadFile = file; } catch (e) { addNotification({ type: 'error',