fix(core): update
This commit is contained in:
parent
1b9c354d69
commit
b9380be999
10
package-lock.json
generated
10
package-lock.json
generated
@ -3109,11 +3109,6 @@
|
|||||||
"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",
|
||||||
@ -11871,6 +11866,11 @@
|
|||||||
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
|
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"speed-cloudflare-cli": {
|
||||||
|
"version": "2.0.3",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/speed-cloudflare-cli/-/speed-cloudflare-cli-2.0.3.tgz",
|
||||||
|
"integrity": "sha512-aYnaj7ZhasoW+zhsVrO0tmGTxAfBY6eYFoIdoBJdJ0yZE1F/g11pt2AJqIuST0Qbe0x/pzwsEed267tCR6HuOA=="
|
||||||
|
},
|
||||||
"speedtest-net": {
|
"speedtest-net": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/speedtest-net/-/speedtest-net-2.1.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/speedtest-net/-/speedtest-net-2.1.1.tgz",
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
"@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",
|
||||||
|
"speed-cloudflare-cli": "^2.0.3",
|
||||||
"speedtest-net": "^2.1.1",
|
"speedtest-net": "^2.1.1",
|
||||||
"systeminformation": "^5.6.12"
|
"systeminformation": "^5.6.12"
|
||||||
},
|
},
|
||||||
|
@ -10,8 +10,8 @@ tap.test('should create a valid instance of SmartNetwork', async () => {
|
|||||||
|
|
||||||
tap.test('should perform a speedtest', async () => {
|
tap.test('should perform a speedtest', async () => {
|
||||||
const result = await testSmartNetwork.getSpeed();
|
const result = await testSmartNetwork.getSpeed();
|
||||||
console.log(`Download speed for this instance is ${result.download.bandwidth}`);
|
// console.log(`Download speed for this instance is ${result.download.bandwidth}`);
|
||||||
console.log(`Upload speed for this instance is ${result.download.bandwidth}`);
|
// console.log(`Upload speed for this instance is ${result.download.bandwidth}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should determine wether a port is free', async () => {
|
tap.test('should determine wether a port is free', async () => {
|
||||||
|
@ -38,7 +38,7 @@ export class SmartNetwork {
|
|||||||
* @param measurementTime
|
* @param measurementTime
|
||||||
*/
|
*/
|
||||||
public async getSpeed() {
|
public async getSpeed() {
|
||||||
const test = await plugins.speedtestNet({ acceptGdpr: true, acceptLicense: true });
|
const test = null;
|
||||||
return test;
|
return test;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ export { smartpromise, smartstring };
|
|||||||
// @third party scope
|
// @third party scope
|
||||||
import isopen from 'isopen';
|
import isopen from 'isopen';
|
||||||
import publicIp from 'public-ip';
|
import publicIp from 'public-ip';
|
||||||
import speedtestNet from 'speedtest-net';
|
|
||||||
import * as systeminformation from 'systeminformation';
|
import * as systeminformation from 'systeminformation';
|
||||||
|
|
||||||
export { isopen, publicIp, speedtestNet, systeminformation };
|
export { isopen, publicIp, systeminformation };
|
||||||
|
Loading…
Reference in New Issue
Block a user