@forge/tunnel 0.0.0-experimental-c155926 → 0.0.0-experimental-52c2a24

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,18 +1,228 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-c155926
3
+ ## 0.0.0-experimental-52c2a24
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1eca527f]
8
+ - @forge/cli-shared@0.0.0-experimental-52c2a24
9
+ - @forge/bundler@0.0.0-experimental-52c2a24
10
+
11
+ ## 3.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 0d52cdb: Bumping dependencies via Renovate:
16
+
17
+ - @types/uuid
18
+
19
+ - bd43f8f: feature flagged experimental changes to scope validation
20
+ - ff5d0f8: Bumping dependencies via Renovate:
21
+
22
+ - @types/supertest
23
+
24
+ - Updated dependencies [20c8fc1]
25
+ - Updated dependencies [272a784]
26
+ - Updated dependencies [af4c149]
27
+ - Updated dependencies [ba6d381]
28
+ - Updated dependencies [66da5d9]
29
+ - Updated dependencies [decbf80]
30
+ - Updated dependencies [986ad5d]
31
+ - Updated dependencies [907ce6c]
32
+ - Updated dependencies [203f465]
33
+ - Updated dependencies [18d686e4]
34
+ - Updated dependencies [bd43f8f]
35
+ - Updated dependencies [a90c1412]
36
+ - Updated dependencies [1508104]
37
+ - @forge/runtime@4.2.0
38
+ - @forge/bundler@4.5.0
39
+ - @forge/cli-shared@3.6.1
40
+ - @forge/csp@2.1.1
41
+
42
+ ## 3.1.1-next.13
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [66da5d9]
47
+ - Updated dependencies [decbf80]
48
+ - @forge/cli-shared@3.6.1-next.6
49
+ - @forge/bundler@4.5.0-next.12
50
+
51
+ ## 3.1.1-next.12
52
+
53
+ ### Patch Changes
54
+
55
+ - bd43f8f: feature flagged experimental changes to scope validation
56
+ - Updated dependencies [bd43f8f]
57
+ - @forge/cli-shared@3.6.1-next.5
58
+ - @forge/bundler@4.5.0-next.11
59
+
60
+ ## 3.1.1-next.11
61
+
62
+ ### Patch Changes
63
+
64
+ - ff5d0f8: Bumping dependencies via Renovate:
65
+
66
+ - @types/supertest
67
+
68
+ - Updated dependencies [ba6d381]
69
+ - Updated dependencies [203f465]
70
+ - @forge/cli-shared@3.6.1-next.4
71
+ - @forge/bundler@4.5.0-next.10
72
+
73
+ ## 3.1.1-next.10
74
+
75
+ ### Patch Changes
76
+
77
+ - 0d52cdb: Bumping dependencies via Renovate:
78
+
79
+ - @types/uuid
80
+ - @forge/bundler@4.5.0-next.9
81
+
82
+ ## 3.1.1-next.9
83
+
84
+ ### Patch Changes
85
+
86
+ - @forge/bundler@4.5.0-next.8
87
+ - @forge/cli-shared@3.6.1-next.3
88
+
89
+ ## 3.1.1-next.8
90
+
91
+ ### Patch Changes
92
+
93
+ - @forge/bundler@4.5.0-next.7
94
+
95
+ ## 3.1.1-next.7
96
+
97
+ ### Patch Changes
98
+
99
+ - @forge/bundler@4.5.0-next.6
100
+
101
+ ## 3.1.1-next.6
102
+
103
+ ### Patch Changes
104
+
105
+ - @forge/bundler@4.5.0-next.5
106
+
107
+ ## 3.1.1-next.5
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [1508104]
112
+ - @forge/cli-shared@3.6.1-next.2
113
+ - @forge/bundler@4.5.0-next.4
114
+
115
+ ## 3.1.1-next.4
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies [af4c149]
120
+ - @forge/bundler@4.5.0-next.3
121
+ - @forge/cli-shared@3.6.1-next.1
122
+ - @forge/runtime@4.2.0-next.2
123
+
124
+ ## 3.1.1-next.3
125
+
126
+ ### Patch Changes
127
+
128
+ - @forge/bundler@4.5.0-next.2
129
+
130
+ ## 3.1.1-next.2
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [907ce6c]
135
+ - @forge/csp@2.1.1-next.0
136
+
137
+ ## 3.1.1-next.1
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [20c8fc14]
142
+ - Updated dependencies [272a7845]
143
+ - Updated dependencies [986ad5d5]
144
+ - @forge/runtime@4.2.0-next.1
145
+ - @forge/bundler@4.5.0-next.1
146
+ - @forge/cli-shared@3.6.1-next.0
147
+
148
+ ## 3.1.1-next.0
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [18d686e4]
153
+ - Updated dependencies [a90c1412]
154
+ - @forge/runtime@4.2.0-next.0
155
+ - @forge/bundler@4.5.0-next.0
156
+
157
+ ## 3.1.0
4
158
 
5
159
  ### Minor Changes
6
160
 
161
+ - e25c75e: Update Node runtime response payload
7
162
  - d98339a: Non-Docker tunnel for Node runtime
8
163
 
9
164
  ### Patch Changes
10
165
 
11
166
  - c0ecd44: Fix Custom UI tunnelling on Node runtime
167
+ - Updated dependencies [8c60d16]
12
168
  - Updated dependencies [42c3ddf]
169
+ - Updated dependencies [e25c75e]
170
+ - Updated dependencies [ceb1141]
171
+ - Updated dependencies [d71279f]
172
+ - Updated dependencies [addbda1]
13
173
  - Updated dependencies [d98339a]
