@forge/tunnel 0.0.0-experimental-c3d0263 → 0.0.0-experimental-490cfcf

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,44 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-c3d0263
3
+ ## 0.0.0-experimental-490cfcf
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [04cddca]
8
+ - Updated dependencies [b820659]
9
+ - @forge/bundler@0.0.0-experimental-490cfcf
10
+ - @forge/runtime@0.0.0-experimental-490cfcf
11
+ - @forge/cli-shared@0.0.0-experimental-490cfcf
12
+
13
+ ## 1.6.1-next.3
14
+
15
+ ### Patch Changes
16
+
17
+ - @forge/cli-shared@2.3.1-next.1
18
+ - @forge/bundler@3.0.2-next.2
19
+
20
+ ## 1.6.1-next.2
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [b820659]
25
+ - @forge/runtime@1.16.0-next.0
26
+
27
+ ## 1.6.1-next.1
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [04cddcaa]
32
+ - @forge/bundler@3.0.2-next.1
33
+
34
+ ## 1.6.1-next.0
35
+
36
+ ### Patch Changes
37
+
38
+ - @forge/cli-shared@2.3.1-next.0
39
+ - @forge/bundler@3.0.2-next.0
40
+
41
+ ## 1.6.0
4
42
 
5
43
  ### Minor Changes
6
44
 
@@ -8,16 +46,57 @@
8
46
 
9
47
  ### Patch Changes
10
48
 
49
+ - 68c1a7f: Fix for observability
11
50
  - ca79652: Improve observability
51
+ - Updated dependencies [b673009]
12
52
  - Updated dependencies [cee5eea1]
53
+ - Updated dependencies [47a71a6]
13
54
  - Updated dependencies [e95919f]
14
55
  - Updated dependencies [56164fe]
15
56
  - Updated dependencies [949bd40]
57
+ - Updated dependencies [cf2420d]
16
58
  - 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
59
+ - @forge/runtime@1.15.0
60
+ - @forge/cli-shared@2.3.0
61
+ - @forge/csp@1.10.0
62
+ - @forge/bundler@3.0.1
63
+
64
+ ## 1.6.0-next.14
65
+
66
+ ### Patch Changes
67
+
68
+ - @forge/cli-shared@2.3.0-next.11
69
+ - @forge/bundler@3.0.1-next.12
70
+
71
+ ## 1.6.0-next.13
72
+
73
+ ### Patch Changes
74
+
75
+ - 68c1a7f3: Fix for observability
76
+
77
+ ## 1.6.0-next.12
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [47a71a62]
82
+ - @forge/cli-shared@2.3.0-next.10
83
+ - @forge/runtime@1.15.0-next.4
84
+ - @forge/bundler@3.0.1-next.11
85
+
86
+ ## 1.6.0-next.11
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [cf2420d2]
91
+ - @forge/cli-shared@2.3.0-next.9
92
+ - @forge/bundler@3.0.1-next.10
93
+
94
+ ## 1.6.0-next.10
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [b6730093]
99
+ - @forge/runtime@1.15.0-next.3
21
100
 
22
101
  ## 1.6.0-next.9
23
102
 
@@ -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-490cfcf",
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-490cfcf",
20
+ "@forge/cli-shared": "0.0.0-experimental-490cfcf",
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-490cfcf",
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-490cfcf",
35
35
  "@types/express": "^4.17.2",
36
36
  "@types/express-mung": "^0.5.2",
37
37
  "@types/jest": "^26.0.0",