rtcpeerconnection
Advanced tools
Comparing version 6.1.0 to 7.0.0
{ | ||
"name": "rtcpeerconnection", | ||
"version": "6.1.0", | ||
"version": "7.0.0", | ||
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.", | ||
@@ -21,3 +21,3 @@ "main": "rtcpeerconnection.js", | ||
"sdp-jingle-json": "^3.0.0", | ||
"webrtc-adapter": "^2.0.2", | ||
"webrtc-adapter": "^3.1.0", | ||
"wildemitter": "1.x" | ||
@@ -24,0 +24,0 @@ }, |
@@ -888,13 +888,15 @@ var util = require('util'); | ||
PeerConnection.prototype.getStats = function (cb) { | ||
this.pc.getStats(null, | ||
function (res) { | ||
PeerConnection.prototype.getStats = function () { | ||
if (typeof arguments[0] === 'function') { | ||
var cb = arguments[0]; | ||
this.pc.getStats().then(function (res) { | ||
cb(null, res); | ||
}, | ||
function (err) { | ||
}, function (err) { | ||
cb(err); | ||
} | ||
); | ||
}); | ||
} else { | ||
return this.pc.getStats.apply(this.pc, arguments); | ||
} | ||
}; | ||
module.exports = PeerConnection; |
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
280477
7616
+ Addedwebrtc-adapter@3.4.3(transitive)
- Removedwebrtc-adapter@2.1.0(transitive)
Updatedwebrtc-adapter@^3.1.0