@nymphjs/client-node 1.0.0-beta.9 → 1.0.0-beta.91
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/CHANGELOG.md +334 -0
- package/README.md +2 -31
- package/dist/index.d.ts +2 -8
- package/dist/index.js +2 -42
- package/dist/index.js.map +1 -1
- package/jest.config.js +11 -2
- package/package.json +13 -18
- package/src/index.ts +2 -44
- package/tsconfig.json +5 -3
- package/typedoc.json +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,340 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.91](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.90...v1.0.0-beta.91) (2025-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.90](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.89...v1.0.0-beta.90) (2025-02-09)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
13
|
+
|
|
14
|
+
# [1.0.0-beta.89](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.88...v1.0.0-beta.89) (2025-02-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
17
|
+
|
|
18
|
+
# [1.0.0-beta.88](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.87...v1.0.0-beta.88) (2025-01-30)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
21
|
+
|
|
22
|
+
# [1.0.0-beta.87](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.86...v1.0.0-beta.87) (2025-01-20)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
- deprecate node client and allow multiple client instances to each log in own users ([17b42f4](https://github.com/sciactive/nymphjs/commit/17b42f449f2355a3ce896b8e86a47edd660e9277))
|
|
27
|
+
|
|
28
|
+
# [1.0.0-beta.86](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.85...v1.0.0-beta.86) (2024-12-28)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
31
|
+
|
|
32
|
+
# [1.0.0-beta.85](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.84...v1.0.0-beta.85) (2024-12-27)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
35
|
+
|
|
36
|
+
# [1.0.0-beta.84](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.83...v1.0.0-beta.84) (2024-12-21)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
39
|
+
|
|
40
|
+
# [1.0.0-beta.83](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.82...v1.0.0-beta.83) (2024-12-20)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
43
|
+
|
|
44
|
+
# [1.0.0-beta.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
|
|
49
|
+
|
|
50
|
+
# [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
53
|
+
|
|
54
|
+
# [1.0.0-beta.80](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.79...v1.0.0-beta.80) (2024-09-28)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
57
|
+
|
|
58
|
+
# [1.0.0-beta.79](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.78...v1.0.0-beta.79) (2024-09-28)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
61
|
+
|
|
62
|
+
# [1.0.0-beta.78](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.77...v1.0.0-beta.78) (2024-09-27)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
65
|
+
|
|
66
|
+
# [1.0.0-beta.77](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.76...v1.0.0-beta.77) (2024-09-26)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
69
|
+
|
|
70
|
+
# [1.0.0-beta.76](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.75...v1.0.0-beta.76) (2024-09-25)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
73
|
+
|
|
74
|
+
# [1.0.0-beta.75](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.74...v1.0.0-beta.75) (2024-09-24)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
77
|
+
|
|
78
|
+
# [1.0.0-beta.74](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.73...v1.0.0-beta.74) (2024-09-21)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
81
|
+
|
|
82
|
+
# [1.0.0-beta.73](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.72...v1.0.0-beta.73) (2024-09-20)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
85
|
+
|
|
86
|
+
# [1.0.0-beta.72](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.71...v1.0.0-beta.72) (2024-09-20)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
89
|
+
|
|
90
|
+
# [1.0.0-beta.71](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.70...v1.0.0-beta.71) (2024-09-20)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
93
|
+
|
|
94
|
+
# [1.0.0-beta.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
97
|
+
|
|
98
|
+
# [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
101
|
+
|
|
102
|
+
# [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
105
|
+
|
|
106
|
+
# [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
109
|
+
|
|
110
|
+
# [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
113
|
+
|
|
114
|
+
# [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
117
|
+
|
|
118
|
+
# [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
121
|
+
|
|
122
|
+
# [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
125
|
+
|
|
126
|
+
# [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
129
|
+
|
|
130
|
+
# [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
133
|
+
|
|
134
|
+
# [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
137
|
+
|
|
138
|
+
# [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
141
|
+
|
|
142
|
+
# [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
145
|
+
|
|
146
|
+
# [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
149
|
+
|
|
150
|
+
# [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
|
|
151
|
+
|
|
152
|
+
### Features
|
|
153
|
+
|
|
154
|
+
- allow connections where tokens are not renewed ([39071a5](https://github.com/sciactive/nymphjs/commit/39071a545644075190bd8213be25e0a0c46d2b5d))
|
|
155
|
+
|
|
156
|
+
# [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
159
|
+
|
|
160
|
+
# [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
163
|
+
|
|
164
|
+
# [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
167
|
+
|
|
168
|
+
# [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
171
|
+
|
|
172
|
+
# [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
175
|
+
|
|
176
|
+
# [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
179
|
+
|
|
180
|
+
# [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
183
|
+
|
|
184
|
+
# [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
|
|
185
|
+
|
|
186
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
187
|
+
|
|
188
|
+
# [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
191
|
+
|
|
192
|
+
# [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
|
|
193
|
+
|
|
194
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
195
|
+
|
|
196
|
+
# [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
|
|
197
|
+
|
|
198
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
199
|
+
|
|
200
|
+
# [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
|
|
201
|
+
|
|
202
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
203
|
+
|
|
204
|
+
# [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
|
|
205
|
+
|
|
206
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
207
|
+
|
|
208
|
+
# [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
|
|
209
|
+
|
|
210
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
211
|
+
|
|
212
|
+
# [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
|
|
213
|
+
|
|
214
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
215
|
+
|
|
216
|
+
# [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
|
|
217
|
+
|
|
218
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
219
|
+
|
|
220
|
+
# [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
223
|
+
|
|
224
|
+
# [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
|
|
225
|
+
|
|
226
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
227
|
+
|
|
228
|
+
# [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
|
|
229
|
+
|
|
230
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
231
|
+
|
|
232
|
+
# [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
|
|
233
|
+
|
|
234
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
235
|
+
|
|
236
|
+
# [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
|
|
237
|
+
|
|
238
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
239
|
+
|
|
240
|
+
# [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
243
|
+
|
|
244
|
+
# [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
247
|
+
|
|
248
|
+
# [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
251
|
+
|
|
252
|
+
# [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
255
|
+
|
|
256
|
+
# [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
259
|
+
|
|
260
|
+
# [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
|
|
261
|
+
|
|
262
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
263
|
+
|
|
264
|
+
# [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
|
|
265
|
+
|
|
266
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
267
|
+
|
|
268
|
+
# [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
|
|
269
|
+
|
|
270
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
271
|
+
|
|
272
|
+
# [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
275
|
+
|
|
276
|
+
# [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
|
|
277
|
+
|
|
278
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
279
|
+
|
|
280
|
+
# [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
283
|
+
|
|
284
|
+
# [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
287
|
+
|
|
288
|
+
# [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
291
|
+
|
|
292
|
+
# [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
295
|
+
|
|
296
|
+
# [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
299
|
+
|
|
300
|
+
# [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
|
|
301
|
+
|
|
302
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
303
|
+
|
|
304
|
+
# [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
307
|
+
|
|
308
|
+
# [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
311
|
+
|
|
312
|
+
# [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
315
|
+
|
|
316
|
+
# [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
|
|
317
|
+
|
|
318
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
319
|
+
|
|
320
|
+
# [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
323
|
+
|
|
324
|
+
# [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
327
|
+
|
|
328
|
+
# [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
331
|
+
|
|
332
|
+
# [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
|
|
333
|
+
|
|
334
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
335
|
+
|
|
336
|
+
# [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @nymphjs/client-node
|
|
339
|
+
|
|
6
340
|
# [1.0.0-beta.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-01-09)
|
|
7
341
|
|
|
8
342
|
**Note:** Version bump only for package @nymphjs/client-node
|
package/README.md
CHANGED
|
@@ -2,40 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Powerful object data storage and querying.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npm install --save @nymphjs/client-node
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
This package is the Nymph client for Node.js. You can find CJS in `dist`, or TS source in `src`. There is also a **[browser client](https://github.com/sciactive/nymphjs/packages/client)**.
|
|
14
|
-
|
|
15
|
-
This package provides fetch and WebSocket ponyfills to Nymph and handles Tilmeld auth tokens.
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
To use, require it instead of `@nymphjs/client`:
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
const { Nymph, PubSub } = require('@nymphjs/client-node');
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Then set up Nymph and PubSub like normal:
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
const nymphOptions = {
|
|
29
|
-
restUrl: 'https://yournymphrestserver/path/to/your/endpoint',
|
|
30
|
-
pubsubUrl: 'wss://yournymphpubsubserver',
|
|
31
|
-
};
|
|
32
|
-
const nymph = new Nymph(nymphOptions);
|
|
33
|
-
const pubsub = new PubSub(nymphOptions, nymph);
|
|
34
|
-
```
|
|
5
|
+
This package is no longer needed, because Node.js since version 22 provides both `fetch` and `WebSocket`. Instead, use the [regular Nymph.js client package](https://www.npmjs.com/package/@nymphjs/client).
|
|
35
6
|
|
|
36
7
|
# License
|
|
37
8
|
|
|
38
|
-
Copyright 2021 SciActive Inc
|
|
9
|
+
Copyright 2021-2025 SciActive Inc
|
|
39
10
|
|
|
40
11
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
12
|
you may not use this file except in compliance with the License.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import { Nymph, PubSub
|
|
2
|
-
|
|
3
|
-
constructor(nymphOptions: NymphOptions);
|
|
4
|
-
}
|
|
5
|
-
declare class NodePubSub extends PubSub {
|
|
6
|
-
constructor(nymphOptions: NymphOptions, nymph: Nymph);
|
|
7
|
-
}
|
|
8
|
-
export { NodeNymph as Nymph, NodePubSub as PubSub };
|
|
1
|
+
import { Nymph, PubSub } from '@nymphjs/client';
|
|
2
|
+
export { Nymph, PubSub };
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PubSub = exports.Nymph = void 0;
|
|
7
|
-
const websocket_1 = require("websocket");
|
|
8
|
-
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
|
-
const client_1 = require("@nymphjs/client");
|
|
10
|
-
class NodeNymph extends client_1.Nymph {
|
|
11
|
-
constructor(nymphOptions) {
|
|
12
|
-
super({
|
|
13
|
-
fetch: node_fetch_1.default,
|
|
14
|
-
...nymphOptions,
|
|
15
|
-
});
|
|
16
|
-
let authToken = null;
|
|
17
|
-
this.on('request', (_url, options) => {
|
|
18
|
-
if (authToken) {
|
|
19
|
-
options.headers['X-TILMELDAUTH'] =
|
|
20
|
-
authToken;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
this.on('response', (response) => {
|
|
24
|
-
if (response.headers.has('X-TILMELDAUTH')) {
|
|
25
|
-
authToken = response.headers.get('X-TILMELDAUTH');
|
|
26
|
-
if (authToken === '') {
|
|
27
|
-
authToken = null;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Nymph = NodeNymph;
|
|
34
|
-
class NodePubSub extends client_1.PubSub {
|
|
35
|
-
constructor(nymphOptions, nymph) {
|
|
36
|
-
super({
|
|
37
|
-
WebSocket: websocket_1.w3cwebsocket,
|
|
38
|
-
...nymphOptions,
|
|
39
|
-
}, nymph);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.PubSub = NodePubSub;
|
|
1
|
+
import { Nymph, PubSub } from '@nymphjs/client';
|
|
2
|
+
export { Nymph, PubSub };
|
|
43
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC"}
|
package/jest.config.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { createDefaultEsmPreset } from 'ts-jest';
|
|
2
|
+
|
|
3
|
+
const presetConfig = createDefaultEsmPreset();
|
|
4
|
+
|
|
1
5
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
-
|
|
3
|
-
|
|
6
|
+
const jestConfig = {
|
|
7
|
+
...presetConfig,
|
|
4
8
|
testEnvironment: 'node',
|
|
5
9
|
rootDir: 'src/',
|
|
10
|
+
moduleNameMapper: {
|
|
11
|
+
'^(\\.|\\.\\.)\\/(.+)\\.js': '$1/$2',
|
|
12
|
+
},
|
|
6
13
|
};
|
|
14
|
+
|
|
15
|
+
export default jestConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nymphjs/client-node",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0-beta.91",
|
|
4
|
+
"description": "Nymph.js - Node Client",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"keywords": [
|
|
@@ -13,9 +14,9 @@
|
|
|
13
14
|
"clean": "test -d dist && rm -r dist || true",
|
|
14
15
|
"build": "tsc",
|
|
15
16
|
"watch": "tsc --watch",
|
|
16
|
-
"
|
|
17
|
-
"test": "jest",
|
|
18
|
-
"test:watch": "jest --watch"
|
|
17
|
+
"prepublish": "npm run clean && npm run build",
|
|
18
|
+
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest",
|
|
19
|
+
"test:watch": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --watch"
|
|
19
20
|
},
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public"
|
|
@@ -29,19 +30,13 @@
|
|
|
29
30
|
"url": "https://github.com/sciactive/nymphjs/issues"
|
|
30
31
|
},
|
|
31
32
|
"license": "Apache-2.0",
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@nymphjs/client": "^1.0.0-beta.9",
|
|
34
|
-
"node-fetch": "^2.6.7",
|
|
35
|
-
"websocket": "^1.0.34"
|
|
36
|
-
},
|
|
37
33
|
"devDependencies": {
|
|
38
|
-
"@tsconfig/recommended": "^1.0.
|
|
39
|
-
"@types/jest": "^29.
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"typescript": "^4.9.4"
|
|
34
|
+
"@tsconfig/recommended": "^1.0.8",
|
|
35
|
+
"@types/jest": "^29.5.14",
|
|
36
|
+
"jest": "^29.7.0",
|
|
37
|
+
"ts-jest": "^29.2.5",
|
|
38
|
+
"ts-node": "^10.9.2",
|
|
39
|
+
"typescript": "^5.7.2"
|
|
45
40
|
},
|
|
46
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "45074e1da0e7879625382a3d35134cde45793f24"
|
|
47
42
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { w3cwebsocket } from 'websocket';
|
|
3
|
-
import fetch from 'node-fetch';
|
|
4
|
-
import { Nymph, PubSub, NymphOptions } from '@nymphjs/client';
|
|
1
|
+
import { Nymph, PubSub } from '@nymphjs/client';
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
class NodeNymph extends Nymph {
|
|
8
|
-
constructor(nymphOptions: NymphOptions) {
|
|
9
|
-
super({
|
|
10
|
-
fetch: fetch as unknown as WindowOrWorkerGlobalScope['fetch'],
|
|
11
|
-
...nymphOptions,
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
// Save the Tilmeld auth token and send it in the header.
|
|
15
|
-
let authToken: string | null = null;
|
|
16
|
-
this.on('request', (_url: string, options: RequestInit) => {
|
|
17
|
-
if (authToken) {
|
|
18
|
-
(options.headers as Record<string, string>)['X-TILMELDAUTH'] =
|
|
19
|
-
authToken;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
this.on('response', (response: Response) => {
|
|
23
|
-
if (response.headers.has('X-TILMELDAUTH')) {
|
|
24
|
-
authToken = response.headers.get('X-TILMELDAUTH');
|
|
25
|
-
if (authToken === '') {
|
|
26
|
-
authToken = null;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
class NodePubSub extends PubSub {
|
|
34
|
-
constructor(nymphOptions: NymphOptions, nymph: Nymph) {
|
|
35
|
-
super(
|
|
36
|
-
{
|
|
37
|
-
WebSocket: w3cwebsocket as unknown as typeof WebSocket,
|
|
38
|
-
...nymphOptions,
|
|
39
|
-
},
|
|
40
|
-
nymph
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { NodeNymph as Nymph, NodePubSub as PubSub };
|
|
3
|
+
export { Nymph, PubSub };
|
package/tsconfig.json
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
"extends": "@tsconfig/recommended/tsconfig.json",
|
|
3
3
|
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"module": "ES2022",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"lib": ["DOM", "ES2022"],
|
|
8
|
+
"target": "ES2022",
|
|
7
9
|
"noImplicitAny": true,
|
|
8
|
-
"removeComments":
|
|
10
|
+
"removeComments": false,
|
|
9
11
|
"sourceMap": true,
|
|
10
12
|
"outDir": "dist",
|
|
11
13
|
"resolveJsonModule": true,
|
package/typedoc.json
ADDED