@webrtc-node/webrtc 0.2.1 → 0.2.3
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/CMakeLists.txt +11 -1
- package/README.md +1 -1
- package/index.d.ts +22 -4
- package/lib/index.js +404 -178
- package/package.json +9 -6
- package/scripts/prebuild-integrity.js +6 -0
- package/src/native/addon.cc +254 -114
- package/src/native/send_queue.hpp +96 -0
- package/src/native/teardown_tasks.hpp +60 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webrtc-node/webrtc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Data-channel-first WebRTC for Node.js with W3C-style RTCPeerConnection and RTCDataChannel APIs.",
|
|
5
5
|
"author": "webrtc-node contributors",
|
|
6
6
|
"homepage": "https://github.com/webrtc-node/webrtc#readme",
|
|
@@ -44,11 +44,14 @@
|
|
|
44
44
|
"src/native/addon.cc",
|
|
45
45
|
"src/native/certificate.cc",
|
|
46
46
|
"src/native/certificate.hpp",
|
|
47
|
+
"src/native/send_queue.hpp",
|
|
48
|
+
"src/native/teardown_tasks.hpp",
|
|
47
49
|
"CMakeLists.txt",
|
|
48
50
|
"index.d.ts"
|
|
49
51
|
],
|
|
50
52
|
"scripts": {
|
|
51
53
|
"build": "cmake-js compile",
|
|
54
|
+
"benchmark:send": "node scripts/benchmark-send-bursts.js",
|
|
52
55
|
"check": "biome check .",
|
|
53
56
|
"clean": "cmake-js clean",
|
|
54
57
|
"e2e:chrome": "node test/e2e/run-chrome.js",
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
"prebuild:package": "node scripts/package-prebuild.js",
|
|
62
65
|
"prebuild:check": "node scripts/check-prebuilds.js",
|
|
63
66
|
"api:check": "node scripts/check-api-surface.js",
|
|
64
|
-
"test": "node --test --test-force-exit --test-timeout=
|
|
67
|
+
"test": "node --test --test-force-exit --test-timeout=60000 test/basic.test.js test/events.test.js test/signaling.test.js test/inputs.test.js test/native-send.test.js test/native-send-queue.test.js test/nonstandard.test.js test/prebuild-integrity.test.js test/wpt-sharding.test.js",
|
|
65
68
|
"types:check": "tsc -p tsconfig.types.json",
|
|
66
69
|
"wpt:ensure": "node scripts/ensure-wpt.js",
|
|
67
70
|
"wpt:smoke": "node scripts/run-wpt-smoke.js",
|
|
@@ -76,12 +79,12 @@
|
|
|
76
79
|
"dependencies": {
|
|
77
80
|
"cmake-js": "^8.0.0",
|
|
78
81
|
"detect-libc": "^2.1.2",
|
|
79
|
-
"node-addon-api": "^8.
|
|
80
|
-
"tar": "^7.5.
|
|
82
|
+
"node-addon-api": "^8.9.0",
|
|
83
|
+
"tar": "^7.5.19"
|
|
81
84
|
},
|
|
82
85
|
"devDependencies": {
|
|
83
|
-
"@biomejs/biome": "2.5.
|
|
84
|
-
"playwright-core": "1.61.
|
|
86
|
+
"@biomejs/biome": "2.5.3",
|
|
87
|
+
"playwright-core": "1.61.1",
|
|
85
88
|
"typescript": "^6.0.3"
|
|
86
89
|
},
|
|
87
90
|
"engines": {
|
|
@@ -47,6 +47,12 @@ function expectedBinary(platform, arch, libcTag) {
|
|
|
47
47
|
}
|
|
48
48
|
return { format: "ELF", machine: 62, libcTag };
|
|
49
49
|
}
|
|
50
|
+
if (platform === "linux" && arch === "arm64") {
|
|
51
|
+
if (libcTag !== "glibc") {
|
|
52
|
+
throw new Error(`unsupported Linux libc target ${libcTag || "unknown"} for arm64`);
|
|
53
|
+
}
|
|
54
|
+
return { format: "ELF", machine: 183, libcTag };
|
|
55
|
+
}
|
|
50
56
|
if (platform === "win32" && arch === "x64") {
|
|
51
57
|
return { format: "PE", machine: 0x8664 };
|
|
52
58
|
}
|