fix(core): update
This commit is contained in:
parent
97841e0973
commit
5c13987686
10488
package-lock.json
generated
10488
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -12,22 +12,21 @@
|
||||
"build": "(tsbuild)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.17",
|
||||
"@gitzone/tstest": "^1.0.28",
|
||||
"@pushrocks/tapbundle": "^3.2.0",
|
||||
"@gitzone/tsbuild": "^2.1.25",
|
||||
"@gitzone/tstest": "^1.0.43",
|
||||
"@pushrocks/tapbundle": "^3.2.9",
|
||||
"tslint": "^5.20.1",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartpromise": "^3.0.6",
|
||||
"@pushrocks/smartstring": "^3.0.14",
|
||||
"@types/default-gateway": "^3.0.0",
|
||||
"@types/portscanner": "^2.1.0",
|
||||
"@pushrocks/smartstring": "^3.0.18",
|
||||
"@types/default-gateway": "^3.0.1",
|
||||
"default-gateway": "^5.0.5",
|
||||
"portscanner": "^2.2.0",
|
||||
"public-ip": "^4.0.0",
|
||||
"isopen": "^1.3.0",
|
||||
"public-ip": "^4.0.2",
|
||||
"speedtest-net": "^1.6.0",
|
||||
"systeminformation": "^4.15.3"
|
||||
"systeminformation": "^4.26.10"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
@ -114,12 +114,9 @@ export class SmartNetwork {
|
||||
const domainPart = domainArg.split(':')[0];
|
||||
const port = portArg ? portArg : parseInt(domainArg.split(':')[1], 10);
|
||||
|
||||
plugins.portscanner.checkPortStatus(port, domainPart, (err, status) => {
|
||||
if (err) {
|
||||
// console.log(err);
|
||||
return done.resolve(false);
|
||||
}
|
||||
if (status === 'open') {
|
||||
plugins.isopen(domainPart, port, (response) => {
|
||||
console.log(response);
|
||||
if (response[port.toString()].isOpen) {
|
||||
done.resolve(true);
|
||||
} else {
|
||||
done.resolve(false);
|
||||
|
@ -10,9 +10,9 @@ import * as smartstring from '@pushrocks/smartstring';
|
||||
export { smartpromise, smartstring };
|
||||
|
||||
// @third party scope
|
||||
import * as portscanner from 'portscanner';
|
||||
import isopen from 'isopen';
|
||||
import publicIp from 'public-ip';
|
||||
import speedtestNet from 'speedtest-net';
|
||||
import * as systeminformation from 'systeminformation';
|
||||
|
||||
export { portscanner, publicIp, speedtestNet, systeminformation };
|
||||
export { isopen, publicIp, speedtestNet, systeminformation };
|
||||
|
Loading…
Reference in New Issue
Block a user