fix(core): update
This commit is contained in:
parent
6350088d2a
commit
a8f4ecf98f
5
package-lock.json
generated
5
package-lock.json
generated
@ -3109,6 +3109,11 @@
|
|||||||
"integrity": "sha1-gJPuBBam4r8qpjOBCRFLP7/6Dps=",
|
"integrity": "sha1-gJPuBBam4r8qpjOBCRFLP7/6Dps=",
|
||||||
"dev": true
|
"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": {
|
"@types/through2": {
|
||||||
"version": "2.0.36",
|
"version": "2.0.36",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fthrough2/-/through2-2.0.36.tgz",
|
"resolved": "https://verdaccio.lossless.one/@types%2fthrough2/-/through2-2.0.36.tgz",
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"@pushrocks/smartpromise": "^3.1.3",
|
"@pushrocks/smartpromise": "^3.1.3",
|
||||||
"@pushrocks/smartstring": "^3.0.24",
|
"@pushrocks/smartstring": "^3.0.24",
|
||||||
"@types/default-gateway": "^3.0.1",
|
"@types/default-gateway": "^3.0.1",
|
||||||
|
"@types/speedtest-net": "^2.1.0",
|
||||||
"isopen": "^1.3.0",
|
"isopen": "^1.3.0",
|
||||||
"public-ip": "^4.0.3",
|
"public-ip": "^4.0.3",
|
||||||
"speedtest-net": "^2.1.1",
|
"speedtest-net": "^2.1.1",
|
||||||
|
@ -37,8 +37,8 @@ export class SmartNetwork {
|
|||||||
* get network speed
|
* get network speed
|
||||||
* @param measurementTime
|
* @param measurementTime
|
||||||
*/
|
*/
|
||||||
public async getSpeed(measurementTime = 5000): Promise<ISpeedtestData> {
|
public async getSpeed() {
|
||||||
const test = await plugins.speedtestNet({ maxTime: measurementTime, acceptGdpr: true });
|
const test = await plugins.speedtestNet({ acceptGdpr: true, acceptLicense: true });
|
||||||
return test;
|
return test;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user