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 3.0.9 to 3.0.10

2

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

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

@@ -293,5 +293,9 @@ var _ = require('underscore');

// this hack...
var expandedOffer = {
type: 'offer',
sdp: offer.sdp
};
if (self.assumeSetLocalSuccess) {
self.emit('offer', offer);
cb(null, offer);
self.emit('offer', expandedOffer);
cb(null, expandedOffer);
}

@@ -301,6 +305,2 @@ self.pc.setLocalDescription(offer,

var jingle;
var expandedOffer = {
type: 'offer',
sdp: offer.sdp
};
if (self.config.useJingle) {

@@ -575,13 +575,13 @@ jingle = SJJ.toSessionJSON(offer.sdp, {

}
var expandedAnswer = {
type: 'answer',
sdp: answer.sdp
};
if (self.assumeSetLocalSuccess) {
// not safe to do when doing simulcast mangling
self.emit('answer', answer);
cb(null, answer);
self.emit('answer', expandedAnswer);
cb(null, expandedAnswer);
}
self.pc.setLocalDescription(answer,
function () {
var expandedAnswer = {
type: 'answer',
sdp: answer.sdp
};
if (self.config.useJingle) {

@@ -588,0 +588,0 @@ var jingle = SJJ.toSessionJSON(answer.sdp, {

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