@abtnode/util
Advanced tools
Comparing version 1.0.16 to 1.0.18
@@ -56,3 +56,4 @@ const axios = require('axios'); | ||
module.exports = async ({ endpoint, timeout = 10 * 1000 }) => { | ||
module.exports = async ({ endpoint, timeout = 10 * 1000, minConsecutiveTime = 5 * 1000 }) => { | ||
debug('ensure endpoint healthy', { endpoint, minConsecutiveTime }); | ||
if (timeout < 10 * 1000) { | ||
@@ -64,4 +65,4 @@ throw new Error('minimum timeout is 10000ms'); | ||
await ensureStarted(endpoint); | ||
await ensureHealthy({ endpoint }); | ||
await ensureHealthy({ endpoint, minConsecutiveTime }); | ||
}, timeout); | ||
}; |
@@ -11,4 +11,9 @@ const pkg = require('../package.json'); | ||
const sleep = require('./sleep'); | ||
const getTmpDirectory = require('./get_tmp_directory'); | ||
const getFolderSize = require('./get_folder_size'); | ||
const constants = require('./constants'); | ||
module.exports = { | ||
getTmpDirectory, | ||
getFolderSize, | ||
isDocker, | ||
@@ -24,2 +29,3 @@ isValidPort, | ||
ensureEndpointHealthy, | ||
constants, | ||
}; |
@@ -44,2 +44,3 @@ const fs = require('fs'); | ||
capabilities: false, | ||
exposeServices: false, | ||
}; | ||
@@ -46,0 +47,0 @@ |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.16", | ||
"version": "1.0.18", | ||
"description": "ArcBlock's JavaScript utility", | ||
@@ -31,3 +31,2 @@ "main": "lib/index.js", | ||
"lodash": "^4.17.15", | ||
"nedb": "^1.8.0", | ||
"parallel-transform": "^1.2.0", | ||
@@ -44,3 +43,3 @@ "pump": "^3.0.0", | ||
}, | ||
"gitHead": "e211a00e13e0e7b2e7ffd75b9e3864bdc79c90ac" | ||
"gitHead": "55d8a175fa61b4bfcc94a95776b30fcc01c53950" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17346
11
16
466
1
- Removednedb@^1.8.0
- Removedasync@0.2.10(transitive)
- Removedbinary-search-tree@0.2.5(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedlie@3.1.1(transitive)
- Removedlocalforage@1.10.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednedb@1.8.0(transitive)
- Removedunderscore@1.4.4(transitive)