Skip to content

Commit 0a7db05

Browse files
authored
chore: Move Audio File Decoder to humansignal dep (#8819)
1 parent dd6c141 commit 0a7db05

File tree

4 files changed

+12
-31
lines changed

4 files changed

+12
-31
lines changed

web/libs/editor/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"@ant-design/colors": "6.0.0",
88
"@ant-design/icons": "4.8.1",
9-
"@martel/audio-file-decoder": "^2.3.15",
9+
"@humansignal/audio-file-decoder": "0.1.5",
1010
"@thi.ng/rle-pack": "^3.1.30",
1111
"antd": "^4.3.3",
1212
"chroma-js": "^2.1.1",
@@ -35,7 +35,6 @@
3535
"react-virtualized-auto-sizer": "^1.0.20",
3636
"react-window": "^1.8.9",
3737
"sanitize-html": "^2.12.1",
38-
3938
"webfft": "^1.0.3",
4039
"xpath-range": "^1.1.1"
4140
},

web/libs/editor/src/lib/AudioUltra/Media/AudioDecoder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type AudioDecoderWorker, getAudioDecoderWorker } from "@martel/audio-file-decoder";
1+
import { type AudioDecoderWorker, getAudioDecoderWorker } from "@humansignal/audio-file-decoder";
22
// eslint-disable-next-line
33
// @ts-ignore
4-
import DecodeAudioWasm from "@martel/audio-file-decoder/decode-audio.wasm";
4+
import DecodeAudioWasm from "@humansignal/audio-file-decoder/decode-audio.wasm";
55
import { BaseAudioDecoder } from "./BaseAudioDecoder";
66
import { clamp, info } from "../Common/Utils";
77
import { SplitChannel } from "./SplitChannel";

web/package.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,18 @@
3838
"test:affected": "nx affected --target=test:unit --base=develop",
3939
"test:watch": "yarn test:unit --all --watch",
4040
"test:watch:affected": "yarn test --watch",
41-
"postinstall": "npx -y copy-files-from-to",
4241
"design-tokens": "nx design-tokens ui",
4342
"extract-antd-no-reset": "nx extract-antd-no-reset editor",
4443
"storybook:serve": "nx storybook storybook",
4544
"storybook:build": "nx build-storybook storybook",
4645
"playground:serve": "FRONTEND_HOSTNAME=http://localhost:4200 MODE=standalone-playground nx run playground:serve:development",
4746
"playground:build": "NODE_ENV=production MODE=standalone-playground nx run playground:build:production && mv dist/apps/playground/playground-assets/index.html dist/apps/playground/index.html"
4847
},
49-
"husky": {
50-
"hooks": {
51-
"post-checkout": "npx -y copy-files-from-to"
52-
}
53-
},
5448
"private": true,
5549
"dependencies": {
5650
"@ant-design/colors": "6.0.0",
5751
"@ant-design/icons": "4.8.1",
58-
"@martel/audio-file-decoder": "^2.3.15",
52+
"@humansignal/audio-file-decoder": "0.1.5",
5953
"@radix-ui/react-accordion": "^1.2.11",
6054
"@radix-ui/react-dialog": "^1.1.6",
6155
"@radix-ui/react-popover": "^1.1.6",
@@ -197,7 +191,6 @@
197191
"cypress-parallel": "^0.15.0",
198192
"cypress-terminal-report": "^5.1.1",
199193
"dotenv-defaults": "^2.0.2",
200-
"husky": "^8.0.3",
201194
"jest": "29.7.0",
202195
"jest-environment-jsdom": "29.7.0",
203196
"jest-fetch-mock": "^3.0.3",
@@ -254,11 +247,5 @@
254247
"on-headers": "1.1.0",
255248
"form-data": "4.0.4",
256249
"stylus": "0.0.1-security"
257-
},
258-
"copyFiles": [
259-
{
260-
"from": "./node_modules/@martel/audio-file-decoder/decode-audio.wasm",
261-
"to": "./node_modules/@martel/audio-file-decoder/dist/decode-audio.wasm"
262-
}
263-
]
250+
}
264251
}

web/yarn.lock

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,6 +2661,13 @@
26612661
resolved "https://registry.yarnpkg.com/@gilbarbara/deep-equal/-/deep-equal-0.3.1.tgz#9c72ed0b2e6f8edb1580217e28d78b5b03ad4aee"
26622662
integrity sha512-I7xWjLs2YSVMc5gGx1Z3ZG1lgFpITPndpi8Ku55GeEIKpACCPQNS/OTqQbxgTCfq0Ncvcc+CrFov96itVh6Qvw==
26632663

2664+
"@humansignal/[email protected]":
2665+
version "0.1.5"
2666+
resolved "https://registry.yarnpkg.com/@humansignal/audio-file-decoder/-/audio-file-decoder-0.1.5.tgz#e9857f012402fe6b9d52de7bd0b6ec8712aef769"
2667+
integrity sha512-oQ46MWo/QdNvNEc9rP8tuivsCn1341tNpBMQVo9CuARWCNAveuisTDWBvkNhI4k+1L7/xdV0C45lSTZfhEe/gw==
2668+
dependencies:
2669+
"@babel/runtime" "^7.13.10"
2670+
26642671
"@hypnosphi/create-react-context@^0.3.1":
26652672
version "0.3.1"
26662673
resolved "https://registry.yarnpkg.com/@hypnosphi/create-react-context/-/create-react-context-0.3.1.tgz#f8bfebdc7665f5d426cba3753e0e9c7d3154d7c6"
@@ -3004,13 +3011,6 @@
30043011
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
30053012
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
30063013

3007-
"@martel/audio-file-decoder@^2.3.15":
3008-
version "2.3.15"
3009-
resolved "https://registry.yarnpkg.com/@martel/audio-file-decoder/-/audio-file-decoder-2.3.15.tgz#7d9ada5211de65cc9e02e2f41ab86497bf7b3885"
3010-
integrity sha512-tqfmxy2RohqFzOPq/2Kdskt3PvjJ7UzraAtOOwXbhV13XoeMIP/y7YybvfzluyFz9jQUSU94PCiN2IsUAKaOAg==
3011-
dependencies:
3012-
"@babel/runtime" "^7.13.10"
3013-
30143014
"@mdx-js/react@^3.0.0":
30153015
version "3.1.0"
30163016
resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-3.1.0.tgz#c4522e335b3897b9a845db1dbdd2f966ae8fb0ed"
@@ -11677,11 +11677,6 @@ human-signals@^4.3.0:
1167711677
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2"
1167811678
integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==
1167911679

11680-
husky@^8.0.3:
11681-
version "8.0.3"
11682-
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
11683-
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
11684-
1168511680
1168611681
version "0.4.24"
1168711682
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"

0 commit comments

Comments
 (0)