@forge/tunnel 0.0.0-experimental-9fff5da → 0.0.0-experimental-7c72fec

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 CHANGED
@@ -1,14 +1,592 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-9fff5da
3
+ ## 0.0.0-experimental-7c72fec
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [b7fc722]
7
+ - @forge/cli-shared@0.0.0-experimental-7c72fec
8
+ - @forge/csp@0.0.0-experimental-7c72fec
9
+ - @forge/runtime@0.0.0-experimental-7c72fec
10
+ - @forge/bundler@0.0.0-experimental-7c72fec
11
+
12
+ ## 1.5.1-next.0
13
+
14
+ ### Patch Changes
15
+
16
+ - @forge/cli-shared@2.2.1-next.0
17
+ - @forge/bundler@1.1.1-next.0
18
+
19
+ ## 1.5.0
20
+
21
+ ### Minor Changes
22
+
23
+ - 1c196ff: Add support for external fetch client to reference remote
24
+ - 6abbbd0: Upgrade forge runtime to use node 14
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [1dba082]
29
+ - Updated dependencies [1c196ff]
30
+ - Updated dependencies [1dba082]
31
+ - Updated dependencies [8571c05]
32
+ - Updated dependencies [8c1de69]
33
+ - Updated dependencies [1dba082]
34
+ - Updated dependencies [1dba082]
35
+ - Updated dependencies [6abbbd0]
36
+ - Updated dependencies [1dba082]
37
+ - Updated dependencies [b63af27]
38
+ - @forge/bundler@1.1.0
39
+ - @forge/runtime@1.12.0
40
+ - @forge/csp@1.9.0
41
+ - @forge/cli-shared@2.2.0
42
+
43
+ ## 1.5.0-next.27
44
+
45
+ ### Patch Changes
46
+
47
+ - @forge/cli-shared@2.2.0-next.22
48
+ - @forge/bundler@1.1.0-next.25
49
+
50
+ ## 1.5.0-next.26
51
+
52
+ ### Patch Changes
53
+
54
+ - @forge/cli-shared@2.2.0-next.21
55
+ - @forge/bundler@1.1.0-next.24
56
+
57
+ ## 1.5.0-next.25
58
+
59
+ ### Patch Changes
60
+
61
+ - @forge/cli-shared@2.2.0-next.20
62
+ - @forge/bundler@1.1.0-next.23
63
+
64
+ ## 1.5.0-next.24
65
+
66
+ ### Minor Changes
67
+
68
+ - 1c196ff: Add support for external fetch client to reference remote
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [1c196ff]
73
+ - @forge/csp@1.9.0-next.1
74
+ - @forge/runtime@1.12.0-next.7
75
+ - @forge/cli-shared@2.2.0-next.19
76
+ - @forge/bundler@1.1.0-next.22
77
+
78
+ ## 1.5.0-next.23
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [8c1de69]
83
+ - @forge/runtime@1.12.0-next.6
84
+
85
+ ## 1.5.0-next.22
86
+
87
+ ### Minor Changes
88
+
89
+ - 6abbbd0: Upgrade forge runtime to use node 14
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [6abbbd0]
94
+ - @forge/runtime@1.12.0-next.5
95
+ - @forge/cli-shared@2.2.0-next.18
96
+ - @forge/bundler@1.1.0-next.21
97
+
98
+ ## 1.4.9-next.21
99
+
100
+ ### Patch Changes
101
+
102
+ - @forge/cli-shared@2.2.0-next.17
103
+ - @forge/bundler@1.1.0-next.20
104
+
105
+ ## 1.4.9-next.20
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [b63af27]
110
+ - @forge/cli-shared@2.2.0-next.16
111
+ - @forge/bundler@1.1.0-next.19
112
+
113
+ ## 1.4.9-next.19
114
+
115
+ ### Patch Changes
116
+
117
+ - @forge/cli-shared@2.1.6-next.15
118
+ - @forge/bundler@1.1.0-next.18
119
+
120
+ ## 1.4.9-next.18
121
+
122
+ ### Patch Changes
123
+
124
+ - @forge/cli-shared@2.1.6-next.14
125
+ - @forge/bundler@1.1.0-next.17
126
+
127
+ ## 1.4.9-next.17
128
+
129
+ ### Patch Changes
130
+
131
+ - @forge/cli-shared@2.1.6-next.13
132
+ - @forge/bundler@1.1.0-next.16
133
+
134
+ ## 1.4.9-next.16
135
+
136
+ ### Patch Changes
137
+
138
+ - @forge/bundler@1.1.0-next.15
139
+ - @forge/cli-shared@2.1.6-next.12
140
+
141
+ ## 1.4.9-next.15
142
+
143
+ ### Patch Changes
144
+
145
+ - @forge/cli-shared@2.1.6-next.11
146
+ - @forge/bundler@1.1.0-next.14
147
+
148
+ ## 1.4.9-next.14
149
+
150
+ ### Patch Changes
151
+
152
+ - @forge/cli-shared@2.1.6-next.10
153
+ - @forge/bundler@1.1.0-next.13
154
+
155
+ ## 1.4.9-next.13
156
+
157
+ ### Patch Changes
158
+
159
+ - @forge/cli-shared@2.1.6-next.9
160
+ - @forge/bundler@1.1.0-next.12
161
+
162
+ ## 1.4.9-next.12
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [8571c05]
167
+ - @forge/runtime@1.12.0-next.4
168
+ - @forge/bundler@1.1.0-next.11
169
+ - @forge/cli-shared@2.1.6-next.8
170
+
171
+ ## 1.4.9-next.11
172
+
173
+ ### Patch Changes
174
+
175
+ - @forge/cli-shared@2.1.6-next.7
176
+ - @forge/bundler@1.1.0-next.10
177
+
178
+ ## 1.4.9-next.10
179
+
180
+ ### Patch Changes
181
+
182
+ - @forge/cli-shared@2.1.6-next.6
183
+ - @forge/bundler@1.1.0-next.9
184
+
185
+ ## 1.4.9-next.9
186
+
187
+ ### Patch Changes
188
+
189
+ - @forge/bundler@1.1.0-next.8
190
+
191
+ ## 1.4.9-next.8
192
+
193
+ ### Patch Changes
194
+
195
+ - @forge/cli-shared@2.1.6-next.5
196
+ - @forge/bundler@1.1.0-next.7
197
+
198
+ ## 1.4.9-next.7
199
+
200
+ ### Patch Changes
201
+
202
+ - @forge/cli-shared@2.1.6-next.4
203
+ - @forge/bundler@1.1.0-next.6
204
+
205
+ ## 1.4.9-next.6
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [04e4152]
210
+ - @forge/csp@1.8.1-next.0
211
+ - @forge/runtime@1.12.0-next.3
212
+ - @forge/bundler@1.1.0-next.5
213
+
214
+ ## 1.4.9-next.5
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [348c663]
219
+ - @forge/bundler@1.1.0-next.4
220
+ - @forge/runtime@1.12.0-next.2
221
+
222
+ ## 1.4.9-next.4
223
+
224
+ ### Patch Changes
225
+
226
+ - @forge/cli-shared@2.1.6-next.3
227
+ - @forge/bundler@1.0.21-next.3
228
+
229
+ ## 1.4.9-next.3
230
+
231
+ ### Patch Changes
232
+
233
+ - Updated dependencies [1565b05]
234
+ - @forge/runtime@1.11.1-next.1
235
+ - @forge/cli-shared@2.1.6-next.2
236
+ - @forge/bundler@1.0.21-next.2
237
+
238
+ ## 1.4.9-next.2
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [7f249d0]
243
+ - @forge/runtime@1.11.1-next.0
244
+
245
+ ## 1.4.9-next.1
246
+
247
+ ### Patch Changes
248
+
249
+ - @forge/cli-shared@2.1.6-next.1
250
+ - @forge/bundler@1.0.21-next.1
251
+
252
+ ## 1.4.9-next.0
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [2338be5]
257
+ - @forge/cli-shared@2.1.6-next.0
258
+ - @forge/bundler@1.0.21-next.0
259
+
260
+ ## 1.4.8
261
+
262
+ ### Patch Changes
263
+
264
+ - Updated dependencies [091fe88]
265
+ - @forge/runtime@1.11.0
266
+ - @forge/bundler@1.0.20
267
+ - @forge/cli-shared@2.1.5
268
+
269
+ ## 1.4.8-next.13
270
+
271
+ ### Patch Changes
272
+
273
+ - @forge/cli-shared@2.1.5-next.10
274
+ - @forge/bundler@1.0.20-next.12
275
+
276
+ ## 1.4.8-next.12
277
+
278
+ ### Patch Changes
279
+
280
+ - @forge/cli-shared@2.1.5-next.9
281
+ - @forge/bundler@1.0.20-next.11
282
+
283
+ ## 1.4.8-next.11
284
+
285
+ ### Patch Changes
286
+
287
+ - @forge/cli-shared@2.1.5-next.8
288
+ - @forge/bundler@1.0.20-next.10
289
+
290
+ ## 1.4.8-next.10
291
+
292
+ ### Patch Changes
293
+
294
+ - @forge/cli-shared@2.1.5-next.7
295
+ - @forge/bundler@1.0.20-next.9
296
+
297
+ ## 1.4.8-next.9
298
+
299
+ ### Patch Changes
300
+
301
+ - @forge/cli-shared@2.1.5-next.6
302
+ - @forge/bundler@1.0.20-next.8
303
+
304
+ ## 1.4.8-next.8
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [091fe88]
309
+ - @forge/runtime@1.11.0-next.0
310
+
311
+ ## 1.4.8-next.7
312
+
313
+ ### Patch Changes
314
+
315
+ - @forge/bundler@1.0.20-next.7
316
+
317
+ ## 1.4.8-next.6
318
+
319
+ ### Patch Changes
320
+
321
+ - @forge/bundler@1.0.20-next.6
322
+ - @forge/cli-shared@2.1.5-next.5
323
+
324
+ ## 1.4.8-next.5
325
+
326
+ ### Patch Changes
327
+
328
+ - @forge/cli-shared@2.1.5-next.4
329
+ - @forge/bundler@1.0.20-next.5
330
+
331
+ ## 1.4.8-next.4
332
+
333
+ ### Patch Changes
334
+
335
+ - @forge/cli-shared@2.1.5-next.3
336
+ - @forge/bundler@1.0.20-next.4
337
+
338
+ ## 1.4.8-next.3
339
+
340
+ ### Patch Changes
341
+
342
+ - @forge/cli-shared@2.1.5-next.2
343
+ - @forge/bundler@1.0.20-next.3
344
+
345
+ ## 1.4.8-next.2
346
+
347
+ ### Patch Changes
348
+
349
+ - @forge/cli-shared@2.1.5-next.1
350
+ - @forge/bundler@1.0.20-next.2
351
+
352
+ ## 1.4.8-next.1
353
+
354
+ ### Patch Changes
355
+
356
+ - @forge/bundler@1.0.20-next.1
357
+
358
+ ## 1.4.8-next.0
359
+
360
+ ### Patch Changes
361
+
362
+ - @forge/cli-shared@2.1.5-next.0
363
+ - @forge/bundler@1.0.20-next.0
364
+
365
+ ## 1.4.7
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [53e3fda]
370
+ - @forge/runtime@1.10.0
371
+ - @forge/bundler@1.0.19
372
+ - @forge/cli-shared@2.1.4
373
+
374
+ ## 1.4.7-next.9
375
+
376
+ ### Patch Changes
377
+
378
+ - @forge/cli-shared@2.1.4-next.9
379
+ - @forge/bundler@1.0.19-next.9
380
+
381
+ ## 1.4.7-next.8
382
+
383
+ ### Patch Changes
384
+
385
+ - @forge/cli-shared@2.1.4-next.8
386
+ - @forge/bundler@1.0.19-next.8
387
+
388
+ ## 1.4.7-next.7
389
+
390
+ ### Patch Changes
391
+
392
+ - Updated dependencies [53e3fda]
393
+ - @forge/runtime@1.10.0-next.1
394
+ - @forge/cli-shared@2.1.4-next.7
395
+ - @forge/bundler@1.0.19-next.7
396
+
397
+ ## 1.4.7-next.6
398
+
399
+ ### Patch Changes
400
+
401
+ - @forge/cli-shared@2.1.4-next.6
402
+ - @forge/bundler@1.0.19-next.6
403
+
404
+ ## 1.4.7-next.5
405
+
406
+ ### Patch Changes
407
+
408
+ - @forge/bundler@1.0.19-next.5
409
+ - @forge/cli-shared@2.1.4-next.5
410
+
411
+ ## 1.4.7-next.4
412
+
413
+ ### Patch Changes
414
+
415
+ - @forge/cli-shared@2.1.4-next.4
416
+ - @forge/bundler@1.0.19-next.4
417
+
418
+ ## 1.4.7-next.3
419
+
420
+ ### Patch Changes
421
+
422
+ - @forge/bundler@1.0.19-next.3
423
+ - @forge/cli-shared@2.1.4-next.3
424
+
425
+ ## 1.4.7-next.2
426
+
427
+ ### Patch Changes
428
+
429
+ - @forge/cli-shared@2.1.4-next.2
430
+ - @forge/bundler@1.0.19-next.2
431
+
432
+ ## 1.4.7-next.1
433
+
434
+ ### Patch Changes
435
+
436
+ - @forge/cli-shared@2.1.4-next.1
437
+ - @forge/runtime@1.9.1-next.0
438
+ - @forge/bundler@1.0.19-next.1
439
+
440
+ ## 1.4.7-next.0
441
+
442
+ ### Patch Changes
443
+
444
+ - @forge/cli-shared@2.1.4-next.0
445
+ - @forge/bundler@1.0.19-next.0
446
+
447
+ ## 1.4.6
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies [a26c26b]
452
+ - Updated dependencies [962582f]
453
+ - @forge/runtime@1.9.0
454
+ - @forge/cli-shared@2.1.3
455
+ - @forge/bundler@1.0.18
456
+
457
+ ## 1.4.6-next.4
458
+
459
+ ### Patch Changes
460
+
461
+ - @forge/cli-shared@2.1.3-next.4
462
+ - @forge/bundler@1.0.18-next.4
463
+
464
+ ## 1.4.6-next.3
465
+
466
+ ### Patch Changes
467
+
468
+ - @forge/cli-shared@2.1.3-next.3
469
+ - @forge/bundler@1.0.18-next.3
470
+
471
+ ## 1.4.6-next.2
472
+
473
+ ### Patch Changes
474
+
475
+ - Updated dependencies [a26c26b]
476
+ - @forge/runtime@1.9.0-next.0
477
+ - @forge/cli-shared@2.1.3-next.2
478
+ - @forge/bundler@1.0.18-next.2
479
+
480
+ ## 1.4.6-next.1
481
+
482
+ ### Patch Changes
483
+
484
+ - @forge/cli-shared@2.1.3-next.1
485
+ - @forge/bundler@1.0.18-next.1
486
+
487
+ ## 1.4.6-next.0
488
+
489
+ ### Patch Changes
490
+
491
+ - Updated dependencies [962582f]
492
+ - @forge/cli-shared@2.1.3-next.0
493
+ - @forge/bundler@1.0.18-next.0
494
+
495
+ ## 1.4.5
496
+
497
+ ### Patch Changes
498
+
499
+ - Updated dependencies [d5f3fac]
500
+ - Updated dependencies [be085c5]
501
+ - Updated dependencies [3f0df50]
8
502
  - Updated dependencies [b050beb]
