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

peer-data

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peer-data - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

6

lib/app/bridge.js

@@ -22,4 +22,6 @@ "use strict";

static onCandidate(event) {
let peer = app_1.CONFIG.connection.peers[event.caller.id];
peer.addIceCandidate(new RTCIceCandidate(event.data));
if (event.data.candidate) {
let peer = app_1.CONFIG.connection.peers[event.caller.id];
peer.addIceCandidate(new RTCIceCandidate(event.data.candidate));
}
}

@@ -26,0 +28,0 @@ static onOffer(event) {

@@ -7,11 +7,9 @@ "use strict";

peer.onicecandidate = (event) => {
if (event.candidate) {
let message = {
type: event_type_1.SignalingEventType.CANDIDATE,
caller: null,
callee: null,
data: event.candidate
};
signaling.send(message);
}
let message = {
type: event_type_1.SignalingEventType.CANDIDATE,
caller: null,
callee: null,
data: event
};
signaling.send(message);
};

@@ -18,0 +16,0 @@ return peer;

{
"name": "peer-data",
"version": "1.0.15",
"version": "1.0.16",
"description": "PeerData - library for files, media streaming/sharing using WebRTC",

@@ -5,0 +5,0 @@ "scripts": {

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

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