@forge/tunnel 0.0.0-experimental-c3d0263 → 0.0.0-experimental-869511d

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,6 +1,179 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-c3d0263
3
+ ## 0.0.0-experimental-869511d
4
+
5
+ ### Minor Changes
6
+
7
+ - f33aada: Fix vulnerability dependencies
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [f33aada]
12
+ - Updated dependencies [726ef79]
13
+ - @forge/cli-shared@0.0.0-experimental-869511d
14
+ - @forge/bundler@0.0.0-experimental-869511d
15
+ - @forge/runtime@0.0.0-experimental-869511d
16
+
17
+ ## 1.7.0-next.7
18
+
19
+ ### Patch Changes
20
+
21
+ - @forge/cli-shared@2.4.0-next.7
22
+ - @forge/bundler@3.0.3-next.7
23
+
24
+ ## 1.7.0-next.6
25
+
26
+ ### Patch Changes
27
+
28
+ - @forge/cli-shared@2.4.0-next.6
29
+ - @forge/bundler@3.0.3-next.6
30
+
31
+ ## 1.7.0-next.5
32
+
33
+ ### Patch Changes
34
+
35
+ - @forge/cli-shared@2.4.0-next.5
36
+ - @forge/bundler@3.0.3-next.5
37
+
38
+ ## 1.7.0-next.4
39
+
40
+ ### Patch Changes
41
+
42
+ - @forge/cli-shared@2.4.0-next.4
43
+ - @forge/bundler@3.0.3-next.4
44
+
45
+ ## 1.7.0-next.3
46
+
47
+ ### Minor Changes
48
+
49
+ - f33aada8: Fix vulnerability dependencies
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [f33aada8]
54
+ - Updated dependencies [726ef79d]
55
+ - @forge/cli-shared@2.4.0-next.3
56
+ - @forge/bundler@3.0.3-next.3
57
+
58
+ ## 1.6.2-next.2
59
+
60
+ ### Patch Changes
61
+
62
+ - @forge/cli-shared@2.3.2-next.2
63
+ - @forge/bundler@3.0.3-next.2
64
+
65
+ ## 1.6.2-next.1
66
+
67
+ ### Patch Changes
68
+
69
+ - @forge/cli-shared@2.3.2-next.1
70
+ - @forge/bundler@3.0.3-next.1
71
+
72
+ ## 1.6.2-next.0
73
+
74
+ ### Patch Changes
75
+
76
+ - @forge/cli-shared@2.3.2-next.0
77
+ - @forge/bundler@3.0.3-next.0
78
+
79
+ ## 1.6.1
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [04cddca]
84
+ - Updated dependencies [b820659]
85
+ - Updated dependencies [0a1513e]
86
+ - @forge/bundler@3.0.2
87
+ - @forge/runtime@1.16.0
88
+ - @forge/cli-shared@2.3.1
89
+
90
+ ## 1.6.1-next.11
91
+
92
+ ### Patch Changes
93
+
94
+ - @forge/cli-shared@2.3.1-next.9
95
+ - @forge/bundler@3.0.2-next.10
96
+
97
+ ## 1.6.1-next.10
98
+
99
+ ### Patch Changes
100
+
101
+ - @forge/cli-shared@2.3.1-next.8
102
+ - @forge/bundler@3.0.2-next.9
103
+
104
+ ## 1.6.1-next.9
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [0a1513e6]
109
+ - @forge/runtime@1.16.0-next.1
110
+ - @forge/cli-shared@2.3.1-next.7
111
+ - @forge/bundler@3.0.2-next.8
112
+
113
+ ## 1.6.1-next.8
114
+
115
+ ### Patch Changes
116
+
117
+ - @forge/cli-shared@2.3.1-next.6
118
+ - @forge/bundler@3.0.2-next.7
119
+
120
+ ## 1.6.1-next.7
121
+
122
+ ### Patch Changes
123
+
124
+ - @forge/cli-shared@2.3.1-next.5
125
+ - @forge/bundler@3.0.2-next.6
126
+
127
+ ## 1.6.1-next.6
128
+
129
+ ### Patch Changes
130
+
131
+ - @forge/cli-shared@2.3.1-next.4
132
+ - @forge/bundler@3.0.2-next.5
133
+
134
+ ## 1.6.1-next.5
135
+
136
+ ### Patch Changes
137
+
138
+ - @forge/cli-shared@2.3.1-next.3
139
+ - @forge/bundler@3.0.2-next.4
140
+
141
+ ## 1.6.1-next.4
142
+
143
+ ### Patch Changes
144
+
145
+ - @forge/cli-shared@2.3.1-next.2
146
+ - @forge/bundler@3.0.2-next.3
147
+
148
+ ## 1.6.1-next.3
149
+
150
+ ### Patch Changes
151
+
152
+ - @forge/cli-shared@2.3.1-next.1
153
+ - @forge/bundler@3.0.2-next.2
154
+
155
+ ## 1.6.1-next.2
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [b820659]
160
+ - @forge/runtime@1.16.0-next.0
161
+
162
+ ## 1.6.1-next.1
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [04cddcaa]
167
+ - @forge/bundler@3.0.2-next.1
168
+
169
+ ## 1.6.1-next.0
170
+
171
+ ### Patch Changes
172
+
173
+ - @forge/cli-shared@2.3.1-next.0
174
+ - @forge/bundler@3.0.2-next.0
175
+
176
+ ## 1.6.0
4
177
 
