dphelper 1.2.7 → 1.3.0

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.
@@ -17,15 +17,18 @@
17
17
  */
18
18
 
19
19
  /** @preserve
20
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
21
- * derived from CryptoJS.mode.CTR
22
- * Jan Hruby jhruby.web@gmail.com
23
- */
20
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
21
+ * derived from CryptoJS.mode.CTR
22
+ * Jan Hruby jhruby.web@gmail.com
23
+ */
24
24
 
25
25
  /** @preserve
26
- (c) 2012 by Cédric Mesnil. All rights reserved.
27
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
28
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
29
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
30
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
26
+ (c) 2012 by Cédric Mesnil. All rights reserved.
27
+
28
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
29
+
30
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
31
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
32
+
33
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dphelper",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "displayName": "dphelper",
5
5
  "description": "dphelper devtools | tools, store and state management brave developers by Dario Passariello",
6
6
  "copyright": "Dario Passariello",
@@ -180,34 +180,18 @@
180
180
  "update": "cd mcp/javascripts && node npmUpdate"
181
181
  },
182
182
  "devDependencies": {
183
- "@babel/cli": "7.24.8",
184
- "@babel/core": "7.25.2",
185
- "@babel/plugin-transform-runtime": "7.24.7",
186
- "@babel/preset-env": "7.25.3",
187
- "@babel/preset-react": "7.24.7",
188
- "@babel/preset-typescript": "7.24.7",
189
- "@babel/runtime": "^7.25.0",
190
- "@types/node": "22.4.0",
191
183
  "@types/webpack-env": "1.18.5",
192
- "babel-loader": "9.1.3",
193
- "compression-webpack-plugin": "11.1.0",
194
184
  "copy-webpack-plugin": "^12.0.2",
195
185
  "crypto-js": "4.2.0",
196
- "css": "3.0.0",
197
- "css-loader": "^7.1.2",
198
186
  "file-loader": "6.2.0",
199
187
  "html-webpack-plugin": "5.6.0",
200
188
  "jquery": "3.7.1",
201
- "progress-bar-webpack-plugin": "2.1.0",
202
- "sass": "^1.77.8",
203
- "sass-loader": "^16.0.0",
204
- "style-loader": "^4.0.0",
205
189
  "terser-webpack-plugin": "^5.3.10",
206
190
  "ts-loader": "^9.5.1",
207
191
  "ts-node": "10.9.2",
208
192
  "typescript": "5.5.4",
209
193
  "webpack": "^5.93.0",
210
- "webpack-cli": "^5.1.4",
194
+ "webpack-cli": "5.1.4",
211
195
  "webpack-dev-server": "^5.0.4",
212
196
  "x2js": "3.4.4"
213
197
  }
@@ -1,25 +1,25 @@
1
1
  interface _dpHelper extends _dpHelper {
2
2
 
3
- /**
4
- * Root
5
- * @return group of commands.
6
- */
7
3
  console: {
8
4
  /**
9
5
  * info
10
6
  * @return console log of paramenters.
11
7
  */
12
- info: (name: String, message: String, func: Function) => any
8
+ info?: (name: String, message: String, func: Function) => any
13
9
  /**
14
10
  * stop
15
11
  * @return stop all.
16
12
  */
17
- stop: (options?) => any
13
+ stop?: (options?: any) => any
18
14
  /**
19
15
  * stop
20
16
  * @return stop all.
21
17
  */
22
- toHtml: (element: string) => any
18
+ toHtml?: (element: string) => any
19
+
20
+ method?: any
21
+
22
+ disableYellowBox?: any
23
23
  }
24
24
 
25
25
  }
