webrtc-troubleshoot
Advanced tools
+1
-1
| { | ||
| "name": "webrtc-troubleshoot", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "A way to add webrtc troubleshooting to your app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ // adapted from https://github.com/webrtc/testrtc | ||
| super(options); | ||
| this.name = 'Camera resolution test'; | ||
| this.name = `Camera resolution test ${JSON.stringify(resolutions)}`; | ||
| this.resolutions = resolutions; | ||
@@ -15,0 +15,0 @@ this.duration = options.duration; |
@@ -47,7 +47,6 @@ // adapted from https://github.com/webrtc/testrtc/blob/master/src/js/bandwidth_test.js | ||
| this.addLog('info', 'Video Bandwidth Test'); | ||
| if (!this.options.iceConfig.iceServers.length) { | ||
| this.addLog('error', 'No ice servers were provided'); | ||
| return this.reject(this.log); | ||
| const error = new Error('No ice servers were provided'); | ||
| error.details = this.log; | ||
| return this.reject(error); | ||
| } | ||
@@ -241,3 +240,1 @@ this.call = new WebrtcCall(this.options.iceConfig); | ||
| } | ||
| export default VideoBandwidthTest; |
@@ -59,9 +59,16 @@ export default class TestSuite { | ||
| return test.start().then((results) => { | ||
| if (results) { | ||
| this.results.push(results); | ||
| } | ||
| this.results.push({ | ||
| status: 'passed', | ||
| name: test.name, | ||
| results | ||
| }); | ||
| return next(); | ||
| }, (err) => { | ||
| this.hasError = true; | ||
| const errInfo = { message: err.message, details: err.details }; | ||
| const errInfo = { | ||
| status: 'failed', | ||
| name: test.name, | ||
| message: err.message, | ||
| details: err.details | ||
| }; | ||
| this.results.push(errInfo); | ||
@@ -68,0 +75,0 @@ this.logger.error('Test failure', errInfo, test); |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
235579
1.53%1888
0.27%0
-100%16
45.45%