5
178
  ### Minor Changes
6
179
 
@@ -8,16 +181,57 @@
8
181
 
9
182
  ### Patch Changes
10
183
 
184
+ - 68c1a7f: Fix for observability
11
185
  - ca79652: Improve observability
186
+ - Updated dependencies [b673009]
12
187
  - Updated dependencies [cee5eea1]
188
+ - Updated dependencies [47a71a6]
13
189
  - Updated dependencies [e95919f]
14
190
  - Updated dependencies [56164fe]
15
191
  - Updated dependencies [949bd40]
192
+ - Updated dependencies [cf2420d]
16
193
  - Updated dependencies [ca79652]
17
- - @forge/runtime@0.0.0-experimental-c3d0263
18
- - @forge/csp@0.0.0-experimental-c3d0263
19
- - @forge/cli-shared@0.0.0-experimental-c3d0263
20
- - @forge/bundler@0.0.0-experimental-c3d0263
194
+ - @forge/runtime@1.15.0
195
+ - @forge/cli-shared@2.3.0
196
+ - @forge/csp@1.10.0
197
+ - @forge/bundler@3.0.1
198
+
199
+ ## 1.6.0-next.14
200
+
201
+ ### Patch Changes
202
+
203
+ - @forge/cli-shared@2.3.0-next.11
204
+ - @forge/bundler@3.0.1-next.12
205
+
206
+ ## 1.6.0-next.13
207
+
208
+ ### Patch Changes
209
+
210
+ - 68c1a7f3: Fix for observability
211
+
212
+ ## 1.6.0-next.12
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [47a71a62]
217
+ - @forge/cli-shared@2.3.0-next.10
218
+ - @forge/runtime@1.15.0-next.4
219
+ - @forge/bundler@3.0.1-next.11
220
+
221
+ ## 1.6.0-next.11
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [cf2420d2]
226
+ - @forge/cli-shared@2.3.0-next.9
227
+ - @forge/bundler@3.0.1-next.10
228
+
229
+ ## 1.6.0-next.10
230
+
231
+ ### Patch Changes
232
+
233
+ - Updated dependencies [b6730093]
234
+ - @forge/runtime@1.15.0-next.3
21
235
 
22
236
  ## 1.6.0-next.9
23
237
 
@@ -49,7 +49,7 @@ class LocalFunctionHost {
49
49
  bundleFileSourceMapPath: path_1.resolve(directory, `${bundleName}.js.map`),
50
50
  bundleFileSourceMap: bundledCode.sourceMap ? bundledCode.sourceMap[bundleName] : undefined
51
51
  }));
52
- const manifestFilePath = path_1.resolve(directory, cli_shared_1.manifestFilename);
52
+ const manifestFilePath = path_1.resolve(directory, cli_shared_1.manifestFileName);
53
53
  const manifestContents = JSON.stringify(await this.configFile.readConfig());
