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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dphelper",
3
- "version": "1.8.18",
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.10",
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 _dpHelper extends _dpHelper {
2
+ interface dpHelper extends _dpHelper {
3
3
 
4
4
  array: {
5
- find: (array: array, key: string) => any
6
- unique: (array: array) => any
7
- delete: (array: array, key: string) => any
8
- merge: (arrayA: array, arrayB: array) => any
9
- mergeByKey: (arrayA: array, arrayB: array, key: string) => any
10
- asc: (array: array) => any
11
- desc: (array: array) => any
12
- duplicates: (array: array) => any
13
- even: (array: array) => any
14
- odd: (array: array) => any
15
- toObj: (array: array) => any
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: array) => any
17
+ shuffle: (array: Object) => any
18
18
  testArrayInt: (num: number) => any
19
19
 
20
- generate: (num: number) => array
21
- rand32: (num: number) => array
22
- findindex: (array: array, key: number) => number
20
+ generate: (num: number) => Object
21
+ rand32: (num: number) => Object
22
+ findindex: (array: Object, key: number) => number
23
23
  }
24
24
 
25
25
  }
@@ -1,4 +1,4 @@
1
- interface _dpHelper extends _dpHelper {
1
+ interface dpHelper extends _dpHelper {
2
2
 
3
3
  console: {
4
4
  /**
@@ -1,4 +1,4 @@
1
- interface _dpHelper extends _dpHelper {
1
+ interface dpHelper extends _dpHelper {
2
2
 
3
3
  cookie: {
4
4
  /**
@@ -1,4 +1,4 @@
1
- interface _dpHelper extends _dpHelper {
1
+ interface dpHelper extends _dpHelper {
2
2
 
3
3
  dispatch: {
4
4
  /**
@@ -1,9 +1,11 @@
1
1
 
2
- interface _dpHelper extends _dpHelper {
2
+ interface dpHelper extends _dpHelper {
3
3
 
4
4
  security: {
5
5
  uuid: {
6
- v5: () => String
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 dpCache {
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: dpCache
24
- type cache = dpCache
23
+ declare var cache: _cache
24
+ type cache = _cache
@@ -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
  ///////////////////