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

webrtc-adapter

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-adapter - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

19

adapter.js

@@ -43,2 +43,12 @@ /*jslint node:true*/

var fixFirefoxStatsResponse = function(response) {
// Giving the response directly to the callback gives an object w/o interface
// https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings#ChromeOnly
var standardReport = {};
response.forEach(function (report) {
standardReport[report.id] = report;
});
return standardReport;
};
var sessionHasData = function(desc) {

@@ -66,2 +76,11 @@ if (!desc) {

// Firefox stats response is only visible 'ChromeOnly' so process it here
var boundGetStats = pc.getStats.bind(pc);
pc.getStats = function(selector, successCallback, failureCallback) {
var successCallbackWrapper = function(firefoxStatsResponse) {
successCallback(fixFirefoxStatsResponse(firefoxStatsResponse));
};
boundGetStats(selector, successCallbackWrapper, failureCallback);
};
// Firefox doesn't fire 'onnegotiationneeded' when a data channel is created

@@ -68,0 +87,0 @@ // https://bugzilla.mozilla.org/show_bug.cgi?id=840728

2

package.json
{
"name": "webrtc-adapter",
"version": "0.0.6",
"version": "0.0.7",
"description": "Commonjs adapter.js browser compatibility shim for webRTC",

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

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