@finema/core 1.3.0 → 1.3.2
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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
2
|
-
import
|
|
2
|
+
import lodash from 'lodash';
|
|
3
3
|
|
|
4
4
|
const name = "@finema/core";
|
|
5
|
-
const version = "1.3.
|
|
5
|
+
const version = "1.3.2";
|
|
6
6
|
|
|
7
|
+
lodash.get;
|
|
8
|
+
lodash.range;
|
|
9
|
+
lodash.concat;
|
|
10
|
+
lodash.toNumber;
|
|
11
|
+
lodash.isUndefined;
|
|
12
|
+
lodash.dropRight;
|
|
13
|
+
lodash.intersection;
|
|
14
|
+
lodash.set;
|
|
15
|
+
lodash.map;
|
|
7
16
|
const _merge = lodash.merge;
|
|
17
|
+
lodash.flattenDeep;
|
|
18
|
+
lodash.uniq;
|
|
19
|
+
lodash.sortBy;
|
|
20
|
+
lodash.uniqBy;
|
|
21
|
+
lodash.random;
|
|
22
|
+
lodash.cloneDeep;
|
|
23
|
+
lodash.isEmpty;
|
|
24
|
+
lodash.isObject;
|
|
25
|
+
lodash.isArray;
|
|
26
|
+
lodash.findIndex;
|
|
27
|
+
lodash.isEqual;
|
|
28
|
+
lodash.difference;
|
|
29
|
+
lodash.shuffle;
|
|
30
|
+
lodash.size;
|
|
31
|
+
lodash.toPairs;
|
|
32
|
+
lodash.orderBy;
|
|
33
|
+
lodash.fromPairs;
|
|
34
|
+
lodash.xor;
|
|
8
35
|
|
|
9
36
|
const colors = {
|
|
10
37
|
black: "#20243E",
|
|
@@ -1,106 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const _toNumber: (value: any) => number;
|
|
30
|
-
export declare const _isUndefined: (value: any) => value is undefined;
|
|
31
|
-
export declare const _dropRight: <T>(array: lodash.List<T> | null | undefined, n?: number | undefined) => T[];
|
|
32
|
-
export declare const _intersection: <T>(...arrays: (lodash.List<T> | null | undefined)[]) => T[];
|
|
33
|
-
export declare const _set: {
|
|
34
|
-
<T extends object>(object: T, path: lodash.PropertyPath, value: any): T;
|
|
35
|
-
<TResult>(object: object, path: lodash.PropertyPath, value: any): TResult;
|
|
36
|
-
};
|
|
37
|
-
export declare const _map: {
|
|
38
|
-
<T, TResult>(collection: T[] | null | undefined, iteratee: lodash.ArrayIterator<T, TResult>): TResult[];
|
|
39
|
-
<T_1, TResult_1>(collection: lodash.List<T_1> | null | undefined, iteratee: lodash.ListIterator<T_1, TResult_1>): TResult_1[];
|
|
40
|
-
<T_2>(collection: lodash.Dictionary<T_2> | lodash.NumericDictionary<T_2> | null | undefined): T_2[];
|
|
41
|
-
<T_3 extends object, TResult_2>(collection: T_3 | null | undefined, iteratee: lodash.ObjectIterator<T_3, TResult_2>): TResult_2[];
|
|
42
|
-
<T_4, K extends keyof T_4>(collection: lodash.Dictionary<T_4> | lodash.NumericDictionary<T_4> | null | undefined, iteratee: K): T_4[K][];
|
|
43
|
-
<T_5>(collection: lodash.Dictionary<T_5> | lodash.NumericDictionary<T_5> | null | undefined, iteratee?: string | undefined): any[];
|
|
44
|
-
<T_6>(collection: lodash.Dictionary<T_6> | lodash.NumericDictionary<T_6> | null | undefined, iteratee?: object | undefined): boolean[];
|
|
45
|
-
};
|
|
46
|
-
export declare const _merge: {
|
|
47
|
-
<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
|
48
|
-
<TObject_1, TSource1, TSource2>(object: TObject_1, source1: TSource1, source2: TSource2): TObject_1 & TSource1 & TSource2;
|
|
49
|
-
<TObject_2, TSource1_1, TSource2_1, TSource3>(object: TObject_2, source1: TSource1_1, source2: TSource2_1, source3: TSource3): TObject_2 & TSource1_1 & TSource2_1 & TSource3;
|
|
50
|
-
<TObject_3, TSource1_2, TSource2_2, TSource3_1, TSource4>(object: TObject_3, source1: TSource1_2, source2: TSource2_2, source3: TSource3_1, source4: TSource4): TObject_3 & TSource1_2 & TSource2_2 & TSource3_1 & TSource4;
|
|
51
|
-
(object: any, ...otherArgs: any[]): any;
|
|
52
|
-
};
|
|
53
|
-
export declare const _flatDeep: <T>(array: lodash.ListOfRecursiveArraysOrValues<T> | null | undefined) => lodash.Flat<T>[];
|
|
54
|
-
export declare const _uniq: <T>(array: lodash.List<T> | null | undefined) => T[];
|
|
55
|
-
export declare const _sortBy: {
|
|
56
|
-
<T>(collection: lodash.List<T> | null | undefined, ...iteratees: lodash.Many<lodash.ListIteratee<T>>[]): T[];
|
|
57
|
-
<T_1 extends object>(collection: T_1 | null | undefined, ...iteratees: lodash.Many<lodash.ObjectIteratee<T_1>>[]): T_1[keyof T_1][];
|
|
58
|
-
};
|
|
59
|
-
export declare const _uniqBy: <T>(array: lodash.List<T> | null | undefined, iteratee: lodash.ValueIteratee<T>) => T[];
|
|
60
|
-
export declare const _random: {
|
|
61
|
-
(floating?: boolean | undefined): number;
|
|
62
|
-
(max: number, floating?: boolean | undefined): number;
|
|
63
|
-
(min: number, max: number, floating?: boolean | undefined): number;
|
|
64
|
-
(min: number, index: string | number, guard: object): number;
|
|
65
|
-
};
|
|
66
|
-
export declare const _cloneDeep: <T>(value: T) => T;
|
|
67
|
-
export declare const _isEmpty: {
|
|
68
|
-
<T extends {
|
|
69
|
-
__trapAny: any;
|
|
70
|
-
}>(value?: T | undefined): boolean;
|
|
71
|
-
(value: string): value is "";
|
|
72
|
-
(value: Map<any, any> | Set<any> | lodash.List<any> | null | undefined): boolean;
|
|
73
|
-
(value: object): boolean;
|
|
74
|
-
<T_1 extends object>(value: T_1 | null | undefined): value is lodash.EmptyObjectOf<T_1> | null | undefined;
|
|
75
|
-
(value?: any): boolean;
|
|
76
|
-
};
|
|
77
|
-
export declare const _isObject: (value?: any) => value is object;
|
|
78
|
-
export declare const _isArray: {
|
|
79
|
-
(value?: any): value is any[];
|
|
80
|
-
<T>(value?: any): value is any[];
|
|
81
|
-
};
|
|
82
|
-
export declare const _findIndex: <T>(array: lodash.List<T> | null | undefined, predicate?: lodash.ListIterateeCustom<T, boolean> | undefined, fromIndex?: number | undefined) => number;
|
|
83
|
-
export declare const _isEqual: (value: any, other: any) => boolean;
|
|
84
|
-
export declare const _difference: <T>(array: lodash.List<T> | null | undefined, ...values: lodash.List<T>[]) => T[];
|
|
85
|
-
export declare const _shuffle: {
|
|
86
|
-
<T>(collection: lodash.List<T> | null | undefined): T[];
|
|
87
|
-
<T_1 extends object>(collection: T_1 | null | undefined): T_1[keyof T_1][];
|
|
88
|
-
};
|
|
89
|
-
export declare const _size: (collection: string | object | null | undefined) => number;
|
|
90
|
-
export declare const _toPairs: {
|
|
91
|
-
<T>(object?: lodash.Dictionary<T> | lodash.NumericDictionary<T> | undefined): [string, T][];
|
|
92
|
-
(object?: object | undefined): [string, any][];
|
|
93
|
-
};
|
|
94
|
-
export declare const _orderBy: {
|
|
95
|
-
<T>(collection: lodash.List<T> | null | undefined, iteratees?: lodash.Many<lodash.ListIterator<T, unknown>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T[];
|
|
96
|
-
<T_1>(collection: lodash.List<T_1> | null | undefined, iteratees?: lodash.Many<lodash.ListIteratee<T_1>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_1[];
|
|
97
|
-
<T_2 extends object>(collection: T_2 | null | undefined, iteratees?: lodash.Many<lodash.ObjectIterator<T_2, unknown>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_2[keyof T_2][];
|
|
98
|
-
<T_3 extends object>(collection: T_3 | null | undefined, iteratees?: lodash.Many<lodash.ObjectIteratee<T_3>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_3[keyof T_3][];
|
|
99
|
-
};
|
|
100
|
-
export declare const _fromPairs: {
|
|
101
|
-
<T>(pairs: lodash.List<[lodash.PropertyName, T]> | null | undefined): lodash.Dictionary<T>;
|
|
102
|
-
(pairs: lodash.List<any[]> | null | undefined): lodash.Dictionary<any>;
|
|
103
|
-
};
|
|
104
|
-
export declare const _xor: <T>(...arrays: (lodash.List<T> | null | undefined)[]) => T[];
|
|
1
|
+
export declare const _get: any;
|
|
2
|
+
export declare const _range: any;
|
|
3
|
+
export declare const _concat: any;
|
|
4
|
+
export declare const _toNumber: any;
|
|
5
|
+
export declare const _isUndefined: any;
|
|
6
|
+
export declare const _dropRight: any;
|
|
7
|
+
export declare const _intersection: any;
|
|
8
|
+
export declare const _set: any;
|
|
9
|
+
export declare const _map: any;
|
|
10
|
+
export declare const _merge: any;
|
|
11
|
+
export declare const _flatDeep: any;
|
|
12
|
+
export declare const _uniq: any;
|
|
13
|
+
export declare const _sortBy: any;
|
|
14
|
+
export declare const _uniqBy: any;
|
|
15
|
+
export declare const _random: any;
|
|
16
|
+
export declare const _cloneDeep: any;
|
|
17
|
+
export declare const _isEmpty: any;
|
|
18
|
+
export declare const _isObject: any;
|
|
19
|
+
export declare const _isArray: any;
|
|
20
|
+
export declare const _findIndex: any;
|
|
21
|
+
export declare const _isEqual: any;
|
|
22
|
+
export declare const _difference: any;
|
|
23
|
+
export declare const _shuffle: any;
|
|
24
|
+
export declare const _size: any;
|
|
25
|
+
export declare const _toPairs: any;
|
|
26
|
+
export declare const _orderBy: any;
|
|
27
|
+
export declare const _fromPairs: any;
|
|
28
|
+
export declare const _xor: any;
|
|
105
29
|
export declare const _clone: (object: any) => any;
|
|
106
|
-
export declare const _debounce: <T extends (...args: any[]) => any>(func: T, wait?: number) =>
|
|
30
|
+
export declare const _debounce: <T extends (...args: any[]) => any>(func: T, wait?: number) => any;
|