Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update typescript to 5.9.2 and fix arraybuffer compatibility issues (#17067)

boojack20532258bb2b
diff --git a/frontend/package.json b/frontend/package.json
index cdda7c107f..485a31c24a 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -136,7 +136,7 @@
"rollup": "4.46.2",
"tailwindcss": "3.4.17",
"ts-node": "^10.9.2",
- "typescript": "5.8.3",
+ "typescript": "5.9.2",
"unified": "^11.0.5",
"unplugin-icons": "22.1.0",
"unplugin-vue-components": "28.7.0",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index cab67f24d1..af00273a00 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -48,10 +48,10 @@ importers:
version: 0.1.2
'@tanstack/vue-table':
specifier: 8.21.3
'@vueuse/core':
specifier: 12.8.2
- version: 12.8.2([email protected])
+ version: 12.8.2([email protected])
bootstrap:
specifier: 5.3.6
version: 5.3.6(@popperjs/[email protected])
@@ -105,7 +105,7 @@ importers:
version: 0.511.0
lucide-vue-next:
specifier: ^0.511.0
markdown-it:
specifier: ^14.1.0
version: 14.1.0
@@ -120,16 +120,16 @@ importers:
version: 9.7.0
naive-ui:
specifier: 2.42.0
normalize-wheel:
specifier: ^1.0.1
version: 1.0.1
pev2:
specifier: 1.16.0
- version: 1.16.0(@popperjs/[email protected])([email protected])
+ version: 1.16.0(@popperjs/[email protected])([email protected])
pinia:
specifier: 2.3.1
pouchdb:
specifier: ^9.0.0
version: 9.0.0
@@ -165,7 +165,7 @@ importers:
version: 9.1.0
splitpanes:
specifier: 3.2.0
sql-formatter:
specifier: 15.6.2
version: 15.6.2
@@ -180,7 +180,7 @@ importers:
version: 11.1.0
vdirs:
specifier: ^0.1.8
vscode:
specifier: npm:@codingame/[email protected]
version: '@codingame/[email protected]'
@@ -192,13 +192,13 @@ importers:
version: 3.4.0
vue:
specifier: 3.5.18
- version: 3.5.18([email protected])
+ version: 3.5.18([email protected])
vuedraggable:
specifier: ^4.1.0
vueuc:
specifier: 0.4.64
devDependencies:
'@codingame/esbuild-import-meta-url-plugin':
specifier: ^1.0.3
@@ -211,16 +211,16 @@ importers:
'@intlify/unplugin-vue-i18n':
specifier: 6.0.8
'@rollup/plugin-yaml':
specifier: 4.1.2
version: 4.1.2([email protected])
'@tailwindcss/forms':
specifier: 0.5.10
'@tailwindcss/typography':
specifier: 0.5.16
'@trivago/prettier-plugin-sort-imports':
specifier: ^5.2.2
version: 5.2.2(@vue/[email protected])([email protected])
@@ -292,10 +292,10 @@ importers:
'@vitejs/plugin-vue':
specifier: 5.2.4
'@vitejs/plugin-vue-jsx':
specifier: 4.2.0
'@vue/compiler-sfc':
specifier: 3.5.18
version: 3.5.18
@@ -304,13 +304,13 @@ importers:
'@vue/eslint-config-typescript':
specifier: ^14.5.0
'@vue/test-utils':
specifier: 2.4.6
version: 2.4.6
'@vue/tsconfig':
specifier: 0.7.0
autoprefixer:
specifier: 10.4.21
version: 10.4.21([email protected])
@@ -361,13 +361,13 @@ importers:
version: 4.46.2
tailwindcss:
specifier: 3.4.17
ts-node:
specifier: ^10.9.2
- version: 10.9.2(@types/[email protected])([email protected])
+ version: 10.9.2(@types/[email protected])([email protected])
typescript:
- specifier: 5.8.3
- version: 5.8.3
+ specifier: 5.9.2
+ version: 5.9.2
unified:
specifier: ^11.0.5
version: 11.0.5
@@ -376,7 +376,7 @@ importers:
version: 22.1.0(@vue/[email protected])
unplugin-vue-components:
specifier: 28.7.0
vite:
specifier: 6.3.5
@@ -397,13 +397,13 @@ importers:
version: 2.2.10
vue-i18n:
specifier: 11.1.10
vue-router:
specifier: 4.5.1
vue-tsc:
specifier: 2.2.10
- version: 2.2.10([email protected])
+ version: 2.2.10([email protected])
ws:
specifier: ^8.18.2
version: 8.18.3
@@ -4881,8 +4881,8 @@ packages:
eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.9.0'
- resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}
+ resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==}
engines: {node: '>=14.17'}
hasBin: true
@@ -7652,9 +7652,9 @@ snapshots:
dependencies:
css-render: 0.15.14
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
'@csstools/[email protected]': {}
@@ -7807,10 +7807,10 @@ snapshots:
dependencies:
'@fortawesome/fontawesome-common-types': 6.7.2
dependencies:
'@fortawesome/fontawesome-svg-core': 6.7.2
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
'@humanfs/[email protected]': {}
@@ -7845,7 +7845,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@intlify/message-compiler': 11.1.10
'@intlify/shared': 11.1.10
@@ -7857,7 +7857,7 @@ snapshots:
source-map-js: 1.2.1
yaml-eslint-parser: 1.3.0
optionalDependencies:
'@intlify/[email protected]':
dependencies:
@@ -7908,15 +7908,15 @@ snapshots:
'@intlify/[email protected]': {}
dependencies:
'@eslint-community/eslint-utils': 4.7.0([email protected]([email protected]))
- '@intlify/bundle-utils': 10.0.1([email protected]([email protected]([email protected])))
+ '@intlify/bundle-utils': 10.0.1([email protected]([email protected]([email protected])))
'@intlify/shared': 11.1.10
'@rollup/pluginutils': 5.1.4([email protected])
'@typescript-eslint/scope-manager': 8.33.1
- '@typescript-eslint/typescript-estree': 8.33.1([email protected])
+ '@typescript-eslint/typescript-estree': 8.33.1([email protected])
debug: 4.4.1
fast-glob: 3.3.3
js-yaml: 4.1.0
@@ -7925,9 +7925,9 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
unplugin: 1.16.1
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
optionalDependencies:
transitivePeerDependencies:
- '@vue/compiler-dom'
- eslint
@@ -7935,14 +7935,14 @@ snapshots:
- supports-color
- typescript
dependencies:
'@babel/parser': 7.28.0
optionalDependencies:
'@intlify/shared': 11.1.10
'@vue/compiler-dom': 3.5.18
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
'@isaacs/[email protected]':
dependencies:
@@ -8089,25 +8089,25 @@ snapshots:
dependencies:
clipboard: 2.0.11
dependencies:
mini-svg-data-uri: 1.4.4
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
'@tanstack/[email protected]': {}
dependencies:
'@tanstack/table-core': 8.21.3
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
@@ -8325,41 +8325,41 @@ snapshots:
'@types/[email protected]': {}
dependencies:
'@eslint-community/regexpp': 4.12.1
- '@typescript-eslint/parser': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.33.1([email protected]([email protected]))([email protected])
'@typescript-eslint/scope-manager': 8.33.1
- '@typescript-eslint/type-utils': 8.33.1([email protected]([email protected]))([email protected])
- '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/type-utils': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
'@typescript-eslint/visitor-keys': 8.33.1
eslint: 9.32.0([email protected])
graphemer: 1.4.0
ignore: 7.0.5
natural-compare: 1.4.0
- ts-api-utils: 2.1.0([email protected])
- typescript: 5.8.3
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.33.1
'@typescript-eslint/types': 8.33.1
- '@typescript-eslint/typescript-estree': 8.33.1([email protected])
+ '@typescript-eslint/typescript-estree': 8.33.1([email protected])
'@typescript-eslint/visitor-keys': 8.33.1
debug: 4.4.1
eslint: 9.32.0([email protected])
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.33.1([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.33.1([email protected])
'@typescript-eslint/types': 8.33.1
debug: 4.4.1
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
@@ -8368,27 +8368,27 @@ snapshots:
'@typescript-eslint/types': 8.33.1
'@typescript-eslint/visitor-keys': 8.33.1
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
dependencies:
- '@typescript-eslint/typescript-estree': 8.33.1([email protected])
- '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.33.1([email protected])
+ '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
debug: 4.4.1
eslint: 9.32.0([email protected])
- ts-api-utils: 2.1.0([email protected])
- typescript: 5.8.3
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/[email protected]': {}
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/project-service': 8.33.1([email protected])
- '@typescript-eslint/tsconfig-utils': 8.33.1([email protected])
+ '@typescript-eslint/project-service': 8.33.1([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.33.1([email protected])
'@typescript-eslint/types': 8.33.1
'@typescript-eslint/visitor-keys': 8.33.1
debug: 4.4.1
@@ -8396,19 +8396,19 @@ snapshots:
is-glob: 4.0.3
minimatch: 9.0.5
semver: 7.7.2
- ts-api-utils: 2.1.0([email protected])
- typescript: 5.8.3
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.7.0([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.33.1
'@typescript-eslint/types': 8.33.1
- '@typescript-eslint/typescript-estree': 8.33.1([email protected])
+ '@typescript-eslint/typescript-estree': 8.33.1([email protected])
eslint: 9.32.0([email protected])
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
@@ -8432,21 +8432,21 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/core': 7.27.4
'@babel/plugin-transform-typescript': 7.27.1(@babel/[email protected])
'@rolldown/pluginutils': 1.0.0-beta.10
'@vue/babel-plugin-jsx': 1.4.0(@babel/[email protected])
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
'@vitest/[email protected]':
dependencies:
@@ -8579,20 +8579,20 @@ snapshots:
transitivePeerDependencies:
- '@types/eslint'
dependencies:
- '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
eslint: 9.32.0([email protected])
eslint-plugin-vue: 9.33.0([email protected]([email protected]))
fast-glob: 3.3.3
vue-eslint-parser: 10.1.3([email protected]([email protected]))
optionalDependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
dependencies:
'@volar/language-core': 2.4.14
'@vue/compiler-dom': 3.5.18
@@ -8603,7 +8603,7 @@ snapshots:
muggle-string: 0.4.1
path-browserify: 1.0.1
optionalDependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
dependencies:
@@ -8621,11 +8621,11 @@ snapshots:
'@vue/shared': 3.5.18
csstype: 3.1.3
dependencies:
'@vue/compiler-ssr': 3.5.18
'@vue/shared': 3.5.18
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
'@vue/[email protected]': {}
@@ -8634,25 +8634,25 @@ snapshots:
js-beautify: 1.15.4
vue-component-type-helpers: 2.2.10
optionalDependencies:
- typescript: 5.8.3
- vue: 3.5.18([email protected])
+ typescript: 5.9.2
+ vue: 3.5.18([email protected])
dependencies:
'@types/web-bluetooth': 0.0.21
'@vueuse/metadata': 12.8.2
- '@vueuse/shared': 12.8.2([email protected])
- vue: 3.5.18([email protected])
+ '@vueuse/shared': 12.8.2([email protected])
+ vue: 3.5.18([email protected])
transitivePeerDependencies:
- typescript
'@vueuse/[email protected]': {}
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
transitivePeerDependencies:
- typescript
@@ -9937,9 +9937,9 @@ snapshots:
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
@@ -10331,10 +10331,10 @@ snapshots:
object-assign: 4.1.1
thenify-all: 1.6.0
dependencies:
'@css-render/plugin-bem': 0.15.14([email protected])
- '@css-render/vue3-ssr': 0.15.14([email protected]([email protected]))
+ '@css-render/vue3-ssr': 0.15.14([email protected]([email protected]))
'@types/katex': 0.16.7
'@types/lodash': 4.17.17
'@types/lodash-es': 4.17.12
@@ -10349,10 +10349,10 @@ snapshots:
lodash-es: 4.17.21
seemly: 0.3.10
treemate: 0.3.11
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
@@ -10465,21 +10465,21 @@ snapshots:
dependencies:
'@fortawesome/fontawesome-svg-core': 6.7.2
'@fortawesome/free-solid-svg-icons': 6.7.2
- '@fortawesome/vue-fontawesome': 3.0.8(@fortawesome/[email protected])([email protected]([email protected]))
+ '@fortawesome/vue-fontawesome': 3.0.8(@fortawesome/[email protected])([email protected]([email protected]))
bootstrap: 5.3.7(@popperjs/[email protected])
d3: 7.9.0
d3-flextree: 2.1.2
highlight.js: 11.11.1
humanize-duration: 3.32.2
lodash: 4.17.21
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
vue-clipboard3: 2.0.0
transitivePeerDependencies:
- '@popperjs/core'
- typescript
@@ -10492,13 +10492,13 @@ snapshots:
dependencies:
'@vue/devtools-api': 6.6.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
optionalDependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- '@vue/composition-api'
@@ -10537,13 +10537,13 @@ snapshots:
camelcase-css: 2.0.1
postcss: 8.5.6
dependencies:
lilconfig: 3.1.3
yaml: 2.8.0
optionalDependencies:
postcss: 8.5.6
- ts-node: 10.9.2(@types/[email protected])([email protected])
+ ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
@@ -10929,9 +10929,9 @@ snapshots:
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
@@ -11015,7 +11015,7 @@ snapshots:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -11034,7 +11034,7 @@ snapshots:
postcss: 8.5.6
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.10
@@ -11120,13 +11120,13 @@ snapshots:
dependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -11140,7 +11140,7 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.8.3
+ typescript: 5.9.2
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
@@ -11152,17 +11152,17 @@ snapshots:
dependencies:
- '@typescript-eslint/parser': 8.33.1([email protected]([email protected]))([email protected])
- '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.33.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.33.1([email protected]([email protected]))([email protected])
eslint: 9.32.0([email protected])
- typescript: 5.8.3
+ typescript: 5.9.2
transitivePeerDependencies:
- supports-color
@@ -11229,7 +11229,7 @@ snapshots:
pathe: 2.0.3
picomatch: 4.0.2
dependencies:
chokidar: 3.6.0
debug: 4.4.1
@@ -11239,7 +11239,7 @@ snapshots:
tinyglobby: 0.2.14
unplugin: 2.3.5
unplugin-utils: 0.2.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
optionalDependencies:
'@babel/parser': 7.28.0
transitivePeerDependencies:
@@ -11279,10 +11279,10 @@ snapshots:
dependencies:
evtd: 0.2.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
@@ -11390,10 +11390,10 @@ snapshots:
- tsx
- yaml
dependencies:
evtd: 0.2.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
@@ -11430,9 +11430,9 @@ snapshots:
dependencies:
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
@@ -11460,54 +11460,54 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@intlify/core-base': 11.1.10
'@intlify/shared': 11.1.10
'@vue/devtools-api': 6.6.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
'@vue/devtools-api': 6.6.4
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
tippy.js: 6.3.7
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
'@volar/typescript': 2.4.14
- '@vue/language-core': 2.2.10([email protected])
- typescript: 5.8.3
+ '@vue/language-core': 2.2.10([email protected])
+ typescript: 5.9.2
dependencies:
'@vue/compiler-dom': 3.5.18
'@vue/compiler-sfc': 3.5.18
'@vue/runtime-dom': 3.5.18
- '@vue/server-renderer': 3.5.18([email protected]([email protected]))
+ '@vue/server-renderer': 3.5.18([email protected]([email protected]))
'@vue/shared': 3.5.18
optionalDependencies:
- typescript: 5.8.3
+ typescript: 5.9.2
dependencies:
sortablejs: 1.14.0
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
dependencies:
- '@css-render/vue3-ssr': 0.15.14([email protected]([email protected]))
+ '@css-render/vue3-ssr': 0.15.14([email protected]([email protected]))
'@juggle/resize-observer': 3.4.0
css-render: 0.15.14
evtd: 0.2.4
seemly: 0.3.10
- vue: 3.5.18([email protected])
+ vue: 3.5.18([email protected])
diff --git a/frontend/src/components/DataExportButton.vue b/frontend/src/components/DataExportButton.vue
index f483f489cd..9f121eb7ef 100644
--- a/frontend/src/components/DataExportButton.vue
+++ b/frontend/src/components/DataExportButton.vue
@@ -133,7 +133,6 @@ import {
NRadioGroup,
NTooltip,
} from "naive-ui";
-import type { BinaryLike } from "node:crypto";
import { computed, reactive, ref, watch } from "vue";
import { BBModal, BBTextField } from "@/bbkit";
import { t } from "@/plugins/i18n";
@@ -150,7 +149,7 @@ interface LocalState {
}
export type DownloadContent = Array<{
- content: BinaryLike | Blob;
+ content: Uint8Array;
filename: string;
}>;
@@ -339,8 +338,8 @@ const getExportFileType = (format: ExportFormat) => {
}
};
-const cnovertSingleFile = async (
- content: BinaryLike | Blob,
+const convertSingleFile = async (
+ content: Uint8Array,
options: ExportOption
) => {
const isZip = downloadFileAsZip(options);
@@ -348,7 +347,12 @@ const cnovertSingleFile = async (
? "application/zip"
: getExportFileType(options.format);
- let blob = new Blob([content], {
+ // Create Blob from Uint8Array
+ const buffer = content.buffer.slice(
+ content.byteOffset,
+ content.byteOffset + content.byteLength
+ ) as ArrayBuffer; // TypeScript 5.9.2 requires explicit ArrayBuffer type
+ let blob = new Blob([buffer], {
type: fileType,
});
if (options.format === ExportFormat.JSON) {
@@ -366,12 +370,12 @@ const doDownloadSingleFile = async (
content,
filename,
}: {
- content: BinaryLike | Blob;
+ content: Uint8Array;
filename: string;
},
options: ExportOption
) => {
- const blob = await cnovertSingleFile(content, options);
+ const blob = await convertSingleFile(content, options);
const isZip = downloadFileAsZip(options);
const url = window.URL.createObjectURL(blob);
@@ -390,7 +394,7 @@ const doDownload = async (content: DownloadContent, options: ExportOption) => {
const fileFormat = ExportFormat[options.format].toLowerCase();
const zip = new JSZip();
for (const c of content) {
- const blob = await cnovertSingleFile(c.content, options);
+ const blob = await convertSingleFile(c.content, options);
zip.file(`${c.filename}.${fileFormat}`, blob);
}
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue
index bf5c8cdbf9..8cb40ad289 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue
@@ -105,7 +105,11 @@ const downloadExportArchive = async () => {
})
);
const fileType = getExportFileType(exportDataConfig.value);
- const blob = new Blob([content], {
+ const buffer = content.buffer.slice(
+ content.byteOffset,
+ content.byteOffset + content.byteLength
+ ) as ArrayBuffer;
+ const blob = new Blob([buffer], {
type: fileType,
});
const url = window.URL.createObjectURL(blob);
diff --git a/frontend/src/store/modules/v1/auditLog.ts b/frontend/src/store/modules/v1/auditLog.ts
index 4c95647ca7..b8cd744b16 100644
--- a/frontend/src/store/modules/v1/auditLog.ts
+++ b/frontend/src/store/modules/v1/auditLog.ts
@@ -1,7 +1,6 @@
import { create } from "@bufbuild/protobuf";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
-import type { BinaryLike } from "node:crypto";
import { defineStore } from "pinia";
import { auditLogServiceClientConnect } from "@/grpcweb";
import type { SearchAuditLogsParams } from "@/types";
@@ -62,7 +61,7 @@ export const useAuditLogStore = defineStore("audit_log", () => {
pageSize: number;
pageToken: string;
}): Promise<{
- content: BinaryLike | Blob;
+ content: Uint8Array;
nextPageToken: string;
}> => {
const request = create(ExportAuditLogsRequestSchema, {