Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-datachannel

Package Overview
Dependencies
Maintainers
1
Versions
72
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 0.5.2 to 0.5.3

2

CMakeLists.txt

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

project(node_datachannel VERSION 0.5.1)
project(node_datachannel VERSION 0.5.3)

@@ -8,0 +8,0 @@ # -Dnapi_build_version=8

@@ -37,3 +37,3 @@ {

"electron-squirrel-startup": "^1.0.0",
"node-datachannel": "0.5.0-dev"
"node-datachannel": "^0.5.2"
},

@@ -40,0 +40,0 @@ "cmake-js": {

{
"name": "node-datachannel",
"version": "0.5.2",
"version": "0.5.3",
"description": "libdatachannel node bindings",

@@ -5,0 +5,0 @@ "type": "module",

@@ -0,14 +1,37 @@

import RTCCertificate from './RTCCertificate.js';
import RTCDataChannel from './RTCDataChannel.js';
import RTCDtlsTransport from './RTCDtlsTransport.js';
import RTCIceCandidate from './RTCIceCandidate.js';
import RTCIceTransport from './RTCIceTransport.js';
import RTCPeerConnection from './RTCPeerConnection.js';
import RTCSctpTransport from './RTCSctpTransport.js';
import RTCSessionDescription from './RTCSessionDescription.js';
import RTCIceCandidate from './RTCIceCandidate.js';
import RTCDataChannel from './RTCDataChannel.js';
import { RTCDataChannelEvent, RTCPeerConnectionIceEvent } from './Events.js';
export {
RTCCertificate,
RTCDataChannel,
RTCDtlsTransport,
RTCIceCandidate,
RTCIceTransport,
RTCPeerConnection,
RTCSctpTransport,
RTCSessionDescription,
RTCIceCandidate,
RTCDataChannel,
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};
declare const _default: {
RTCCertificate: typeof RTCCertificate;
RTCDataChannel: typeof RTCDataChannel;
RTCDtlsTransport: typeof RTCDtlsTransport;
RTCIceCandidate: typeof RTCIceCandidate;
RTCIceTransport: typeof RTCIceTransport;
RTCPeerConnection: typeof RTCPeerConnection;
RTCSctpTransport: typeof RTCSctpTransport;
RTCSessionDescription: typeof RTCSessionDescription;
RTCDataChannelEvent: typeof RTCDataChannelEvent;
RTCPeerConnectionIceEvent: typeof RTCPeerConnectionIceEvent;
};
export default _default;

@@ -0,14 +1,35 @@

import RTCCertificate from './RTCCertificate.js';
import RTCDataChannel from './RTCDataChannel.js';
import RTCDtlsTransport from './RTCDtlsTransport.js';
import RTCIceCandidate from './RTCIceCandidate.js';
import RTCIceTransport from './RTCIceTransport.js';
import RTCPeerConnection from './RTCPeerConnection.js';
import RTCSctpTransport from './RTCSctpTransport.js';
import RTCSessionDescription from './RTCSessionDescription.js';
import RTCIceCandidate from './RTCIceCandidate.js';
import RTCDataChannel from './RTCDataChannel.js';
import { RTCDataChannelEvent, RTCPeerConnectionIceEvent } from './Events.js';
export {
RTCCertificate,
RTCDataChannel,
RTCDtlsTransport,
RTCIceCandidate,
RTCIceTransport,
RTCPeerConnection,
RTCSctpTransport,
RTCSessionDescription,
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};
export default {
RTCCertificate,
RTCDataChannel,
RTCDtlsTransport,
RTCIceCandidate,
RTCIceTransport,
RTCPeerConnection,
RTCSctpTransport,
RTCSessionDescription,
RTCIceCandidate,
RTCDataChannel,
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};
/// <reference lib="dom" />
import NodeDataChannel from '../lib';
import * as NodeDataChannel from '../lib/index.js';

@@ -5,0 +5,0 @@ export default class _RTCDataChannel extends EventTarget implements RTCDataChannel {

@@ -38,6 +38,13 @@ /// <reference lib="dom" />

createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createAnswer(
successCallback: RTCSessionDescriptionCallback,
failureCallback: RTCPeerConnectionErrorCallback,
): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
createOffer(
successCallback: RTCSessionDescriptionCallback,
failureCallback: RTCPeerConnectionErrorCallback,
options?: RTCOfferOptions,
): Promise<void>;
getConfiguration(): RTCConfiguration;

@@ -53,2 +60,5 @@ getReceivers(): RTCRtpReceiver[];

setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
// static methods
static generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
}

@@ -10,2 +10,6 @@ import NodeDataChannel from '../lib/index.js';

export default class _RTCPeerConnection extends EventTarget {
static async generateCertificate() {
throw new Error('Not implemented');
}
#peerConnection;

@@ -43,15 +47,16 @@ #localOffer;

...init,
iceServers: init?.iceServers
?.map((server) => {
const urls = Array.isArray(server.urls) ? server.urls : [server.urls];
iceServers:
init?.iceServers
?.map((server) => {
const urls = Array.isArray(server.urls) ? server.urls : [server.urls];
return urls.map((url) => {
if (server.username && server.credential) {
const [protocol, rest] = url.split(/:(.*)/);
return `${protocol}:${server.username}:${server.credential}@${rest}`;
}
return url;
});
})
.flat(),
return urls.map((url) => {
if (server.username && server.credential) {
const [protocol, rest] = url.split(/:(.*)/);
return `${protocol}:${server.username}:${server.credential}@${rest}`;
}
return url;
});
})
.flat() ?? [],
});

@@ -58,0 +63,0 @@

@@ -7,2 +7,3 @@ /// <reference lib="dom" />

toJSON(): any;
constructor(descriptionInitDict?: RTCSessionDescriptionInit);
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc