fix(core): update

This commit is contained in:
Philipp Kunz 2021-04-13 13:05:47 +00:00
parent 6350088d2a
commit a8f4ecf98f
3 changed files with 8 additions and 2 deletions

5
package-lock.json generated
View File

@ -3109,6 +3109,11 @@
"integrity": "sha1-gJPuBBam4r8qpjOBCRFLP7/6Dps=",
"dev": true
},
"@types/speedtest-net": {
"version": "2.1.0",
"resolved": "https://verdaccio.lossless.one/@types%2fspeedtest-net/-/speedtest-net-2.1.0.tgz",
"integrity": "sha512-a6P3s2qOWU08yu/fk/xyswqRlDyeTmg5RMwedC0h1ZbH2d2iqYVATUXX/Jgl4P5hs12uhj0AQCEZlgVbVXSfKQ=="
},
"@types/through2": {
"version": "2.0.36",
"resolved": "https://verdaccio.lossless.one/@types%2fthrough2/-/through2-2.0.36.tgz",

View File

@ -22,6 +22,7 @@
"@pushrocks/smartpromise": "^3.1.3",
"@pushrocks/smartstring": "^3.0.24",
"@types/default-gateway": "^3.0.1",
"@types/speedtest-net": "^2.1.0",
"isopen": "^1.3.0",
"public-ip": "^4.0.3",
"speedtest-net": "^2.1.1",

View File

@ -37,8 +37,8 @@ export class SmartNetwork {
* get network speed
* @param measurementTime
*/
public async getSpeed(measurementTime = 5000): Promise<ISpeedtestData> {
const test = await plugins.speedtestNet({ maxTime: measurementTime, acceptGdpr: true });
public async getSpeed() {
const test = await plugins.speedtestNet({ acceptGdpr: true, acceptLicense: true });
return test;
}