rtcpeerconnection
Advanced tools
Comparing version 3.0.11 to 3.0.12
{ | ||
"name": "rtcpeerconnection", | ||
"version": "3.0.11", | ||
"version": "3.0.12", | ||
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.", | ||
@@ -19,7 +19,8 @@ "main": "rtcpeerconnection.js", | ||
"dependencies": { | ||
"wildemitter": "1.x", | ||
"lodash.foreach": "^3.0.2", | ||
"lodash.pluck": "^3.0.2", | ||
"sdp-jingle-json": "2.x", | ||
"traceablepeerconnection": "^1.0.0", | ||
"webrtcsupport": "^1.0.0", | ||
"traceablepeerconnection": "^1.0.0", | ||
"sdp-jingle-json": "2.x", | ||
"underscore": "1.x" | ||
"wildemitter": "1.x" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
@@ -6,3 +6,3 @@ # RTCPeerConnection | ||
A tiny browser module that gives normalizes and simplifies the API for WebRTC peer connections. | ||
A tiny browser module that normalizes and simplifies the API for WebRTC peer connections. | ||
@@ -9,0 +9,0 @@ It gives us a cleaner (cross-browser) way to handle offer/answer and is based on an event emitter. |
@@ -1,3 +0,4 @@ | ||
var _ = require('underscore'); | ||
var util = require('util'); | ||
var each = require('lodash.foreach'); | ||
var pluck = require('lodash.pluck'); | ||
var webrtc = require('webrtcsupport'); | ||
@@ -8,2 +9,3 @@ var SJJ = require('sdp-jingle-json'); | ||
function PeerConnection(config, constraints) { | ||
@@ -98,3 +100,3 @@ var self = this; | ||
// proxy events | ||
// proxy events | ||
this.pc.on('*', function () { | ||
@@ -153,3 +155,3 @@ self.emit.apply(self, arguments); | ||
// can be removed once the following bugs have been fixed | ||
// https://crbug.com/405545 | ||
// https://crbug.com/405545 | ||
// https://bugzilla.mozilla.org/show_bug.cgi?id=964092 | ||
@@ -223,3 +225,3 @@ // to be filed for opera | ||
if (update.contents || (update.jingle && update.jingle.contents)) { | ||
var contentNames = _.pluck(this.remoteDescription.contents, 'name'); | ||
var contentNames = pluck(this.remoteDescription.contents, 'name'); | ||
var contents = update.contents || update.jingle.contents; | ||
@@ -317,3 +319,3 @@ | ||
// Save ICE credentials | ||
_.each(jingle.contents, function (content) { | ||
each(jingle.contents, function (content) { | ||
var transport = content.transport || {}; | ||
@@ -399,3 +401,3 @@ if (transport.ufrag) { | ||
if (!hasBw) { | ||
offer.jingle.contents[1].description.bandwidth = { type:'AS', bandwidth: self.restrictBandwidth.toString() }; | ||
offer.jingle.contents[1].description.bandwidth = { type: 'AS', bandwidth: self.restrictBandwidth.toString() }; | ||
offer.sdp = SJJ.toSessionSDP(offer.jingle, { | ||
@@ -598,3 +600,3 @@ sid: self.config.sdpSessionID, | ||
if (self.enableChromeNativeSimulcast) { | ||
// native simulcast part 2: | ||
// native simulcast part 2: | ||
// signal multiple tracks to the receiver | ||
@@ -674,3 +676,3 @@ // for anything in the SIM group | ||
}); | ||
_.each(jingle.contents, function (content) { | ||
each(jingle.contents, function (content) { | ||
var transport = content.transport || {}; | ||
@@ -708,3 +710,3 @@ if (transport.ufrag) { | ||
}); | ||
var newCand = { | ||
var newCand = { | ||
jingle: { | ||
@@ -711,0 +713,0 @@ contents: [] |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
191715
5193
0
6
13
+ Addedlodash.foreach@^3.0.2
+ Addedlodash.pluck@^3.0.2
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._arraymap@3.0.0(transitive)
+ Addedlodash._basecallback@3.3.1(transitive)
+ Addedlodash._baseeach@3.0.4(transitive)
+ Addedlodash._baseget@3.7.2(transitive)
+ Addedlodash._baseisequal@3.0.7(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._topath@3.8.1(transitive)
+ Addedlodash.foreach@3.0.3(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.istypedarray@3.0.6(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.map@3.1.4(transitive)
+ Addedlodash.pairs@3.0.1(transitive)
+ Addedlodash.pluck@3.1.2(transitive)
- Removedunderscore@1.x
- Removedunderscore@1.13.7(transitive)