From 19601104b822baf90055d52513c8314bd5b020ed Mon Sep 17 00:00:00 2001 From: Olof Nord Date: Sat, 27 Aug 2022 15:43:27 +0200 Subject: [PATCH] Replace git mic-recorder-to-mp3 dependency Instead of using a git repo as dependency, switch to the @jmd01/mic-recorder-to-mp3 fork: "Forked due to the bundled dist (which includes lamejs src) throwing the error "LAME undefined" when bundling with esbuild." --- axolotl-web/package-lock.json | 39 ++++++++++++++------------- axolotl-web/package.json | 2 +- axolotl-web/src/pages/MessageList.vue | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/axolotl-web/package-lock.json b/axolotl-web/package-lock.json index 7889c4bf6..cc4e80fbc 100644 --- a/axolotl-web/package-lock.json +++ b/axolotl-web/package-lock.json @@ -12,12 +12,12 @@ "@fortawesome/fontawesome-svg-core": "^6.1.2", "@fortawesome/free-solid-svg-icons": "^6.1.2", "@fortawesome/vue-fontawesome": "^3.0.1", + "@jmd01/mic-recorder-to-mp3": "^2.2.3", "@popperjs/core": "^2.11.6", "bootstrap": "^5.2.0", "file-saver": "^2.0.5", "linkify-html": "^3.0.4", "linkifyjs": "^3.0.4", - "mic-recorder-to-mp3": "https://git@github.com/NikolaBalaban/mic-recorder-to-mp3.git", "moment": "^2.29.4", "qrcode": "1.5.1", "vue": "^3.2.37", @@ -648,6 +648,17 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "node_modules/@jmd01/mic-recorder-to-mp3": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@jmd01/mic-recorder-to-mp3/-/mic-recorder-to-mp3-2.2.3.tgz", + "integrity": "sha512-+TeQ1Pl7R5BpWYU3yQKKU9uPAFzAQ/0YqejZFXXdyWSBpjga5V9vp+M8S7QQ/Y3CzLnPYNIUQpHAUexc6Deacg==", + "dependencies": { + "lamejs": "^1.2.0" + }, + "peerDependencies": { + "webrtc-adapter": ">=4.1.1" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", @@ -4332,17 +4343,6 @@ "node": ">= 8" } }, - "node_modules/mic-recorder-to-mp3": { - "version": "2.2.2", - "resolved": "git+https://git@github.com/NikolaBalaban/mic-recorder-to-mp3.git#b07b6408c41cb55122169739e4bdce626660c109", - "license": "MIT", - "dependencies": { - "lamejs": "^1.2.0" - }, - "peerDependencies": { - "webrtc-adapter": ">=4.1.1" - } - }, "node_modules/micromatch": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", @@ -6498,6 +6498,14 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "@jmd01/mic-recorder-to-mp3": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@jmd01/mic-recorder-to-mp3/-/mic-recorder-to-mp3-2.2.3.tgz", + "integrity": "sha512-+TeQ1Pl7R5BpWYU3yQKKU9uPAFzAQ/0YqejZFXXdyWSBpjga5V9vp+M8S7QQ/Y3CzLnPYNIUQpHAUexc6Deacg==", + "requires": { + "lamejs": "^1.2.0" + } + }, "@jridgewell/gen-mapping": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", @@ -9184,13 +9192,6 @@ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, - "mic-recorder-to-mp3": { - "version": "git+https://git@github.com/NikolaBalaban/mic-recorder-to-mp3.git#b07b6408c41cb55122169739e4bdce626660c109", - "from": "mic-recorder-to-mp3@https://git@github.com/NikolaBalaban/mic-recorder-to-mp3.git", - "requires": { - "lamejs": "^1.2.0" - } - }, "micromatch": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", diff --git a/axolotl-web/package.json b/axolotl-web/package.json index d594d8e0a..ecbd5e14d 100644 --- a/axolotl-web/package.json +++ b/axolotl-web/package.json @@ -24,12 +24,12 @@ "@fortawesome/fontawesome-svg-core": "^6.1.2", "@fortawesome/free-solid-svg-icons": "^6.1.2", "@fortawesome/vue-fontawesome": "^3.0.1", + "@jmd01/mic-recorder-to-mp3": "^2.2.3", "@popperjs/core": "^2.11.6", "bootstrap": "^5.2.0", "file-saver": "^2.0.5", "linkify-html": "^3.0.4", "linkifyjs": "^3.0.4", - "mic-recorder-to-mp3": "https://git@github.com/NikolaBalaban/mic-recorder-to-mp3.git", "moment": "^2.29.4", "qrcode": "1.5.1", "vue": "^3.2.37", diff --git a/axolotl-web/src/pages/MessageList.vue b/axolotl-web/src/pages/MessageList.vue index e20bc6292..de2e127fe 100644 --- a/axolotl-web/src/pages/MessageList.vue +++ b/axolotl-web/src/pages/MessageList.vue @@ -171,7 +171,7 @@ import Message from "@/components/Message"; import AttachmentBar from "@/components/AttachmentBar"; import DefaultLayout from "@/layouts/Default"; import { saveAs } from "file-saver"; -import * as MicRecorder from "mic-recorder-to-mp3"; +import * as MicRecorder from "@jmd01/mic-recorder-to-mp3"; export default { name: "MessageList", components: {