@apify/utilities
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -50,5 +50,5 @@ "use strict"; | ||
} | ||
await utilities_1.delayPromise(randomizedWaitMillis); | ||
await (0, utilities_1.delayPromise)(randomizedWaitMillis); | ||
} | ||
} | ||
exports.retryWithExpBackoff = retryWithExpBackoff; |
@@ -50,5 +50,6 @@ "use strict"; | ||
const checkPromise = this._performCheck(check); | ||
await utilities_1.timeoutPromise(checkPromise, this.checkTimeoutMillis, 'Check has timed-out'); | ||
await (0, utilities_1.timeoutPromise)(checkPromise, this.checkTimeoutMillis, 'Check has timed-out'); | ||
} | ||
catch (err) { | ||
catch (_err) { | ||
const err = _err; | ||
throw new Error(`Health check test "${check.type}" failed with an error: ${err.message}"`); | ||
@@ -82,3 +83,3 @@ } | ||
async _testMongoDbWrite({ client }) { | ||
const id = utilities_1.cryptoRandomObjectId(); | ||
const id = (0, utilities_1.cryptoRandomObjectId)(); | ||
const collection = client.collection(this.mongoDbWriteTestCollection); | ||
@@ -101,3 +102,3 @@ // Remove old test items. | ||
async _testRedisWrite({ client }) { | ||
const key = `${this.redisPrefix}:${utilities_1.cryptoRandomObjectId()}`; | ||
const key = `${this.redisPrefix}:${(0, utilities_1.cryptoRandomObjectId)()}`; | ||
const expected = 'OK'; | ||
@@ -104,0 +105,0 @@ // Set some value in Redis and try to read it. |
{ | ||
"name": "@apify/utilities", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Tools and constants shared across Apify projects.", | ||
@@ -44,3 +44,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "ae6d773c053162182b6b5a4232485cc81d7d4d1e" | ||
"gitHead": "fa088866c86a13e31851451ff3b0cfb13eedeb5e" | ||
} |
@@ -96,3 +96,3 @@ "use strict"; | ||
throw new Error(`Cannot stringify a ${type} payload template.`); | ||
return utilities_client_1.jsonStringifyExtended(objectTemplate, replacer, indent); | ||
return (0, utilities_client_1.jsonStringifyExtended)(objectTemplate, replacer, indent); | ||
} | ||
@@ -99,0 +99,0 @@ /** |
90510
1764