Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0bdddc32d1 | |||
| 40651a5660 | |||
| 5f1b4a784e | |||
| 2da9122c68 | |||
| 5d80323baa | |||
| 72fccebf14 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartping",
|
"name": "@pushrocks/smartping",
|
||||||
"version": "1.0.5",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartping",
|
"name": "@pushrocks/smartping",
|
||||||
"version": "1.0.5",
|
"version": "1.0.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartping",
|
"name": "@pushrocks/smartping",
|
||||||
"version": "1.0.5",
|
"version": "1.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a ping utility",
|
"description": "a ping utility",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@@ -15,16 +15,16 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/ping": "^0.4.1",
|
"@types/ping": "^0.4.1",
|
||||||
"ping": "^0.4.2"
|
"ping": "^0.4.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsbundle": "^2.0.5",
|
"@gitzone/tsbundle": "^2.0.5",
|
||||||
"@gitzone/tsdoc": "^1.1.10",
|
"@gitzone/tsdoc": "^1.1.10",
|
||||||
"@gitzone/tsrun": "^1.2.38",
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.3",
|
"@pushrocks/tapbundle": "^5.0.3",
|
||||||
"@types/node": "^18.11.2"
|
"@types/node": "^18.15.11"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
|||||||
2203
pnpm-lock.yaml
generated
2203
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,11 @@ tap.test('should create an instance of Smartping', async () => {
|
|||||||
expect(testPing).toBeInstanceOf(smartping.Smartping);
|
expect(testPing).toBeInstanceOf(smartping.Smartping);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tap.test('should deliver a ping result', async () => {
|
||||||
|
const result = await testPing.ping('lossless.com', 1000);
|
||||||
|
console.log(result);
|
||||||
|
})
|
||||||
|
|
||||||
tap.test('should detect alive', async () => {
|
tap.test('should detect alive', async () => {
|
||||||
await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue();
|
await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartping',
|
name: '@pushrocks/smartping',
|
||||||
version: '1.0.5',
|
version: '1.0.8',
|
||||||
description: 'a ping utility'
|
description: 'a ping utility'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
import * as plugins from './smartping.plugins.js';
|
|
||||||
|
|
||||||
export * from './smartping.classes.smartping.js';
|
export * from './smartping.classes.smartping.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user