@libraz/libsonare 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +299 -2
- package/dist/index.d.ts +1649 -202
- package/dist/index.js +2101 -994
- package/dist/index.js.map +1 -1
- package/dist/sonare-rt-module.js +2 -0
- package/dist/sonare-rt.js +2 -0
- package/dist/sonare-rt.wasm +0 -0
- package/dist/sonare.js +1 -1
- package/dist/sonare.wasm +0 -0
- package/dist/worklet.d.ts +447 -0
- package/dist/worklet.js +2078 -0
- package/dist/worklet.js.map +1 -0
- package/package.json +24 -27
- package/src/index.ts +3670 -0
- package/src/public_types.ts +852 -0
- package/src/sonare-rt.d.ts +93 -0
- package/src/sonare.js.d.ts +1332 -0
- package/src/stream_types.ts +133 -0
- package/src/wasm_types.ts +1248 -0
- package/src/worklet.ts +2140 -0
- package/README.npm.md +0 -114
- package/dist/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libraz/libsonare",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"description": "Audio analysis library for music information retrieval",
|
|
@@ -11,27 +11,36 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./worklet": {
|
|
15
|
+
"types": "./dist/worklet.d.ts",
|
|
16
|
+
"import": "./dist/worklet.js"
|
|
17
|
+
},
|
|
14
18
|
"./wasm": "./dist/sonare.wasm",
|
|
19
|
+
"./rt": {
|
|
20
|
+
"types": "./src/sonare-rt.d.ts",
|
|
21
|
+
"import": "./dist/sonare-rt.js"
|
|
22
|
+
},
|
|
23
|
+
"./rt-wasm": "./dist/sonare-rt.wasm",
|
|
15
24
|
"./package.json": "./package.json"
|
|
16
25
|
},
|
|
17
26
|
"files": [
|
|
18
|
-
"dist"
|
|
27
|
+
"dist",
|
|
28
|
+
"src"
|
|
19
29
|
],
|
|
20
30
|
"sideEffects": false,
|
|
21
31
|
"scripts": {
|
|
22
|
-
"
|
|
23
|
-
"build": "
|
|
24
|
-
"
|
|
25
|
-
"build:js": "
|
|
26
|
-
"clean": "rm -rf dist build-wasm",
|
|
27
|
-
"lint": "biome check
|
|
28
|
-
"lint:fix": "biome check --write
|
|
29
|
-
"format": "biome format --write
|
|
32
|
+
"build": "yarn build:js && yarn build:wasm",
|
|
33
|
+
"build:wasm": "mkdir -p build-wasm/em-cache && EM_CACHE=$PWD/build-wasm/em-cache emcmake cmake -S ../.. -B build-wasm -DBUILD_WASM=ON -DBUILD_MASTERING=ON -DCMAKE_BUILD_TYPE=Release && EM_CACHE=$PWD/build-wasm/em-cache cmake --build build-wasm && node scripts/write-rt-module-variant.mjs",
|
|
34
|
+
"bench:wasm:isp": "mkdir -p build-wasm-bench/em-cache /tmp/libsonare-wasm-bench && EM_CACHE=$PWD/build-wasm-bench/em-cache emcmake cmake -S ../.. -B build-wasm-bench -DBUILD_WASM=ON -DBUILD_MASTERING=ON -DBUILD_BENCH=ON -DBUILD_TESTING=OFF -DBUILD_CLI=OFF -DCMAKE_BUILD_TYPE=Release && EM_CACHE=$PWD/build-wasm-bench/em-cache cmake --build build-wasm-bench --target sonare_mastering_isp_bench && cp build-wasm-bench/bin/sonare_mastering_isp_bench.js /tmp/libsonare-wasm-bench/sonare_mastering_isp_bench.cjs && cp build-wasm-bench/bin/sonare_mastering_isp_bench.wasm /tmp/libsonare-wasm-bench/sonare_mastering_isp_bench.wasm && node /tmp/libsonare-wasm-bench/sonare_mastering_isp_bench.cjs",
|
|
35
|
+
"build:js": "find dist -maxdepth 1 -type f \\( -name 'chunk-*.js' -o -name 'chunk-*.js.map' -o -name '*-*.d.ts' \\) -delete 2>/dev/null; tsup",
|
|
36
|
+
"clean": "rm -rf dist build-wasm LICENSE",
|
|
37
|
+
"lint": "biome check src/ tests/",
|
|
38
|
+
"lint:fix": "biome check --write src/ tests/",
|
|
39
|
+
"format": "biome format --write src/ tests/",
|
|
30
40
|
"test": "vitest run",
|
|
41
|
+
"test:browser": "node scripts/audio-worklet-smoke.mjs",
|
|
31
42
|
"test:watch": "vitest",
|
|
32
|
-
"prepublishOnly": "yarn clean && yarn build && yarn lint && yarn test"
|
|
33
|
-
"prepack": "cp README.md .readme-backup && cp README.npm.md README.md",
|
|
34
|
-
"postpack": "mv .readme-backup README.md"
|
|
43
|
+
"prepublishOnly": "yarn clean && cp ../../LICENSE LICENSE && yarn build && yarn lint && yarn test"
|
|
35
44
|
},
|
|
36
45
|
"keywords": [
|
|
37
46
|
"audio",
|
|
@@ -59,24 +68,12 @@
|
|
|
59
68
|
},
|
|
60
69
|
"devDependencies": {
|
|
61
70
|
"@biomejs/biome": "^2.4.15",
|
|
62
|
-
"
|
|
63
|
-
"simple-git-hooks": "^2.13.1",
|
|
71
|
+
"tsup": "^8.5.1",
|
|
64
72
|
"typescript": "^6.0.3",
|
|
65
|
-
"vitest": "^4.1.
|
|
73
|
+
"vitest": "^4.1.7"
|
|
66
74
|
},
|
|
67
75
|
"volta": {
|
|
68
76
|
"node": "22.21.1",
|
|
69
77
|
"yarn": "4.12.0"
|
|
70
|
-
},
|
|
71
|
-
"simple-git-hooks": {
|
|
72
|
-
"pre-commit": "yarn lint-staged"
|
|
73
|
-
},
|
|
74
|
-
"lint-staged": {
|
|
75
|
-
"{js,tests/wasm}/**/*.{ts,js}": [
|
|
76
|
-
"biome check --write"
|
|
77
|
-
],
|
|
78
|
-
"bindings/node/{src,tests}/**/*.{ts,js}": [
|
|
79
|
-
"biome check --write"
|
|
80
|
-
]
|
|
81
78
|
}
|
|
82
79
|
}
|