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

traceablepeerconnection

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traceablepeerconnection - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

4

package.json
{
"name": "traceablepeerconnection",
"version": "1.1.2",
"version": "1.1.3",
"description": "Lowlevel RTCPeerConnection wrapper which allows tracing the API calls",

@@ -16,3 +16,3 @@ "main": "index.js",

"wildemitter": "1.x",
"webrtc-adapter-test": "^0.2.1"
"webrtc-adapter-test": "^0.1.9"
},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -1005,7 +1005,6 @@ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.PeerConnection=e():"undefined"!=typeof global?global.PeerConnection=e():"undefined"!=typeof self&&(self.PeerConnection=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

// suppress console.log output when being included as a module.
if (typeof module !== 'undefined' ||
typeof require === 'function' && typeof define === 'function') {
return;
if (!(typeof module !== 'undefined' ||
typeof require === 'function') && (typeof define === 'function')) {
console.log.apply(console, arguments);
}
console.log.apply(console, arguments);
}

@@ -1030,3 +1029,3 @@ };

webrtcDetectedBrowser = 'not a browser';
} else if (navigator.mozGetUserMedia && window.mozRTCPeerConnection) {
} else if (navigator.mozGetUserMedia) {
webrtcUtils.log('This appears to be Firefox');

@@ -1170,18 +1169,9 @@

}
Object.defineProperty(HTMLVideoElement.prototype, 'srcObject', {
get: function() {
return this.mozSrcObject;
},
set: function(stream) {
this.mozSrcObject = stream;
}
});
// Attach a media stream to an element.
attachMediaStream = function(element, stream) {
element.srcObject = stream;
element.mozSrcObject = stream;
};
reattachMediaStream = function(to, from) {
to.srcObject = from.srcObject;
to.mozSrcObject = from.mozSrcObject;
};

@@ -1249,10 +1239,3 @@

return new Promise(function(resolve, reject) {
if (args.length === 1 && selector === null) {
origGetStats.apply(self, [
function(response) {
resolve.apply(null, [fixChromeStats(response)]);
}, reject]);
} else {
origGetStats.apply(self, [resolve, reject]);
}
origGetStats.apply(self, [resolve, reject]);
});

@@ -1421,15 +1404,5 @@ };

Object.defineProperty(HTMLVideoElement.prototype, 'srcObject', {
get: function() {
return this._srcObject;
},
set: function(stream) {
this._srcObject = stream;
this.src = URL.createObjectURL(stream);
}
});
// Attach a media stream to an element.
attachMediaStream = function(element, stream) {
if (webrtcDetectedVersion >= 43) {
if (typeof element.srcObject !== 'undefined') {
element.srcObject = stream;

@@ -1442,8 +1415,5 @@ } else if (typeof element.src !== 'undefined') {

};
reattachMediaStream = function(to, from) {
if (webrtcDetectedVersion >= 43) {
to.srcObject = from.srcObject;
} else {
to.src = from.src;
}
to.src = from.src;
};

@@ -1450,0 +1420,0 @@

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