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.0.0 to 1.0.1

4

index.js

@@ -218,7 +218,7 @@ // based on https://github.com/ESTOS/strophe.jingle/

//self.trace('addIceCandidateOnSuccess');
successCallback();
if (successCallback) successCallback();
},
function (err) {
self.trace('addIceCandidateOnFailure', err);
failureCallback(err);
if (failureCallback) failureCallback(err);
}

@@ -225,0 +225,0 @@ );

{
"name": "traceablepeerconnection",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lowlevel RTCPeerConnection wrapper which allows tracing the API calls",

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

@@ -20,3 +20,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){

if (stream.getAudioTracks().length) {
info.audio = stream.getAudioTracks().map(function (track) {
info.audio = stream.getAudioTracks().map(function (track) {
return track.id;

@@ -26,4 +26,4 @@ });

if (stream.getVideoTracks().length) {
info.video = stream.getVideoTracks().map(function (track) {
return track.id;
info.video = stream.getVideoTracks().map(function (track) {
return track.id;
});

@@ -133,3 +133,3 @@ }

TraceablePeerConnection.prototype.removeStream = function (stream) {
this.trace('removeStream', dumpStream(stream))
this.trace('removeStream', dumpStream(stream));
this.peerconnection.removeStream(stream);

@@ -219,10 +219,10 @@ };

this.trace('addIceCandidate', candidate);
this.peerconnection.addIceCandidate(candidate,
function () {
this.peerconnection.addIceCandidate(candidate,
function () {
//self.trace('addIceCandidateOnSuccess');
successCallback();
if (successCallback) successCallback();
},
function (err) {
self.trace('addIceCandidateOnFailure', err);
failureCallback(err);
if (failureCallback) failureCallback(err);
}

@@ -229,0 +229,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