node-datachannel
Advanced tools
Comparing version 0.1.6 to 0.1.7
cmake_minimum_required(VERSION 3.15) | ||
cmake_policy(SET CMP0091 NEW) | ||
project(node_datachannel VERSION 0.1.6) | ||
project(node_datachannel VERSION 0.1.7) | ||
@@ -5,0 +5,0 @@ include_directories(${CMAKE_JS_INC}) |
{ | ||
"name": "client", | ||
"version": "1.0.0", | ||
"lockfileVersion": 2, | ||
"lockfileVersion": 1, | ||
"requires": true, | ||
"packages": { | ||
"": { | ||
"name": "client", | ||
"version": "1.0.0", | ||
"license": "ISC", | ||
"dependencies": { | ||
"ws": "^7.3.1", | ||
"yargs": "^16.2.0" | ||
} | ||
}, | ||
"node_modules/ansi-regex": { | ||
"version": "5.0.0", | ||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", | ||
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/ansi-styles": { | ||
"version": "4.3.0", | ||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", | ||
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", | ||
"dependencies": { | ||
"color-convert": "^2.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"funding": { | ||
"url": "https://github.com/chalk/ansi-styles?sponsor=1" | ||
} | ||
}, | ||
"node_modules/cliui": { | ||
"version": "7.0.4", | ||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", | ||
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", | ||
"dependencies": { | ||
"string-width": "^4.2.0", | ||
"strip-ansi": "^6.0.0", | ||
"wrap-ansi": "^7.0.0" | ||
} | ||
}, | ||
"node_modules/color-convert": { | ||
"version": "2.0.1", | ||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", | ||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", | ||
"dependencies": { | ||
"color-name": "~1.1.4" | ||
}, | ||
"engines": { | ||
"node": ">=7.0.0" | ||
} | ||
}, | ||
"node_modules/color-name": { | ||
"version": "1.1.4", | ||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", | ||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" | ||
}, | ||
"node_modules/emoji-regex": { | ||
"version": "8.0.0", | ||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", | ||
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" | ||
}, | ||
"node_modules/escalade": { | ||
"version": "3.1.1", | ||
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", | ||
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", | ||
"engines": { | ||
"node": ">=6" | ||
} | ||
}, | ||
"node_modules/get-caller-file": { | ||
"version": "2.0.5", | ||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", | ||
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", | ||
"engines": { | ||
"node": "6.* || 8.* || >= 10.*" | ||
} | ||
}, | ||
"node_modules/is-fullwidth-code-point": { | ||
"version": "3.0.0", | ||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", | ||
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/require-directory": { | ||
"version": "2.1.1", | ||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", | ||
"integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
}, | ||
"node_modules/string-width": { | ||
"version": "4.2.2", | ||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", | ||
"integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", | ||
"dependencies": { | ||
"emoji-regex": "^8.0.0", | ||
"is-fullwidth-code-point": "^3.0.0", | ||
"strip-ansi": "^6.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/strip-ansi": { | ||
"version": "6.0.0", | ||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", | ||
"integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", | ||
"dependencies": { | ||
"ansi-regex": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/wrap-ansi": { | ||
"version": "7.0.0", | ||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", | ||
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", | ||
"dependencies": { | ||
"ansi-styles": "^4.0.0", | ||
"string-width": "^4.1.0", | ||
"strip-ansi": "^6.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"funding": { | ||
"url": "https://github.com/chalk/wrap-ansi?sponsor=1" | ||
} | ||
}, | ||
"node_modules/ws": { | ||
"version": "7.3.1", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", | ||
"integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==", | ||
"engines": { | ||
"node": ">=8.3.0" | ||
} | ||
}, | ||
"node_modules/y18n": { | ||
"version": "5.0.8", | ||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", | ||
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
}, | ||
"node_modules/yargs": { | ||
"version": "16.2.0", | ||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", | ||
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", | ||
"dependencies": { | ||
"cliui": "^7.0.2", | ||
"escalade": "^3.1.1", | ||
"get-caller-file": "^2.0.5", | ||
"require-directory": "^2.1.1", | ||
"string-width": "^4.2.0", | ||
"y18n": "^5.0.5", | ||
"yargs-parser": "^20.2.2" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
}, | ||
"node_modules/yargs-parser": { | ||
"version": "20.2.7", | ||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", | ||
"integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -274,5 +97,5 @@ "ansi-regex": { | ||
"ws": { | ||
"version": "7.3.1", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", | ||
"integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==" | ||
"version": "7.5.3", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", | ||
"integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==" | ||
}, | ||
@@ -279,0 +102,0 @@ "y18n": { |
@@ -13,5 +13,5 @@ { | ||
"dependencies": { | ||
"ws": "^7.3.1", | ||
"ws": "^7.5.3", | ||
"yargs": "^16.2.0" | ||
} | ||
} |
@@ -46,2 +46,3 @@ export as namespace NodeDataChannel; | ||
export type TransportPolicy = 'all' | 'relay'; | ||
export interface RtcConfig { | ||
@@ -51,6 +52,6 @@ iceServers: (string | IceServer)[]; | ||
enableIceTcp?: boolean; | ||
portRangeBegin?: Number; | ||
portRangeEnd?: Number; | ||
maxMessageSize?: Number; | ||
iceTransportPolicy?: 'all' | 'relay'; | ||
portRangeBegin?: number; | ||
portRangeEnd?: number; | ||
maxMessageSize?: number; | ||
iceTransportPolicy?: TransportPolicy; | ||
} | ||
@@ -69,9 +70,15 @@ | ||
export interface DataChannelInitConfig { | ||
reliability: { | ||
type: ReliabilityType; | ||
unordered: boolean; | ||
rexmit: number; | ||
protocol?: string; | ||
negotiated?: boolean; | ||
id?: number; | ||
ordered?: boolean; | ||
maxPacketLifeTime?: number; | ||
maxRetransmits?: number; | ||
// Deprecated, use ordered, maxPacketLifeTime, and maxRetransmits | ||
reliability?: { | ||
type?: ReliabilityType; | ||
unordered?: boolean; | ||
rexmit?: number; | ||
} | ||
negotiated: boolean; | ||
protocol: string; | ||
} | ||
@@ -119,2 +126,2 @@ | ||
getSelectedCandidatePair: () => { local: SelectedCandidateInfo, remote: SelectedCandidateInfo } | null; | ||
} | ||
} |
@@ -26,3 +26,2 @@ { | ||
"/readable-stream", | ||
"/unset-value/has-value/isobject", | ||
"/unzipper/readable-stream" | ||
@@ -29,0 +28,0 @@ ], |
@@ -25,3 +25,2 @@ { | ||
"_requiredBy": [ | ||
"/@cnakazawa/watch", | ||
"/json5", | ||
@@ -31,4 +30,3 @@ "/mkdirp", | ||
"/prebuild-install", | ||
"/rc", | ||
"/sane" | ||
"/rc" | ||
], | ||
@@ -35,0 +33,0 @@ "_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", |
@@ -25,4 +25,2 @@ { | ||
"_requiredBy": [ | ||
"/get-stream", | ||
"/jest-changed-files/get-stream", | ||
"/prebuild-install", | ||
@@ -29,0 +27,0 @@ "/tar-fs" |
@@ -25,9 +25,6 @@ { | ||
"_requiredBy": [ | ||
"/@babel/core", | ||
"/cmake-js", | ||
"/cross-spawn", | ||
"/node-abi", | ||
"/node-gyp", | ||
"/node-ninja", | ||
"/normalize-package-data", | ||
"/prebuild/cmake-js" | ||
@@ -34,0 +31,0 @@ ], |
@@ -25,4 +25,3 @@ { | ||
"_requiredBy": [ | ||
"/npmlog", | ||
"/yargs" | ||
"/npmlog" | ||
], | ||
@@ -29,0 +28,0 @@ "_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", |
@@ -26,3 +26,2 @@ { | ||
"/execa", | ||
"/jest-changed-files/execa", | ||
"/npmlog/gauge", | ||
@@ -29,0 +28,0 @@ "/write-file-atomic" |
{ | ||
"name": "node-datachannel", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "libdatachannel node bindings", | ||
@@ -36,3 +36,3 @@ "main": "lib/index.js", | ||
"cmake-js": "^6.1.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.0.6", | ||
"nan": "^2.14.2", | ||
@@ -39,0 +39,0 @@ "napi-thread-safe-callback": "0.0.6", |
@@ -32,8 +32,11 @@ # node-datachannel - libdatachannel node bindings | ||
// Config options | ||
// iceServers: string[]; | ||
// proxyServer?: ProxyServer; | ||
// enableIceTcp?: boolean; | ||
// portRangeBegin?: Number; | ||
// portRangeEnd?: Number; | ||
// iceTransportPolicy?: 'all' | 'relay'; | ||
// export interface RtcConfig { | ||
// iceServers: string[]; | ||
// proxyServer?: ProxyServer; | ||
// enableIceTcp?: boolean; | ||
// portRangeBegin?: number; | ||
// portRangeEnd?: number; | ||
// maxMessageSize?: number; | ||
// iceTransportPolicy?: TransportPolicy; | ||
// } | ||
@@ -93,9 +96,15 @@ // "iceServers" option is an array of stun/turn server urls | ||
// export interface DataChannelInitConfig { | ||
// reliability: { | ||
// type: ReliabilityType; | ||
// unordered: boolean; | ||
// rexmit: number; | ||
// protocol?: string; | ||
// negotiated?: boolean; | ||
// id?: number; | ||
// ordered?: boolean; | ||
// maxPacketLifeTime?: number; | ||
// maxRetransmits?: number; | ||
// | ||
// // Deprecated, use ordered, maxPacketLifeTime, and maxRetransmits | ||
// reliability?: { | ||
// type?: ReliabilityType; | ||
// unordered?: boolean; | ||
// rexmit?: number; | ||
// } | ||
// negotiated: boolean; | ||
// protocol: string; | ||
// } | ||
@@ -102,0 +111,0 @@ dc1 = peer1.createDataChannel("test"); |
@@ -9,2 +9,13 @@ const nodeDataChannel = require('../lib/index'); | ||
// Config options | ||
// export interface RtcConfig { | ||
// iceServers: string[]; | ||
// proxyServer?: ProxyServer; | ||
// enableIceTcp?: boolean; | ||
// portRangeBegin?: number; | ||
// portRangeEnd?: number; | ||
// maxMessageSize?: number; | ||
// iceTransportPolicy?: TransportPolicy; | ||
// } | ||
// | ||
// "iceServers" option is an array of stun/turn server urls | ||
@@ -63,9 +74,8 @@ // Examples; | ||
// export interface DataChannelInitConfig { | ||
// reliability: { | ||
// type: ReliabilityType; | ||
// unordered: boolean; | ||
// rexmit: number; | ||
// } | ||
// negotiated: boolean; | ||
// protocol: string; | ||
// protocol?: string; | ||
// negotiated?: boolean; | ||
// id?: number; | ||
// ordered?: boolean; | ||
// maxPacketLifeTime?: number; | ||
// maxRetransmits?: number; | ||
// } | ||
@@ -92,2 +102,2 @@ dc1 = peer1.createDataChannel("test"); | ||
process.exit(); | ||
}, 5 * 1000); | ||
}, 5 * 1000); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181
1164876
18196