@blackglory/geyser-js 0.2.7 → 0.5.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.
Files changed (39) hide show
  1. package/README.md +9 -31
  2. package/dist/es2015/index.min.mjs +1 -15
  3. package/dist/es2015/index.min.mjs.map +1 -1
  4. package/dist/es2015/index.mjs +863 -6699
  5. package/dist/es2015/index.mjs.map +1 -1
  6. package/dist/es2015/index.umd.js +863 -6699
  7. package/dist/es2015/index.umd.js.map +1 -1
  8. package/dist/es2015/index.umd.min.js +2 -16
  9. package/dist/es2015/index.umd.min.js.map +1 -1
  10. package/dist/es2018/index.min.mjs +1 -15
  11. package/dist/es2018/index.min.mjs.map +1 -1
  12. package/dist/es2018/index.mjs +861 -6699
  13. package/dist/es2018/index.mjs.map +1 -1
  14. package/dist/es2018/index.umd.js +861 -6699
  15. package/dist/es2018/index.umd.js.map +1 -1
  16. package/dist/es2018/index.umd.min.js +2 -16
  17. package/dist/es2018/index.umd.min.js.map +1 -1
  18. package/lib/es2015/cycle-client.d.ts +4 -0
  19. package/lib/es2015/cycle-client.js +27 -0
  20. package/lib/es2015/cycle-client.js.map +1 -0
  21. package/lib/es2015/geyser-client.js +3 -3
  22. package/lib/es2015/geyser-client.js.map +1 -1
  23. package/lib/es2015/geyser-manager.d.ts +2 -0
  24. package/lib/es2015/geyser-manager.js +2 -0
  25. package/lib/es2015/geyser-manager.js.map +1 -1
  26. package/lib/es2015/utils.js +5 -4
  27. package/lib/es2015/utils.js.map +1 -1
  28. package/lib/es2018/cycle-client.d.ts +4 -0
  29. package/lib/es2018/cycle-client.js +16 -0
  30. package/lib/es2018/cycle-client.js.map +1 -0
  31. package/lib/es2018/geyser-client.js +3 -3
  32. package/lib/es2018/geyser-client.js.map +1 -1
  33. package/lib/es2018/geyser-manager.d.ts +2 -0
  34. package/lib/es2018/geyser-manager.js +2 -0
  35. package/lib/es2018/geyser-manager.js.map +1 -1
  36. package/lib/es2018/utils.js +5 -4
  37. package/lib/es2018/utils.js.map +1 -1
  38. package/package.json +26 -26
  39. package/CHANGELOG.md +0 -57
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # geyser-js
2
-
3
2
  ## Install
4
-
5
3
  ```sh
6
4
  npm install --save @blackglory/geyser-js
7
5
  # or
@@ -9,9 +7,7 @@ yarn add @blackglory/geyser-js
9
7
  ```
10
8
 
11
9
  ## API
12
-
13
10
  ### GeyserClient
14
-
15
11
  ```ts
16
12
  new GeyserClient({
17
13
  server: string
@@ -31,7 +27,6 @@ interface IGeyserClientRequestOptions {
31
27
  ```
32
28
 
33
29
  #### acquire
34
-
35
30
  ```ts
36
31
  GeyserClient#acquire(
37
32
  namespace: string
@@ -40,7 +35,6 @@ GeyserClient#acquire(
40
35
  ```
41
36
 
42
37
  ### GeyserManager
43
-
44
38
  ```ts
45
39
  new GeyserManager({
46
40
  server: string
@@ -58,10 +52,17 @@ interface IGeyserManagerRequestOptions {
58
52
  }
59
53
  ```
60
54
 
61
- #### Configuration
55
+ #### Cycle
56
+ ##### resetCycle
57
+ ```ts
58
+ GeyserManager#Cycle.resetCycle(
59
+ namespace: string
60
+ , options?: IGeyserManagerRequestOptions
61
+ ): Promise<void>
62
+ ```
62
63
 
64
+ #### Configuration
63
65
  ##### getNamespaces
64
-
65
66
  ```ts
66
67
  GeyserManager#Configuration.getNamespaces(
67
68
  options?: IGeyserManagerRequestOptions
@@ -69,7 +70,6 @@ GeyserManager#Configuration.getNamespaces(
69
70
  ```
70
71
 
71
72
  ##### get
72
-
73
73
  ```ts
74
74
  GeyserManager#Configuration.get(
75
75
  namespace: string
@@ -81,7 +81,6 @@ GeyserManager#Configuration.get(
81
81
  ```
82
82
 
83
83
  ##### setDuration
84
-
85
84
  ```ts
86
85
  GeyserManager#Configuration.setDuration(
87
86
  namespace: string
@@ -91,7 +90,6 @@ GeyserManager#Configuration.setDuration(
91
90
  ```
92
91
 
93
92
  ##### removeDuration
94
-
95
93
  ```ts
96
94
  GeyserManager#Configuration.removeDuration(
97
95
  namespace: string
@@ -100,7 +98,6 @@ GeyserManager#Configuration.removeDuration(
100
98
  ```
101
99
 
102
100
  ##### setLimit
103
-
104
101
  ```ts
105
102
  GeyserManager#Configuration.setLimit(
106
103
  namespace: string
@@ -110,7 +107,6 @@ GeyserManager#Configuration.setLimit(
110
107
  ```
111
108
 
112
109
  ##### removeLimit
113
-
114
110
  ```ts
115
111
  GeyserManager#Configuration.removeLimit(
116
112
  namespace: string
@@ -119,9 +115,7 @@ GeyserManager#Configuration.removeLimit(
119
115
  ```
120
116
 
121
117
  #### Blacklist
122
-
123
118
  ##### getNamespaces
124
-
125
119
  ```ts
126
120
  GeyserManager#Blacklist.getNamespaces(
127
121
  options?: IGeyserManagerRequestOptions
@@ -129,7 +123,6 @@ GeyserManager#Blacklist.getNamespaces(
129
123
  ```
130
124
 
131
125
  ##### add
132
-
133
126
  ```ts
134
127
  GeyserManager#Blacklist.add(
135
128
  namespace: string
@@ -138,7 +131,6 @@ GeyserManager#Blacklist.add(
138
131
  ```
139
132
 
140
133
  ##### remove
141
-
142
134
  ```ts
143
135
  GeyserManager#Blacklist.remove(
144
136
  namespace: string
@@ -147,9 +139,7 @@ GeyserManager#Blacklist.remove(
147
139
  ```
148
140
 
149
141
  #### Whitelist
150
-
151
142
  ##### getNamespaces
152
-
153
143
  ```ts
154
144
  GeyserManager#Whitelist.getNamespaces(
155
145
  options?: IGeyserManagerRequestOptions
@@ -157,7 +147,6 @@ GeyserManager#Whitelist.getNamespaces(
157
147
  ```
158
148
 
159
149
  ##### add
160
-
161
150
  ```ts
162
151
  GeyserManager#Whitelist.add(
163
152
  namespace: string
@@ -166,7 +155,6 @@ GeyserManager#Whitelist.add(
166
155
  ```
167
156
 
168
157
  ##### remove
169
-
170
158
  ```ts
171
159
  GeyserManager#Whitelist.remove(
172
160
  namespace: string
@@ -175,9 +163,7 @@ GeyserManager#Whitelist.remove(
175
163
  ```
176
164
 
177
165
  #### TokenPolicy
178
-
179
166
  ##### getNamespaces
180
-
181
167
  ```ts
182
168
  GeyserManager#TokenPolicy.getNamespaces(
183
169
  options?: IGeyserManagerRequestOptions
@@ -185,7 +171,6 @@ GeyserManager#TokenPolicy.getNamespaces(
185
171
  ```
186
172
 
187
173
  ##### get
188
-
189
174
  ```ts
190
175
  GeyserManager#TokenPolicy.get(
191
176
  namespace: string
@@ -196,7 +181,6 @@ GeyserManager#TokenPolicy.get(
196
181
  ```
197
182
 
198
183
  ##### setAcquireTokenRequired
199
-
200
184
  ```ts
201
185
  GeyserManager#TokenPolicy.setAcquireTokenRequired(
202
186
  namespace: string
@@ -206,7 +190,6 @@ GeyserManager#TokenPolicy.setAcquireTokenRequired(
206
190
  ```
207
191
 
208
192
  ##### removeAcquireTokenRequired
209
-
210
193
  ```ts
211
194
  GeyserManager#TokenPolicy.removeAcquireTokenRequired(
212
195
  namespace: string
@@ -215,9 +198,7 @@ GeyserManager#TokenPolicy.removeAcquireTokenRequired(
215
198
  ```
216
199
 
217
200
  #### Token
218
-
219
201
  ##### getNamespaces
220
-
221
202
  ```ts
222
203
  GeyserManager#Token.getNamespaces(
223
204
  options?: IGeyserManagerRequestOptions
@@ -225,7 +206,6 @@ GeyserManager#Token.getNamespaces(
225
206
  ```
226
207
 
227
208
  ##### getTokens
228
-
229
209
  ```ts
230
210
  GeyserManager#Token.getTokens(
231
211
  namespace: string
@@ -236,7 +216,6 @@ GeyserManager#Token.getTokens(
236
216
  ```
237
217
 
238
218
  ##### addAcquireToken
239
-
240
219
  ```ts
241
220
  GeyserManager#Token.addAcquireToken(
242
221
  namespace: string
@@ -246,7 +225,6 @@ GeyserManager#Token.addAcquireToken(
246
225
  ```
247
226
 
248
227
  ##### removeAcquireToken
249
-
250
228
  ```ts
251
229
  GeyserManager#Token.removeAcquireToken(
252
230
  namespace: string