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.28 to 1.0.29

8

dist/peer-data.js

@@ -87,3 +87,3 @@ (function (global, factory) {

const peer = new RTCPeerConnection(servers);
peer.onicecandidate = (ideEvent) => {
peer.onicecandidate = (iceEvent) => {
const message = {

@@ -94,3 +94,3 @@ type: EventType.CANDIDATE,

room: event.room,
data: ideEvent.candidate,
data: iceEvent.candidate,
};

@@ -166,5 +166,7 @@ EventDispatcher.dispatch('send', message);

const channel = this._connection.channels[event.caller.id];
const peer = this._connection.peers[event.caller.id];
channel.close();
const peer = this._connection.peers[event.caller.id];
peer.close();
delete this._connection.channels[event.caller.id];
delete this._connection.peers[event.caller.id];
}

@@ -171,0 +173,0 @@ onOffer(event, signaling) {

@@ -39,5 +39,7 @@ import { EventType } from './connection/event-type';

const channel = this._connection.channels[event.caller.id];
const peer = this._connection.peers[event.caller.id];
channel.close();
const peer = this._connection.peers[event.caller.id];
peer.close();
delete this._connection.channels[event.caller.id];
delete this._connection.peers[event.caller.id];
}

@@ -44,0 +46,0 @@ onOffer(event, signaling) {

@@ -6,3 +6,3 @@ import { EventDispatcher } from './../dispatcher/dispatcher';

const peer = new RTCPeerConnection(servers);
peer.onicecandidate = (ideEvent) => {
peer.onicecandidate = (iceEvent) => {
const message = {

@@ -13,3 +13,3 @@ type: EventType.CANDIDATE,

room: event.room,
data: ideEvent.candidate,
data: iceEvent.candidate,
};

@@ -16,0 +16,0 @@ EventDispatcher.dispatch('send', message);

@@ -41,5 +41,7 @@ "use strict";

const channel = this._connection.channels[event.caller.id];
const peer = this._connection.peers[event.caller.id];
channel.close();
const peer = this._connection.peers[event.caller.id];
peer.close();
delete this._connection.channels[event.caller.id];
delete this._connection.peers[event.caller.id];
}

@@ -46,0 +48,0 @@ onOffer(event, signaling) {

@@ -8,3 +8,3 @@ "use strict";

const peer = new RTCPeerConnection(servers);
peer.onicecandidate = (ideEvent) => {
peer.onicecandidate = (iceEvent) => {
const message = {

@@ -15,3 +15,3 @@ type: event_type_1.EventType.CANDIDATE,

room: event.room,
data: ideEvent.candidate,
data: iceEvent.candidate,
};

@@ -18,0 +18,0 @@ dispatcher_1.EventDispatcher.dispatch('send', message);

{
"name": "peer-data",
"version": "1.0.28",
"version": "1.0.29",
"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

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