From 3b2d317b2da1d280111235f084fff88c4bd61565 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Wed, 19 Jul 2023 21:09:53 -0400 Subject: [PATCH] 0.1.2: fix download folder when name contains . --- package.json | 30 +++++++++++++++--------------- src/FileManager.vue | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 7618402..8e6e2a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@libreservice/wasm-code", - "version": "0.1.1", + "version": "0.1.2", "main": "dist/index.js", "type": "module", "files": [ @@ -22,24 +22,24 @@ }, "sideEffects": false, "devDependencies": { - "@babel/runtime": "^7.21.5", - "@codemirror/language": "^6.6.0", - "@codemirror/state": "^6.2.0", - "@codemirror/view": "^6.12.0", - "@typescript-eslint/eslint-plugin": "^5.59.6", - "@uiw/codemirror-theme-vscode": "^4.20.0", + "@babel/runtime": "^7.22.6", + "@codemirror/language": "^6.8.0", + "@codemirror/state": "^6.2.1", + "@codemirror/view": "^6.15.3", + "@typescript-eslint/eslint-plugin": "^6.1.0", + "@uiw/codemirror-theme-vscode": "^4.21.7", "@vicons/material": "^0.12.0", "@vitejs/plugin-vue": "^4.2.3", - "client-zip": "^2.4.3", + "client-zip": "^2.4.4", "codemirror": "^6.0.1", - "eslint": "^8.40.0", - "eslint-config-standard": "^17.0.0", - "eslint-plugin-vue": "^9.13.0", - "naive-ui": "^2.34.3", - "typescript": "^5.0.4", - "vite": "^4.3.8", + "eslint": "^8.45.0", + "eslint-config-standard": "^17.1.0", + "eslint-plugin-vue": "^9.15.1", + "naive-ui": "^2.34.4", + "typescript": "^5.1.6", + "vite": "^4.4.4", "vue": "^3.3.4", - "vue-tsc": "^1.6.5" + "vue-tsc": "^1.8.5" }, "peerDependencies": { "vue": "^3.2.0", diff --git a/src/FileManager.vue b/src/FileManager.vue index 0b620b7..a968be2 100644 --- a/src/FileManager.vue +++ b/src/FileManager.vue @@ -246,7 +246,7 @@ async function downloadFolder (path: string) { await traverse(undefined, addFileToZip, addFolderToZip)(path) const blob = await downloadZip(manifest).blob() - downloadBlob(blob, name) + downloadBlob(blob, name + '.zip') } function upload (path: string) {