libopus-wasm 0.0.1 → 0.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/CHANGELOG.md +34 -0
- package/README.md +205 -41
- package/dist/discordjs.d.ts +20 -0
- package/dist/discordjs.d.ts.map +1 -0
- package/dist/discordjs.js +108 -0
- package/dist/generated/libopus.generated.mjs +0 -0
- package/dist/index.d.ts +121 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +508 -70
- package/package.json +16 -3
package/package.json
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libopus-wasm",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Small, modern WASM bindings for libopus raw packet encode/decode.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "git+https://github.com/openclaw/libopus-wasm.git"
|
|
10
11
|
},
|
|
11
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://libopus-wasm.dev",
|
|
12
13
|
"bugs": {
|
|
13
14
|
"url": "https://github.com/openclaw/libopus-wasm/issues"
|
|
14
15
|
},
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
19
|
+
"browser": "./dist/index.js",
|
|
18
20
|
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./discordjs": {
|
|
23
|
+
"types": "./dist/discordjs.d.ts",
|
|
24
|
+
"import": "./dist/discordjs.js"
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"files": [
|
|
22
|
-
"dist",
|
|
28
|
+
"dist/*.d.ts",
|
|
29
|
+
"dist/*.d.ts.map",
|
|
30
|
+
"dist/*.js",
|
|
31
|
+
"dist/generated",
|
|
32
|
+
"CHANGELOG.md",
|
|
23
33
|
"LICENSE",
|
|
24
34
|
"README.md",
|
|
25
35
|
"THIRD_PARTY_NOTICES.md"
|
|
@@ -29,13 +39,16 @@
|
|
|
29
39
|
"build:wasm": "node scripts/build-libopus-wasm.mjs",
|
|
30
40
|
"benchmark": "pnpm build && node scripts/benchmark-native.mjs",
|
|
31
41
|
"clean": "rm -rf dist .cache",
|
|
42
|
+
"docs:build": "node scripts/build-docs-site.mjs",
|
|
32
43
|
"prepack": "pnpm build",
|
|
33
44
|
"test": "pnpm build:wasm && vitest run",
|
|
45
|
+
"test:coverage": "pnpm build:wasm && vitest run --coverage",
|
|
34
46
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
35
47
|
},
|
|
36
48
|
"devDependencies": {
|
|
37
49
|
"@discordjs/opus": "0.10.0",
|
|
38
50
|
"@types/node": "24.10.2",
|
|
51
|
+
"@vitest/coverage-v8": "4.0.14",
|
|
39
52
|
"typescript": "5.9.3",
|
|
40
53
|
"vitest": "4.0.14"
|
|
41
54
|
},
|