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

rtcpeerconnection

Package Overview
Dependencies
Maintainers
5
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 6.1.0 to 7.0.0

4

package.json
{
"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;
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