54
54
  const allPromises = [];
55
55
  bundles.forEach((bundle) => allPromises.push(this.generateBundleFiles(bundle, isSnapshotEnabled)));
@@ -7,5 +7,9 @@ export declare class LocalInvocationService implements InvocationService {
7
7
  private readonly inspector;
8
8
  constructor(configFile: ConfigFile, logger: Logger, inspector: Inspector);
9
9
  invoke(handler: string, request: ExternalRequestBody): Promise<any>;
10
+ static INTERNAL_METRICS: string[];
11
+ static printMetrics: (shouldReportMetrics: boolean, metrics: {
12
+ [key: string]: any;
13
+ }[] | undefined, logger: Logger) => void;
10
14
  }
11
15
  //# sourceMappingURL=local-invocation-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-invocation-service.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/services/local-invocation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACL,mBAAmB,EACnB,SAAS,EAIV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAG9E,qBAAa,sBAAuB,YAAW,iBAAiB;IAE5D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS;IAG1B,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;CAsDjF"}
1
+ {"version":3,"file":"local-invocation-service.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/services/local-invocation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACL,mBAAmB,EACnB,SAAS,EAIV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAI9E,qBAAa,sBAAuB,YAAW,iBAAiB;IAE5D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS;IAG1B,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;IAqDhF,MAAM,CAAC,gBAAgB,WAA6D;IAEpF,MAAM,CAAC,YAAY,wBACI,OAAO;;6BAEpB,MAAM,KACb,IAAI,CAUL;CACH"}
@@ -51,10 +51,14 @@ class LocalInvocationService {
51
51
  inspector: inspect ? this.inspector : undefined
52
52
  });
53
53
  const reportMetrics = xenInvocationRequest.isFeatureFlagEnabled(feature_flag_1.XEN_RUNTIME_SHOULD_REPORT_METRICS);
54
- if (reportMetrics && metrics) {
55
- this.logger.debug(`Metrics: ${JSON.stringify(metrics, null, 2)}`);
56
- }
54
+ LocalInvocationService.printMetrics(reportMetrics, metrics, this.logger);
57
55
  return reportMetrics ? { body, metrics } : body;
58
56
  }
59
57
  }
60
58
  exports.LocalInvocationService = LocalInvocationService;
59
+ LocalInvocationService.INTERNAL_METRICS = ['execute.setup-request-context', 'invoke.setup-isolate'];
60
+ LocalInvocationService.printMetrics = (shouldReportMetrics, metrics, logger) => {
61
+ if (shouldReportMetrics && (metrics === null || metrics === void 0 ? void 0 : metrics.length)) {
62
+ logger.debug(`Metrics: ${JSON.stringify(metrics.filter((m) => !LocalInvocationService.INTERNAL_METRICS.includes(m.name)), null, 2)}`);
63
+ }
64
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "0.0.0-experimental-c3d0263",
3
+ "version": "0.0.0-experimental-869511d",
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-c3d0263",
20
- "@forge/cli-shared": "0.0.0-experimental-c3d0263",
21
- "@forge/csp": "^0.0.0-experimental-c3d0263",
19
+ "@forge/bundler": "0.0.0-experimental-869511d",
20
+ "@forge/cli-shared": "0.0.0-experimental-869511d",
21
+ "@forge/csp": "^1.10.0",
22
22
  "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "0.0.0-experimental-c3d0263",
23
+ "@forge/runtime": "0.0.0-experimental-869511d",
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-c3d0263",
34
+ "@forge/manifest": "^0.0.0-experimental-869511d",
35
35
  "@types/express": "^4.17.2",
36
36
  "@types/express-mung": "^0.5.2",
37
37
  "@types/jest": "^26.0.0",
@@ -44,6 +44,6 @@
44
44
  "supertest": "^6.1.3"
45
45
  },
46
46
  "optionalDependencies": {
47
- "keytar": "^5.0.0"
47
+ "keytar": "^7.0.0"
48
48
  }
49
49
  }