🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-datachannel

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-datachannel - npm Package Compare versions

Comparing version

to
0.23.0

7

CMakeLists.txt

@@ -5,3 +5,3 @@ cmake_minimum_required(VERSION 3.15)

project(node_datachannel VERSION 0.22.0)
project(node_datachannel VERSION 0.23.0)

@@ -91,1 +91,6 @@ # -Dnapi_build_version=8

target_link_libraries(${PROJECT_NAME} PRIVATE ${LINK_LIBRARIES})
if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
# Generate node.lib
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
endif()

15

package.json
{
"name": "node-datachannel",
"version": "0.22.0",
"version": "0.23.0",
"description": "WebRTC For Node.js and Electron. libdatachannel node bindings.",

@@ -23,3 +23,3 @@ "main": "./dist/cjs/lib/index.cjs",

"engines": {
"node": ">=16.0.0"
"node": ">=18.20.0"
},

@@ -40,4 +40,4 @@ "scripts": {

"test:wpt": "npm run run:wpt:server & (sleep 8 && (npm run run:wpt:test | tee test/wpt-tests/last-test-results.md) )",
"run:wpt:server": "cd test/wpt-tests/wpt && ./wpt serve",
"run:wpt:test": "ts-node test/wpt-tests/index.ts",
"wpt:server": "cd test/wpt-tests/wpt && ./wpt serve",
"wpt:test": "ts-node test/wpt-tests/index.ts",
"_prebuild": "prebuild -r napi --backend cmake-js",

@@ -85,3 +85,3 @@ "prepack": "npm run build:tsc"

"@typescript-eslint/parser": "^7.17.0",
"cmake-js": "^6.3.2",
"cmake-js": "^7.3.0",
"eslint": "^8.57.0",

@@ -94,3 +94,3 @@ "eslint-config-prettier": "^9.1.0",

"node-addon-api": "^7.0.0",
"prebuild": "^12.0.0",
"prebuild": "^13.0.1",
"prettier": "^3.3.3",

@@ -108,5 +108,4 @@ "puppeteer": "^22.14.0",

"dependencies": {
"node-domexception": "^2.0.1",
"prebuild-install": "^7.0.1"
"prebuild-install": "^7.1.2"
}
}

@@ -21,7 +21,7 @@ # WebRTC For Node.js and Electron ( with WebSocket)

`node-datachannel` targets N-API version 8 and supports Node.js v16 and above. It is tested on Linux, Windows and MacOS. For N-API compatibility please check [here](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix).
`node-datachannel` targets N-API version 8 and supports Node.js v18.20 and above. It is tested on Linux, Windows and MacOS. For N-API compatibility please check [here](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix).
| | Linux [x64,armv7,arm64] (1) | Windows [x86,x64] | Mac [M1,x64] |
| ------------------------- | :-------------------------: | :---------------: | :----------: |
| N-API v8 (>= Node.js v16) | + | + | + |
| N-API v8 (>= Node.js v18) | + | + | + |

@@ -28,0 +28,0 @@ **(1)** For Linux musl + libc

/* eslint-disable @typescript-eslint/no-explicit-any */
import * as stream from 'stream';
// import { DataChannel } from './node-datachannel.js';

@@ -5,0 +4,0 @@ /**

@@ -8,2 +8,7 @@ let nodeDataChannel;

catch (e) {
// If this is not a module not found error, rethrow it
if (e.code !== 'MODULE_NOT_FOUND') {
throw e;
}
// from src

@@ -10,0 +15,0 @@ nodeDataChannel = require('../../build/Release/node_datachannel.node');

/* eslint-disable @typescript-eslint/no-explicit-any */
import 'node-domexception';
import * as exceptions from './Exception';

@@ -4,0 +3,0 @@ import { DataChannel } from '../lib/index';

@@ -5,3 +5,2 @@ // https://developer.mozilla.org/docs/Web/API/RTCIceCandidate

import 'node-domexception';

@@ -8,0 +7,0 @@ export default class RTCIceCandidate implements globalThis.RTCIceCandidate {

/* eslint-disable @typescript-eslint/no-explicit-any */
import 'node-domexception';
import { SelectedCandidateInfo } from '../lib/types';

@@ -4,0 +3,0 @@ import { PeerConnection } from '../lib/index';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet