webrtc-troubleshoot
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "webrtc-troubleshooter", | ||
"version": "1.0.5", | ||
"version": "1.0.7", | ||
"description": "A way to add webrtc troubleshooting to your app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"name": "webrtc-troubleshoot", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A way to add webrtc troubleshooting to your app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import Test from '../utils/Test'; | ||
const localMedia = require('localMedia'); | ||
const MIC_DETECTION_THRESHOLD = -100; | ||
@@ -32,3 +33,3 @@ class AudioTest extends Test { | ||
this.localMedia.on('volumeChange', (volume) => { | ||
if (volume > Number.NEGATIVE_INFINITY) { | ||
if (volume > MIC_DETECTION_THRESHOLD) { | ||
window.clearTimeout(volumeCheckFailure); | ||
@@ -35,0 +36,0 @@ this.resolve(); |
@@ -64,3 +64,3 @@ /* global WebRTCTroubleshooter */ | ||
console.log('Finished the tests', results); | ||
}, function(err) { | ||
}, function (err) { | ||
console.warn('test failure', err, err.details); | ||
@@ -67,0 +67,0 @@ }); |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
235158
1893
0