@4players/odin-plugin-web 1.0.0-alpha.22 → 1.0.0-alpha.23
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/lib/plugin/h3/mainConnection.js +2 -2
- package/lib/version.d.ts +1 -0
- package/lib/version.js +2 -0
- package/package.json +4 -2
|
@@ -13,7 +13,7 @@ import { logger } from '..';
|
|
|
13
13
|
import { Token } from '../token';
|
|
14
14
|
import { RpcConnection, TypedRpcConnection } from '../rpcConnection';
|
|
15
15
|
import { HealthCheckTimeout } from '../config';
|
|
16
|
-
import
|
|
16
|
+
import { version } from '../../version';
|
|
17
17
|
var Transport = Backend.Transport;
|
|
18
18
|
export class H3MainConnection {
|
|
19
19
|
get closeSignal() {
|
|
@@ -28,7 +28,7 @@ export class H3MainConnection {
|
|
|
28
28
|
static create(id, address, onDatagram, signal) {
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
try {
|
|
31
|
-
const url = new URL(`https://${address}?version=${
|
|
31
|
+
const url = new URL(`https://${address}?version=${version}`);
|
|
32
32
|
const closeController = new AbortController();
|
|
33
33
|
signal.addEventListener('abort', () => closeController.abort(), {
|
|
34
34
|
once: true,
|
package/lib/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "1.0.0-alpha.23";
|
package/lib/version.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4players/odin-plugin-web",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.23",
|
|
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": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"configure": "npm-run-all -pl configure:*",
|
|
16
16
|
"configure:shared": "emcmake cmake -B build/shared -DCMAKE_BUILD_TYPE=Release -DSHARED_MEMORY=1 -S .",
|
|
17
17
|
"configure:unshared": "emcmake cmake -B build/unshared -DCMAKE_BUILD_TYPE=Release -S .",
|
|
18
|
-
"build": "npm-run-all -s configure build:wasm build:plugin build:worker",
|
|
18
|
+
"build": "npm-run-all -s configure build:genversion build:wasm build:plugin build:worker",
|
|
19
|
+
"build:genversion": "genversion -se src/version.ts",
|
|
19
20
|
"build:wasm": "npm-run-all -pl build:wasm:* && node install-wasm.js",
|
|
20
21
|
"build:wasm:shared": "emmake cmake --build build/shared",
|
|
21
22
|
"build:wasm:unshared": "emmake cmake --build build/unshared",
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"npm-run-all2": "~6.1.0",
|
|
43
44
|
"prettier": "~3.3.0",
|
|
44
45
|
"rimraf": "~5.0.0",
|
|
46
|
+
"genversion": "^3.2.0",
|
|
45
47
|
"ts-node": "~10.9.0",
|
|
46
48
|
"typescript": "~5.5.0"
|
|
47
49
|
},
|