@dtelecom/server-sdk-node 0.1.1 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtelecom/server-sdk-node",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Node.js RTC SDK for dTelecom — WebRTC participant for AI bots",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "files": [
14
14
  "dist",
15
+ "patches",
15
16
  "README.md"
16
17
  ],
17
18
  "scripts": {
@@ -20,13 +21,14 @@
20
21
  "test": "vitest run",
21
22
  "test:watch": "vitest",
22
23
  "lint": "tsc --noEmit",
23
- "format": "prettier --write src"
24
+ "format": "prettier --write src",
25
+ "postinstall": "patch-package"
24
26
  },
25
27
  "dependencies": {
26
28
  "@discordjs/opus": "^0.9.0",
27
29
  "opusscript": "^0.1.1",
28
30
  "protobufjs": "^7.5.0",
29
- "werift": "^0.19.4",
31
+ "werift": "0.22.8",
30
32
  "ws": "^8.18.0"
31
33
  },
32
34
  "devDependencies": {
@@ -0,0 +1,17 @@
1
+ diff --git a/node_modules/werift/lib/ice/src/ice.js b/node_modules/werift/lib/ice/src/ice.js
2
+ index 74cf126..6948a28 100644
3
+ --- a/node_modules/werift/lib/ice/src/ice.js
4
+ +++ b/node_modules/werift/lib/ice/src/ice.js
5
+ @@ -288,10 +288,10 @@ class Connection {
6
+ }
7
+ catch (error) {
8
+ if (nominated.id === this.nominated?.id) {
9
+ - log("no stun response");
10
+ + log("no stun response, failure", failures + 1);
11
+ failures++;
12
+ this.setState("disconnected");
13
+ - break;
14
+ + // Don't break — RFC 7675 requires CONSENT_FAILURES consecutive failures
15
+ }
16
+ }
17
+ if (failures >= iceBase_1.CONSENT_FAILURES) {