mentie 0.2.31 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/logging.js +1 -1
- package/modules/promises.js +1 -1
- package/package.json +1 -1
package/modules/logging.js
CHANGED
|
@@ -172,7 +172,7 @@ log.error = function( ...messages ) {
|
|
|
172
172
|
|
|
173
173
|
// Check if the loglevel matches this call
|
|
174
174
|
const levels = [ 'error', 'warn', 'info' ]
|
|
175
|
-
if(
|
|
175
|
+
if( !should_log( levels ) ) return
|
|
176
176
|
|
|
177
177
|
// Log the messages if the loglevel matches
|
|
178
178
|
console.error( '🚨 ', ...messages )
|
package/modules/promises.js
CHANGED
|
@@ -69,7 +69,7 @@ export async function make_retryable( async_function, { retry_times = 5, cooldow
|
|
|
69
69
|
* @returns {Promise<Array>} - A promise that resolves to an array of results from the async functions.
|
|
70
70
|
* @see {@link https://www.npmjs.com/package/promise-parallel-throttle}
|
|
71
71
|
*/
|
|
72
|
-
export async function throttle_and_retry( async_function_array = [], { max_parallel = 2, retry_times, cooldown_in_s, cooldown_entropy, logger, fail_fast = true } ) {
|
|
72
|
+
export async function throttle_and_retry( async_function_array = [], { max_parallel = 2, retry_times=2, cooldown_in_s=5, cooldown_entropy=false, logger, fail_fast = true } ) {
|
|
73
73
|
|
|
74
74
|
// Function dependencies
|
|
75
75
|
const { default: Throttle } = await import( 'promise-parallel-throttle' )
|