webrtc-adapter
Advanced tools
Comparing version 6.3.0 to 6.3.1
{ | ||
"name": "webrtc-adapter", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -32,3 +32,2 @@ "license": "BSD-3-Clause", | ||
"chai": "^3.5.0", | ||
"eslint-config-webrtc": "^1.0.0", | ||
"grunt": "^0.4.5", | ||
@@ -35,0 +34,0 @@ "grunt-browserify": "^4.0.1", |
@@ -136,2 +136,5 @@ /* | ||
var shimError_ = function(e) { | ||
if (browserDetails.version >= 64) { | ||
return e; | ||
} | ||
return { | ||
@@ -138,0 +141,0 @@ name: { |
@@ -38,3 +38,5 @@ /* | ||
}.bind(this)); | ||
} | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
@@ -41,0 +43,0 @@ } |
@@ -105,8 +105,13 @@ /* | ||
set: function(f) { | ||
var pc = this; | ||
if (this._onaddstream) { | ||
this.removeEventListener('addstream', this._onaddstream); | ||
this.removeEventListener('track', this._onaddstreampoly); | ||
} | ||
this.addEventListener('addstream', this._onaddstream = f); | ||
} | ||
}); | ||
var origSetRemoteDescription = | ||
window.RTCPeerConnection.prototype.setRemoteDescription; | ||
window.RTCPeerConnection.prototype.setRemoteDescription = function() { | ||
var pc = this; | ||
if (!this._onaddstreampoly) { | ||
this.addEventListener('track', this._onaddstreampoly = function(e) { | ||
@@ -127,3 +132,4 @@ e.streams.forEach(function(stream) { | ||
} | ||
}); | ||
return origSetRemoteDescription.apply(pc, arguments); | ||
}; | ||
} | ||
@@ -288,3 +294,3 @@ }, | ||
if (typeof offerOptions.offerToReceiveAudio !== 'undefined') { | ||
if (typeof offerOptions.offerToReceiveVideo !== 'undefined') { | ||
// support bit values | ||
@@ -291,0 +297,0 @@ offerOptions.offerToReceiveVideo = !!offerOptions.offerToReceiveVideo; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
949135
24
85
24195
41
1