dphelper 1.9.75 → 1.9.80
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 +29 -74
- package/docs/_config.yml +0 -1
- package/docs/index.md +0 -374
- package/documents/OBSERVER.md +0 -67
- package/documents/SESSION.md +0 -58
- package/documents/STATE.md +0 -69
- package/documents/STORE.md +0 -80
- package/documents/TOOLS.md +0 -1284
- package/documents/USEOBSERVER.md +0 -30
- package/index.d.ts +0 -22
- package/index.js +0 -1
- package/types/cache.d.ts +0 -27
- package/types/dphelper.d.ts +0 -572
- package/types/idb.d.ts +0 -21
- package/types/jquery.d.ts +0 -20
- package/types/memorio.d.ts +0 -21
- package/types/observer.d.ts +0 -47
- package/types/session.d.ts +0 -67
- package/types/state.d.ts +0 -71
- package/types/store.d.ts +0 -91
- package/types/useobserver.d.ts +0 -28
package/types/session.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
memorio
|
|
3
|
-
Copyright (c) 2025 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Create states using: session.set("example",{test:"test"})
|
|
10
|
-
*/
|
|
11
|
-
interface _session {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Create a new session
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* session.set("test","example") // or Array, Object, Number, Functions...
|
|
18
|
-
*
|
|
19
|
-
* @since memorio 0.0.1
|
|
20
|
-
* @param name The String as name to define the session.
|
|
21
|
-
* @param param The information taht you want to session (Any).
|
|
22
|
-
* @return boolean
|
|
23
|
-
*/
|
|
24
|
-
set: (name: string, value: any) => void
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Have back the data from a session.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* session.get("test")
|
|
31
|
-
*
|
|
32
|
-
* @since memorio 0.0.1
|
|
33
|
-
* @param name The String as name to define the session.
|
|
34
|
-
*/
|
|
35
|
-
get: (name: string) => any
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Delete an existing session:
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* session.delete("test")
|
|
42
|
-
* session.remove("test")
|
|
43
|
-
*
|
|
44
|
-
* @since memorio 0.0.1
|
|
45
|
-
* @param name The String as name to define the session.
|
|
46
|
-
* @return boolean
|
|
47
|
-
*/
|
|
48
|
-
delete: (name: string) => boolean | undefined
|
|
49
|
-
remove: (name: string) => boolean | undefined
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Delete all storages
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* session.clearAll()
|
|
56
|
-
* session.removeAll()
|
|
57
|
-
*
|
|
58
|
-
* @since memorio 0.0.1
|
|
59
|
-
* @return boolean
|
|
60
|
-
*/
|
|
61
|
-
clearAll: () => boolean
|
|
62
|
-
removeAll: () => boolean
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare var session: _session
|
|
67
|
-
type session = _session
|
package/types/state.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
memorio
|
|
3
|
-
Copyright (c) 2025 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* If you use only "state" you get the entire Proxy object
|
|
10
|
-
* @return Proxy Object of all states.
|
|
11
|
-
*/
|
|
12
|
-
interface _state {
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Create states using: state.test = "example"
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* state.myStuff = any
|
|
19
|
-
*
|
|
20
|
-
* @since memorio 0.0.1
|
|
21
|
-
* @param key The name of the state for which you want to modify the action.
|
|
22
|
-
* @return The previous values (Any).
|
|
23
|
-
* Important: Object is a Proxy.
|
|
24
|
-
*/
|
|
25
|
-
[key: string]: any
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Delete entire state using: state.remove("test")
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* state.remove(stateName)
|
|
32
|
-
*
|
|
33
|
-
* @since memorio 0.0.1
|
|
34
|
-
* @param stateName The name of the state for which you want to delete.
|
|
35
|
-
* @return boolean.
|
|
36
|
-
*/
|
|
37
|
-
readonly remove?: (stateName: string) => any
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* List all states using: state.list
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* state.removeAll()
|
|
44
|
-
*
|
|
45
|
-
* @since memorio 1.8.92
|
|
46
|
-
* @return Remove all states.
|
|
47
|
-
*/
|
|
48
|
-
readonly removeAll?: () => any
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* List all states using: state.list
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* state.list
|
|
55
|
-
*
|
|
56
|
-
* @since memorio 0.0.1
|
|
57
|
-
* @return Object of all states (Not the Proxy).
|
|
58
|
-
*/
|
|
59
|
-
readonly list?: (stateName: string) => any
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Generate a message for "memorio"
|
|
63
|
-
* Note: FOR INTERNAL USE ONLY.
|
|
64
|
-
* @since memorio 0.0.1
|
|
65
|
-
*/
|
|
66
|
-
readonly mex?: any
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare var state: _state
|
|
71
|
-
type state = _state
|
package/types/store.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
memorio
|
|
3
|
-
Copyright (c) 2025 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Create states using: store.set("example",{test:"test"})
|
|
10
|
-
*/
|
|
11
|
-
interface _store {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Create a new store
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* store.set("test","example") // or Array, Object, Number, Functions...
|
|
18
|
-
*
|
|
19
|
-
* @since memorio 0.0.1
|
|
20
|
-
* @param name The String as name to define the store.
|
|
21
|
-
* @param param The information taht you want to store (Any).
|
|
22
|
-
* @return boolean
|
|
23
|
-
*/
|
|
24
|
-
set: (name: string, value: any) => void
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Have back the data from a store.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* store.get("test")
|
|
31
|
-
*
|
|
32
|
-
* @since memorio 0.0.1
|
|
33
|
-
* @param name The String as name to define the store.
|
|
34
|
-
*/
|
|
35
|
-
get: (name: string) => any
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Delete an existing store:
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* store.delete("test")
|
|
42
|
-
* store.remove("test")
|
|
43
|
-
*
|
|
44
|
-
* @since memorio 0.0.1
|
|
45
|
-
* @param name The String as name to define the store.
|
|
46
|
-
* @return boolean
|
|
47
|
-
*/
|
|
48
|
-
delete: (name: string) => boolean | undefined
|
|
49
|
-
remove: (name: string) => boolean | undefined
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Delete all storages
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* store.clearAll()
|
|
56
|
-
* store.removeAll()
|
|
57
|
-
*
|
|
58
|
-
* @since memorio 0.0.1
|
|
59
|
-
* @return boolean
|
|
60
|
-
*/
|
|
61
|
-
clearAll: () => boolean
|
|
62
|
-
removeAll: () => boolean
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Know how much space you have for total storages
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* store.quota()
|
|
69
|
-
*
|
|
70
|
-
* @since memorio 0.0.1
|
|
71
|
-
* @return values
|
|
72
|
-
*/
|
|
73
|
-
quota: () => void
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get the size of stores an the total
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* store.size()
|
|
80
|
-
*
|
|
81
|
-
* @since memorio 0.0.1
|
|
82
|
-
* @return dimension in kb
|
|
83
|
-
*/
|
|
84
|
-
size: () => number
|
|
85
|
-
|
|
86
|
-
// TODO
|
|
87
|
-
// readonly increaseQuota: (value: number) => void
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
declare var store: _store
|
|
91
|
-
type store = _store
|
package/types/useobserver.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
memorio
|
|
3
|
-
Copyright (c) 2025 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* useObserver run a callback anytime the associated state going to change
|
|
10
|
-
* @return Execution of function after state change.
|
|
11
|
-
*/
|
|
12
|
-
interface _useObserver {
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Generate your useObserver
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* useObserver(Function, "state.myState")
|
|
19
|
-
*
|
|
20
|
-
* @since memorio 1.0.6
|
|
21
|
-
*/
|
|
22
|
-
(func: Function, stateName: string): any
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare var useObserver: _useObserver
|
|
28
|
-
type useObserver = _useObserver
|