moderndash
Advanced tools
Comparing version 0.11.1 to 0.11.2
@@ -386,3 +386,8 @@ // src/array/chunk.ts | ||
paused = false; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
queue = []; | ||
/** | ||
* @constructor | ||
* @param maxConcurrent - The maximum number of async functions to run concurrently. | ||
*/ | ||
constructor(maxConcurrent) { | ||
@@ -419,2 +424,3 @@ this.maxConcurrent = maxConcurrent; | ||
} | ||
/** Removes all the tasks from the queue */ | ||
clear() { | ||
@@ -426,5 +432,7 @@ for (const queueElement of this.queue) { | ||
} | ||
/** Pauses the execution of the queue */ | ||
pause() { | ||
this.paused = true; | ||
} | ||
/** Resumes the execution of the tasks in the queue */ | ||
resume() { | ||
@@ -434,5 +442,7 @@ this.paused = false; | ||
} | ||
/** Return the tasks added to the queue */ | ||
getQueue() { | ||
return this.queue.map((queueElement) => queueElement.asyncFn); | ||
} | ||
/** Returns whether the queue is paused */ | ||
isPaused() { | ||
@@ -523,2 +533,3 @@ return this.paused; | ||
"[^\\dA-Za-z]|(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])" | ||
// lookahead for an uppercase letter followed by a lowercase letter | ||
); | ||
@@ -525,0 +536,0 @@ return str.split(regex).filter(Boolean); |
@@ -48,9 +48,9 @@ { | ||
"devDependencies": { | ||
"@vitest/coverage-c8": "0.28.3", | ||
"@vitest/ui": "0.28.3", | ||
"vitest": "0.28.3", | ||
"tsup": "6.5.0", | ||
"@vitest/coverage-c8": "0.28.4", | ||
"@vitest/ui": "0.28.4", | ||
"vitest": "0.28.4", | ||
"tsup": "6.6.0", | ||
"ctix": "1.8.2" | ||
}, | ||
"version": "0.11.1" | ||
"version": "0.11.2" | ||
} |
@@ -20,4 +20,7 @@  | ||
<div align=center> | ||
<a href="https://bundlephobia.com/package/moderndash@0.11.1"> | ||
<img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/moderndash@latest?color=Green"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/moderndash"> | ||
<img alt="npm" src="https://img.shields.io/npm/dw/moderndash?label=Downloads"> | ||
<img alt="npm" src="https://img.shields.io/npm/dw/moderndash"> | ||
</a> | ||
@@ -43,3 +46,3 @@ <a href="https://github.com/Maggi64/moderndash/blob/main/LICENSE"> | ||
// We don't need | ||
ModernDash.isArray(arr) | ||
Lodash.isArray(arr) | ||
Lodash.compact(arr) | ||
@@ -46,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212145
2409
60