mixlea-utils-js 0.1.33 → 0.1.35

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.
@@ -373,6 +373,8 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
373
373
 
374
374
  export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
375
375
 
376
+ export declare function deferMicrotask(func: VoidFunction): void;
377
+
376
378
  export declare const deleteConfigStoreAtKey: (key: string) => void;
377
379
 
378
380
  export declare function dispatchNodeEvent<T = any>(el: T, e: CommonEvent | SpecialEvent): Promise<T>;
@@ -472,6 +474,8 @@ export declare function execFunc(func: Function): any;
472
474
 
473
475
  export declare function executePromises<T extends any[]>(promises: [...Array<Promise<T[number]>>]): Promise<T>;
474
476
 
477
+ export declare function execWebWorker<T extends any[], R>(fn: (...args: T) => R | Promise<R>, ...args: T): Promise<R>;
478
+
475
479
  declare function exportFile({ fileName, fallbackFileName, file, }: {
476
480
  file: File;
477
481
  fileName?: string;
@@ -1461,6 +1465,22 @@ export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOr
1461
1465
  */
1462
1466
  export declare function wordCount(str: string, word: string): number;
1463
1467
 
1468
+ declare class WorkerPool {
1469
+ private worker;
1470
+ constructor();
1471
+ exec<T extends any[], R>(fn: (...args: T) => R | Promise<R>, ...args: T): Promise<R>;
1472
+ terminate(): void;
1473
+ }
1474
+
1475
+ export declare const workerPool: WorkerPool;
1476
+
1464
1477
  export declare function zipArrayObject(param: Record<string, any[]>): any[];
1465
1478
 
1466
1479
  export { }
1480
+
1481
+
1482
+ declare global {
1483
+ interface Window {
1484
+ __MIXLEA_UTILS_JS_WORKER_POOL__: WorkerPool | undefined;
1485
+ }
1486
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.33",
4
+ "version": "0.1.35",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {