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

webrtcsupport

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtcsupport - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

2

package.json
{
"name": "webrtcsupport",
"version": "0.0.1",
"version": "0.1.0",
"description": "Browser module to detect support for webrtc and extract proper constructors.",

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

@@ -33,2 +33,3 @@ # webrtcsupport

IceCandidate: // constructor for ice candidate
prefix: // returns browser prefix (either moz or webkit for now)
}

@@ -35,0 +36,0 @@

@@ -5,2 +5,9 @@ // created by @HenrikJoreteg

var SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription;
var prefix = function () {
if (window.mozRTCPeerConnection) {
return 'moz';
} else if (window.webkitRTCPeerConnection) {
return 'webkit';
}
}();

@@ -13,3 +20,4 @@ // export support flags and constructors

support: !!PC,
dataChannel: !!(PC && PC.prototype.createDataChannel)
dataChannel: !!(PC && PC.prototype.createDataChannel),
prefix: prefix
};
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