dphelper 1.8.18 → 1.8.21
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/index.js +6 -6
- package/package.json +2 -3
- package/types/_array.d.ts +16 -16
- package/types/_console.d.ts +1 -1
- package/types/_cookie.d.ts +1 -1
- package/types/_dispatch.d.ts +1 -1
- package/types/_security.d.ts +4 -2
- package/types/cache.d.ts +3 -3
- package/types/dphelper.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dphelper",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.21",
|
|
4
4
|
"description": "dphelper devtools | tools, store and state management for developers by Dario Passariello",
|
|
5
5
|
"copyright": "Dario Passariello",
|
|
6
6
|
"license": "MIT",
|
|
@@ -174,8 +174,7 @@
|
|
|
174
174
|
"crypto-js": "4.2.0",
|
|
175
175
|
"file-loader": "6.2.0",
|
|
176
176
|
"jquery": "3.7.1",
|
|
177
|
-
"terser-webpack-plugin": "^5.3.
|
|
178
|
-
"thread-loader": "4.0.4",
|
|
177
|
+
"terser-webpack-plugin": "^5.3.11",
|
|
179
178
|
"ts-loader": "^9.5.1",
|
|
180
179
|
"ts-node": "10.9.2",
|
|
181
180
|
"typescript": "5.7.2",
|
package/types/_array.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
interface
|
|
2
|
+
interface dpHelper extends _dpHelper {
|
|
3
3
|
|
|
4
4
|
array: {
|
|
5
|
-
find: (array:
|
|
6
|
-
unique: (array:
|
|
7
|
-
delete: (array:
|
|
8
|
-
merge: (arrayA:
|
|
9
|
-
mergeByKey: (arrayA:
|
|
10
|
-
asc: (array:
|
|
11
|
-
desc: (array:
|
|
12
|
-
duplicates: (array:
|
|
13
|
-
even: (array:
|
|
14
|
-
odd: (array:
|
|
15
|
-
toObj: (array:
|
|
5
|
+
find: (array: Object, key: string) => any
|
|
6
|
+
unique: (array: Object) => any
|
|
7
|
+
delete: (array: Object, key: string) => any
|
|
8
|
+
merge: (arrayA: Object, arrayB: Object) => any
|
|
9
|
+
mergeByKey: (arrayA: Object, arrayB: Object, key: string) => any
|
|
10
|
+
asc: (array: Object) => any
|
|
11
|
+
desc: (array: Object) => any
|
|
12
|
+
duplicates: (array: Object) => any
|
|
13
|
+
even: (array: Object) => any
|
|
14
|
+
odd: (array: Object) => any
|
|
15
|
+
toObj: (array: Object) => any
|
|
16
16
|
sumColumn: (array: [[]], column: number) => any
|
|
17
|
-
shuffle: (array:
|
|
17
|
+
shuffle: (array: Object) => any
|
|
18
18
|
testArrayInt: (num: number) => any
|
|
19
19
|
|
|
20
|
-
generate: (num: number) =>
|
|
21
|
-
rand32: (num: number) =>
|
|
22
|
-
findindex: (array:
|
|
20
|
+
generate: (num: number) => Object
|
|
21
|
+
rand32: (num: number) => Object
|
|
22
|
+
findindex: (array: Object, key: number) => number
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
}
|
package/types/_console.d.ts
CHANGED
package/types/_cookie.d.ts
CHANGED
package/types/_dispatch.d.ts
CHANGED
package/types/_security.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
interface
|
|
2
|
+
interface dpHelper extends _dpHelper {
|
|
3
3
|
|
|
4
4
|
security: {
|
|
5
5
|
uuid: {
|
|
6
|
-
|
|
6
|
+
byVal: (value: String) => String
|
|
7
|
+
v4: String
|
|
8
|
+
v5: String
|
|
7
9
|
},
|
|
8
10
|
hashPass: (u: any, p: any) => any
|
|
9
11
|
crypt: (u: any, p: any, monitored: any) => String
|
package/types/cache.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ License: MIT
|
|
|
7
7
|
* Cache is used for internal use only... but you can use if you need.
|
|
8
8
|
* @return Some stuff you cache... usually used for dynamic imports from dpHelper.
|
|
9
9
|
*/
|
|
10
|
-
interface
|
|
10
|
+
interface _cache {
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Create a cache, please use state instead!
|
|
@@ -20,5 +20,5 @@ interface dpCache {
|
|
|
20
20
|
[key: string]: any
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare var cache:
|
|
24
|
-
type cache =
|
|
23
|
+
declare var cache: _cache
|
|
24
|
+
type cache = _cache
|
package/types/dphelper.d.ts
CHANGED
|
@@ -30,12 +30,4 @@ type dphelper = _dpHelper
|
|
|
30
30
|
|
|
31
31
|
type process = {}
|
|
32
32
|
|
|
33
|
-
//////////////////////////////////////////////////////////////////////////////////
|
|
34
|
-
// EXTRA
|
|
35
|
-
|
|
36
|
-
/*******************************************************************************/
|
|
37
|
-
// OVERRIDE CONFIRM FUNCTION
|
|
38
|
-
|
|
39
|
-
declare function confirm(message: string, func1: Function, func2?: Function): boolean
|
|
40
|
-
|
|
41
33
|
///////////////////
|