@forge/tunnel 3.6.6-next.12-experimental-8802d63 → 3.6.6-next.13

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,33 +1,13 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 3.6.6-next.12-experimental-8802d63
3
+ ## 3.6.6-next.13
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - ba548d9: Bumping dependencies via Renovate:
8
-
9
- - tslib
10
-
11
- - ffeb3c7: Bumping dependencies via Renovate:
12
-
13
- - express-intercept
14
-
15
- - Updated dependencies [30713ea]
16
- - Updated dependencies [cdf28f2]
17
- - Updated dependencies [81556b08]
18
- - Updated dependencies [1d4230e]
19
- - Updated dependencies [4f5f44d]
20
- - Updated dependencies [89e0c88]
21
- - Updated dependencies [2292902]
22
- - Updated dependencies [ba548d9]
23
- - Updated dependencies [035116d]
24
- - Updated dependencies [4769ae0]
25
- - Updated dependencies [4be2051]
26
- - Updated dependencies [a5b25d4]
27
- - @forge/cli-shared@3.17.2-next.6-experimental-8802d63
28
- - @forge/bundler@4.11.1-next.12-experimental-8802d63
29
- - @forge/runtime@4.4.7-next.2-experimental-8802d63
30
- - @forge/csp@2.1.5-experimental-8802d63
7
+ - cd2b8e51: Bundle wrapper ahead of compilation for node runtime
8
+ - Updated dependencies [cd2b8e51]
9
+ - @forge/bundler@4.11.1-next.13
10
+ - @forge/runtime@5.0.0-next.3
31
11
 
32
12
  ## 3.6.6-next.12
33
13
 
@@ -36,7 +36,7 @@ export declare abstract class ResourceTunnelServer {
36
36
  content?: import("@forge/manifest").Content1 | undefined;
37
37
  };
38
38
  protected logFileServed(reqUrl: string, textDecorator: (input: string) => string): void;
39
- protected getCspHeader: (existingCSPDetails: CSPDetails) => string;
39
+ protected getCspHeader: (existingCsp: CSPDetails) => string;
40
40
  protected injectGlobalBridgeScript: (htmlContent: Buffer) => Buffer;
41
41
  protected injectIframeResizerScript: (htmlContent: Buffer) => Buffer;
42
42
  protected getCustomUIHtmlTransformMiddleware: (permissions: Permissions, remotes: Remotes) => RequestHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-tunnel-server.d.ts","sourceRoot":"","sources":["../../src/servers/resource-tunnel-server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,QAAQ,EAMR,MAAM,EAEP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAA6C,MAAM,YAAY,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG5D,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,8BAAsB,oBAAoB;IACxC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,qBAAqB,EAAE,MAAM,CAAC;gBAE5B,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,EAAE,wBAAwB;IAQxF,MAAM,CAAC,+BAA+B,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO;;;;;;;;;;;;;;;;;IAajF,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,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OAAO;;;;;;;;;;;;;;;;;IAajF,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI;IAMvF,SAAS,CAAC,YAAY,gBAAiB,UAAU,KAAG,MAAM,CAO1C;IAEhB,SAAS,CAAC,wBAAwB,gBAAiB,MAAM,YAGpD;IAEL,SAAS,CAAC,yBAAyB,gBAAiB,MAAM,YAGrD;IAEL,SAAS,CAAC,kCAAkC,gBAAiB,WAAW,uBAAqB,cAAc,CAqBpG;CACR"}
@@ -6,12 +6,8 @@ const csp_1 = require("@forge/csp");
6
6
  const express_intercept_1 = require("express-intercept");
7
7
  class ResourceTunnelServer {
8
8
  constructor({ port, key, path, cspReporterServerPort, logger }) {
9
- this.getCspHeader = (existingCSPDetails) => new csp_1.CSPInjectionService()
10
- .getInjectableCSP({
11
- existingCSPDetails,
12
- microsEnv: (0, cli_shared_1.getEnvironment)(cli_shared_1.CDNEnvironments),
13
- tunnelCSPReporterUri: `http://localhost:${this.cspReporterServerPort}`
14
- })
9
+ this.getCspHeader = (existingCsp) => new csp_1.CSPInjectionService()
10
+ .getInjectableCSP(existingCsp, (0, cli_shared_1.getEnvironment)(cli_shared_1.CDNEnvironments), `http://localhost:${this.cspReporterServerPort}`)
15
11
  .join('; ');
16
12
  this.injectGlobalBridgeScript = (htmlContent) => new cli_shared_1.BridgeScriptService().injectBridgeCore(htmlContent, () => {
17
13
  throw new Error('Malformed HTML document');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "3.6.6-next.12-experimental-8802d63",
3
+ "version": "3.6.6-next.13",
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": "4.11.1-next.12-experimental-8802d63",
15
- "@forge/cli-shared": "3.17.2-next.6-experimental-8802d63",
16
- "@forge/csp": "2.1.5-experimental-8802d63",
17
- "@forge/runtime": "4.4.7-next.2-experimental-8802d63",
14
+ "@forge/bundler": "4.11.1-next.13",
15
+ "@forge/cli-shared": "3.17.2-next.6",
16
+ "@forge/csp": "2.1.5",
17
+ "@forge/runtime": "5.0.0-next.3",
18
18
  "express": "^4.18.2",
19
19
  "express-intercept": "^1.1.0",
20
20
  "http-proxy-middleware": "^1.3.1",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@atlassian/xen-test-util": "^2.1.5",
30
- "@forge/manifest": "4.19.1-next.3-experimental-8802d63",
30
+ "@forge/manifest": "4.19.1-next.3",
31
31
  "@types/express": "^4.17.17",
32
32
  "@types/jest": "^29.5.3",
33
33
  "@types/node": "14.18.54",