mixlea-utils-js 0.1.35 → 0.1.37

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;
@@ -1071,13 +1055,11 @@ export declare function objectOmit<O extends Record<string, any>>(input: O, chec
1071
1055
 
1072
1056
  export declare function objectOmitFields<O extends object, F extends keyof O>(input: O, fields: F[]): Omit<O, F>;
1073
1057
 
1074
- declare type ObjectOrEmpty<T> = T extends object ? T : {};
1075
-
1076
1058
  export declare function objectPathsJoin(record: Record<string, any>, paths: string[], joinSymbol?: string): string;
1077
1059
 
1078
1060
  export declare function objectPick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
1079
1061
 
1080
- export declare function objectRemoveFields<T, K extends keyof T>(o: T, fields: K[]): ObjectOrEmpty<T>;
1062
+ export declare function objectRemoveFields(o: any, fields: string[]): Record<string, any>;
1081
1063
 
1082
1064
  export declare function objectRemoveNullishFields<T extends Record<string, any>>(obj: T): Partial<T>;
1083
1065
 
@@ -1465,22 +1447,6 @@ export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOr
1465
1447
  */
1466
1448
  export declare function wordCount(str: string, word: string): number;
1467
1449
 
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
1450
  export declare function zipArrayObject(param: Record<string, any[]>): any[];
1478
1451
 
1479
1452
  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.37",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {