mixlea-utils-js 0.1.35 → 0.1.36

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.
@@ -273,13 +273,6 @@ declare interface CommonEvent_2 {
273
273
 
274
274
  export declare function compareSetDifference<T>(setA: Set<T>, setB: Set<T>): Set<T>;
275
275
 
276
- /**
277
- * 异步压缩文本并编码为 Base64,方便存数据库
278
- * @param input 明文字符串
279
- * @returns Base64 压缩字符串
280
- */
281
- export declare function compressData(input: any): Promise<string>;
282
-
283
276
  declare type ConfigStore = Record<string, any>;
284
277
 
285
278
  export declare function convertWeightUnitToStandard(chineseWeight: string): string;
@@ -346,13 +339,6 @@ declare interface DebouncedFunc<T extends (...args: any[]) => any> {
346
339
  flush: () => ReturnType<T> | undefined;
347
340
  }
348
341
 
349
- /**
350
- * 异步从 Base64 解码并解压为原始文本
351
- * @param base64 Base64 压缩字符串
352
- * @returns 明文字符串
353
- */
354
- export declare function decompressData(base64: string): Promise<string>;
355
-
356
342
  /**
357
343
  * XOR 解密(稳定输出原始内容)
358
344
  * @param {string} encrypted - Base64 加密字符串
@@ -474,8 +460,6 @@ export declare function execFunc(func: Function): any;
474
460
 
475
461
  export declare function executePromises<T extends any[]>(promises: [...Array<Promise<T[number]>>]): Promise<T>;
476
462
 
477
- export declare function execWebWorker<T extends any[], R>(fn: (...args: T) => R | Promise<R>, ...args: T): Promise<R>;
478
-
479
463
  declare function exportFile({ fileName, fallbackFileName, file, }: {
480
464
  file: File;
481
465
  fileName?: string;
@@ -1465,22 +1449,6 @@ export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOr
1465
1449
  */
1466
1450
  export declare function wordCount(str: string, word: string): number;
1467
1451
 
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
-
1477
1452
  export declare function zipArrayObject(param: Record<string, any[]>): any[];
1478
1453
 
1479
1454
  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.35",
4
+ "version": "0.1.36",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {