webrtc-test-suite
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43593
274