9
- - @forge/runtime@0.0.0-experimental-9fff5da
10
- - @forge/cli-shared@0.0.0-experimental-9fff5da
11
- - @forge/bundler@0.0.0-experimental-9fff5da
503
+ - Updated dependencies [b2d562d]
504
+ - Updated dependencies [f002362]
505
+ - Updated dependencies [dcc7fc6]
506
+ - Updated dependencies [e427fa9]
507
+ - @forge/csp@1.8.0
508
+ - @forge/runtime@1.8.0
509
+ - @forge/bundler@1.0.17
510
+ - @forge/cli-shared@2.1.2
511
+
512
+ ## 1.4.5-next.10
513
+
514
+ ### Patch Changes
515
+
516
+ - Updated dependencies [f002362]
517
+ - @forge/csp@1.8.0-next.1
518
+ - @forge/bundler@1.0.17-next.9
519
+
520
+ ## 1.4.5-next.9
521
+
522
+ ### Patch Changes
523
+
524
+ - @forge/cli-shared@2.1.2-next.7
525
+ - @forge/bundler@1.0.17-next.8
526
+
527
+ ## 1.4.5-next.8
528
+
529
+ ### Patch Changes
530
+
531
+ - Updated dependencies [dcc7fc6]
532
+ - @forge/bundler@1.0.17-next.7
533
+ - @forge/cli-shared@2.1.2-next.6
534
+
535
+ ## 1.4.5-next.7
536
+
537
+ ### Patch Changes
538
+
539
+ - Updated dependencies [e427fa9]
540
+ - @forge/bundler@1.0.17-next.6
541
+
542
+ ## 1.4.5-next.6
543
+
544
+ ### Patch Changes
545
+
546
+ - @forge/cli-shared@2.1.2-next.5
547
+ - @forge/bundler@1.0.17-next.5
548
+
549
+ ## 1.4.5-next.5
550
+
551
+ ### Patch Changes
552
+
553
+ - @forge/cli-shared@2.1.2-next.4
554
+ - @forge/bundler@1.0.17-next.4
555
+
556
+ ## 1.4.5-next.4
557
+
558
+ ### Patch Changes
559
+
560
+ - Updated dependencies [be085c5]
561
+ - @forge/runtime@1.8.0-next.4
562
+ - @forge/cli-shared@2.1.2-next.3
563
+ - @forge/bundler@1.0.17-next.3
564
+
565
+ ## 1.4.5-next.3
566
+
567
+ ### Patch Changes
568
+
569
+ - Updated dependencies [3f0df50]
570
+ - @forge/runtime@1.8.0-next.3
571
+
572
+ ## 1.4.5-next.2
573
+
574
+ ### Patch Changes
575
+
576
+ - Updated dependencies [b2d562d]
577
+ - @forge/runtime@1.8.0-next.2
578
+ - @forge/cli-shared@2.1.2-next.2
579
+ - @forge/bundler@1.0.17-next.2
580
+
581
+ ## 1.4.5-next.1
582
+
583
+ ### Patch Changes
584
+
585
+ - Updated dependencies [d5f3fac]
586
+ - @forge/csp@1.8.0-next.0
587
+ - @forge/runtime@1.8.0-next.1
588
+ - @forge/cli-shared@2.1.2-next.1
589
+ - @forge/bundler@1.0.17-next.1
12
590
 
