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

rtcpeerconnection

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtcpeerconnection - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

2

package.json
{
"name": "rtcpeerconnection",
"version": "2.4.4",
"version": "2.4.5",
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.",

@@ -5,0 +5,0 @@ "main": "rtcpeerconnection.js",

@@ -74,2 +74,5 @@ var _ = require('underscore');

this.hadLocalIPv6Candidate = false;
this.hadRemoteIPv6Candidate = false;
// keeping references for all our data channels

@@ -139,6 +142,8 @@ // so they dont get garbage collected

self.hadRemoteStunCandidate = true;
}
else if (candidate.type === 'relay') {
} else if (candidate.type === 'relay') {
self.hadRemoteRelayCandidate = true;
}
if (candidate.ip.indexOf(':') != -1) {
self.hadRemoteIPv6Candidate = true;
}
});

@@ -153,8 +158,11 @@ });

self.pc.addIceCandidate(new webrtc.IceCandidate(update.candidate));
if (update.candidate.candidate.indexOf('typ srflx') !== -1) {
var cand = SJJ.toCandidateJSON(update.candidate.candidate);
if (cand.type == 'srflx') {
self.hadRemoteStunCandidate = true;
}
else if (update.candidate.candidate.indexOf('typ relay') !== -1) {
} else if (cand.type == 'relay') {
self.hadRemoteRelayCandidate = true;
}
if (cand.ip.indexOf(':') != -1) {
self.hadRemoteIPv6Candidate = true;
}
}

@@ -352,2 +360,3 @@ cb();

var cand = SJJ.toCandidateJSON(ice.candidate);
if (self.config.useJingle) {

@@ -378,3 +387,3 @@ if (!ice.sdpMid) { // firefox doesn't set this

candidates: [
SJJ.toCandidateJSON(ice.candidate)
cand
]

@@ -385,8 +394,10 @@ }

}
if (ice.candidate.indexOf('typ srflx') !== -1) {
if (cand.type === 'srflx') {
this.hadLocalStunCandidate = true;
}
else if (ice.candidate.indexOf('typ relay') !== -1) {
} else if (cand.type == 'relay') {
this.hadLocalRelayCandidate = true;
}
if (cand.ip.indexOf(':') != -1) {
self.hadLocalIPv6Candidate = true;
}

@@ -393,0 +404,0 @@ this.emit('ice', expandedCandidate);

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