14
- - @forge/bundler@0.0.0-experimental-c155926
15
- - @forge/runtime@0.0.0-experimental-c155926
174
+ - @forge/cli-shared@3.6.0
175
+ - @forge/bundler@4.4.0
176
+ - @forge/runtime@4.1.0
177
+
178
+ ## 3.1.0-next.10
179
+
180
+ ### Patch Changes
181
+
182
+ - @forge/bundler@4.4.0-next.9
183
+
184
+ ## 3.1.0-next.9
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [d71279f]
189
+ - @forge/cli-shared@3.6.0-next.1
190
+ - @forge/bundler@4.4.0-next.8
191
+
192
+ ## 3.1.0-next.8
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [8c60d162]
197
+ - @forge/cli-shared@3.6.0-next.0
198
+ - @forge/bundler@4.4.0-next.7
199
+
200
+ ## 3.1.0-next.7
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [ceb1141]
205
+ - @forge/bundler@4.4.0-next.6
206
+ - @forge/runtime@4.1.0-next.2
207
+
208
+ ## 3.1.0-next.6
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies [addbda1]
213
+ - @forge/bundler@4.4.0-next.5
214
+
215
+ ## 3.1.0-next.5
216
+
217
+ ### Minor Changes
218
+
219
+ - e25c75e8: Update Node runtime response payload
220
+
221
+ ### Patch Changes
222
+
223
+ - Updated dependencies [e25c75e8]
224
+ - @forge/bundler@4.4.0-next.4
225
+ - @forge/runtime@4.1.0-next.1
16
226
 
17
227
  ## 3.1.0-next.4
18
228
 
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/servers/dev-server.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAY,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,aAAa,EAMd,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IACjC,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,eAAe,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,oBA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B,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACrE;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ/E;AAED,qBAAa,sBAAuB,YAAW,iBAAiB;IAO5D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAT/B,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,OAAO,CAAsB;gBAGlB,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,iBAAiB;IAQrC,KAAK,CAAC,IAAI,SAAI,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAe5F,IAAI;IAIJ,eAAe,CAAC,EAC3B,gBAAgB,EAChB,eAAe,EAChB,EAAE,UAAU,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAqD1D,MAAM,IAAI,OAAO,CAAC,WAAW;IAI7B,gBAAgB,EAAE,OAAO,CAAC,OAAO,CA2CtC;CACH"}
@@ -43,6 +43,9 @@ class LocalDevelopmentServer {
43
43
  request._meta = Object.assign(Object.assign({}, request._meta), { fetchAllowList: allowList });
44
44
  try {
45
45
  const invokeResults = await this.invocationService.invoke(request.handler, request);
46
+ if ((await this.featureFlags.isNodeRuntime()) && !invokeResults.success) {
47
+ return res.status(500).send(invokeResults.error);
48
+ }
46
49
  res.json(invokeResults);
47
50
  }
48
51
  catch (error) {
@@ -43,7 +43,7 @@ class LocalInvocationService {
43
43
  ctx: { requestId, traceId: requestId, timeout: interactors_1.INVOCATION_TIMEOUT }
44
44
  });
45
45
  const invocationLimits = (0, runtime_1.perInvocationLimitsTrackerFactory)(xenInvocationRequest);
46
- const { body, metrics } = await (0, runtime_1.invoke)({
46
+ const { body, metrics, success, error } = await (0, runtime_1.invoke)({
47
47
  sandbox,
48
48
  xenInvocationRequest,
49
49
  invocationLimits,
@@ -51,7 +51,7 @@ class LocalInvocationService {
51
51
  });
52
52
  const reportMetrics = xenInvocationRequest.isFeatureFlagEnabled(runtime_1.XEN_RUNTIME_SHOULD_REPORT_METRICS);
53
53
  LocalInvocationService.printMetrics(reportMetrics, metrics, this.logger);
54
- return reportMetrics ? { body, metrics } : body;
54
+ return reportMetrics ? { body, metrics, success, error } : body;
55
55
  }
56
56
  }
57
57
  exports.LocalInvocationService = LocalInvocationService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "0.0.0-experimental-c155926",
3
+ "version": "0.0.0-experimental-52c2a24",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -11,10 +11,10 @@
11
11
  "compile": "tsc -b -v"
12
12
  },
13
13
  "dependencies": {
14
- "@forge/bundler": "0.0.0-experimental-c155926",
15
- "@forge/cli-shared": "3.5.1",
16
- "@forge/csp": "^2.1.0",
17
- "@forge/runtime": "0.0.0-experimental-c155926",
14
+ "@forge/bundler": "0.0.0-experimental-52c2a24",
15
+ "@forge/cli-shared": "0.0.0-experimental-52c2a24",
16
+ "@forge/csp": "^2.1.1",
17
+ "@forge/runtime": "4.2.0",
18
18
  "express": "^4.17.1",
19
19
  "express-intercept": "^0.8.10",
20
20
  "http-proxy-middleware": "^1.0.6",
@@ -26,13 +26,13 @@
26
26
  "webpack-dev-server": "^4.11.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@forge/manifest": "4.6.0",
29
+ "@forge/manifest": "0.0.0-experimental-52c2a24",
30
30
  "@types/express": "^4.17.2",
31
31
  "@types/jest": "^29.1.2",
32
32
  "@types/node": "^12.12.63",
33
- "@types/supertest": "^2.0.10",
33
+ "@types/supertest": "^2.0.12",
34
34
  "@types/tmp": "^0.1.0",
35
- "@types/uuid": "^3.4.7",
35
+ "@types/uuid": "^3.4.10",
36
36
  "supertest": "^6.1.3"
37
37
  }
38
38
  }