@4players/odin-plugin-web 1.6.0 → 1.6.2
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/cmake/dependencies.cmake +1 -1
- package/lib/cjs/plugin/index.cjs +1 -1
- package/lib/cjs/worker/shared.cjs +1 -1
- package/lib/cjs/worker/unshared.cjs +1 -1
- package/lib/esm/plugin/index.mjs +1 -1
- package/lib/esm/worker/shared.mjs +1 -1
- package/lib/esm/worker/unshared.mjs +1 -1
- package/lib/index.d.ts +8 -0
- package/package.json +7 -8
package/lib/index.d.ts
CHANGED
|
@@ -19,6 +19,14 @@ export declare function createPlugin(audioContextFactory: AudioContextFactory, o
|
|
|
19
19
|
export interface WebPluginOptions {
|
|
20
20
|
logger?: Logger;
|
|
21
21
|
onLogMessage?: OnLogMessage;
|
|
22
|
+
/**
|
|
23
|
+
* Skip automatic reconnection attempts after connection loss; useful if the application implements custom reconnect logic
|
|
24
|
+
*/
|
|
25
|
+
disableAutoReconnect?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Skip registering the beforeunload handler that auto-closes the plugin on page unload
|
|
28
|
+
*/
|
|
29
|
+
disableBeforeUnload?: boolean;
|
|
22
30
|
}
|
|
23
31
|
export declare const SESSION_ID: string;
|
|
24
32
|
export interface WebPlugin extends Backend.Plugin {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4players/odin-plugin-web",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "A backend plugin providing the custom WebAssembly audio processing module for ODIN web clients",
|
|
5
5
|
"homepage": "https://www.4players.io",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build:wasm": "npm-run-all -pl build:wasm:*",
|
|
30
30
|
"build:wasm:shared": "emmake cmake --build build/shared -j 8",
|
|
31
31
|
"build:wasm:unshared": "emmake cmake --build build/unshared -j 8",
|
|
32
|
-
"build:bundle": "
|
|
32
|
+
"build:bundle": "tsx src/bundle.ts",
|
|
33
33
|
"build:types": "dts-bundle-generator --fail-on-class --no-banner -o lib/index.d.ts src/plugin/index.ts",
|
|
34
34
|
"test": "npm-run-all -s test:*",
|
|
35
35
|
"test:install": "npm --prefix test install",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"lint": "eslint . --ext .ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@4players/odin-common": "~
|
|
41
|
+
"@4players/odin-common": "~9.1.0",
|
|
42
42
|
"@4players/voice-filter": "~1.2.0",
|
|
43
43
|
"@msgpack/msgpack": "3.1.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/node": "~22.
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
48
|
-
"@typescript-eslint/parser": "~8.
|
|
46
|
+
"@types/node": "~22.19.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "~8.53.0",
|
|
48
|
+
"@typescript-eslint/parser": "~8.53.0",
|
|
49
49
|
"dts-bundle-generator": "~9.5.0",
|
|
50
50
|
"esbuild": "~0.27.0",
|
|
51
51
|
"eslint": "~8.57.0",
|
|
@@ -55,9 +55,8 @@
|
|
|
55
55
|
"eslint-plugin-promise": "~6.6.0",
|
|
56
56
|
"genversion": "~3.2.0",
|
|
57
57
|
"npm-run-all2": "~8.0.0",
|
|
58
|
-
"prettier": "~3.
|
|
58
|
+
"prettier": "~3.8.0",
|
|
59
59
|
"rimraf": "~6.1.0",
|
|
60
|
-
"ts-node": "~10.9.0",
|
|
61
60
|
"tsx": "^4.19.4",
|
|
62
61
|
"typescript": "~5.6.0"
|
|
63
62
|
}
|