@daysnap/utils 0.1.16 → 0.1.17
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/docs/classes/Poller.md +9 -9
- package/docs/classes/Storage.md +13 -13
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +171 -147
- package/es/chunk-EH6HUV2G.js +9 -0
- package/es/formatGapDate.d.ts +6 -0
- package/es/formatGapDate.js +6 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +31 -27
- package/lib/chunk-Z42N5FUV.cjs +9 -0
- package/lib/formatGapDate.cjs +6 -0
- package/lib/formatGapDate.d.cts +6 -0
- package/lib/index.cjs +27 -23
- package/lib/index.d.cts +1 -0
- package/package.json +1 -1
package/docs/classes/Poller.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[poller.ts:23](https://github.com/daysnap/utils/blob/
|
|
43
|
+
[poller.ts:23](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L23)
|
|
44
44
|
|
|
45
45
|
## Properties
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[poller.ts:14](https://github.com/daysnap/utils/blob/
|
|
53
|
+
[poller.ts:14](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L14)
|
|
54
54
|
|
|
55
55
|
___
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ ___
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[poller.ts:17](https://github.com/daysnap/utils/blob/
|
|
63
|
+
[poller.ts:17](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L17)
|
|
64
64
|
|
|
65
65
|
___
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ ___
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[poller.ts:16](https://github.com/daysnap/utils/blob/
|
|
73
|
+
[poller.ts:16](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L16)
|
|
74
74
|
|
|
75
75
|
___
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ ___
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[poller.ts:15](https://github.com/daysnap/utils/blob/
|
|
83
|
+
[poller.ts:15](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L15)
|
|
84
84
|
|
|
85
85
|
## Accessors
|
|
86
86
|
|
|
@@ -94,7 +94,7 @@ ___
|
|
|
94
94
|
|
|
95
95
|
#### Defined in
|
|
96
96
|
|
|
97
|
-
[poller.ts:19](https://github.com/daysnap/utils/blob/
|
|
97
|
+
[poller.ts:19](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L19)
|
|
98
98
|
|
|
99
99
|
## Methods
|
|
100
100
|
|
|
@@ -114,7 +114,7 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[poller.ts:28](https://github.com/daysnap/utils/blob/
|
|
117
|
+
[poller.ts:28](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L28)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -134,7 +134,7 @@ ___
|
|
|
134
134
|
|
|
135
135
|
#### Defined in
|
|
136
136
|
|
|
137
|
-
[poller.ts:46](https://github.com/daysnap/utils/blob/
|
|
137
|
+
[poller.ts:46](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L46)
|
|
138
138
|
|
|
139
139
|
___
|
|
140
140
|
|
|
@@ -148,4 +148,4 @@ ___
|
|
|
148
148
|
|
|
149
149
|
#### Defined in
|
|
150
150
|
|
|
151
|
-
[poller.ts:41](https://github.com/daysnap/utils/blob/
|
|
151
|
+
[poller.ts:41](https://github.com/daysnap/utils/blob/bdaccfb/src/poller.ts#L41)
|
package/docs/classes/Storage.md
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[storage/storage.ts:15](https://github.com/daysnap/utils/blob/
|
|
53
|
+
[storage/storage.ts:15](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L15)
|
|
54
54
|
|
|
55
55
|
## Properties
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[storage/storage.ts:11](https://github.com/daysnap/utils/blob/
|
|
63
|
+
[storage/storage.ts:11](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L11)
|
|
64
64
|
|
|
65
65
|
___
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ ___
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[storage/storage.ts:12](https://github.com/daysnap/utils/blob/
|
|
73
|
+
[storage/storage.ts:12](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L12)
|
|
74
74
|
|
|
75
75
|
___
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ ___
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[storage/storage.ts:13](https://github.com/daysnap/utils/blob/
|
|
83
|
+
[storage/storage.ts:13](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L13)
|
|
84
84
|
|
|
85
85
|
## Methods
|
|
86
86
|
|
|
@@ -96,7 +96,7 @@ ___
|
|
|
96
96
|
|
|
97
97
|
#### Defined in
|
|
98
98
|
|
|
99
|
-
[storage/storage.ts:32](https://github.com/daysnap/utils/blob/
|
|
99
|
+
[storage/storage.ts:32](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L32)
|
|
100
100
|
|
|
101
101
|
▸ **getItem**(`defaultVal`): `T`
|
|
102
102
|
|
|
@@ -112,7 +112,7 @@ ___
|
|
|
112
112
|
|
|
113
113
|
#### Defined in
|
|
114
114
|
|
|
115
|
-
[storage/storage.ts:33](https://github.com/daysnap/utils/blob/
|
|
115
|
+
[storage/storage.ts:33](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L33)
|
|
116
116
|
|
|
117
117
|
___
|
|
118
118
|
|
|
@@ -128,7 +128,7 @@ ___
|
|
|
128
128
|
|
|
129
129
|
#### Defined in
|
|
130
130
|
|
|
131
|
-
[storage/storage.ts:69](https://github.com/daysnap/utils/blob/
|
|
131
|
+
[storage/storage.ts:69](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L69)
|
|
132
132
|
|
|
133
133
|
▸ **getItemOnce**(`defaultVal`): `T`
|
|
134
134
|
|
|
@@ -144,7 +144,7 @@ ___
|
|
|
144
144
|
|
|
145
145
|
#### Defined in
|
|
146
146
|
|
|
147
|
-
[storage/storage.ts:70](https://github.com/daysnap/utils/blob/
|
|
147
|
+
[storage/storage.ts:70](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L70)
|
|
148
148
|
|
|
149
149
|
___
|
|
150
150
|
|
|
@@ -160,7 +160,7 @@ ___
|
|
|
160
160
|
|
|
161
161
|
#### Defined in
|
|
162
162
|
|
|
163
|
-
[storage/storage.ts:85](https://github.com/daysnap/utils/blob/
|
|
163
|
+
[storage/storage.ts:85](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L85)
|
|
164
164
|
|
|
165
165
|
▸ **getItemWithCache**(`defaultVal`): `T`
|
|
166
166
|
|
|
@@ -176,7 +176,7 @@ ___
|
|
|
176
176
|
|
|
177
177
|
#### Defined in
|
|
178
178
|
|
|
179
|
-
[storage/storage.ts:86](https://github.com/daysnap/utils/blob/
|
|
179
|
+
[storage/storage.ts:86](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L86)
|
|
180
180
|
|
|
181
181
|
___
|
|
182
182
|
|
|
@@ -192,7 +192,7 @@ ___
|
|
|
192
192
|
|
|
193
193
|
#### Defined in
|
|
194
194
|
|
|
195
|
-
[storage/storage.ts:45](https://github.com/daysnap/utils/blob/
|
|
195
|
+
[storage/storage.ts:45](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L45)
|
|
196
196
|
|
|
197
197
|
___
|
|
198
198
|
|
|
@@ -214,7 +214,7 @@ ___
|
|
|
214
214
|
|
|
215
215
|
#### Defined in
|
|
216
216
|
|
|
217
|
-
[storage/storage.ts:23](https://github.com/daysnap/utils/blob/
|
|
217
|
+
[storage/storage.ts:23](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L23)
|
|
218
218
|
|
|
219
219
|
___
|
|
220
220
|
|
|
@@ -236,4 +236,4 @@ ___
|
|
|
236
236
|
|
|
237
237
|
#### Defined in
|
|
238
238
|
|
|
239
|
-
[storage/storage.ts:53](https://github.com/daysnap/utils/blob/
|
|
239
|
+
[storage/storage.ts:53](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/storage.ts#L53)
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[storage/factory.ts:6](https://github.com/daysnap/utils/blob/
|
|
38
|
+
[storage/factory.ts:6](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/factory.ts#L6)
|
|
39
39
|
|
|
40
40
|
___
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@ ___
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[storage/factory.ts:7](https://github.com/daysnap/utils/blob/
|
|
52
|
+
[storage/factory.ts:7](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/factory.ts#L7)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -69,7 +69,7 @@ ___
|
|
|
69
69
|
|
|
70
70
|
#### Defined in
|
|
71
71
|
|
|
72
|
-
[storage/factory.ts:5](https://github.com/daysnap/utils/blob/
|
|
72
|
+
[storage/factory.ts:5](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/factory.ts#L5)
|
|
73
73
|
|
|
74
74
|
___
|
|
75
75
|
|
|
@@ -89,4 +89,4 @@ ___
|
|
|
89
89
|
|
|
90
90
|
#### Defined in
|
|
91
91
|
|
|
92
|
-
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/
|
|
92
|
+
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/bdaccfb/src/storage/factory.ts#L8)
|
package/docs/interfaces/Trap.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[trap.ts:12](https://github.com/daysnap/utils/blob/
|
|
34
|
+
[trap.ts:12](https://github.com/daysnap/utils/blob/bdaccfb/src/trap.ts#L12)
|
|
35
35
|
|
|
36
36
|
___
|
|
37
37
|
|
|
@@ -56,7 +56,7 @@ ___
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[trap.ts:10](https://github.com/daysnap/utils/blob/
|
|
59
|
+
[trap.ts:10](https://github.com/daysnap/utils/blob/bdaccfb/src/trap.ts#L10)
|
|
60
60
|
|
|
61
61
|
___
|
|
62
62
|
|
|
@@ -80,7 +80,7 @@ ___
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[trap.ts:11](https://github.com/daysnap/utils/blob/
|
|
83
|
+
[trap.ts:11](https://github.com/daysnap/utils/blob/bdaccfb/src/trap.ts#L11)
|
|
84
84
|
|
|
85
85
|
___
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ ___
|
|
|
90
90
|
|
|
91
91
|
#### Defined in
|
|
92
92
|
|
|
93
|
-
[trap.ts:8](https://github.com/daysnap/utils/blob/
|
|
93
|
+
[trap.ts:8](https://github.com/daysnap/utils/blob/bdaccfb/src/trap.ts#L8)
|
|
94
94
|
|
|
95
95
|
___
|
|
96
96
|
|
|
@@ -115,4 +115,4 @@ ___
|
|
|
115
115
|
|
|
116
116
|
#### Defined in
|
|
117
117
|
|
|
118
|
-
[trap.ts:9](https://github.com/daysnap/utils/blob/
|
|
118
|
+
[trap.ts:9](https://github.com/daysnap/utils/blob/bdaccfb/src/trap.ts#L9)
|