@@ -1,9 +1,5 @@
1
1
  interface _dpHelper extends _dpHelper {
2
2
 
3
- /**
4
- * dispatch
5
- * @return group of commands.
6
- */
7
3
  dispatch: {
8
4
  /**
9
5
  * info
@@ -5,10 +5,9 @@ interface _dpHelper extends _dpHelper {
5
5
  uuid: {
6
6
  v5: () => String
7
7
  },
8
- hashPass: (u, p) => Promise
9
- crypt: (u, p, monitored) => String
10
- deCrypt: (u, p, mode) => String
11
- AES_KeyGen: (passKey) => String
8
+ hashPass: (u: any, p: any) => any
9
+ crypt: (u: any, p: any, monitored: any) => String
10
+ deCrypt: (u: any, p: any, mode: any) => String
11
+ AES_KeyGen: (passKey: any) => String
12
12
  }
13
-
14
13
  }
package/types/cache.d.ts CHANGED
@@ -22,5 +22,3 @@ interface dpCache {
22
22
 
23
23
  declare var cache: dpCache
24
24
  type cache = dpCache
25
-
26
- cache = {}
@@ -28,14 +28,12 @@ interface _dpHelper {
28
28
  declare var dphelper: _dpHelper
29
29
  type dphelper = _dpHelper
30
30
 
31
- dphelper = {}
32
-
33
31
  //////////////////////////////////////////////////////////////////////////////////////
34
32
  // EXTRA
35
33
 
36
34
  /*******************************************************************************/
37
35
  // OVERRIDE CONFIRM FUNCTION
38
36
 
39
- declare function confirm(message?: string, func?: func, func?: func): boolean
37
+ declare function confirm(message: string, func1: Function, func2?: Function): boolean
40
38
 
41
39
  ///////////////////
package/types/jquery.d.ts CHANGED
@@ -9,13 +9,10 @@ declare module 'jquery'
9
9
 
10
10
  // ////////////////////////////////////////////////////////////////
11
11
 
12
- interface globalThis {
12
+ interface window {
13
13
  $: any
14
14
  jQuery: any
15
15
  }
16
16
 
17
- type $ = globalThis
18
- type jQuery = globalThis
19
-
20
- $ = {}
21
- jQuery = {}
17
+ type $ = {}
18
+ type jQuery = {}
@@ -7,7 +7,7 @@ License: MIT
7
7
  * Observer run a callback anytime the associated state going to change
8
8
  * @return Execution of function after state change.
9
9
  */
10
- interface dpObserver {
10
+ interface _observer {
11
11
 
12
12
  /**
13
13
  * Generate your observer
@@ -17,7 +17,7 @@ interface dpObserver {
17
17
  *
18
18
  * @since dpHelper 1.0.6
19
19
  */
20
- (stateName: string, callBack): Any
20
+ (stateName: string, callBack: any): any
21
21
 
22
22
  /**
23
23
  * List of active observers
@@ -37,11 +37,9 @@ interface dpObserver {
37
37
  *
38
38
  * @since dpHelper 1.0.6
39
39
  */
40
- readonly remove?: (name: string, callBack, flag?: bool[]) => void
40
+ readonly remove?: (name: string, callBack: any, flag?: boolean) => void
41
41
 
42
42
  }
43
43
 
44
- declare var observer: dpObserver
45
- type observer = dpObserver
46
-
47
- observer = {}
44
+ declare var observer: _observer
45
+ type observer = _observer
package/types/state.d.ts CHANGED
@@ -2,32 +2,21 @@
2
2
  * If you use only "state" you get the entire Proxy object
3
3
  * @return Proxy Object of all states.
4
4
  */
5
- interface dpState {
5
+ interface _state {
6
6
 
7
- /**
8
- * Create states using: state.test = "example"
9
- *
10
- * @example
11
- * state.myStuff = any
12
- *
13
- * @since dpHelper 0.0.1
14
- * @param key The name of the state for which you want to modify the action.
15
- * @return The previous values (Any).
16
- * Important: Object is a Proxy.
17
- */
18
7
  [key: string]: any
19
8
 
20
9
  /**
21
10
  * Delete entire state using: state.remove("test")
22
11
  *
23
12
  * @example
24
- * state.remove(any)
13
+ * state.remove(stateName)
25
14
  *
26
15
  * @since dpHelper 0.0.1
27
16
  * @param stateName The name of the state for which you want to delete.
28
17
  * @return boolean.
29
18
  */
30
- readonly remove: (stateName: string) => any
19
+ readonly remove?: (stateName: string) => any
31
20
 
32
21
  /**
33
22
  * List all states using: state.list
@@ -38,18 +27,27 @@ interface dpState {
38
27
  * @since dpHelper 0.0.1
39
28
  * @return Object of all states (Not the Proxy).
40
29
  */
41
- readonly list: (stateName: string) => any
30
+ readonly list?: (stateName: string) => any
42
31
 
43
32
  /**
44
33
  * Generate a message for "dpHelper Manage"
45
34
  * Note: FOR INTERNAL USE ONLY.
46
35
  * @since dpHelper 0.0.1
47
36
  */
48
- readonly mex: (prop: { property: string, value: string }) => any
37
+ readonly mex?: any
49
38
 
50
39
  }
51
40
 
52
- declare var state: dpState
53
- type state = dpState
54
-
55
- state = {}
41
+ /**
42
+ * Create states using: state.test = "example"
43
+ *
44
+ * @example
45
+ * state.myStuff = any
46
+ *
47
+ * @since dpHelper 0.0.1
48
+ * @param key The name of the state for which you want to modify the action.
49
+ * @return The previous values (Any).
50
+ * Important: Object is a Proxy.
51
+ */
52
+ declare var state: _state
53
+ type state = _state
package/types/store.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Create states using: store.set("example",{test:"test"})
3
3
  */
4
- interface dpStore {
4
+ interface _store {
5
5
 
6
6
  /**
7
7
  * Create a new store
@@ -76,7 +76,5 @@ interface dpStore {
76
76
  // readonly increaseQuota: (value: number) => void
77
77
  }
78
78
 
79
- declare var store: dpStore
80
- type store = dpStore
81
-
82
- store = {}
79
+ declare var store: _store
80
+ type store = _store