@teambit/express 0.0.960 → 0.0.962
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_express-preview.js +1 -1
- package/artifacts/schema.json +983 -850
- package/dist/express.aspect.d.ts +2 -0
- package/dist/express.composition.d.ts +1 -0
- package/dist/express.main.runtime.d.ts +72 -0
- package/dist/index.d.ts +7 -0
- package/dist/middleware-manifest.d.ts +5 -0
- package/dist/middlewares/error.d.ts +8 -0
- package/dist/middlewares/index.d.ts +1 -0
- package/dist/{preview-1712805335812.js → preview-1714533890836.js} +2 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/next.d.ts +2 -0
- package/dist/types/request.d.ts +1 -0
- package/dist/types/response.d.ts +2 -0
- package/dist/types/route.d.ts +24 -0
- package/package.json +5 -5
- package/tsconfig.json +1 -10
package/artifacts/schema.json
CHANGED
@@ -14,585 +14,435 @@
|
|
14
14
|
},
|
15
15
|
"exports": [
|
16
16
|
{
|
17
|
-
"__schema": "
|
17
|
+
"__schema": "ExportSchema",
|
18
18
|
"location": {
|
19
|
-
"filePath": "
|
20
|
-
"line":
|
21
|
-
"character":
|
19
|
+
"filePath": "index.ts",
|
20
|
+
"line": 1,
|
21
|
+
"character": 15
|
22
22
|
},
|
23
|
-
"signature": "type RouteSlot = SlotRegistry<Route[]>",
|
24
23
|
"name": "RouteSlot",
|
25
|
-
"
|
26
|
-
"__schema": "
|
24
|
+
"exportNode": {
|
25
|
+
"__schema": "TypeSchema",
|
27
26
|
"location": {
|
28
27
|
"filePath": "express.main.runtime.ts",
|
29
28
|
"line": 21,
|
30
|
-
"character":
|
29
|
+
"character": 1
|
31
30
|
},
|
32
|
-
"
|
33
|
-
"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
31
|
+
"signature": "type RouteSlot = SlotRegistry<Route[]>",
|
32
|
+
"name": "RouteSlot",
|
33
|
+
"type": {
|
34
|
+
"__schema": "TypeRefSchema",
|
35
|
+
"location": {
|
36
|
+
"filePath": "express.main.runtime.ts",
|
37
|
+
"line": 21,
|
38
|
+
"character": 25
|
39
|
+
},
|
40
|
+
"name": "SlotRegistry",
|
41
|
+
"componentId": {
|
42
|
+
"scope": "teambit.harmony",
|
43
|
+
"name": "harmony",
|
44
|
+
"version": "0.4.6"
|
45
|
+
},
|
46
|
+
"typeArgs": [
|
47
|
+
{
|
48
|
+
"__schema": "TypeArraySchema",
|
43
49
|
"location": {
|
44
50
|
"filePath": "express.main.runtime.ts",
|
45
51
|
"line": 21,
|
46
52
|
"character": 38
|
47
53
|
},
|
48
|
-
"
|
54
|
+
"type": {
|
55
|
+
"__schema": "TypeRefSchema",
|
56
|
+
"location": {
|
57
|
+
"filePath": "express.main.runtime.ts",
|
58
|
+
"line": 21,
|
59
|
+
"character": 38
|
60
|
+
},
|
61
|
+
"name": "Route"
|
62
|
+
}
|
49
63
|
}
|
50
|
-
|
51
|
-
|
64
|
+
]
|
65
|
+
}
|
52
66
|
}
|
53
67
|
},
|
54
68
|
{
|
55
|
-
"__schema": "
|
69
|
+
"__schema": "ExportSchema",
|
56
70
|
"location": {
|
57
|
-
"filePath": "
|
58
|
-
"line":
|
59
|
-
"character":
|
71
|
+
"filePath": "index.ts",
|
72
|
+
"line": 2,
|
73
|
+
"character": 15
|
60
74
|
},
|
61
|
-
"
|
62
|
-
|
75
|
+
"name": "Route",
|
76
|
+
"exportNode": {
|
77
|
+
"__schema": "InterfaceSchema",
|
63
78
|
"location": {
|
64
79
|
"filePath": "types/route.ts",
|
65
|
-
"line":
|
80
|
+
"line": 19,
|
66
81
|
"character": 1
|
67
82
|
},
|
68
|
-
"
|
69
|
-
|
70
|
-
},
|
71
|
-
"signature": "interface Route",
|
72
|
-
"name": "Route",
|
73
|
-
"members": [
|
74
|
-
{
|
75
|
-
"__schema": "VariableLikeSchema",
|
83
|
+
"doc": {
|
84
|
+
"__schema": "DocSchema",
|
76
85
|
"location": {
|
77
86
|
"filePath": "types/route.ts",
|
78
|
-
"line":
|
79
|
-
"character":
|
87
|
+
"line": 15,
|
88
|
+
"character": 1
|
80
89
|
},
|
81
|
-
"
|
82
|
-
"
|
83
|
-
|
84
|
-
|
90
|
+
"raw": "/**\n * express new Route\n */",
|
91
|
+
"comment": "express new Route"
|
92
|
+
},
|
93
|
+
"signature": "interface Route",
|
94
|
+
"name": "Route",
|
95
|
+
"members": [
|
96
|
+
{
|
97
|
+
"__schema": "VariableLikeSchema",
|
85
98
|
"location": {
|
86
99
|
"filePath": "types/route.ts",
|
87
100
|
"line": 20,
|
88
|
-
"character":
|
101
|
+
"character": 3
|
89
102
|
},
|
90
|
-
"
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
103
|
+
"signature": "(property) Route.method: string",
|
104
|
+
"name": "method",
|
105
|
+
"type": {
|
106
|
+
"__schema": "KeywordTypeSchema",
|
107
|
+
"location": {
|
108
|
+
"filePath": "types/route.ts",
|
109
|
+
"line": 20,
|
110
|
+
"character": 11
|
111
|
+
},
|
112
|
+
"name": "string"
|
113
|
+
},
|
114
|
+
"isOptional": false
|
100
115
|
},
|
101
|
-
|
102
|
-
|
103
|
-
"type": {
|
104
|
-
"__schema": "TypeUnionSchema",
|
116
|
+
{
|
117
|
+
"__schema": "VariableLikeSchema",
|
105
118
|
"location": {
|
106
119
|
"filePath": "types/route.ts",
|
107
120
|
"line": 21,
|
108
|
-
"character":
|
121
|
+
"character": 3
|
109
122
|
},
|
110
|
-
"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
"name": "string"
|
123
|
+
"signature": "(property) Route.route: string | RegExp",
|
124
|
+
"name": "route",
|
125
|
+
"type": {
|
126
|
+
"__schema": "TypeUnionSchema",
|
127
|
+
"location": {
|
128
|
+
"filePath": "types/route.ts",
|
129
|
+
"line": 21,
|
130
|
+
"character": 10
|
119
131
|
},
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
"
|
124
|
-
|
125
|
-
|
132
|
+
"types": [
|
133
|
+
{
|
134
|
+
"__schema": "KeywordTypeSchema",
|
135
|
+
"location": {
|
136
|
+
"filePath": "types/route.ts",
|
137
|
+
"line": 21,
|
138
|
+
"character": 10
|
139
|
+
},
|
140
|
+
"name": "string"
|
126
141
|
},
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
"
|
142
|
+
{
|
143
|
+
"__schema": "TypeRefSchema",
|
144
|
+
"location": {
|
145
|
+
"filePath": "types/route.ts",
|
146
|
+
"line": 21,
|
147
|
+
"character": 19
|
148
|
+
},
|
149
|
+
"name": "RegExp"
|
150
|
+
}
|
151
|
+
]
|
152
|
+
},
|
153
|
+
"isOptional": false
|
139
154
|
},
|
140
|
-
|
141
|
-
|
142
|
-
"type": {
|
143
|
-
"__schema": "KeywordTypeSchema",
|
155
|
+
{
|
156
|
+
"__schema": "VariableLikeSchema",
|
144
157
|
"location": {
|
145
158
|
"filePath": "types/route.ts",
|
146
159
|
"line": 22,
|
147
|
-
"character":
|
160
|
+
"character": 3
|
148
161
|
},
|
149
|
-
"
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
162
|
+
"signature": "(property) Route.disableNamespace?: boolean | undefined",
|
163
|
+
"name": "disableNamespace",
|
164
|
+
"type": {
|
165
|
+
"__schema": "KeywordTypeSchema",
|
166
|
+
"location": {
|
167
|
+
"filePath": "types/route.ts",
|
168
|
+
"line": 22,
|
169
|
+
"character": 22
|
170
|
+
},
|
171
|
+
"name": "boolean"
|
172
|
+
},
|
173
|
+
"isOptional": true
|
159
174
|
},
|
160
|
-
|
161
|
-
|
162
|
-
"type": {
|
163
|
-
"__schema": "TypeRefSchema",
|
175
|
+
{
|
176
|
+
"__schema": "VariableLikeSchema",
|
164
177
|
"location": {
|
165
178
|
"filePath": "types/route.ts",
|
166
179
|
"line": 23,
|
167
|
-
"character":
|
180
|
+
"character": 3
|
168
181
|
},
|
169
|
-
"
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
182
|
+
"signature": "(property) Route.verb?: Verb | undefined",
|
183
|
+
"name": "verb",
|
184
|
+
"type": {
|
185
|
+
"__schema": "TypeRefSchema",
|
186
|
+
"location": {
|
187
|
+
"filePath": "types/route.ts",
|
188
|
+
"line": 23,
|
189
|
+
"character": 10
|
190
|
+
},
|
191
|
+
"name": "Verb"
|
192
|
+
},
|
193
|
+
"isOptional": true
|
179
194
|
},
|
180
|
-
|
181
|
-
|
182
|
-
"type": {
|
183
|
-
"__schema": "TypeArraySchema",
|
195
|
+
{
|
196
|
+
"__schema": "VariableLikeSchema",
|
184
197
|
"location": {
|
185
198
|
"filePath": "types/route.ts",
|
186
199
|
"line": 24,
|
187
|
-
"character":
|
200
|
+
"character": 3
|
188
201
|
},
|
202
|
+
"signature": "(property) Route.middlewares: Middleware[]",
|
203
|
+
"name": "middlewares",
|
189
204
|
"type": {
|
190
|
-
"__schema": "
|
205
|
+
"__schema": "TypeArraySchema",
|
191
206
|
"location": {
|
192
207
|
"filePath": "types/route.ts",
|
193
208
|
"line": 24,
|
194
209
|
"character": 16
|
195
210
|
},
|
196
|
-
"
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
"line": 26,
|
206
|
-
"character": 3
|
207
|
-
},
|
208
|
-
"doc": {
|
209
|
-
"__schema": "DocSchema",
|
210
|
-
"location": {
|
211
|
-
"filePath": "types/route.ts",
|
212
|
-
"line": 25,
|
213
|
-
"character": 3
|
211
|
+
"type": {
|
212
|
+
"__schema": "TypeRefSchema",
|
213
|
+
"location": {
|
214
|
+
"filePath": "types/route.ts",
|
215
|
+
"line": 24,
|
216
|
+
"character": 16
|
217
|
+
},
|
218
|
+
"name": "Middleware"
|
219
|
+
}
|
214
220
|
},
|
215
|
-
"
|
216
|
-
"comment": "route priority if 2 route with the same name default is 0"
|
221
|
+
"isOptional": false
|
217
222
|
},
|
218
|
-
|
219
|
-
|
220
|
-
"type": {
|
221
|
-
"__schema": "KeywordTypeSchema",
|
223
|
+
{
|
224
|
+
"__schema": "VariableLikeSchema",
|
222
225
|
"location": {
|
223
226
|
"filePath": "types/route.ts",
|
224
227
|
"line": 26,
|
225
|
-
"character":
|
228
|
+
"character": 3
|
226
229
|
},
|
227
|
-
"
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
230
|
+
"doc": {
|
231
|
+
"__schema": "DocSchema",
|
232
|
+
"location": {
|
233
|
+
"filePath": "types/route.ts",
|
234
|
+
"line": 25,
|
235
|
+
"character": 3
|
236
|
+
},
|
237
|
+
"raw": "/** route priority if 2 route with the same name default is 0 */",
|
238
|
+
"comment": "route priority if 2 route with the same name default is 0"
|
239
|
+
},
|
240
|
+
"signature": "(property) Route.priority?: number | undefined",
|
241
|
+
"name": "priority",
|
242
|
+
"type": {
|
243
|
+
"__schema": "KeywordTypeSchema",
|
244
|
+
"location": {
|
245
|
+
"filePath": "types/route.ts",
|
246
|
+
"line": 26,
|
247
|
+
"character": 14
|
248
|
+
},
|
249
|
+
"name": "number"
|
250
|
+
},
|
251
|
+
"isOptional": true
|
252
|
+
}
|
253
|
+
],
|
254
|
+
"extendsNodes": []
|
255
|
+
}
|
233
256
|
},
|
234
257
|
{
|
235
|
-
"__schema": "
|
258
|
+
"__schema": "ExportSchema",
|
236
259
|
"location": {
|
237
|
-
"filePath": "
|
238
|
-
"line":
|
239
|
-
"character":
|
260
|
+
"filePath": "index.ts",
|
261
|
+
"line": 3,
|
262
|
+
"character": 10
|
240
263
|
},
|
241
|
-
"signature": "enum Verb",
|
242
264
|
"name": "Verb",
|
243
|
-
"
|
244
|
-
|
245
|
-
|
246
|
-
"
|
247
|
-
|
248
|
-
|
249
|
-
"character": 3
|
250
|
-
},
|
251
|
-
"signature": "(enum member) Verb.WRITE = \"write\"",
|
252
|
-
"name": "WRITE",
|
253
|
-
"value": "'write'"
|
265
|
+
"exportNode": {
|
266
|
+
"__schema": "EnumSchema",
|
267
|
+
"location": {
|
268
|
+
"filePath": "types/route.ts",
|
269
|
+
"line": 10,
|
270
|
+
"character": 1
|
254
271
|
},
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
"
|
260
|
-
"
|
272
|
+
"signature": "enum Verb",
|
273
|
+
"name": "Verb",
|
274
|
+
"members": [
|
275
|
+
{
|
276
|
+
"__schema": "EnumMemberSchema",
|
277
|
+
"location": {
|
278
|
+
"filePath": "types/route.ts",
|
279
|
+
"line": 11,
|
280
|
+
"character": 3
|
281
|
+
},
|
282
|
+
"signature": "(enum member) Verb.WRITE = \"write\"",
|
283
|
+
"name": "WRITE",
|
284
|
+
"value": "'write'"
|
261
285
|
},
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
286
|
+
{
|
287
|
+
"__schema": "EnumMemberSchema",
|
288
|
+
"location": {
|
289
|
+
"filePath": "types/route.ts",
|
290
|
+
"line": 12,
|
291
|
+
"character": 3
|
292
|
+
},
|
293
|
+
"signature": "(enum member) Verb.READ = \"read\"",
|
294
|
+
"name": "READ",
|
295
|
+
"value": "'read'"
|
296
|
+
}
|
297
|
+
]
|
298
|
+
}
|
267
299
|
},
|
268
300
|
{
|
269
|
-
"__schema": "
|
301
|
+
"__schema": "ExportSchema",
|
270
302
|
"location": {
|
271
303
|
"filePath": "index.ts",
|
272
304
|
"line": 4,
|
273
305
|
"character": 15
|
274
306
|
},
|
275
|
-
"name": "Request"
|
307
|
+
"name": "Request",
|
308
|
+
"exportNode": {
|
309
|
+
"__schema": "TypeRefSchema",
|
310
|
+
"location": {
|
311
|
+
"filePath": "index.ts",
|
312
|
+
"line": 4,
|
313
|
+
"character": 15
|
314
|
+
},
|
315
|
+
"name": "Request"
|
316
|
+
}
|
276
317
|
},
|
277
318
|
{
|
278
|
-
"__schema": "
|
319
|
+
"__schema": "ExportSchema",
|
279
320
|
"location": {
|
280
|
-
"filePath": "
|
281
|
-
"line":
|
282
|
-
"character":
|
321
|
+
"filePath": "index.ts",
|
322
|
+
"line": 4,
|
323
|
+
"character": 24
|
283
324
|
},
|
284
|
-
"signature": "type Response = express.Response<any, Record<string, any>>",
|
285
325
|
"name": "Response",
|
286
|
-
"
|
287
|
-
"__schema": "
|
326
|
+
"exportNode": {
|
327
|
+
"__schema": "TypeSchema",
|
288
328
|
"location": {
|
289
329
|
"filePath": "types/response.ts",
|
290
330
|
"line": 3,
|
291
|
-
"character":
|
331
|
+
"character": 1
|
292
332
|
},
|
293
|
-
"
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
"members": []
|
333
|
+
"signature": "type Response = express.Response<any, Record<string, any>>",
|
334
|
+
"name": "Response",
|
335
|
+
"type": {
|
336
|
+
"__schema": "TypeIntersectionSchema",
|
337
|
+
"location": {
|
338
|
+
"filePath": "types/response.ts",
|
339
|
+
"line": 3,
|
340
|
+
"character": 24
|
302
341
|
},
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
"
|
307
|
-
|
308
|
-
|
342
|
+
"types": [
|
343
|
+
{
|
344
|
+
"__schema": "TypeLiteralSchema",
|
345
|
+
"location": {
|
346
|
+
"filePath": "types/response.ts",
|
347
|
+
"line": 3,
|
348
|
+
"character": 24
|
349
|
+
},
|
350
|
+
"members": []
|
309
351
|
},
|
310
|
-
|
311
|
-
|
312
|
-
|
352
|
+
{
|
353
|
+
"__schema": "TypeRefSchema",
|
354
|
+
"location": {
|
355
|
+
"filePath": "types/response.ts",
|
356
|
+
"line": 3,
|
357
|
+
"character": 29
|
358
|
+
},
|
359
|
+
"name": "express.Response"
|
360
|
+
}
|
361
|
+
]
|
362
|
+
}
|
313
363
|
}
|
314
364
|
},
|
315
365
|
{
|
316
|
-
"__schema": "
|
366
|
+
"__schema": "ExportSchema",
|
317
367
|
"location": {
|
318
|
-
"filePath": "
|
319
|
-
"line":
|
320
|
-
"character":
|
368
|
+
"filePath": "index.ts",
|
369
|
+
"line": 4,
|
370
|
+
"character": 34
|
321
371
|
},
|
322
|
-
"signature": "type NextFunction = express.NextFunction",
|
323
372
|
"name": "NextFunction",
|
324
|
-
"
|
325
|
-
"__schema": "
|
373
|
+
"exportNode": {
|
374
|
+
"__schema": "TypeSchema",
|
326
375
|
"location": {
|
327
376
|
"filePath": "types/next.ts",
|
328
377
|
"line": 3,
|
329
|
-
"character":
|
378
|
+
"character": 1
|
330
379
|
},
|
331
|
-
"
|
380
|
+
"signature": "type NextFunction = express.NextFunction",
|
381
|
+
"name": "NextFunction",
|
382
|
+
"type": {
|
383
|
+
"__schema": "TypeRefSchema",
|
384
|
+
"location": {
|
385
|
+
"filePath": "types/next.ts",
|
386
|
+
"line": 3,
|
387
|
+
"character": 28
|
388
|
+
},
|
389
|
+
"name": "express.NextFunction"
|
390
|
+
}
|
332
391
|
}
|
333
392
|
},
|
334
393
|
{
|
335
|
-
"__schema": "
|
394
|
+
"__schema": "ExportSchema",
|
336
395
|
"location": {
|
337
|
-
"filePath": "
|
338
|
-
"line":
|
339
|
-
"character":
|
340
|
-
},
|
341
|
-
"doc": {
|
342
|
-
"__schema": "DocSchema",
|
343
|
-
"location": {
|
344
|
-
"filePath": "types/route.ts",
|
345
|
-
"line": 5,
|
346
|
-
"character": 1
|
347
|
-
},
|
348
|
-
"raw": "/**\n * define express Middleware\n */",
|
349
|
-
"comment": "define express Middleware"
|
396
|
+
"filePath": "index.ts",
|
397
|
+
"line": 4,
|
398
|
+
"character": 48
|
350
399
|
},
|
351
|
-
"signature": "type Middleware = (req: Request, res: Response, next: NextFunction) => void | Promise<any>",
|
352
400
|
"name": "Middleware",
|
353
|
-
"
|
354
|
-
"__schema": "
|
401
|
+
"exportNode": {
|
402
|
+
"__schema": "TypeSchema",
|
355
403
|
"location": {
|
356
404
|
"filePath": "types/route.ts",
|
357
405
|
"line": 8,
|
358
|
-
"character":
|
406
|
+
"character": 1
|
359
407
|
},
|
360
|
-
"
|
361
|
-
|
362
|
-
"params": [
|
363
|
-
{
|
364
|
-
"__schema": "ParameterSchema",
|
365
|
-
"location": {
|
366
|
-
"filePath": "types/route.ts",
|
367
|
-
"line": 8,
|
368
|
-
"character": 27
|
369
|
-
},
|
370
|
-
"name": "req",
|
371
|
-
"type": {
|
372
|
-
"__schema": "TypeRefSchema",
|
373
|
-
"location": {
|
374
|
-
"filePath": "types/route.ts",
|
375
|
-
"line": 8,
|
376
|
-
"character": 32
|
377
|
-
},
|
378
|
-
"name": "Request"
|
379
|
-
},
|
380
|
-
"isOptional": false,
|
381
|
-
"isSpread": false
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"__schema": "ParameterSchema",
|
385
|
-
"location": {
|
386
|
-
"filePath": "types/route.ts",
|
387
|
-
"line": 8,
|
388
|
-
"character": 41
|
389
|
-
},
|
390
|
-
"name": "res",
|
391
|
-
"type": {
|
392
|
-
"__schema": "TypeRefSchema",
|
393
|
-
"location": {
|
394
|
-
"filePath": "types/route.ts",
|
395
|
-
"line": 8,
|
396
|
-
"character": 46
|
397
|
-
},
|
398
|
-
"name": "Response"
|
399
|
-
},
|
400
|
-
"isOptional": false,
|
401
|
-
"isSpread": false
|
402
|
-
},
|
403
|
-
{
|
404
|
-
"__schema": "ParameterSchema",
|
405
|
-
"location": {
|
406
|
-
"filePath": "types/route.ts",
|
407
|
-
"line": 8,
|
408
|
-
"character": 56
|
409
|
-
},
|
410
|
-
"name": "next",
|
411
|
-
"type": {
|
412
|
-
"__schema": "TypeRefSchema",
|
413
|
-
"location": {
|
414
|
-
"filePath": "types/route.ts",
|
415
|
-
"line": 8,
|
416
|
-
"character": 62
|
417
|
-
},
|
418
|
-
"name": "NextFunction"
|
419
|
-
},
|
420
|
-
"isOptional": false,
|
421
|
-
"isSpread": false
|
422
|
-
}
|
423
|
-
],
|
424
|
-
"returnType": {
|
425
|
-
"__schema": "TypeUnionSchema",
|
408
|
+
"doc": {
|
409
|
+
"__schema": "DocSchema",
|
426
410
|
"location": {
|
427
411
|
"filePath": "types/route.ts",
|
428
|
-
"line": 8,
|
429
|
-
"character": 79
|
430
|
-
},
|
431
|
-
"types": [
|
432
|
-
{
|
433
|
-
"__schema": "KeywordTypeSchema",
|
434
|
-
"location": {
|
435
|
-
"filePath": "types/route.ts",
|
436
|
-
"line": 8,
|
437
|
-
"character": 79
|
438
|
-
},
|
439
|
-
"name": "void"
|
440
|
-
},
|
441
|
-
{
|
442
|
-
"__schema": "TypeRefSchema",
|
443
|
-
"location": {
|
444
|
-
"filePath": "types/route.ts",
|
445
|
-
"line": 8,
|
446
|
-
"character": 86
|
447
|
-
},
|
448
|
-
"name": "Promise",
|
449
|
-
"typeArgs": [
|
450
|
-
{
|
451
|
-
"__schema": "KeywordTypeSchema",
|
452
|
-
"location": {
|
453
|
-
"filePath": "types/route.ts",
|
454
|
-
"line": 8,
|
455
|
-
"character": 94
|
456
|
-
},
|
457
|
-
"name": "any"
|
458
|
-
}
|
459
|
-
]
|
460
|
-
}
|
461
|
-
]
|
462
|
-
},
|
463
|
-
"modifiers": []
|
464
|
-
}
|
465
|
-
},
|
466
|
-
{
|
467
|
-
"__schema": "InterfaceSchema",
|
468
|
-
"location": {
|
469
|
-
"filePath": "middleware-manifest.ts",
|
470
|
-
"line": 3,
|
471
|
-
"character": 1
|
472
|
-
},
|
473
|
-
"signature": "interface MiddlewareManifest",
|
474
|
-
"name": "MiddlewareManifest",
|
475
|
-
"members": [
|
476
|
-
{
|
477
|
-
"__schema": "VariableLikeSchema",
|
478
|
-
"location": {
|
479
|
-
"filePath": "middleware-manifest.ts",
|
480
|
-
"line": 4,
|
481
|
-
"character": 3
|
482
|
-
},
|
483
|
-
"signature": "(property) MiddlewareManifest.route?: string | undefined",
|
484
|
-
"name": "route",
|
485
|
-
"type": {
|
486
|
-
"__schema": "KeywordTypeSchema",
|
487
|
-
"location": {
|
488
|
-
"filePath": "middleware-manifest.ts",
|
489
|
-
"line": 4,
|
490
|
-
"character": 11
|
491
|
-
},
|
492
|
-
"name": "string"
|
493
|
-
},
|
494
|
-
"isOptional": true
|
495
|
-
},
|
496
|
-
{
|
497
|
-
"__schema": "VariableLikeSchema",
|
498
|
-
"location": {
|
499
|
-
"filePath": "middleware-manifest.ts",
|
500
412
|
"line": 5,
|
501
|
-
"character":
|
502
|
-
},
|
503
|
-
"signature": "(property) MiddlewareManifest.middleware: Middleware",
|
504
|
-
"name": "middleware",
|
505
|
-
"type": {
|
506
|
-
"__schema": "TypeRefSchema",
|
507
|
-
"location": {
|
508
|
-
"filePath": "middleware-manifest.ts",
|
509
|
-
"line": 5,
|
510
|
-
"character": 3
|
511
|
-
},
|
512
|
-
"name": "Middleware"
|
513
|
-
},
|
514
|
-
"isOptional": false
|
515
|
-
}
|
516
|
-
],
|
517
|
-
"extendsNodes": []
|
518
|
-
},
|
519
|
-
{
|
520
|
-
"__schema": "ClassSchema",
|
521
|
-
"location": {
|
522
|
-
"filePath": "express.main.runtime.ts",
|
523
|
-
"line": 23,
|
524
|
-
"character": 1
|
525
|
-
},
|
526
|
-
"signature": "class ExpressMain",
|
527
|
-
"name": "ExpressMain",
|
528
|
-
"members": [
|
529
|
-
{
|
530
|
-
"__schema": "VariableLikeSchema",
|
531
|
-
"location": {
|
532
|
-
"filePath": "express.main.runtime.ts",
|
533
|
-
"line": 24,
|
534
|
-
"character": 3
|
535
|
-
},
|
536
|
-
"signature": "(property) ExpressMain.runtime: RuntimeDefinition",
|
537
|
-
"name": "runtime",
|
538
|
-
"type": {
|
539
|
-
"__schema": "InferenceTypeSchema",
|
540
|
-
"location": {
|
541
|
-
"filePath": "express.main.runtime.ts",
|
542
|
-
"line": 24,
|
543
|
-
"character": 3
|
544
|
-
},
|
545
|
-
"type": "RuntimeDefinition"
|
413
|
+
"character": 1
|
546
414
|
},
|
547
|
-
"
|
548
|
-
"
|
415
|
+
"raw": "/**\n * define express Middleware\n */",
|
416
|
+
"comment": "define express Middleware"
|
549
417
|
},
|
550
|
-
|
551
|
-
|
418
|
+
"signature": "type Middleware = (req: Request, res: Response, next: NextFunction) => void | Promise<any>",
|
419
|
+
"name": "Middleware",
|
420
|
+
"type": {
|
421
|
+
"__schema": "FunctionLikeSchema",
|
552
422
|
"location": {
|
553
|
-
"filePath": "
|
554
|
-
"line":
|
555
|
-
"character":
|
423
|
+
"filePath": "types/route.ts",
|
424
|
+
"line": 8,
|
425
|
+
"character": 26
|
556
426
|
},
|
557
|
-
"signature": "
|
558
|
-
"name": "
|
427
|
+
"signature": "(req: Request, res: Response, next: NextFunction): void | Promise<any>",
|
428
|
+
"name": "",
|
559
429
|
"params": [
|
560
430
|
{
|
561
431
|
"__schema": "ParameterSchema",
|
562
432
|
"location": {
|
563
|
-
"filePath": "
|
564
|
-
"line":
|
565
|
-
"character":
|
566
|
-
},
|
567
|
-
"name": "config",
|
568
|
-
"type": {
|
569
|
-
"__schema": "TypeRefSchema",
|
570
|
-
"location": {
|
571
|
-
"filePath": "express.main.runtime.ts",
|
572
|
-
"line": 30,
|
573
|
-
"character": 22
|
574
|
-
},
|
575
|
-
"name": "ExpressConfig"
|
576
|
-
},
|
577
|
-
"isOptional": false,
|
578
|
-
"isSpread": false
|
579
|
-
},
|
580
|
-
{
|
581
|
-
"__schema": "ParameterSchema",
|
582
|
-
"location": {
|
583
|
-
"filePath": "express.main.runtime.ts",
|
584
|
-
"line": 35,
|
585
|
-
"character": 5
|
433
|
+
"filePath": "types/route.ts",
|
434
|
+
"line": 8,
|
435
|
+
"character": 27
|
586
436
|
},
|
587
|
-
"name": "
|
437
|
+
"name": "req",
|
588
438
|
"type": {
|
589
439
|
"__schema": "TypeRefSchema",
|
590
440
|
"location": {
|
591
|
-
"filePath": "
|
592
|
-
"line":
|
593
|
-
"character":
|
441
|
+
"filePath": "types/route.ts",
|
442
|
+
"line": 8,
|
443
|
+
"character": 32
|
594
444
|
},
|
595
|
-
"name": "
|
445
|
+
"name": "Request"
|
596
446
|
},
|
597
447
|
"isOptional": false,
|
598
448
|
"isSpread": false
|
@@ -600,19 +450,19 @@
|
|
600
450
|
{
|
601
451
|
"__schema": "ParameterSchema",
|
602
452
|
"location": {
|
603
|
-
"filePath": "
|
604
|
-
"line":
|
605
|
-
"character":
|
453
|
+
"filePath": "types/route.ts",
|
454
|
+
"line": 8,
|
455
|
+
"character": 41
|
606
456
|
},
|
607
|
-
"name": "
|
457
|
+
"name": "res",
|
608
458
|
"type": {
|
609
459
|
"__schema": "TypeRefSchema",
|
610
460
|
"location": {
|
611
|
-
"filePath": "
|
612
|
-
"line":
|
613
|
-
"character":
|
461
|
+
"filePath": "types/route.ts",
|
462
|
+
"line": 8,
|
463
|
+
"character": 46
|
614
464
|
},
|
615
|
-
"name": "
|
465
|
+
"name": "Response"
|
616
466
|
},
|
617
467
|
"isOptional": false,
|
618
468
|
"isSpread": false
|
@@ -620,510 +470,769 @@
|
|
620
470
|
{
|
621
471
|
"__schema": "ParameterSchema",
|
622
472
|
"location": {
|
623
|
-
"filePath": "
|
624
|
-
"line":
|
625
|
-
"character":
|
473
|
+
"filePath": "types/route.ts",
|
474
|
+
"line": 8,
|
475
|
+
"character": 56
|
626
476
|
},
|
627
|
-
"name": "
|
477
|
+
"name": "next",
|
628
478
|
"type": {
|
629
479
|
"__schema": "TypeRefSchema",
|
630
480
|
"location": {
|
631
|
-
"filePath": "
|
632
|
-
"line":
|
633
|
-
"character":
|
481
|
+
"filePath": "types/route.ts",
|
482
|
+
"line": 8,
|
483
|
+
"character": 62
|
634
484
|
},
|
635
|
-
"name": "
|
485
|
+
"name": "NextFunction"
|
636
486
|
},
|
637
487
|
"isOptional": false,
|
638
488
|
"isSpread": false
|
639
489
|
}
|
640
490
|
],
|
641
491
|
"returnType": {
|
642
|
-
"__schema": "
|
643
|
-
"location": {
|
644
|
-
"filePath": "express.main.runtime.ts",
|
645
|
-
"line": 23,
|
646
|
-
"character": 1
|
647
|
-
},
|
648
|
-
"name": "ExpressMain"
|
649
|
-
},
|
650
|
-
"modifiers": []
|
651
|
-
},
|
652
|
-
{
|
653
|
-
"__schema": "FunctionLikeSchema",
|
654
|
-
"location": {
|
655
|
-
"filePath": "express.main.runtime.ts",
|
656
|
-
"line": 48,
|
657
|
-
"character": 3
|
658
|
-
},
|
659
|
-
"doc": {
|
660
|
-
"__schema": "DocSchema",
|
492
|
+
"__schema": "TypeUnionSchema",
|
661
493
|
"location": {
|
662
|
-
"filePath": "
|
663
|
-
"line":
|
664
|
-
"character":
|
494
|
+
"filePath": "types/route.ts",
|
495
|
+
"line": 8,
|
496
|
+
"character": 79
|
665
497
|
},
|
666
|
-
"
|
667
|
-
|
668
|
-
},
|
669
|
-
"signature": "(method) ExpressMain.listen(port?: number): Promise<Server>",
|
670
|
-
"name": "listen",
|
671
|
-
"params": [
|
672
|
-
{
|
673
|
-
"__schema": "ParameterSchema",
|
674
|
-
"location": {
|
675
|
-
"filePath": "express.main.runtime.ts",
|
676
|
-
"line": 48,
|
677
|
-
"character": 16
|
678
|
-
},
|
679
|
-
"name": "port",
|
680
|
-
"type": {
|
498
|
+
"types": [
|
499
|
+
{
|
681
500
|
"__schema": "KeywordTypeSchema",
|
682
501
|
"location": {
|
683
|
-
"filePath": "
|
684
|
-
"line":
|
685
|
-
"character":
|
502
|
+
"filePath": "types/route.ts",
|
503
|
+
"line": 8,
|
504
|
+
"character": 79
|
686
505
|
},
|
687
|
-
"name": "
|
506
|
+
"name": "void"
|
688
507
|
},
|
689
|
-
"isOptional": true,
|
690
|
-
"isSpread": false
|
691
|
-
}
|
692
|
-
],
|
693
|
-
"returnType": {
|
694
|
-
"__schema": "TypeRefSchema",
|
695
|
-
"location": {
|
696
|
-
"filePath": "express.main.runtime.ts",
|
697
|
-
"line": 48,
|
698
|
-
"character": 32
|
699
|
-
},
|
700
|
-
"name": "Promise",
|
701
|
-
"typeArgs": [
|
702
508
|
{
|
703
509
|
"__schema": "TypeRefSchema",
|
704
510
|
"location": {
|
705
|
-
"filePath": "
|
706
|
-
"line":
|
707
|
-
"character":
|
511
|
+
"filePath": "types/route.ts",
|
512
|
+
"line": 8,
|
513
|
+
"character": 86
|
708
514
|
},
|
709
|
-
"name": "
|
515
|
+
"name": "Promise",
|
516
|
+
"typeArgs": [
|
517
|
+
{
|
518
|
+
"__schema": "KeywordTypeSchema",
|
519
|
+
"location": {
|
520
|
+
"filePath": "types/route.ts",
|
521
|
+
"line": 8,
|
522
|
+
"character": 94
|
523
|
+
},
|
524
|
+
"name": "any"
|
525
|
+
}
|
526
|
+
]
|
710
527
|
}
|
711
528
|
]
|
712
529
|
},
|
713
|
-
"modifiers": [
|
714
|
-
|
715
|
-
|
530
|
+
"modifiers": []
|
531
|
+
}
|
532
|
+
}
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"__schema": "ExportSchema",
|
536
|
+
"location": {
|
537
|
+
"filePath": "index.ts",
|
538
|
+
"line": 5,
|
539
|
+
"character": 15
|
540
|
+
},
|
541
|
+
"name": "MiddlewareManifest",
|
542
|
+
"exportNode": {
|
543
|
+
"__schema": "InterfaceSchema",
|
544
|
+
"location": {
|
545
|
+
"filePath": "middleware-manifest.ts",
|
546
|
+
"line": 3,
|
547
|
+
"character": 1
|
716
548
|
},
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
"
|
722
|
-
"character": 3
|
723
|
-
},
|
724
|
-
"doc": {
|
725
|
-
"__schema": "DocSchema",
|
549
|
+
"signature": "interface MiddlewareManifest",
|
550
|
+
"name": "MiddlewareManifest",
|
551
|
+
"members": [
|
552
|
+
{
|
553
|
+
"__schema": "VariableLikeSchema",
|
726
554
|
"location": {
|
727
|
-
"filePath": "
|
728
|
-
"line":
|
555
|
+
"filePath": "middleware-manifest.ts",
|
556
|
+
"line": 4,
|
729
557
|
"character": 3
|
730
558
|
},
|
731
|
-
"
|
732
|
-
"
|
733
|
-
|
734
|
-
|
735
|
-
"name": "register",
|
736
|
-
"params": [
|
737
|
-
{
|
738
|
-
"__schema": "ParameterSchema",
|
559
|
+
"signature": "(property) MiddlewareManifest.route?: string | undefined",
|
560
|
+
"name": "route",
|
561
|
+
"type": {
|
562
|
+
"__schema": "KeywordTypeSchema",
|
739
563
|
"location": {
|
740
|
-
"filePath": "
|
741
|
-
"line":
|
742
|
-
"character":
|
564
|
+
"filePath": "middleware-manifest.ts",
|
565
|
+
"line": 4,
|
566
|
+
"character": 11
|
743
567
|
},
|
744
|
-
"name": "
|
745
|
-
"type": {
|
746
|
-
"__schema": "TypeArraySchema",
|
747
|
-
"location": {
|
748
|
-
"filePath": "express.main.runtime.ts",
|
749
|
-
"line": 58,
|
750
|
-
"character": 20
|
751
|
-
},
|
752
|
-
"type": {
|
753
|
-
"__schema": "TypeRefSchema",
|
754
|
-
"location": {
|
755
|
-
"filePath": "express.main.runtime.ts",
|
756
|
-
"line": 58,
|
757
|
-
"character": 20
|
758
|
-
},
|
759
|
-
"name": "Route"
|
760
|
-
}
|
761
|
-
},
|
762
|
-
"isOptional": false,
|
763
|
-
"isSpread": false
|
764
|
-
}
|
765
|
-
],
|
766
|
-
"returnType": {
|
767
|
-
"__schema": "TypeRefSchema",
|
768
|
-
"location": {
|
769
|
-
"filePath": "express.main.runtime.ts",
|
770
|
-
"line": 58,
|
771
|
-
"character": 3
|
568
|
+
"name": "string"
|
772
569
|
},
|
773
|
-
"
|
570
|
+
"isOptional": true
|
774
571
|
},
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
"
|
783
|
-
|
784
|
-
|
785
|
-
|
572
|
+
{
|
573
|
+
"__schema": "VariableLikeSchema",
|
574
|
+
"location": {
|
575
|
+
"filePath": "middleware-manifest.ts",
|
576
|
+
"line": 5,
|
577
|
+
"character": 3
|
578
|
+
},
|
579
|
+
"signature": "(property) MiddlewareManifest.middleware: Middleware",
|
580
|
+
"name": "middleware",
|
581
|
+
"type": {
|
582
|
+
"__schema": "TypeRefSchema",
|
583
|
+
"location": {
|
584
|
+
"filePath": "middleware-manifest.ts",
|
585
|
+
"line": 5,
|
586
|
+
"character": 3
|
587
|
+
},
|
588
|
+
"name": "Middleware"
|
589
|
+
},
|
590
|
+
"isOptional": false
|
591
|
+
}
|
592
|
+
],
|
593
|
+
"extendsNodes": []
|
594
|
+
}
|
595
|
+
},
|
596
|
+
{
|
597
|
+
"__schema": "ExportSchema",
|
598
|
+
"location": {
|
599
|
+
"filePath": "index.ts",
|
600
|
+
"line": 6,
|
601
|
+
"character": 15
|
602
|
+
},
|
603
|
+
"name": "ExpressMain",
|
604
|
+
"exportNode": {
|
605
|
+
"__schema": "ClassSchema",
|
606
|
+
"location": {
|
607
|
+
"filePath": "express.main.runtime.ts",
|
608
|
+
"line": 23,
|
609
|
+
"character": 1
|
610
|
+
},
|
611
|
+
"signature": "class ExpressMain",
|
612
|
+
"name": "ExpressMain",
|
613
|
+
"members": [
|
614
|
+
{
|
615
|
+
"__schema": "VariableLikeSchema",
|
786
616
|
"location": {
|
787
617
|
"filePath": "express.main.runtime.ts",
|
788
|
-
"line":
|
618
|
+
"line": 24,
|
789
619
|
"character": 3
|
790
620
|
},
|
791
|
-
"
|
792
|
-
"
|
793
|
-
|
794
|
-
|
795
|
-
"name": "registerMiddleware",
|
796
|
-
"params": [
|
797
|
-
{
|
798
|
-
"__schema": "ParameterSchema",
|
621
|
+
"signature": "(property) ExpressMain.runtime: RuntimeDefinition",
|
622
|
+
"name": "runtime",
|
623
|
+
"type": {
|
624
|
+
"__schema": "InferenceTypeSchema",
|
799
625
|
"location": {
|
800
626
|
"filePath": "express.main.runtime.ts",
|
801
|
-
"line":
|
802
|
-
"character":
|
627
|
+
"line": 24,
|
628
|
+
"character": 3
|
803
629
|
},
|
804
|
-
"
|
805
|
-
|
806
|
-
|
630
|
+
"type": "RuntimeDefinition"
|
631
|
+
},
|
632
|
+
"isOptional": true,
|
633
|
+
"defaultValue": "MainRuntime"
|
634
|
+
},
|
635
|
+
{
|
636
|
+
"__schema": "ConstructorSchema",
|
637
|
+
"location": {
|
638
|
+
"filePath": "express.main.runtime.ts",
|
639
|
+
"line": 26,
|
640
|
+
"character": 3
|
641
|
+
},
|
642
|
+
"signature": "constructor ExpressMain(config: ExpressConfig, moduleSlot: RouteSlot, logger: Logger, middlewareSlot: MiddlewareSlot): ExpressMain",
|
643
|
+
"name": "constructor",
|
644
|
+
"params": [
|
645
|
+
{
|
646
|
+
"__schema": "ParameterSchema",
|
807
647
|
"location": {
|
808
648
|
"filePath": "express.main.runtime.ts",
|
809
|
-
"line":
|
810
|
-
"character":
|
649
|
+
"line": 30,
|
650
|
+
"character": 5
|
811
651
|
},
|
652
|
+
"name": "config",
|
812
653
|
"type": {
|
813
654
|
"__schema": "TypeRefSchema",
|
814
655
|
"location": {
|
815
656
|
"filePath": "express.main.runtime.ts",
|
816
|
-
"line":
|
817
|
-
"character":
|
657
|
+
"line": 30,
|
658
|
+
"character": 22
|
818
659
|
},
|
819
|
-
"name": "
|
820
|
-
|
660
|
+
"name": "ExpressConfig",
|
661
|
+
"internalFilePath": "express.main.runtime.ts"
|
662
|
+
},
|
663
|
+
"isOptional": false,
|
664
|
+
"isSpread": false
|
821
665
|
},
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
666
|
+
{
|
667
|
+
"__schema": "ParameterSchema",
|
668
|
+
"location": {
|
669
|
+
"filePath": "express.main.runtime.ts",
|
670
|
+
"line": 35,
|
671
|
+
"character": 5
|
672
|
+
},
|
673
|
+
"name": "moduleSlot",
|
674
|
+
"type": {
|
675
|
+
"__schema": "TypeRefSchema",
|
676
|
+
"location": {
|
677
|
+
"filePath": "express.main.runtime.ts",
|
678
|
+
"line": 35,
|
679
|
+
"character": 25
|
680
|
+
},
|
681
|
+
"name": "RouteSlot"
|
682
|
+
},
|
683
|
+
"isOptional": false,
|
684
|
+
"isSpread": false
|
685
|
+
},
|
686
|
+
{
|
687
|
+
"__schema": "ParameterSchema",
|
688
|
+
"location": {
|
689
|
+
"filePath": "express.main.runtime.ts",
|
690
|
+
"line": 40,
|
691
|
+
"character": 5
|
692
|
+
},
|
693
|
+
"name": "logger",
|
694
|
+
"type": {
|
695
|
+
"__schema": "TypeRefSchema",
|
696
|
+
"location": {
|
697
|
+
"filePath": "express.main.runtime.ts",
|
698
|
+
"line": 40,
|
699
|
+
"character": 22
|
700
|
+
},
|
701
|
+
"name": "Logger",
|
702
|
+
"componentId": {
|
703
|
+
"scope": "teambit.harmony",
|
704
|
+
"name": "logger"
|
705
|
+
}
|
706
|
+
},
|
707
|
+
"isOptional": false,
|
708
|
+
"isSpread": false
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"__schema": "ParameterSchema",
|
712
|
+
"location": {
|
713
|
+
"filePath": "express.main.runtime.ts",
|
714
|
+
"line": 42,
|
715
|
+
"character": 5
|
716
|
+
},
|
717
|
+
"name": "middlewareSlot",
|
718
|
+
"type": {
|
719
|
+
"__schema": "TypeRefSchema",
|
720
|
+
"location": {
|
721
|
+
"filePath": "express.main.runtime.ts",
|
722
|
+
"line": 42,
|
723
|
+
"character": 30
|
724
|
+
},
|
725
|
+
"name": "MiddlewareSlot",
|
726
|
+
"internalFilePath": "express.main.runtime.ts"
|
727
|
+
},
|
728
|
+
"isOptional": false,
|
729
|
+
"isSpread": false
|
730
|
+
}
|
731
|
+
],
|
732
|
+
"returnType": {
|
733
|
+
"__schema": "ThisTypeSchema",
|
734
|
+
"location": {
|
735
|
+
"filePath": "express.main.runtime.ts",
|
736
|
+
"line": 23,
|
737
|
+
"character": 1
|
738
|
+
},
|
739
|
+
"name": "ExpressMain"
|
740
|
+
},
|
741
|
+
"modifiers": []
|
742
|
+
},
|
743
|
+
{
|
744
|
+
"__schema": "FunctionLikeSchema",
|
828
745
|
"location": {
|
829
746
|
"filePath": "express.main.runtime.ts",
|
830
|
-
"line":
|
747
|
+
"line": 48,
|
831
748
|
"character": 3
|
832
749
|
},
|
833
|
-
"
|
834
|
-
|
835
|
-
"modifiers": []
|
836
|
-
},
|
837
|
-
{
|
838
|
-
"__schema": "FunctionLikeSchema",
|
839
|
-
"location": {
|
840
|
-
"filePath": "express.main.runtime.ts",
|
841
|
-
"line": 85,
|
842
|
-
"character": 3
|
843
|
-
},
|
844
|
-
"signature": "(method) ExpressMain.createApp(expressApp?: Express, options?: {\n disableBodyParser: true;\n}): Express",
|
845
|
-
"name": "createApp",
|
846
|
-
"params": [
|
847
|
-
{
|
848
|
-
"__schema": "ParameterSchema",
|
750
|
+
"doc": {
|
751
|
+
"__schema": "DocSchema",
|
849
752
|
"location": {
|
850
753
|
"filePath": "express.main.runtime.ts",
|
851
|
-
"line":
|
852
|
-
"character":
|
754
|
+
"line": 45,
|
755
|
+
"character": 3
|
853
756
|
},
|
854
|
-
"
|
855
|
-
"
|
856
|
-
|
757
|
+
"raw": "/**\n * start an express server.\n */",
|
758
|
+
"comment": "start an express server."
|
759
|
+
},
|
760
|
+
"signature": "(method) ExpressMain.listen(port?: number): Promise<Server>",
|
761
|
+
"name": "listen",
|
762
|
+
"params": [
|
763
|
+
{
|
764
|
+
"__schema": "ParameterSchema",
|
857
765
|
"location": {
|
858
766
|
"filePath": "express.main.runtime.ts",
|
859
|
-
"line":
|
860
|
-
"character":
|
767
|
+
"line": 48,
|
768
|
+
"character": 16
|
769
|
+
},
|
770
|
+
"name": "port",
|
771
|
+
"type": {
|
772
|
+
"__schema": "KeywordTypeSchema",
|
773
|
+
"location": {
|
774
|
+
"filePath": "express.main.runtime.ts",
|
775
|
+
"line": 48,
|
776
|
+
"character": 23
|
777
|
+
},
|
778
|
+
"name": "number"
|
861
779
|
},
|
862
|
-
"
|
780
|
+
"isOptional": true,
|
781
|
+
"isSpread": false
|
782
|
+
}
|
783
|
+
],
|
784
|
+
"returnType": {
|
785
|
+
"__schema": "TypeRefSchema",
|
786
|
+
"location": {
|
787
|
+
"filePath": "express.main.runtime.ts",
|
788
|
+
"line": 48,
|
789
|
+
"character": 32
|
863
790
|
},
|
864
|
-
"
|
865
|
-
"
|
791
|
+
"name": "Promise",
|
792
|
+
"typeArgs": [
|
793
|
+
{
|
794
|
+
"__schema": "TypeRefSchema",
|
795
|
+
"location": {
|
796
|
+
"filePath": "express.main.runtime.ts",
|
797
|
+
"line": 48,
|
798
|
+
"character": 40
|
799
|
+
},
|
800
|
+
"name": "Server",
|
801
|
+
"packageName": "http"
|
802
|
+
}
|
803
|
+
]
|
866
804
|
},
|
867
|
-
|
868
|
-
"
|
805
|
+
"modifiers": [
|
806
|
+
"async"
|
807
|
+
]
|
808
|
+
},
|
809
|
+
{
|
810
|
+
"__schema": "FunctionLikeSchema",
|
811
|
+
"location": {
|
812
|
+
"filePath": "express.main.runtime.ts",
|
813
|
+
"line": 58,
|
814
|
+
"character": 3
|
815
|
+
},
|
816
|
+
"doc": {
|
817
|
+
"__schema": "DocSchema",
|
869
818
|
"location": {
|
870
819
|
"filePath": "express.main.runtime.ts",
|
871
|
-
"line":
|
872
|
-
"character":
|
820
|
+
"line": 54,
|
821
|
+
"character": 3
|
873
822
|
},
|
874
|
-
"
|
875
|
-
"
|
876
|
-
|
823
|
+
"raw": "/**\n * register a new express routes.\n * route will be added as `/api/${route}`\n */",
|
824
|
+
"comment": "register a new express routes.\nroute will be added as `/api/${route}`"
|
825
|
+
},
|
826
|
+
"signature": "(method) ExpressMain.register(routes: Route[]): this",
|
827
|
+
"name": "register",
|
828
|
+
"params": [
|
829
|
+
{
|
830
|
+
"__schema": "ParameterSchema",
|
877
831
|
"location": {
|
878
832
|
"filePath": "express.main.runtime.ts",
|
879
|
-
"line":
|
880
|
-
"character":
|
833
|
+
"line": 58,
|
834
|
+
"character": 12
|
881
835
|
},
|
882
|
-
"
|
883
|
-
|
884
|
-
|
836
|
+
"name": "routes",
|
837
|
+
"type": {
|
838
|
+
"__schema": "TypeArraySchema",
|
839
|
+
"location": {
|
840
|
+
"filePath": "express.main.runtime.ts",
|
841
|
+
"line": 58,
|
842
|
+
"character": 20
|
843
|
+
},
|
844
|
+
"type": {
|
845
|
+
"__schema": "TypeRefSchema",
|
885
846
|
"location": {
|
886
847
|
"filePath": "express.main.runtime.ts",
|
887
|
-
"line":
|
888
|
-
"character":
|
848
|
+
"line": 58,
|
849
|
+
"character": 20
|
889
850
|
},
|
890
|
-
"
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
851
|
+
"name": "Route"
|
852
|
+
}
|
853
|
+
},
|
854
|
+
"isOptional": false,
|
855
|
+
"isSpread": false
|
856
|
+
}
|
857
|
+
],
|
858
|
+
"returnType": {
|
859
|
+
"__schema": "TypeRefSchema",
|
860
|
+
"location": {
|
861
|
+
"filePath": "express.main.runtime.ts",
|
862
|
+
"line": 58,
|
863
|
+
"character": 3
|
864
|
+
},
|
865
|
+
"name": "ExpressMain"
|
866
|
+
},
|
867
|
+
"modifiers": []
|
868
|
+
},
|
869
|
+
{
|
870
|
+
"__schema": "FunctionLikeSchema",
|
871
|
+
"location": {
|
872
|
+
"filePath": "express.main.runtime.ts",
|
873
|
+
"line": 66,
|
874
|
+
"character": 3
|
875
|
+
},
|
876
|
+
"doc": {
|
877
|
+
"__schema": "DocSchema",
|
878
|
+
"location": {
|
879
|
+
"filePath": "express.main.runtime.ts",
|
880
|
+
"line": 63,
|
881
|
+
"character": 3
|
882
|
+
},
|
883
|
+
"raw": "/**\n * register a new middleware into express.\n */",
|
884
|
+
"comment": "register a new middleware into express."
|
885
|
+
},
|
886
|
+
"signature": "(method) ExpressMain.registerMiddleware(middlewares: MiddlewareManifest[]): this",
|
887
|
+
"name": "registerMiddleware",
|
888
|
+
"params": [
|
889
|
+
{
|
890
|
+
"__schema": "ParameterSchema",
|
891
|
+
"location": {
|
892
|
+
"filePath": "express.main.runtime.ts",
|
893
|
+
"line": 66,
|
894
|
+
"character": 22
|
895
|
+
},
|
896
|
+
"name": "middlewares",
|
897
|
+
"type": {
|
898
|
+
"__schema": "TypeArraySchema",
|
899
|
+
"location": {
|
900
|
+
"filePath": "express.main.runtime.ts",
|
901
|
+
"line": 66,
|
902
|
+
"character": 35
|
903
|
+
},
|
904
|
+
"type": {
|
905
|
+
"__schema": "TypeRefSchema",
|
906
|
+
"location": {
|
907
|
+
"filePath": "express.main.runtime.ts",
|
908
|
+
"line": 66,
|
909
|
+
"character": 35
|
900
910
|
},
|
901
|
-
"
|
911
|
+
"name": "MiddlewareManifest"
|
902
912
|
}
|
903
|
-
|
913
|
+
},
|
914
|
+
"isOptional": false,
|
915
|
+
"isSpread": false
|
916
|
+
}
|
917
|
+
],
|
918
|
+
"returnType": {
|
919
|
+
"__schema": "TypeRefSchema",
|
920
|
+
"location": {
|
921
|
+
"filePath": "express.main.runtime.ts",
|
922
|
+
"line": 66,
|
923
|
+
"character": 3
|
904
924
|
},
|
905
|
-
"
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
"__schema": "
|
925
|
+
"name": "ExpressMain"
|
926
|
+
},
|
927
|
+
"modifiers": []
|
928
|
+
},
|
929
|
+
{
|
930
|
+
"__schema": "FunctionLikeSchema",
|
911
931
|
"location": {
|
912
932
|
"filePath": "express.main.runtime.ts",
|
913
933
|
"line": 85,
|
914
934
|
"character": 3
|
915
935
|
},
|
916
|
-
"
|
917
|
-
"
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
936
|
+
"signature": "(method) ExpressMain.createApp(expressApp?: Express, options?: {\n disableBodyParser: true;\n}): Express",
|
937
|
+
"name": "createApp",
|
938
|
+
"params": [
|
939
|
+
{
|
940
|
+
"__schema": "ParameterSchema",
|
941
|
+
"location": {
|
942
|
+
"filePath": "express.main.runtime.ts",
|
943
|
+
"line": 85,
|
944
|
+
"character": 13
|
945
|
+
},
|
946
|
+
"name": "expressApp",
|
947
|
+
"type": {
|
948
|
+
"__schema": "TypeRefSchema",
|
949
|
+
"location": {
|
950
|
+
"filePath": "express.main.runtime.ts",
|
951
|
+
"line": 85,
|
952
|
+
"character": 26
|
953
|
+
},
|
954
|
+
"name": "Express",
|
955
|
+
"packageName": "express"
|
956
|
+
},
|
957
|
+
"isOptional": true,
|
958
|
+
"isSpread": false
|
959
|
+
},
|
960
|
+
{
|
961
|
+
"__schema": "ParameterSchema",
|
962
|
+
"location": {
|
963
|
+
"filePath": "express.main.runtime.ts",
|
964
|
+
"line": 85,
|
965
|
+
"character": 35
|
966
|
+
},
|
967
|
+
"name": "options",
|
968
|
+
"type": {
|
969
|
+
"__schema": "TypeLiteralSchema",
|
970
|
+
"location": {
|
971
|
+
"filePath": "express.main.runtime.ts",
|
972
|
+
"line": 85,
|
973
|
+
"character": 45
|
974
|
+
},
|
975
|
+
"members": [
|
976
|
+
{
|
977
|
+
"__schema": "VariableLikeSchema",
|
978
|
+
"location": {
|
979
|
+
"filePath": "express.main.runtime.ts",
|
980
|
+
"line": 85,
|
981
|
+
"character": 47
|
982
|
+
},
|
983
|
+
"signature": "(property) disableBodyParser: true",
|
984
|
+
"name": "disableBodyParser",
|
985
|
+
"type": {
|
986
|
+
"__schema": "LiteralTypeSchema",
|
987
|
+
"location": {
|
988
|
+
"filePath": "express.main.runtime.ts",
|
989
|
+
"line": 85,
|
990
|
+
"character": 66
|
991
|
+
},
|
992
|
+
"name": "true"
|
993
|
+
},
|
994
|
+
"isOptional": false
|
995
|
+
}
|
996
|
+
]
|
997
|
+
},
|
998
|
+
"isOptional": true,
|
999
|
+
"isSpread": false
|
1000
|
+
}
|
1001
|
+
],
|
1002
|
+
"returnType": {
|
1003
|
+
"__schema": "TypeRefSchema",
|
1004
|
+
"location": {
|
1005
|
+
"filePath": "express.main.runtime.ts",
|
1006
|
+
"line": 85,
|
1007
|
+
"character": 3
|
1008
|
+
},
|
1009
|
+
"name": "Express",
|
1010
|
+
"packageName": "express"
|
1011
|
+
},
|
1012
|
+
"modifiers": []
|
927
1013
|
},
|
928
|
-
|
929
|
-
|
930
|
-
"type": {
|
931
|
-
"__schema": "InferenceTypeSchema",
|
1014
|
+
{
|
1015
|
+
"__schema": "VariableLikeSchema",
|
932
1016
|
"location": {
|
933
1017
|
"filePath": "express.main.runtime.ts",
|
934
1018
|
"line": 155,
|
935
1019
|
"character": 3
|
936
1020
|
},
|
937
|
-
"
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
1021
|
+
"signature": "(property) ExpressMain.slots: (((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]",
|
1022
|
+
"name": "slots",
|
1023
|
+
"type": {
|
1024
|
+
"__schema": "InferenceTypeSchema",
|
1025
|
+
"location": {
|
1026
|
+
"filePath": "express.main.runtime.ts",
|
1027
|
+
"line": 155,
|
1028
|
+
"character": 3
|
1029
|
+
},
|
1030
|
+
"type": "(((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]"
|
1031
|
+
},
|
1032
|
+
"isOptional": true,
|
1033
|
+
"defaultValue": "[Slot.withType<Route[]>(), Slot.withType<MiddlewareManifest[]>()]"
|
948
1034
|
},
|
949
|
-
|
950
|
-
|
951
|
-
"type": {
|
952
|
-
"__schema": "InferenceTypeSchema",
|
1035
|
+
{
|
1036
|
+
"__schema": "VariableLikeSchema",
|
953
1037
|
"location": {
|
954
1038
|
"filePath": "express.main.runtime.ts",
|
955
1039
|
"line": 156,
|
956
1040
|
"character": 3
|
957
1041
|
},
|
958
|
-
"
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
1042
|
+
"signature": "(property) ExpressMain.dependencies: Aspect[]",
|
1043
|
+
"name": "dependencies",
|
1044
|
+
"type": {
|
1045
|
+
"__schema": "InferenceTypeSchema",
|
1046
|
+
"location": {
|
1047
|
+
"filePath": "express.main.runtime.ts",
|
1048
|
+
"line": 156,
|
1049
|
+
"character": 3
|
1050
|
+
},
|
1051
|
+
"type": "Aspect[]"
|
1052
|
+
},
|
1053
|
+
"isOptional": true,
|
1054
|
+
"defaultValue": "[LoggerAspect]"
|
969
1055
|
},
|
970
|
-
|
971
|
-
|
972
|
-
"type": {
|
973
|
-
"__schema": "InferenceTypeSchema",
|
1056
|
+
{
|
1057
|
+
"__schema": "VariableLikeSchema",
|
974
1058
|
"location": {
|
975
1059
|
"filePath": "express.main.runtime.ts",
|
976
1060
|
"line": 158,
|
977
1061
|
"character": 3
|
978
1062
|
},
|
979
|
-
"
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
},
|
984
|
-
{
|
985
|
-
"__schema": "FunctionLikeSchema",
|
986
|
-
"location": {
|
987
|
-
"filePath": "express.main.runtime.ts",
|
988
|
-
"line": 164,
|
989
|
-
"character": 3
|
990
|
-
},
|
991
|
-
"signature": "(method) ExpressMain.provider([loggerFactory]: [LoggerMain], config: ExpressConfig, [routeSlot, middlewareSlot]: [RouteSlot, MiddlewareSlot]): Promise<ExpressMain>",
|
992
|
-
"name": "provider",
|
993
|
-
"params": [
|
994
|
-
{
|
995
|
-
"__schema": "ParameterSchema",
|
1063
|
+
"signature": "(property) ExpressMain.defaultConfig: {\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}",
|
1064
|
+
"name": "defaultConfig",
|
1065
|
+
"type": {
|
1066
|
+
"__schema": "InferenceTypeSchema",
|
996
1067
|
"location": {
|
997
1068
|
"filePath": "express.main.runtime.ts",
|
998
|
-
"line":
|
999
|
-
"character":
|
1069
|
+
"line": 158,
|
1070
|
+
"character": 3
|
1000
1071
|
},
|
1001
|
-
"
|
1002
|
-
|
1003
|
-
|
1072
|
+
"type": "{\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}"
|
1073
|
+
},
|
1074
|
+
"isOptional": true,
|
1075
|
+
"defaultValue": "{\n port: 4001,\n namespace: 'api',\n loggerIgnorePath: ['/api/_health'],\n }"
|
1076
|
+
},
|
1077
|
+
{
|
1078
|
+
"__schema": "FunctionLikeSchema",
|
1079
|
+
"location": {
|
1080
|
+
"filePath": "express.main.runtime.ts",
|
1081
|
+
"line": 164,
|
1082
|
+
"character": 3
|
1083
|
+
},
|
1084
|
+
"signature": "(method) ExpressMain.provider([loggerFactory]: [LoggerMain], config: ExpressConfig, [routeSlot, middlewareSlot]: [RouteSlot, MiddlewareSlot]): Promise<ExpressMain>",
|
1085
|
+
"name": "provider",
|
1086
|
+
"params": [
|
1087
|
+
{
|
1088
|
+
"__schema": "ParameterSchema",
|
1004
1089
|
"location": {
|
1005
1090
|
"filePath": "express.main.runtime.ts",
|
1006
1091
|
"line": 165,
|
1007
|
-
"character":
|
1092
|
+
"character": 5
|
1008
1093
|
},
|
1009
|
-
"
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1094
|
+
"name": "[ loggerFactory ]",
|
1095
|
+
"type": {
|
1096
|
+
"__schema": "TupleTypeSchema",
|
1097
|
+
"location": {
|
1098
|
+
"filePath": "express.main.runtime.ts",
|
1099
|
+
"line": 165,
|
1100
|
+
"character": 22
|
1101
|
+
},
|
1102
|
+
"elements": [
|
1103
|
+
{
|
1104
|
+
"__schema": "TypeRefSchema",
|
1105
|
+
"location": {
|
1106
|
+
"filePath": "express.main.runtime.ts",
|
1107
|
+
"line": 165,
|
1108
|
+
"character": 23
|
1109
|
+
},
|
1110
|
+
"name": "LoggerMain",
|
1111
|
+
"componentId": {
|
1112
|
+
"scope": "teambit.harmony",
|
1113
|
+
"name": "logger"
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
]
|
1117
|
+
},
|
1118
|
+
"isOptional": false,
|
1119
|
+
"isSpread": false
|
1030
1120
|
},
|
1031
|
-
|
1032
|
-
|
1033
|
-
"__schema": "TypeRefSchema",
|
1121
|
+
{
|
1122
|
+
"__schema": "ParameterSchema",
|
1034
1123
|
"location": {
|
1035
1124
|
"filePath": "express.main.runtime.ts",
|
1036
1125
|
"line": 166,
|
1037
|
-
"character":
|
1126
|
+
"character": 5
|
1038
1127
|
},
|
1039
|
-
"name": "
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1128
|
+
"name": "config",
|
1129
|
+
"type": {
|
1130
|
+
"__schema": "TypeRefSchema",
|
1131
|
+
"location": {
|
1132
|
+
"filePath": "express.main.runtime.ts",
|
1133
|
+
"line": 166,
|
1134
|
+
"character": 13
|
1135
|
+
},
|
1136
|
+
"name": "ExpressConfig",
|
1137
|
+
"internalFilePath": "express.main.runtime.ts"
|
1138
|
+
},
|
1139
|
+
"isOptional": false,
|
1140
|
+
"isSpread": false
|
1050
1141
|
},
|
1051
|
-
|
1052
|
-
|
1053
|
-
"__schema": "TupleTypeSchema",
|
1142
|
+
{
|
1143
|
+
"__schema": "ParameterSchema",
|
1054
1144
|
"location": {
|
1055
1145
|
"filePath": "express.main.runtime.ts",
|
1056
1146
|
"line": 167,
|
1057
|
-
"character":
|
1147
|
+
"character": 5
|
1058
1148
|
},
|
1059
|
-
"
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
},
|
1067
|
-
"name": "RouteSlot"
|
1149
|
+
"name": "[ routeSlot, middlewareSlot ]",
|
1150
|
+
"type": {
|
1151
|
+
"__schema": "TupleTypeSchema",
|
1152
|
+
"location": {
|
1153
|
+
"filePath": "express.main.runtime.ts",
|
1154
|
+
"line": 167,
|
1155
|
+
"character": 34
|
1068
1156
|
},
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
"
|
1073
|
-
|
1074
|
-
|
1157
|
+
"elements": [
|
1158
|
+
{
|
1159
|
+
"__schema": "TypeRefSchema",
|
1160
|
+
"location": {
|
1161
|
+
"filePath": "express.main.runtime.ts",
|
1162
|
+
"line": 167,
|
1163
|
+
"character": 35
|
1164
|
+
},
|
1165
|
+
"name": "RouteSlot"
|
1075
1166
|
},
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1167
|
+
{
|
1168
|
+
"__schema": "TypeRefSchema",
|
1169
|
+
"location": {
|
1170
|
+
"filePath": "express.main.runtime.ts",
|
1171
|
+
"line": 167,
|
1172
|
+
"character": 46
|
1173
|
+
},
|
1174
|
+
"name": "MiddlewareSlot",
|
1175
|
+
"internalFilePath": "express.main.runtime.ts"
|
1176
|
+
}
|
1177
|
+
]
|
1178
|
+
},
|
1179
|
+
"isOptional": false,
|
1180
|
+
"isSpread": false
|
1181
|
+
}
|
1182
|
+
],
|
1183
|
+
"returnType": {
|
1184
|
+
"__schema": "InferenceTypeSchema",
|
1185
|
+
"location": {
|
1186
|
+
"filePath": "express.main.runtime.ts",
|
1187
|
+
"line": 164,
|
1188
|
+
"character": 3
|
1079
1189
|
},
|
1080
|
-
"
|
1081
|
-
"isSpread": false
|
1082
|
-
}
|
1083
|
-
],
|
1084
|
-
"returnType": {
|
1085
|
-
"__schema": "InferenceTypeSchema",
|
1086
|
-
"location": {
|
1087
|
-
"filePath": "express.main.runtime.ts",
|
1088
|
-
"line": 164,
|
1089
|
-
"character": 3
|
1190
|
+
"type": "Promise<ExpressMain>"
|
1090
1191
|
},
|
1091
|
-
"
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
"implementNodes": []
|
1192
|
+
"modifiers": [
|
1193
|
+
"static",
|
1194
|
+
"async"
|
1195
|
+
]
|
1196
|
+
}
|
1197
|
+
],
|
1198
|
+
"extendsNodes": [],
|
1199
|
+
"implementNodes": []
|
1200
|
+
}
|
1101
1201
|
},
|
1102
1202
|
{
|
1103
|
-
"__schema": "
|
1203
|
+
"__schema": "ExportSchema",
|
1104
1204
|
"location": {
|
1105
|
-
"filePath": "
|
1106
|
-
"line":
|
1107
|
-
"character":
|
1205
|
+
"filePath": "index.ts",
|
1206
|
+
"line": 7,
|
1207
|
+
"character": 10
|
1108
1208
|
},
|
1109
|
-
"signature": "const ExpressAspect: Aspect",
|
1110
1209
|
"name": "ExpressAspect",
|
1111
|
-
"
|
1112
|
-
"__schema": "
|
1210
|
+
"exportNode": {
|
1211
|
+
"__schema": "VariableLikeSchema",
|
1113
1212
|
"location": {
|
1114
1213
|
"filePath": "express.aspect.ts",
|
1115
1214
|
"line": 3,
|
1116
1215
|
"character": 14
|
1117
1216
|
},
|
1118
|
-
"
|
1119
|
-
"
|
1120
|
-
|
1121
|
-
"
|
1122
|
-
"
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1217
|
+
"signature": "const ExpressAspect: Aspect",
|
1218
|
+
"name": "ExpressAspect",
|
1219
|
+
"type": {
|
1220
|
+
"__schema": "TypeRefSchema",
|
1221
|
+
"location": {
|
1222
|
+
"filePath": "express.aspect.ts",
|
1223
|
+
"line": 3,
|
1224
|
+
"character": 14
|
1225
|
+
},
|
1226
|
+
"name": "Aspect",
|
1227
|
+
"componentId": {
|
1228
|
+
"scope": "teambit.harmony",
|
1229
|
+
"name": "harmony",
|
1230
|
+
"version": "0.4.6"
|
1231
|
+
}
|
1232
|
+
},
|
1233
|
+
"isOptional": false,
|
1234
|
+
"defaultValue": "Aspect.create({\n id: 'teambit.harmony/express',\n dependencies: [],\n defaultConfig: {},\n})"
|
1235
|
+
}
|
1127
1236
|
}
|
1128
1237
|
],
|
1129
1238
|
"internals": []
|
@@ -1242,6 +1351,11 @@
|
|
1242
1351
|
"character": 30
|
1243
1352
|
},
|
1244
1353
|
"name": "SlotRegistry",
|
1354
|
+
"componentId": {
|
1355
|
+
"scope": "teambit.harmony",
|
1356
|
+
"name": "harmony",
|
1357
|
+
"version": "0.4.6"
|
1358
|
+
},
|
1245
1359
|
"typeArgs": [
|
1246
1360
|
{
|
1247
1361
|
"__schema": "TypeArraySchema",
|
@@ -1280,6 +1394,11 @@
|
|
1280
1394
|
"character": 25
|
1281
1395
|
},
|
1282
1396
|
"name": "SlotRegistry",
|
1397
|
+
"componentId": {
|
1398
|
+
"scope": "teambit.harmony",
|
1399
|
+
"name": "harmony",
|
1400
|
+
"version": "0.4.6"
|
1401
|
+
},
|
1283
1402
|
"typeArgs": [
|
1284
1403
|
{
|
1285
1404
|
"__schema": "TypeArraySchema",
|
@@ -1357,7 +1476,8 @@
|
|
1357
1476
|
"line": 30,
|
1358
1477
|
"character": 22
|
1359
1478
|
},
|
1360
|
-
"name": "ExpressConfig"
|
1479
|
+
"name": "ExpressConfig",
|
1480
|
+
"internalFilePath": "express.main.runtime.ts"
|
1361
1481
|
},
|
1362
1482
|
"isOptional": false,
|
1363
1483
|
"isSpread": false
|
@@ -1397,7 +1517,11 @@
|
|
1397
1517
|
"line": 40,
|
1398
1518
|
"character": 22
|
1399
1519
|
},
|
1400
|
-
"name": "Logger"
|
1520
|
+
"name": "Logger",
|
1521
|
+
"componentId": {
|
1522
|
+
"scope": "teambit.harmony",
|
1523
|
+
"name": "logger"
|
1524
|
+
}
|
1401
1525
|
},
|
1402
1526
|
"isOptional": false,
|
1403
1527
|
"isSpread": false
|
@@ -1417,7 +1541,8 @@
|
|
1417
1541
|
"line": 42,
|
1418
1542
|
"character": 30
|
1419
1543
|
},
|
1420
|
-
"name": "MiddlewareSlot"
|
1544
|
+
"name": "MiddlewareSlot",
|
1545
|
+
"internalFilePath": "express.main.runtime.ts"
|
1421
1546
|
},
|
1422
1547
|
"isOptional": false,
|
1423
1548
|
"isSpread": false
|
@@ -1491,7 +1616,8 @@
|
|
1491
1616
|
"line": 48,
|
1492
1617
|
"character": 40
|
1493
1618
|
},
|
1494
|
-
"name": "Server"
|
1619
|
+
"name": "Server",
|
1620
|
+
"packageName": "http"
|
1495
1621
|
}
|
1496
1622
|
]
|
1497
1623
|
},
|
@@ -1644,7 +1770,8 @@
|
|
1644
1770
|
"line": 85,
|
1645
1771
|
"character": 26
|
1646
1772
|
},
|
1647
|
-
"name": "Express"
|
1773
|
+
"name": "Express",
|
1774
|
+
"packageName": "express"
|
1648
1775
|
},
|
1649
1776
|
"isOptional": true,
|
1650
1777
|
"isSpread": false
|
@@ -1799,7 +1926,11 @@
|
|
1799
1926
|
"line": 165,
|
1800
1927
|
"character": 23
|
1801
1928
|
},
|
1802
|
-
"name": "LoggerMain"
|
1929
|
+
"name": "LoggerMain",
|
1930
|
+
"componentId": {
|
1931
|
+
"scope": "teambit.harmony",
|
1932
|
+
"name": "logger"
|
1933
|
+
}
|
1803
1934
|
}
|
1804
1935
|
]
|
1805
1936
|
},
|
@@ -1821,7 +1952,8 @@
|
|
1821
1952
|
"line": 166,
|
1822
1953
|
"character": 13
|
1823
1954
|
},
|
1824
|
-
"name": "ExpressConfig"
|
1955
|
+
"name": "ExpressConfig",
|
1956
|
+
"internalFilePath": "express.main.runtime.ts"
|
1825
1957
|
},
|
1826
1958
|
"isOptional": false,
|
1827
1959
|
"isSpread": false
|
@@ -1858,7 +1990,8 @@
|
|
1858
1990
|
"line": 167,
|
1859
1991
|
"character": 46
|
1860
1992
|
},
|
1861
|
-
"name": "MiddlewareSlot"
|
1993
|
+
"name": "MiddlewareSlot",
|
1994
|
+
"internalFilePath": "express.main.runtime.ts"
|
1862
1995
|
}
|
1863
1996
|
]
|
1864
1997
|
},
|
@@ -1939,7 +2072,7 @@
|
|
1939
2072
|
"componentId": {
|
1940
2073
|
"scope": "teambit.harmony",
|
1941
2074
|
"name": "express",
|
1942
|
-
"version": "0.0.
|
2075
|
+
"version": "0.0.962"
|
1943
2076
|
},
|
1944
2077
|
"taggedModuleExports": []
|
1945
2078
|
}
|