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 0.2.0 to 0.2.1

30

index.js

@@ -12,2 +12,3 @@ // based on https://github.com/ESTOS/strophe.jingle/

function TraceablePeerConnection(config, constraints) {
console.log('tp init');
var self = this;

@@ -79,9 +80,26 @@ WildEmitter.call(this);

if (TraceablePeerConnection.prototype.__defineGetter__ !== undefined) {
TraceablePeerConnection.prototype.__defineGetter__('signalingState', function () { return this.peerconnection.signalingState; });
TraceablePeerConnection.prototype.__defineGetter__('iceConnectionState', function () { return this.peerconnection.iceConnectionState; });
TraceablePeerConnection.prototype.__defineGetter__('localDescription', function () { return this.peerconnection.localDescription; });
TraceablePeerConnection.prototype.__defineGetter__('remoteDescription', function () { return this.peerconnection.remoteDescription; });
}
Object.defineProperty(TraceablePeerConnection.prototype, 'signalingState', {
get: function () {
return this.peerconnection.signalingState;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'iceConnectionState', {
get: function () {
return this.peerconnection.iceConnectionState;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'localDescription', {
get: function () {
return this.peerconnection.localDescription;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'remoteDescription', {
get: function () {
return this.peerconnection.remoteDescription;
}
});
TraceablePeerConnection.prototype.addStream = function (stream) {

@@ -88,0 +106,0 @@ this.trace('addStream', stream.id);

2

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

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

@@ -13,2 +13,3 @@ !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){

function TraceablePeerConnection(config, constraints) {
console.log('tp init');
var self = this;

@@ -80,9 +81,26 @@ WildEmitter.call(this);

if (TraceablePeerConnection.prototype.__defineGetter__ !== undefined) {
TraceablePeerConnection.prototype.__defineGetter__('signalingState', function () { return this.peerconnection.signalingState; });
TraceablePeerConnection.prototype.__defineGetter__('iceConnectionState', function () { return this.peerconnection.iceConnectionState; });
TraceablePeerConnection.prototype.__defineGetter__('localDescription', function () { return this.peerconnection.localDescription; });
TraceablePeerConnection.prototype.__defineGetter__('remoteDescription', function () { return this.peerconnection.remoteDescription; });
}
Object.defineProperty(TraceablePeerConnection.prototype, 'signalingState', {
get: function () {
return this.peerconnection.signalingState;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'iceConnectionState', {
get: function () {
return this.peerconnection.iceConnectionState;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'localDescription', {
get: function () {
return this.peerconnection.localDescription;
}
});
Object.defineProperty(TraceablePeerConnection.prototype, 'remoteDescription', {
get: function () {
return this.peerconnection.remoteDescription;
}
});
TraceablePeerConnection.prototype.addStream = function (stream) {

@@ -89,0 +107,0 @@ this.trace('addStream', stream.id);

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