nodejs-tcp-ping
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "nodejs-tcp-ping", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TCP Ping is a Node.JS based TCP ping utility written in Typescript.", | ||
@@ -15,3 +15,4 @@ "main": "lib/index.js", | ||
"pretest": "snyk test", | ||
"test": "mocha --reporter spec" | ||
"test": "mocha --reporter spec", | ||
"prepublish": "tsc" | ||
}, | ||
@@ -18,0 +19,0 @@ "bugs": { |
@@ -38,6 +38,6 @@ # nodejs-tcp-ping | ||
pingUtility.tcpPing({ | ||
attempts: 5; | ||
host: 'localhost'; | ||
port: 80; | ||
timeout: 5000; | ||
attempts: 5, | ||
host: 'localhost', | ||
port: 80, | ||
timeout: 5000 | ||
}).then(results => { | ||
@@ -64,6 +64,6 @@ // It return an array of ping data | ||
tcpPing({ | ||
attempts: 5; | ||
host: 'localhost'; | ||
port: 80; | ||
timeout: 5000; | ||
attempts: 5, | ||
host: 'localhost', | ||
port: 80, | ||
timeout: 5000 | ||
}).then((result: IPingData[]) => { | ||
@@ -70,0 +70,0 @@ // ... |
10907