@itwin/express-server 3.0.0-dev.100
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 +623 -0
- package/LICENSE.md +9 -0
- package/README.md +11 -0
- package/lib/cjs/ExpressServer.d.ts +36 -0
- package/lib/cjs/ExpressServer.d.ts.map +1 -0
- package/lib/cjs/ExpressServer.js +65 -0
- package/lib/cjs/ExpressServer.js.map +1 -0
- package/package.json +68 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
# Change Log - @itwin/express-server
|
|
2
|
+
|
|
3
|
+
This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 2.19.13
|
|
6
|
+
Tue, 21 Sep 2021 21:06:40 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 2.19.12
|
|
11
|
+
Wed, 15 Sep 2021 18:06:46 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 2.19.11
|
|
16
|
+
Thu, 09 Sep 2021 21:04:57 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
19
|
+
|
|
20
|
+
## 2.19.10
|
|
21
|
+
Wed, 08 Sep 2021 14:36:01 GMT
|
|
22
|
+
|
|
23
|
+
_Version update only_
|
|
24
|
+
|
|
25
|
+
## 2.19.9
|
|
26
|
+
Wed, 25 Aug 2021 15:36:01 GMT
|
|
27
|
+
|
|
28
|
+
_Version update only_
|
|
29
|
+
|
|
30
|
+
## 2.19.8
|
|
31
|
+
Mon, 23 Aug 2021 13:23:13 GMT
|
|
32
|
+
|
|
33
|
+
_Version update only_
|
|
34
|
+
|
|
35
|
+
## 2.19.7
|
|
36
|
+
Fri, 20 Aug 2021 17:47:22 GMT
|
|
37
|
+
|
|
38
|
+
_Version update only_
|
|
39
|
+
|
|
40
|
+
## 2.19.6
|
|
41
|
+
Tue, 17 Aug 2021 20:34:28 GMT
|
|
42
|
+
|
|
43
|
+
_Version update only_
|
|
44
|
+
|
|
45
|
+
## 2.19.5
|
|
46
|
+
Fri, 13 Aug 2021 21:48:08 GMT
|
|
47
|
+
|
|
48
|
+
_Version update only_
|
|
49
|
+
|
|
50
|
+
## 2.19.4
|
|
51
|
+
Thu, 12 Aug 2021 13:09:26 GMT
|
|
52
|
+
|
|
53
|
+
_Version update only_
|
|
54
|
+
|
|
55
|
+
## 2.19.3
|
|
56
|
+
Wed, 04 Aug 2021 20:29:34 GMT
|
|
57
|
+
|
|
58
|
+
_Version update only_
|
|
59
|
+
|
|
60
|
+
## 2.19.2
|
|
61
|
+
Tue, 03 Aug 2021 18:26:23 GMT
|
|
62
|
+
|
|
63
|
+
_Version update only_
|
|
64
|
+
|
|
65
|
+
## 2.19.1
|
|
66
|
+
Thu, 29 Jul 2021 20:01:11 GMT
|
|
67
|
+
|
|
68
|
+
_Version update only_
|
|
69
|
+
|
|
70
|
+
## 2.19.0
|
|
71
|
+
Mon, 26 Jul 2021 12:21:25 GMT
|
|
72
|
+
|
|
73
|
+
_Version update only_
|
|
74
|
+
|
|
75
|
+
## 2.18.4
|
|
76
|
+
Tue, 10 Aug 2021 19:35:13 GMT
|
|
77
|
+
|
|
78
|
+
_Version update only_
|
|
79
|
+
|
|
80
|
+
## 2.18.3
|
|
81
|
+
Wed, 28 Jul 2021 17:16:30 GMT
|
|
82
|
+
|
|
83
|
+
_Version update only_
|
|
84
|
+
|
|
85
|
+
## 2.18.2
|
|
86
|
+
Mon, 26 Jul 2021 16:18:31 GMT
|
|
87
|
+
|
|
88
|
+
_Version update only_
|
|
89
|
+
|
|
90
|
+
## 2.18.1
|
|
91
|
+
Fri, 16 Jul 2021 17:45:09 GMT
|
|
92
|
+
|
|
93
|
+
_Version update only_
|
|
94
|
+
|
|
95
|
+
## 2.18.0
|
|
96
|
+
Fri, 09 Jul 2021 18:11:24 GMT
|
|
97
|
+
|
|
98
|
+
_Version update only_
|
|
99
|
+
|
|
100
|
+
## 2.17.3
|
|
101
|
+
Mon, 26 Jul 2021 16:08:36 GMT
|
|
102
|
+
|
|
103
|
+
_Version update only_
|
|
104
|
+
|
|
105
|
+
## 2.17.2
|
|
106
|
+
Thu, 08 Jul 2021 15:23:00 GMT
|
|
107
|
+
|
|
108
|
+
_Version update only_
|
|
109
|
+
|
|
110
|
+
## 2.17.1
|
|
111
|
+
Fri, 02 Jul 2021 15:38:30 GMT
|
|
112
|
+
|
|
113
|
+
_Version update only_
|
|
114
|
+
|
|
115
|
+
## 2.17.0
|
|
116
|
+
Mon, 28 Jun 2021 16:20:11 GMT
|
|
117
|
+
|
|
118
|
+
_Version update only_
|
|
119
|
+
|
|
120
|
+
## 2.16.10
|
|
121
|
+
Thu, 22 Jul 2021 20:23:45 GMT
|
|
122
|
+
|
|
123
|
+
_Version update only_
|
|
124
|
+
|
|
125
|
+
## 2.16.9
|
|
126
|
+
Tue, 06 Jul 2021 22:08:34 GMT
|
|
127
|
+
|
|
128
|
+
_Version update only_
|
|
129
|
+
|
|
130
|
+
## 2.16.8
|
|
131
|
+
Fri, 02 Jul 2021 17:40:46 GMT
|
|
132
|
+
|
|
133
|
+
_Version update only_
|
|
134
|
+
|
|
135
|
+
## 2.16.7
|
|
136
|
+
Mon, 28 Jun 2021 18:13:04 GMT
|
|
137
|
+
|
|
138
|
+
_Version update only_
|
|
139
|
+
|
|
140
|
+
## 2.16.6
|
|
141
|
+
Mon, 28 Jun 2021 13:12:55 GMT
|
|
142
|
+
|
|
143
|
+
_Version update only_
|
|
144
|
+
|
|
145
|
+
## 2.16.5
|
|
146
|
+
Fri, 25 Jun 2021 16:03:01 GMT
|
|
147
|
+
|
|
148
|
+
_Version update only_
|
|
149
|
+
|
|
150
|
+
## 2.16.4
|
|
151
|
+
Wed, 23 Jun 2021 17:09:07 GMT
|
|
152
|
+
|
|
153
|
+
_Version update only_
|
|
154
|
+
|
|
155
|
+
## 2.16.3
|
|
156
|
+
Wed, 16 Jun 2021 20:29:32 GMT
|
|
157
|
+
|
|
158
|
+
_Version update only_
|
|
159
|
+
|
|
160
|
+
## 2.16.2
|
|
161
|
+
Thu, 03 Jun 2021 18:08:11 GMT
|
|
162
|
+
|
|
163
|
+
_Version update only_
|
|
164
|
+
|
|
165
|
+
## 2.16.1
|
|
166
|
+
Thu, 27 May 2021 20:04:22 GMT
|
|
167
|
+
|
|
168
|
+
_Version update only_
|
|
169
|
+
|
|
170
|
+
## 2.16.0
|
|
171
|
+
Mon, 24 May 2021 15:58:39 GMT
|
|
172
|
+
|
|
173
|
+
_Version update only_
|
|
174
|
+
|
|
175
|
+
## 2.15.6
|
|
176
|
+
Wed, 26 May 2021 15:55:18 GMT
|
|
177
|
+
|
|
178
|
+
_Version update only_
|
|
179
|
+
|
|
180
|
+
## 2.15.5
|
|
181
|
+
Thu, 20 May 2021 15:06:26 GMT
|
|
182
|
+
|
|
183
|
+
_Version update only_
|
|
184
|
+
|
|
185
|
+
## 2.15.4
|
|
186
|
+
Tue, 18 May 2021 21:59:07 GMT
|
|
187
|
+
|
|
188
|
+
_Version update only_
|
|
189
|
+
|
|
190
|
+
## 2.15.3
|
|
191
|
+
Mon, 17 May 2021 13:31:37 GMT
|
|
192
|
+
|
|
193
|
+
_Version update only_
|
|
194
|
+
|
|
195
|
+
## 2.15.2
|
|
196
|
+
Wed, 12 May 2021 18:08:13 GMT
|
|
197
|
+
|
|
198
|
+
_Version update only_
|
|
199
|
+
|
|
200
|
+
## 2.15.1
|
|
201
|
+
Wed, 05 May 2021 13:18:31 GMT
|
|
202
|
+
|
|
203
|
+
_Version update only_
|
|
204
|
+
|
|
205
|
+
## 2.15.0
|
|
206
|
+
Fri, 30 Apr 2021 12:36:58 GMT
|
|
207
|
+
|
|
208
|
+
_Version update only_
|
|
209
|
+
|
|
210
|
+
## 2.14.4
|
|
211
|
+
Thu, 22 Apr 2021 21:07:33 GMT
|
|
212
|
+
|
|
213
|
+
_Version update only_
|
|
214
|
+
|
|
215
|
+
## 2.14.3
|
|
216
|
+
Thu, 15 Apr 2021 15:13:16 GMT
|
|
217
|
+
|
|
218
|
+
_Version update only_
|
|
219
|
+
|
|
220
|
+
## 2.14.2
|
|
221
|
+
Thu, 08 Apr 2021 14:30:09 GMT
|
|
222
|
+
|
|
223
|
+
_Version update only_
|
|
224
|
+
|
|
225
|
+
## 2.14.1
|
|
226
|
+
Mon, 05 Apr 2021 16:28:00 GMT
|
|
227
|
+
|
|
228
|
+
_Version update only_
|
|
229
|
+
|
|
230
|
+
## 2.14.0
|
|
231
|
+
Fri, 02 Apr 2021 13:18:42 GMT
|
|
232
|
+
|
|
233
|
+
_Version update only_
|
|
234
|
+
|
|
235
|
+
## 2.13.0
|
|
236
|
+
Tue, 09 Mar 2021 20:28:13 GMT
|
|
237
|
+
|
|
238
|
+
### Updates
|
|
239
|
+
|
|
240
|
+
- Support Node 14
|
|
241
|
+
- Updated to use TypeScript 4.1
|
|
242
|
+
- begin rename project from iModel.js to iTwin.js
|
|
243
|
+
|
|
244
|
+
## 2.12.3
|
|
245
|
+
Mon, 08 Mar 2021 15:32:00 GMT
|
|
246
|
+
|
|
247
|
+
_Version update only_
|
|
248
|
+
|
|
249
|
+
## 2.12.2
|
|
250
|
+
Wed, 03 Mar 2021 18:48:52 GMT
|
|
251
|
+
|
|
252
|
+
_Version update only_
|
|
253
|
+
|
|
254
|
+
## 2.12.1
|
|
255
|
+
Tue, 23 Feb 2021 20:54:45 GMT
|
|
256
|
+
|
|
257
|
+
_Version update only_
|
|
258
|
+
|
|
259
|
+
## 2.12.0
|
|
260
|
+
Thu, 18 Feb 2021 22:10:12 GMT
|
|
261
|
+
|
|
262
|
+
_Version update only_
|
|
263
|
+
|
|
264
|
+
## 2.11.2
|
|
265
|
+
Thu, 18 Feb 2021 02:50:59 GMT
|
|
266
|
+
|
|
267
|
+
_Version update only_
|
|
268
|
+
|
|
269
|
+
## 2.11.1
|
|
270
|
+
Thu, 04 Feb 2021 17:22:41 GMT
|
|
271
|
+
|
|
272
|
+
_Version update only_
|
|
273
|
+
|
|
274
|
+
## 2.11.0
|
|
275
|
+
Thu, 28 Jan 2021 13:39:27 GMT
|
|
276
|
+
|
|
277
|
+
_Version update only_
|
|
278
|
+
|
|
279
|
+
## 2.10.3
|
|
280
|
+
Fri, 08 Jan 2021 18:34:03 GMT
|
|
281
|
+
|
|
282
|
+
_Version update only_
|
|
283
|
+
|
|
284
|
+
## 2.10.2
|
|
285
|
+
Fri, 08 Jan 2021 14:52:02 GMT
|
|
286
|
+
|
|
287
|
+
_Version update only_
|
|
288
|
+
|
|
289
|
+
## 2.10.1
|
|
290
|
+
Tue, 22 Dec 2020 00:53:38 GMT
|
|
291
|
+
|
|
292
|
+
_Version update only_
|
|
293
|
+
|
|
294
|
+
## 2.10.0
|
|
295
|
+
Fri, 18 Dec 2020 18:24:01 GMT
|
|
296
|
+
|
|
297
|
+
### Updates
|
|
298
|
+
|
|
299
|
+
- Update minimum Node version to 10.17.0
|
|
300
|
+
- Changed the max upload size to 5mb
|
|
301
|
+
|
|
302
|
+
## 2.9.9
|
|
303
|
+
Sun, 13 Dec 2020 19:00:03 GMT
|
|
304
|
+
|
|
305
|
+
_Version update only_
|
|
306
|
+
|
|
307
|
+
## 2.9.8
|
|
308
|
+
Fri, 11 Dec 2020 02:57:36 GMT
|
|
309
|
+
|
|
310
|
+
_Version update only_
|
|
311
|
+
|
|
312
|
+
## 2.9.7
|
|
313
|
+
Wed, 09 Dec 2020 20:58:23 GMT
|
|
314
|
+
|
|
315
|
+
_Version update only_
|
|
316
|
+
|
|
317
|
+
## 2.9.6
|
|
318
|
+
Mon, 07 Dec 2020 18:40:48 GMT
|
|
319
|
+
|
|
320
|
+
_Version update only_
|
|
321
|
+
|
|
322
|
+
## 2.9.5
|
|
323
|
+
Sat, 05 Dec 2020 01:55:56 GMT
|
|
324
|
+
|
|
325
|
+
_Version update only_
|
|
326
|
+
|
|
327
|
+
## 2.9.4
|
|
328
|
+
Wed, 02 Dec 2020 20:55:40 GMT
|
|
329
|
+
|
|
330
|
+
_Version update only_
|
|
331
|
+
|
|
332
|
+
## 2.9.3
|
|
333
|
+
Mon, 23 Nov 2020 20:57:56 GMT
|
|
334
|
+
|
|
335
|
+
_Version update only_
|
|
336
|
+
|
|
337
|
+
## 2.9.2
|
|
338
|
+
Mon, 23 Nov 2020 15:33:50 GMT
|
|
339
|
+
|
|
340
|
+
_Version update only_
|
|
341
|
+
|
|
342
|
+
## 2.9.1
|
|
343
|
+
Thu, 19 Nov 2020 17:03:42 GMT
|
|
344
|
+
|
|
345
|
+
_Version update only_
|
|
346
|
+
|
|
347
|
+
## 2.9.0
|
|
348
|
+
Wed, 18 Nov 2020 16:01:50 GMT
|
|
349
|
+
|
|
350
|
+
_Version update only_
|
|
351
|
+
|
|
352
|
+
## 2.8.1
|
|
353
|
+
Tue, 03 Nov 2020 00:33:56 GMT
|
|
354
|
+
|
|
355
|
+
_Version update only_
|
|
356
|
+
|
|
357
|
+
## 2.8.0
|
|
358
|
+
Fri, 23 Oct 2020 17:04:02 GMT
|
|
359
|
+
|
|
360
|
+
_Version update only_
|
|
361
|
+
|
|
362
|
+
## 2.7.6
|
|
363
|
+
Wed, 11 Nov 2020 16:28:23 GMT
|
|
364
|
+
|
|
365
|
+
_Version update only_
|
|
366
|
+
|
|
367
|
+
## 2.7.5
|
|
368
|
+
Fri, 23 Oct 2020 16:23:50 GMT
|
|
369
|
+
|
|
370
|
+
_Version update only_
|
|
371
|
+
|
|
372
|
+
## 2.7.4
|
|
373
|
+
Mon, 19 Oct 2020 17:57:01 GMT
|
|
374
|
+
|
|
375
|
+
### Updates
|
|
376
|
+
|
|
377
|
+
- Update Access-Control header values
|
|
378
|
+
|
|
379
|
+
## 2.7.3
|
|
380
|
+
Wed, 14 Oct 2020 17:00:58 GMT
|
|
381
|
+
|
|
382
|
+
_Version update only_
|
|
383
|
+
|
|
384
|
+
## 2.7.2
|
|
385
|
+
Tue, 13 Oct 2020 18:20:38 GMT
|
|
386
|
+
|
|
387
|
+
_Version update only_
|
|
388
|
+
|
|
389
|
+
## 2.7.1
|
|
390
|
+
Thu, 08 Oct 2020 13:04:35 GMT
|
|
391
|
+
|
|
392
|
+
_Version update only_
|
|
393
|
+
|
|
394
|
+
## 2.7.0
|
|
395
|
+
Fri, 02 Oct 2020 18:03:32 GMT
|
|
396
|
+
|
|
397
|
+
### Updates
|
|
398
|
+
|
|
399
|
+
- Introduce NoContentError (transmitted via 204)
|
|
400
|
+
|
|
401
|
+
## 2.6.5
|
|
402
|
+
Sat, 26 Sep 2020 16:06:34 GMT
|
|
403
|
+
|
|
404
|
+
_Version update only_
|
|
405
|
+
|
|
406
|
+
## 2.6.4
|
|
407
|
+
Tue, 22 Sep 2020 17:40:07 GMT
|
|
408
|
+
|
|
409
|
+
_Version update only_
|
|
410
|
+
|
|
411
|
+
## 2.6.3
|
|
412
|
+
Mon, 21 Sep 2020 14:47:09 GMT
|
|
413
|
+
|
|
414
|
+
_Version update only_
|
|
415
|
+
|
|
416
|
+
## 2.6.2
|
|
417
|
+
Mon, 21 Sep 2020 13:07:43 GMT
|
|
418
|
+
|
|
419
|
+
_Version update only_
|
|
420
|
+
|
|
421
|
+
## 2.6.1
|
|
422
|
+
Fri, 18 Sep 2020 13:15:08 GMT
|
|
423
|
+
|
|
424
|
+
_Version update only_
|
|
425
|
+
|
|
426
|
+
## 2.6.0
|
|
427
|
+
Thu, 17 Sep 2020 13:16:12 GMT
|
|
428
|
+
|
|
429
|
+
### Updates
|
|
430
|
+
|
|
431
|
+
- Moved ESLint configuration to a plugin
|
|
432
|
+
|
|
433
|
+
## 2.5.5
|
|
434
|
+
Wed, 02 Sep 2020 17:42:23 GMT
|
|
435
|
+
|
|
436
|
+
_Version update only_
|
|
437
|
+
|
|
438
|
+
## 2.5.4
|
|
439
|
+
Fri, 28 Aug 2020 15:34:15 GMT
|
|
440
|
+
|
|
441
|
+
_Version update only_
|
|
442
|
+
|
|
443
|
+
## 2.5.3
|
|
444
|
+
Wed, 26 Aug 2020 11:46:00 GMT
|
|
445
|
+
|
|
446
|
+
_Version update only_
|
|
447
|
+
|
|
448
|
+
## 2.5.2
|
|
449
|
+
Tue, 25 Aug 2020 22:09:08 GMT
|
|
450
|
+
|
|
451
|
+
_Version update only_
|
|
452
|
+
|
|
453
|
+
## 2.5.1
|
|
454
|
+
Mon, 24 Aug 2020 18:13:04 GMT
|
|
455
|
+
|
|
456
|
+
_Version update only_
|
|
457
|
+
|
|
458
|
+
## 2.5.0
|
|
459
|
+
Thu, 20 Aug 2020 20:57:09 GMT
|
|
460
|
+
|
|
461
|
+
### Updates
|
|
462
|
+
|
|
463
|
+
- Switch to ESLint
|
|
464
|
+
|
|
465
|
+
## 2.4.2
|
|
466
|
+
Fri, 14 Aug 2020 16:34:09 GMT
|
|
467
|
+
|
|
468
|
+
_Version update only_
|
|
469
|
+
|
|
470
|
+
## 2.4.1
|
|
471
|
+
Fri, 07 Aug 2020 19:57:43 GMT
|
|
472
|
+
|
|
473
|
+
_Version update only_
|
|
474
|
+
|
|
475
|
+
## 2.4.0
|
|
476
|
+
Tue, 28 Jul 2020 16:26:23 GMT
|
|
477
|
+
|
|
478
|
+
_Version update only_
|
|
479
|
+
|
|
480
|
+
## 2.3.3
|
|
481
|
+
Thu, 23 Jul 2020 12:57:15 GMT
|
|
482
|
+
|
|
483
|
+
_Version update only_
|
|
484
|
+
|
|
485
|
+
## 2.3.2
|
|
486
|
+
Tue, 14 Jul 2020 23:50:36 GMT
|
|
487
|
+
|
|
488
|
+
_Version update only_
|
|
489
|
+
|
|
490
|
+
## 2.3.1
|
|
491
|
+
Mon, 13 Jul 2020 18:50:13 GMT
|
|
492
|
+
|
|
493
|
+
_Version update only_
|
|
494
|
+
|
|
495
|
+
## 2.3.0
|
|
496
|
+
Fri, 10 Jul 2020 17:23:14 GMT
|
|
497
|
+
|
|
498
|
+
### Updates
|
|
499
|
+
|
|
500
|
+
- Support for attaching RPC interfaces after startup.
|
|
501
|
+
|
|
502
|
+
## 2.2.1
|
|
503
|
+
Tue, 07 Jul 2020 14:44:52 GMT
|
|
504
|
+
|
|
505
|
+
_Version update only_
|
|
506
|
+
|
|
507
|
+
## 2.2.0
|
|
508
|
+
Fri, 19 Jun 2020 14:10:03 GMT
|
|
509
|
+
|
|
510
|
+
_Version update only_
|
|
511
|
+
|
|
512
|
+
## 2.1.0
|
|
513
|
+
Thu, 28 May 2020 22:48:59 GMT
|
|
514
|
+
|
|
515
|
+
_Version update only_
|
|
516
|
+
|
|
517
|
+
## 2.0.0
|
|
518
|
+
Wed, 06 May 2020 13:17:49 GMT
|
|
519
|
+
|
|
520
|
+
### Updates
|
|
521
|
+
|
|
522
|
+
- Remove dependency on deprecated bodyParser.
|
|
523
|
+
- Update minimum Node version to 10.16.0
|
|
524
|
+
- Upgrade to Rush 5.23.2
|
|
525
|
+
|
|
526
|
+
## 1.14.1
|
|
527
|
+
Wed, 22 Apr 2020 19:04:00 GMT
|
|
528
|
+
|
|
529
|
+
_Version update only_
|
|
530
|
+
|
|
531
|
+
## 1.14.0
|
|
532
|
+
Tue, 31 Mar 2020 15:44:19 GMT
|
|
533
|
+
|
|
534
|
+
_Version update only_
|
|
535
|
+
|
|
536
|
+
## 1.13.0
|
|
537
|
+
Wed, 04 Mar 2020 16:16:31 GMT
|
|
538
|
+
|
|
539
|
+
_Version update only_
|
|
540
|
+
|
|
541
|
+
## 1.12.0
|
|
542
|
+
Wed, 12 Feb 2020 17:45:50 GMT
|
|
543
|
+
|
|
544
|
+
_Version update only_
|
|
545
|
+
|
|
546
|
+
## 1.11.0
|
|
547
|
+
Wed, 22 Jan 2020 19:24:12 GMT
|
|
548
|
+
|
|
549
|
+
### Updates
|
|
550
|
+
|
|
551
|
+
- Upgrade to TypeScript 3.7.2.
|
|
552
|
+
|
|
553
|
+
## 1.10.0
|
|
554
|
+
Tue, 07 Jan 2020 19:44:01 GMT
|
|
555
|
+
|
|
556
|
+
_Version update only_
|
|
557
|
+
|
|
558
|
+
## 1.9.0
|
|
559
|
+
Tue, 10 Dec 2019 18:08:56 GMT
|
|
560
|
+
|
|
561
|
+
_Version update only_
|
|
562
|
+
|
|
563
|
+
## 1.8.0
|
|
564
|
+
Fri, 22 Nov 2019 14:03:34 GMT
|
|
565
|
+
|
|
566
|
+
### Updates
|
|
567
|
+
|
|
568
|
+
- Update to allow Node 12
|
|
569
|
+
|
|
570
|
+
## 1.7.0
|
|
571
|
+
Fri, 01 Nov 2019 13:28:37 GMT
|
|
572
|
+
|
|
573
|
+
_Version update only_
|
|
574
|
+
|
|
575
|
+
## 1.6.0
|
|
576
|
+
Wed, 09 Oct 2019 20:28:42 GMT
|
|
577
|
+
|
|
578
|
+
_Version update only_
|
|
579
|
+
|
|
580
|
+
## 1.5.0
|
|
581
|
+
Mon, 30 Sep 2019 22:28:48 GMT
|
|
582
|
+
|
|
583
|
+
### Updates
|
|
584
|
+
|
|
585
|
+
- Upgrade to TypeScript 3.6.2
|
|
586
|
+
|
|
587
|
+
## 1.4.0
|
|
588
|
+
Tue, 10 Sep 2019 12:09:49 GMT
|
|
589
|
+
|
|
590
|
+
_Version update only_
|
|
591
|
+
|
|
592
|
+
## 1.3.0
|
|
593
|
+
Tue, 13 Aug 2019 20:25:53 GMT
|
|
594
|
+
|
|
595
|
+
_Version update only_
|
|
596
|
+
|
|
597
|
+
## 1.2.0
|
|
598
|
+
Wed, 24 Jul 2019 11:47:26 GMT
|
|
599
|
+
|
|
600
|
+
_Version update only_
|
|
601
|
+
|
|
602
|
+
## 1.1.0
|
|
603
|
+
Mon, 01 Jul 2019 19:04:29 GMT
|
|
604
|
+
|
|
605
|
+
### Updates
|
|
606
|
+
|
|
607
|
+
- Update to TypeScript 3.5
|
|
608
|
+
|
|
609
|
+
## 1.0.0
|
|
610
|
+
Mon, 03 Jun 2019 18:09:39 GMT
|
|
611
|
+
|
|
612
|
+
### Updates
|
|
613
|
+
|
|
614
|
+
- Change required by new compiler
|
|
615
|
+
|
|
616
|
+
## 0.191.0
|
|
617
|
+
Mon, 13 May 2019 15:52:05 GMT
|
|
618
|
+
|
|
619
|
+
### Updates
|
|
620
|
+
|
|
621
|
+
- Moved IModelJsExpressServer class into a new package (@itwin/express-server).
|
|
622
|
+
- Upgrade TypeDoc dependency to 0.14.2
|
|
623
|
+
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @itwin/express-server
|
|
2
|
+
|
|
3
|
+
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The __@itwin/express-server__ package contains the express webserver utilities to write an iTwin.js backend service.
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
See the [iTwin.js](https://www.itwinjs.org) documentation for more information.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Server as HttpServer } from "http";
|
|
3
|
+
import { RpcConfiguration, WebAppRpcProtocol } from "@itwin/core-common";
|
|
4
|
+
/**
|
|
5
|
+
* Options for configuring IModelJsExpressServer.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface IModelJsExpressServerConfig {
|
|
9
|
+
uploadLimit: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An express web server with some reasonable defaults for web applications built with @bentley/webpack-tools.
|
|
13
|
+
* @note This server is not designed to be a hardened, secure endpoint on the public internet.
|
|
14
|
+
* It is intended to participate in a private HTTP exchange with a public-facing routing and provisioning infrastructure
|
|
15
|
+
* that should be supplied by the application's deployment environment.
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare class IModelJsExpressServer {
|
|
19
|
+
/** The default configuration for servers. */
|
|
20
|
+
static readonly defaults: IModelJsExpressServerConfig;
|
|
21
|
+
private _protocol;
|
|
22
|
+
private _config;
|
|
23
|
+
protected _app: import("express").Application;
|
|
24
|
+
/** @alpha */
|
|
25
|
+
get rpcConfiguration(): RpcConfiguration;
|
|
26
|
+
constructor(protocol: WebAppRpcProtocol, config?: IModelJsExpressServerConfig);
|
|
27
|
+
protected _configureMiddleware(): void;
|
|
28
|
+
protected _configureHeaders(): void;
|
|
29
|
+
protected _configureRoutes(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Configure the express application with necessary headers, routes, and middleware, then starts listening on the given port.
|
|
32
|
+
* @param port The port to listen on
|
|
33
|
+
*/
|
|
34
|
+
initialize(port: number | string): Promise<HttpServer>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=ExpressServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressServer.d.ts","sourceRoot":"","sources":["../../src/ExpressServer.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAgC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvG;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAChC,6CAA6C;IAC7C,gBAAuB,QAAQ,EAAE,2BAA2B,CAE1D;IAEF,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,OAAO,CAA8B;IAC7C,SAAS,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,WAAW,CAAa;IAE1D,aAAa;IACb,IAAW,gBAAgB,IAAI,gBAAgB,CAAyC;gBAE5E,QAAQ,EAAE,iBAAiB,EAAE,MAAM,8BAAiC;IAKhF,SAAS,CAAC,oBAAoB;IAK9B,SAAS,CAAC,iBAAiB;IAU3B,SAAS,CAAC,gBAAgB;IAS1B;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAUpE"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IModelJsExpressServer = void 0;
|
|
4
|
+
/*---------------------------------------------------------------------------------------------
|
|
5
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
|
+
*--------------------------------------------------------------------------------------------*/
|
|
8
|
+
const express = require("express");
|
|
9
|
+
const core_common_1 = require("@itwin/core-common");
|
|
10
|
+
/**
|
|
11
|
+
* An express web server with some reasonable defaults for web applications built with @bentley/webpack-tools.
|
|
12
|
+
* @note This server is not designed to be a hardened, secure endpoint on the public internet.
|
|
13
|
+
* It is intended to participate in a private HTTP exchange with a public-facing routing and provisioning infrastructure
|
|
14
|
+
* that should be supplied by the application's deployment environment.
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
class IModelJsExpressServer {
|
|
18
|
+
constructor(protocol, config = IModelJsExpressServer.defaults) {
|
|
19
|
+
this._app = express();
|
|
20
|
+
this._protocol = protocol;
|
|
21
|
+
this._config = config;
|
|
22
|
+
}
|
|
23
|
+
/** @alpha */
|
|
24
|
+
get rpcConfiguration() { return this._protocol.configuration; }
|
|
25
|
+
_configureMiddleware() {
|
|
26
|
+
this._app.use(express.text({ limit: this._config.uploadLimit }));
|
|
27
|
+
this._app.use(express.raw({ limit: this._config.uploadLimit }));
|
|
28
|
+
}
|
|
29
|
+
_configureHeaders() {
|
|
30
|
+
// enable CORS for all apis
|
|
31
|
+
this._app.all("/**", (_req, res, next) => {
|
|
32
|
+
res.header("Access-Control-Allow-Origin", core_common_1.BentleyCloudRpcConfiguration.accessControl.allowOrigin);
|
|
33
|
+
res.header("Access-Control-Allow-Methods", core_common_1.BentleyCloudRpcConfiguration.accessControl.allowMethods);
|
|
34
|
+
res.header("Access-Control-Allow-Headers", core_common_1.BentleyCloudRpcConfiguration.accessControl.allowHeaders);
|
|
35
|
+
next();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
_configureRoutes() {
|
|
39
|
+
this._app.get("/v3/swagger.json", (req, res) => this._protocol.handleOpenApiDescriptionRequest(req, res));
|
|
40
|
+
this._app.post("*", async (req, res) => this._protocol.handleOperationPostRequest(req, res));
|
|
41
|
+
this._app.get(/\/imodel\//, async (req, res) => this._protocol.handleOperationGetRequest(req, res));
|
|
42
|
+
this._app.get("/ping", async (_req, res) => res.status(200).send("Success"));
|
|
43
|
+
// for all HTTP requests, identify the server.
|
|
44
|
+
this._app.use("*", (_req, resp) => { resp.send("<h1>IModelJs RPC Server</h1>"); });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Configure the express application with necessary headers, routes, and middleware, then starts listening on the given port.
|
|
48
|
+
* @param port The port to listen on
|
|
49
|
+
*/
|
|
50
|
+
async initialize(port) {
|
|
51
|
+
this._configureMiddleware();
|
|
52
|
+
this._configureHeaders();
|
|
53
|
+
this._configureRoutes();
|
|
54
|
+
this._app.set("port", port);
|
|
55
|
+
return new Promise((resolve) => {
|
|
56
|
+
const server = this._app.listen(this._app.get("port"), () => resolve(server));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.IModelJsExpressServer = IModelJsExpressServer;
|
|
61
|
+
/** The default configuration for servers. */
|
|
62
|
+
IModelJsExpressServer.defaults = {
|
|
63
|
+
uploadLimit: "5mb",
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=ExpressServer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressServer.js","sourceRoot":"","sources":["../../src/ExpressServer.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,mCAAmC;AAEnC,oDAAuG;AAUvG;;;;;;GAMG;AACH,MAAa,qBAAqB;IAahC,YAAY,QAA2B,EAAE,MAAM,GAAG,qBAAqB,CAAC,QAAQ;QALtE,SAAI,GAAkC,OAAO,EAAE,CAAC;QAMxD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAND,aAAa;IACb,IAAW,gBAAgB,KAAuB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;IAO9E,oBAAoB;QAC5B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IAES,iBAAiB;QACzB,2BAA2B;QAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACvC,GAAG,CAAC,MAAM,CAAC,6BAA6B,EAAE,0CAA4B,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;YAClG,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,0CAA4B,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;YACpG,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,0CAA4B,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;YACpG,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACL,CAAC;IAES,gBAAgB;QACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,+BAA+B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC1G,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC7F,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACpG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7E,8CAA8C;QAC9C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,UAAU,CAAC,IAAqB;QAC3C,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAExB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,EAAE;YACzC,MAAM,MAAM,GAAe,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5F,CAAC,CAAC,CAAC;IACL,CAAC;;AAvDH,sDAwDC;AAvDC,6CAA6C;AACtB,8BAAQ,GAAgC;IAC7D,WAAW,EAAE,KAAK;CACnB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\nimport * as express from \"express\";\r\nimport { Server as HttpServer } from \"http\";\r\nimport { BentleyCloudRpcConfiguration, RpcConfiguration, WebAppRpcProtocol } from \"@itwin/core-common\";\r\n\r\n/**\r\n * Options for configuring IModelJsExpressServer.\r\n * @public\r\n */\r\nexport interface IModelJsExpressServerConfig {\r\n uploadLimit: string;\r\n}\r\n\r\n/**\r\n * An express web server with some reasonable defaults for web applications built with @bentley/webpack-tools.\r\n * @note This server is not designed to be a hardened, secure endpoint on the public internet.\r\n * It is intended to participate in a private HTTP exchange with a public-facing routing and provisioning infrastructure\r\n * that should be supplied by the application's deployment environment.\r\n * @public\r\n */\r\nexport class IModelJsExpressServer {\r\n /** The default configuration for servers. */\r\n public static readonly defaults: IModelJsExpressServerConfig = {\r\n uploadLimit: \"5mb\",\r\n };\r\n\r\n private _protocol: WebAppRpcProtocol;\r\n private _config: IModelJsExpressServerConfig;\r\n protected _app: import(\"express\").Application = express();\r\n\r\n /** @alpha */\r\n public get rpcConfiguration(): RpcConfiguration { return this._protocol.configuration; }\r\n\r\n constructor(protocol: WebAppRpcProtocol, config = IModelJsExpressServer.defaults) {\r\n this._protocol = protocol;\r\n this._config = config;\r\n }\r\n\r\n protected _configureMiddleware() {\r\n this._app.use(express.text({ limit: this._config.uploadLimit }));\r\n this._app.use(express.raw({ limit: this._config.uploadLimit }));\r\n }\r\n\r\n protected _configureHeaders() {\r\n // enable CORS for all apis\r\n this._app.all(\"/**\", (_req, res, next) => {\r\n res.header(\"Access-Control-Allow-Origin\", BentleyCloudRpcConfiguration.accessControl.allowOrigin);\r\n res.header(\"Access-Control-Allow-Methods\", BentleyCloudRpcConfiguration.accessControl.allowMethods);\r\n res.header(\"Access-Control-Allow-Headers\", BentleyCloudRpcConfiguration.accessControl.allowHeaders);\r\n next();\r\n });\r\n }\r\n\r\n protected _configureRoutes() {\r\n this._app.get(\"/v3/swagger.json\", (req, res) => this._protocol.handleOpenApiDescriptionRequest(req, res));\r\n this._app.post(\"*\", async (req, res) => this._protocol.handleOperationPostRequest(req, res));\r\n this._app.get(/\\/imodel\\//, async (req, res) => this._protocol.handleOperationGetRequest(req, res));\r\n this._app.get(\"/ping\", async (_req, res) => res.status(200).send(\"Success\"));\r\n // for all HTTP requests, identify the server.\r\n this._app.use(\"*\", (_req, resp) => { resp.send(\"<h1>IModelJs RPC Server</h1>\"); });\r\n }\r\n\r\n /**\r\n * Configure the express application with necessary headers, routes, and middleware, then starts listening on the given port.\r\n * @param port The port to listen on\r\n */\r\n public async initialize(port: number | string): Promise<HttpServer> {\r\n this._configureMiddleware();\r\n this._configureHeaders();\r\n this._configureRoutes();\r\n\r\n this._app.set(\"port\", port);\r\n return new Promise<HttpServer>((resolve) => {\r\n const server: HttpServer = this._app.listen(this._app.get(\"port\"), () => resolve(server));\r\n });\r\n }\r\n}\r\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itwin/express-server",
|
|
3
|
+
"version": "3.0.0-dev.100",
|
|
4
|
+
"description": "iModel.js express utilities",
|
|
5
|
+
"main": "lib/cjs/ExpressServer.js",
|
|
6
|
+
"typings": "lib/cjs/ExpressServer",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=12.22.0 < 14.0 || >=14.17.0 <17.0"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/imodeljs/imodeljs/tree/master/core/express-server"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"Bentley",
|
|
17
|
+
"BIM",
|
|
18
|
+
"iModel"
|
|
19
|
+
],
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Bentley Systems, Inc.",
|
|
22
|
+
"url": "http://www.bentley.com"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@itwin/build-tools": "3.0.0-dev.100",
|
|
26
|
+
"@itwin/eslint-plugin": "3.0.0-dev.100",
|
|
27
|
+
"@itwin/core-common": "3.0.0-dev.100",
|
|
28
|
+
"@types/body-parser": "^1.17.0",
|
|
29
|
+
"@types/chai": "^4.1.4",
|
|
30
|
+
"@types/express": "^4.16.1",
|
|
31
|
+
"@types/mocha": "^8.2.2",
|
|
32
|
+
"@types/node": "14.14.31",
|
|
33
|
+
"@types/sinon": "^9.0.0",
|
|
34
|
+
"@types/supertest": "^2.0.4",
|
|
35
|
+
"chai": "^4.1.2",
|
|
36
|
+
"eslint": "^7.11.0",
|
|
37
|
+
"mocha": "^8.3.2",
|
|
38
|
+
"nyc": "^15.1.0",
|
|
39
|
+
"rimraf": "^3.0.2",
|
|
40
|
+
"sinon": "^9.0.2",
|
|
41
|
+
"source-map-support": "^0.5.6",
|
|
42
|
+
"supertest": "^3.0.0",
|
|
43
|
+
"typescript": "~4.4.0"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"express": "^4.16.3"
|
|
47
|
+
},
|
|
48
|
+
"eslintConfig": {
|
|
49
|
+
"plugins": [
|
|
50
|
+
"@itwin"
|
|
51
|
+
],
|
|
52
|
+
"extends": "plugin:@itwin/itwinjs-recommended"
|
|
53
|
+
},
|
|
54
|
+
"nyc": {
|
|
55
|
+
"extends": "./node_modules/@itwin/build-tools/.nycrc"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "npm run -s build:cjs",
|
|
59
|
+
"build:ci": "npm run -s build",
|
|
60
|
+
"build:cjs": "tsc 1>&2 --outDir lib/cjs",
|
|
61
|
+
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
62
|
+
"docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/express-server/file.json --tsIndexFile=./ExpressServer.ts --onlyJson",
|
|
63
|
+
"extract-api": "betools extract-api --entry=ExpressServer",
|
|
64
|
+
"lint": "eslint -f visualstudio \"./src/**/*.ts\" 1>&2",
|
|
65
|
+
"test": "mocha",
|
|
66
|
+
"cover": "nyc npm -s test"
|
|
67
|
+
}
|
|
68
|
+
}
|