13
591
  ## 1.4.5-next.0
14
592
 
@@ -1 +1 @@
1
- {"version":3,"file":"start-tunnel-command.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/command/start-tunnel-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAI9D,OAAO,EAAE,iBAAiB,EAA2C,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAsC,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,eAAe,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAED,qBAAa,kBAAkB;IAK3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ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AC,CAAC;IAC9B,eAAe,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAED,qBAAa,kBAAkB;IAK3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAX7B,OAAO,CAAC,aAAa,CAA4C;IACjE,OAAO,CAAC,iBAAiB,CAAgC;gBAGtC,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,qBAAqB,EACnC,YAAY,EAAE,qBAAqB,EACnC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU;IAGzC,OAAO,CAAC,YAAY,CAUlB;IAEF,OAAO,CAAC,qBAAqB,CAS3B;IAEF,OAAO,CAAC,0BAA0B,CAiChC;IAEW,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAwC9E"}
@@ -44,7 +44,7 @@ class StartTunnelCommand {
44
44
  var _a, _b;
45
45
  const resourcePortMap = JSON.parse((_a = process.env.RESOURCE_PORT_MAP) !== null && _a !== void 0 ? _a : '{}');
46
46
  const resourceDetails = await this.configFile.getResources();
47
- const { permissions = {} } = await this.configFile.readConfig();
47
+ const { permissions = {}, remotes = [] } = await this.configFile.readConfig();
48
48
  const cspReporterPort = parseInt((_b = process.env.CSP_REPORTER_PORT) !== null && _b !== void 0 ? _b : '4000', 10);
49
49
  if (resourceDetails.length === 0)
50
50
  return [];
@@ -53,7 +53,8 @@ class StartTunnelCommand {
53
53
  return await Promise.all(resourceDetails.map(async (rd) => {
54
54
  const { key } = rd;
55
55
  const port = resourcePortMap[key];
56
- this.tunnelServers[key] = new servers_1.ResourceTunnelServer(Object.assign(Object.assign({}, rd), { port, logger: this.logger, cspReporterServerPort: cspReporterPort, permissions }));
56
+ this.tunnelServers[key] = new servers_1.ResourceTunnelServer(Object.assign(Object.assign({}, rd), { port, logger: this.logger, cspReporterServerPort: cspReporterPort, permissions,
57
+ remotes }));
57
58
  await this.tunnelServers[key].start();
58
59
  return {
59
60
  resourceKey: key,
@@ -1,11 +1,12 @@
1
1
  import { Resource, Logger } from '@forge/cli-shared';
2
2
  import { Express } from 'express';
3
- import type { Permissions } from '@forge/manifest';
3
+ import type { Permissions, Remotes } from '@forge/manifest';
4
4
  export interface ResourceTunnelServerArgs extends Resource {
5
5
  port: number;
6
6
  logger: Logger;
7
7
  permissions: Permissions;
8
8
  cspReporterServerPort: number;
9
+ remotes: Remotes;
9
10
  }
10
11
  export declare class ResourceTunnelServer {
11
12
  private readonly port;
@@ -17,8 +18,25 @@ export declare class ResourceTunnelServer {
17
18
  private readonly proxy;
18
19
  private socket;
19
20
  private cspReporterServerPort;
20
- constructor({ port, key, path, tunnel, permissions, logger, cspReporterServerPort }: ResourceTunnelServerArgs);
21
+ constructor({ port, key, path, tunnel, permissions, remotes, logger, cspReporterServerPort }: ResourceTunnelServerArgs);
21
22
  getApp(): Express;
23
+ static transformPermissionsWithRemotes(permissions: Permissions, remotes: Remotes): {
24
+ external: {
25
+ fetch: {
26
+ client: string[] | undefined;
27
+ backend?: import("@forge/manifest/out/schema/manifest").Backend | undefined;
28
+ };
29
+ fonts?: import("@forge/manifest/out/schema/manifest").Fonts | undefined;
30
+ frames?: import("@forge/manifest/out/schema/manifest").Frames | undefined;
31
+ navigation?: import("@forge/manifest/out/schema/manifest").Navigation | undefined;
32
+ images?: import("@forge/manifest/out/schema/manifest").Images | undefined;
33
+ media?: import("@forge/manifest/out/schema/manifest").Media | undefined;
34
+ scripts?: import("@forge/manifest/out/schema/manifest").Scripts1 | undefined;
35
+ styles?: import("@forge/manifest/out/schema/manifest").Styles1 | undefined;
36
+ };
37
+ scopes?: import("@forge/manifest/out/schema/manifest").Scopes | undefined;
38
+ content?: import("@forge/manifest/out/schema/manifest").Content1 | undefined;
39
+ };
22
40
  start(): Promise<void>;
23
41
  stop(): Promise<void>;
24
42
  private logFileServed;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-tunnel-server.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/servers/resource-tunnel-server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAMR,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAgB,EAAE,OAAO,EAAqB,MAAM,SAAS,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAYD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;IACnD,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,qBAAqB,CAAS;gBAE1B,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,wBAAwB;IA0C7G,MAAM,IAAI,OAAO;IAI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ACP,MAAM,EACN,qBAAqB,EACtB,EAAE,wBAAwB;IA0C3B,MAAM,IAAI,OAAO;IAIjB,MAAM,CAAC,+BAA+B,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO;;;;;;;;;;;;;;;;;IAa3E,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAStB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,gCAAgC;IAoBxC,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,YAAY,CAOJ;IAEhB,OAAO,CAAC,wBAAwB,CAG3B;IAEL,OAAO,CAAC,yBAAyB,CAG5B;IAEL,OAAO,CAAC,6BAA6B,CAwBhC;CACN"}
@@ -13,7 +13,7 @@ var ConnectionErrorCode;
13
13
  })(ConnectionErrorCode || (ConnectionErrorCode = {}));
14
14
  const HOST = process.env.FORGE_DEV_TUNNEL ? 'localhost' : 'host.docker.internal';
15
15
  class ResourceTunnelServer {
16
- constructor({ port, key, path, tunnel, permissions, logger, cspReporterServerPort }) {
16
+ constructor({ port, key, path, tunnel, permissions, remotes, logger, cspReporterServerPort }) {
17
17
  this.getCspHeader = (existingCsp) => new csp_1.CSPInjectionService()
18
18
  .getInjectableCSP(existingCsp, cli_shared_1.getEnvironment(cli_shared_1.CDNEnvironments), `http://localhost:${this.cspReporterServerPort}`)
19
19
  .join('; ');
@@ -23,14 +23,14 @@ class ResourceTunnelServer {
23
23
  this.injectIframeResizerScript = (htmlContent) => new cli_shared_1.IframeResizerScriptService().injectIframeResizer(htmlContent, () => {
24
24
  throw new Error('Malformed HTML document');
25
25
  });
26
- this.getCustomUIResourceMiddleware = (permissions) => express_mung_1.write((body, _, __, res) => {
26
+ this.getCustomUIResourceMiddleware = (permissions, remotes) => express_mung_1.write((body, _, __, res) => {
27
27
  const contentType = res.getHeaders()['content-type'];
28
28
  if (!contentType.startsWith('text/html'))
29
29
  return body;
30
30
  res.removeHeader('content-length');
31
31
  const htmlContentWithIframeResizerScript = this.injectIframeResizerScript(body);
32
32
  const htmlContentWithBridgeScript = this.injectGlobalBridgeScript(htmlContentWithIframeResizerScript);
33
- const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, permissions);
33
+ const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
34
34
  res.setHeader('Content-Security-Policy', this.getCspHeader(cspDetails));
35
35
  return htmlContentWithBridgeScript;
36
36
  });
@@ -40,7 +40,7 @@ class ResourceTunnelServer {
40
40
  this.logger = logger;
41
41
  this.cspReporterServerPort = cspReporterServerPort;
42
42
  this.app = express_1.default();
43
- this.app.use(this.getCustomUIResourceMiddleware(permissions));
43
+ this.app.use(this.getCustomUIResourceMiddleware(permissions, remotes));
44
44
  if (tunnel) {
45
45
  const { port: tunnelPort } = tunnel;
46
46
  this.proxy = http_proxy_middleware_1.createProxyMiddleware({
@@ -76,6 +76,16 @@ class ResourceTunnelServer {
76
76
  getApp() {
77
77
  return this.app;
78
78
  }
79
+ static transformPermissionsWithRemotes(permissions, remotes) {
80
+ var _a, _b, _c, _d, _e;
81
+ const client = (_d = (_c = (_b = (_a = permissions.external) === null || _a === void 0 ? void 0 : _a.fetch) === null || _b === void 0 ? void 0 : _b.client) === null || _c === void 0 ? void 0 : _c.map((item) => {
82
+ var _a;
83
+ if (typeof item === 'string')
84
+ return item;
85
+ return (_a = remotes === null || remotes === void 0 ? void 0 : remotes.find((remote) => remote.key === item.remote)) === null || _a === void 0 ? void 0 : _a.baseUrl;
86
+ }).filter((item) => typeof item === 'string')) !== null && _d !== void 0 ? _d : undefined;
87
+ return Object.assign(Object.assign({}, permissions), { external: Object.assign(Object.assign({}, permissions.external), { fetch: Object.assign(Object.assign({}, (_e = permissions.external) === null || _e === void 0 ? void 0 : _e.fetch), { client }) }) });
88
+ }
79
89
  async start() {
80
90
  return new Promise((resolve) => {
81
91
  this.server = this.app.listen(this.port, resolve);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "0.0.0-experimental-9fff5da",
3
+ "version": "0.0.0-experimental-7c72fec",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -16,11 +16,11 @@
16
16
  "postbuild": "chmod +x out/*.js"
17
17
  },
18
18
  "dependencies": {
19
- "@forge/bundler": "0.0.0-experimental-9fff5da",
20
- "@forge/cli-shared": "0.0.0-experimental-9fff5da",
21
- "@forge/csp": "^1.7.1",
19
+ "@forge/bundler": "0.0.0-experimental-7c72fec",
20
+ "@forge/cli-shared": "0.0.0-experimental-7c72fec",
21
+ "@forge/csp": "^0.0.0-experimental-7c72fec",
22
22
  "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "0.0.0-experimental-9fff5da",
23
+ "@forge/runtime": "0.0.0-experimental-7c72fec",
24
24
  "express": "^4.17.1",
25
25
  "express-mung": "^0.5.1",
26
26
  "http-proxy-middleware": "^1.0.6",
@@ -31,7 +31,7 @@
31
31
  "uuid": "^3.4.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@forge/manifest": "^0.0.0-experimental-9fff5da",
34
+ "@forge/manifest": "^0.0.0-experimental-7c72fec",
35
35
  "@types/express": "^4.17.2",
36
36
  "@types/express-mung": "^0.5.2",
37
37
  "@types/jest": "^26.0.0",