@4players/odin-plugin-web 1.0.0-alpha.19 → 1.0.0-alpha.20

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.
@@ -1,4 +1,3 @@
1
- /// <reference lib="webworker" />
2
1
  import type { OdinWasm } from '../../../lib/wasm';
3
2
  import { EncoderInformationBuffer, SampleBuffer } from '../buffers';
4
3
  import type { VadConfig } from '../common';
@@ -75,7 +75,6 @@ class PlaybackWorkerImpl {
75
75
  send(this.worker, ['playbackReceivePacket', { connectionId, packet }], [packet.buffer]);
76
76
  }
77
77
  addMedias(connectionId, mediaIds) {
78
- console.log('addMedias', connectionId, mediaIds);
79
78
  const added = [];
80
79
  for (const mediaId of mediaIds) {
81
80
  const index = this._GetFreeIndex();
@@ -1,4 +1,3 @@
1
- /// <reference lib="webworker" />
2
1
  import type { OdinWasm } from '../../../lib/wasm';
3
2
  import { DecoderInformationBuffer, SampleBuffer } from '../buffers';
4
3
  export declare class Playback {
@@ -1,4 +1,3 @@
1
- /// <reference lib="webworker" />
2
1
  import type { OdinWasm } from '../../../lib/wasm';
3
2
  import type { VadConfig } from '../common';
4
3
  import { EncoderInformationBuffer } from '../buffers';
@@ -83,7 +83,6 @@ class PlaybackWorkerImpl {
83
83
  send(this.worker, ['playbackReceivePacket', { connectionId, packet }], [packet.buffer]);
84
84
  }
85
85
  addMedias(connectionId, mediaIds) {
86
- console.log('addMedias', connectionId, mediaIds);
87
86
  const added = [];
88
87
  for (const mediaId of mediaIds) {
89
88
  const index = this._GetFreeIndex();
@@ -1,4 +1,3 @@
1
- /// <reference lib="webworker" />
2
1
  import type { OdinWasm } from '../../../lib/wasm';
3
2
  import { DecoderInformationBuffer } from '../buffers';
4
3
  export declare class Playback {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4players/odin-plugin-web",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.20",
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,8 +15,7 @@
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:genversion build:wasm build:plugin build:worker",
19
- "build:genversion": "genversion -se src/version.ts",
18
+ "build": "npm-run-all -s configure build:wasm build:plugin build:worker",
20
19
  "build:wasm": "npm-run-all -pl build:wasm:* && node install-wasm.js",
21
20
  "build:wasm:shared": "emmake cmake --build build/shared",
22
21
  "build:wasm:unshared": "emmake cmake --build build/unshared",
@@ -28,24 +27,23 @@
28
27
  "bundle": "npm run build && esbuild lib/plugin/index.js --bundle --outfile=dist/plugin.js"
29
28
  },
30
29
  "dependencies": {
31
- "@4players/odin-common": "~2.5.0"
30
+ "@4players/odin-common": "~2.7.0"
32
31
  },
33
32
  "devDependencies": {
34
- "@types/node": "~20.12.0",
35
- "@typescript-eslint/eslint-plugin": "~7.7.0",
36
- "@typescript-eslint/parser": "~7.7.0",
37
- "esbuild": "^0.20.2",
33
+ "@types/node": "~20.14.0",
34
+ "@typescript-eslint/eslint-plugin": "~7.16.0",
35
+ "@typescript-eslint/parser": "~7.16.0",
36
+ "esbuild": "~0.23.0",
38
37
  "eslint": "~8.57.0",
39
38
  "eslint-config-semistandard": "~17.0.0",
40
39
  "eslint-plugin-import": "~2.29.0",
41
40
  "eslint-plugin-node": "~11.1.0",
42
41
  "eslint-plugin-promise": "~6.1.0",
43
- "genversion": "^3.2.0",
44
42
  "npm-run-all2": "~6.1.0",
45
- "prettier": "~3.2.0",
43
+ "prettier": "~3.3.0",
46
44
  "rimraf": "~5.0.0",
47
45
  "ts-node": "~10.9.0",
48
- "typescript": "~5.4.0"
46
+ "typescript": "~5.5.0"
49
47
  },
50
48
  "peerDependencies": {
51
49
  "zod": "*"
package/lib/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const version = "1.0.0-alpha.19";
package/lib/version.js DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- export const version = '1.0.0-alpha.19';