@vtj/utils 0.6.11 → 0.6.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.6.11",
4
+ "version": "0.6.12",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "@types/js-cookie": "~3.0.4",
15
15
  "@types/lodash-es": "~4.17.8",
16
16
  "@types/numeral": "~2.0.3",
17
- "@vtj/cli": "^0.6.11",
17
+ "@vtj/cli": "^0.6.12",
18
18
  "@vueuse/core": "~10.4.1",
19
19
  "axios": "~1.5.1",
20
20
  "crypto-js": "~4.1.1",
@@ -39,7 +39,7 @@
39
39
  "require": "./lib/index.cjs"
40
40
  }
41
41
  },
42
- "gitHead": "bbc8d775e492fc55d6450a4b6293d0692fedfdb0",
42
+ "gitHead": "32f2999b1ae3f89a4cafea105abc89888aaa5b4c",
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  }
package/types/util.d.ts CHANGED
@@ -63,3 +63,5 @@ export declare function delay(val?: number): Promise<unknown>;
63
63
  export declare function arrayToMap<T>(data: T[], prop: keyof T): Map<any, T>;
64
64
  export declare function mapToObject<V = any>(map: Map<any, V>): Record<any, V>;
65
65
  export declare function dedupArray<T>(array: any[], prop?: keyof T): any[];
66
+ export declare function toArray<T = any>(maybeArray?: T | T[]): T[];
67
+ export declare function cleanObject(obj: Record<string, any>): Record<string, any>;
@@ -1 +1 @@
1
- export declare const version = "0.6.11";
1
+ export declare const version = "0.6.12";