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

webrtc-test-suite

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-test-suite - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

7

checks/internet.js

@@ -10,6 +10,5 @@ export default function checkInternetSpeed(checkerFile, verbose = false){

.then(resp=>{
if(resp.status !== 200) return reject(new Error("Could not load the checker file"));
if(resp.status !== 200) return reject(new Error("Error loading the checker file"));
return resp.blob();
})
.then(bl=>{
}).then(bl=>{
verbose && console.log(`[internet-connection]: Fetched the checker file`);

@@ -20,3 +19,3 @@ let endTime = Date.now();

let bps = fileSize / timeDiff;
let mbps = (bps / 1048576).toFixed(2); // 1024*1024
let mbps = (bps / 1048576).toFixed(2); // 1024*1024 = 1048576
verbose && console.log(`[internet-connection]: Speed observed: ${mbps}mbps`);

@@ -23,0 +22,0 @@ return resolve(mbps);

{
"name": "webrtc-test-suite",
"version": "1.2.7",
"version": "1.2.8",
"main": "index.js",

@@ -30,3 +30,4 @@ "repository": "git@github.com:theanam/webrtc-test-suite.git",

"run-example": "parcel test/index.html -d test-temp",
"build-example": "parcel build test/index.html -d test-dist --public-url /webrtc-test-suite"
"build-example": "parcel build test/index.html -d test-dist --public-url /webrtc-test-suite",
"publish-page": "yarn build-example && cp test-temp/test.png test-dist/ && npx gh-pages -d test-dist && rm -rf test-dist"
},

@@ -33,0 +34,0 @@ "browserslist": [

# Real life Capability testing and utilities for WebRTC.
Testing webRTC capabilities by trying to use them. Not a feature detector. A capability tester.Also packs some utilities to make developer's live easier while making webRTC tools.
## [Test Your Browser](https://theanam.github.io/webrtc-test-suite)
## 🚀 [Test Your Browser](https://theanam.github.io/webrtc-test-suite)

@@ -26,3 +26,3 @@ ## What It's not:

To install the package use this command.
```sh
```shell
yarn add webrtc-test-suite

@@ -38,3 +38,3 @@ ```

```html
<script src="https://unpkg.com/webrtc-test-suite@1.2.7/dist/index.js"></script>
<script src="https://unpkg.com/webrtc-test-suite@1.2.8/dist/index.js"></script>
```

@@ -41,0 +41,0 @@ Yoou will get a global object called: `_rtc`. And you can access all the functionalities from that object.

Sorry, the diff of this file is not supported yet

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