Socket
Socket
Sign inDemoInstall

webrtc-adapter

Package Overview
Dependencies
Maintainers
1
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.1 to 0.0.2

21

adapter.js
/*jslint node:true*/
/*globals RTCPeerConnection, mozRTCPeerConnection, webkitRTCPeerConnection */
/*globals RTCSessionDescription, mozRTCSessionDescription */
/*globals RTCIceCandidate, mozRTCIceCandidate */
'use strict';
var myRTCPeerConnection = null;
var myRTCSessionDescription = null;
var myRTCIceCandiate = null;

@@ -21,2 +25,3 @@ var renameIceURLs = function (config) {

// Unify PeerConnection Object.
if (typeof RTCPeerConnection !== 'undefined') {

@@ -33,2 +38,18 @@ myRTCPeerConnection = RTCPeerConnection;

// Unify SessionDescrption Object.
if (typeof RTCSessionDescription !== 'undefined') {
myRTCSessionDescription = RTCSessionDescription;
} else if (typeof mozRTCSessionDescription !== 'undefined') {
myRTCSessionDescription = mozRTCSessionDescription;
}
// Unify IceCandidate Object.
if (typeof RTCIceCandidate !== 'undefined') {
myRTCIceCandidate = RTCIceCandidate;
} else if (typeof mozRTCIceCandidate !== 'undefined') {
myRTCIceCandidate = mozRTCIceCandidate;
}
exports.RTCPeerConnection = myRTCPeerConnection;
exports.RTCSessionDescription = myRTCSessionDescription;
exports.RTCIceCandidate = myRTCIceCandidate;

2

package.json
{
"name": "webrtc-adapter",
"version": "0.0.1",
"version": "0.0.2",
"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