@forge/tunnel 2.2.1-next.1 → 2.2.1-next.11

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,5 +1,76 @@
1
1
  # @forge/tunnel
2
2
 
3
+ ## 2.2.1-next.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3046d20]
8
+ - @forge/runtime@3.0.0-next.5
9
+
10
+ ## 2.2.1-next.10
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [f392eff]
15
+ - @forge/bundler@4.1.1-next.5
16
+
17
+ ## 2.2.1-next.9
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [626f0903]
22
+ - @forge/runtime@3.0.0-next.4
23
+
24
+ ## 2.2.1-next.8
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [6cda566]
29
+ - @forge/cli-shared@3.4.1-next.2
30
+ - @forge/bundler@4.1.1-next.4
31
+
32
+ ## 2.2.1-next.7
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [fed846f]
37
+ - @forge/cli-shared@3.4.1-next.1
38
+ - @forge/bundler@4.1.1-next.3
39
+
40
+ ## 2.2.1-next.6
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [231c79f]
45
+ - @forge/runtime@3.0.0-next.3
46
+
47
+ ## 2.2.1-next.5
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [89cd4b6d]
52
+ - @forge/runtime@3.0.0-next.2
53
+
54
+ ## 2.2.1-next.4
55
+
56
+ ### Patch Changes
57
+
58
+ - @forge/bundler@4.1.1-next.2
59
+
60
+ ## 2.2.1-next.3
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [7a4fa35]
65
+ - @forge/bundler@4.1.1-next.1
66
+
67
+ ## 2.2.1-next.2
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [f1e08ff]
72
+ - @forge/runtime@3.0.0-next.1
73
+
3
74
  ## 2.2.1-next.1
4
75
 
5
76
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/graphql/tunnel-graphql-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EACL,aAAa,EAKd,MAAM,mBAAmB,CAAC;AAe3B,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,GAAG,CAAC;KAChB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CACd,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACtC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,qBAAa,mBAAoB,YAAW,YAAY;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAyC/B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAqC1E"}
1
+ {"version":3,"file":"tunnel-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/graphql/tunnel-graphql-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EACL,aAAa,EAKd,MAAM,mBAAmB,CAAC;AAqB3B,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,GAAG,CAAC;KAChB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CACd,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACtC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,qBAAa,mBAAoB,YAAW,YAAY;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAyC/B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAqC1E"}
@@ -4,13 +4,13 @@ exports.TunnelGraphqlClient = void 0;
4
4
  const cli_shared_1 = require("@forge/cli-shared");
5
5
  const cli_shared_2 = require("@forge/cli-shared");
6
6
  class CreateAppTunnelError extends cli_shared_1.GraphQlMutationError {
7
- constructor(message, errorCode, statusCode) {
8
- super(cli_shared_2.Text.tunnel.error.create(message), errorCode, statusCode);
7
+ constructor(message, { requestId, code, statusCode }) {
8
+ super(cli_shared_2.Text.tunnel.error.create(message), { requestId, code, statusCode });
9
9
  }
10
10
  }
11
11
  class DeleteAppTunnelError extends cli_shared_1.GraphQlMutationError {
12
- constructor(message, errorCode, statusCode) {
13
- super(cli_shared_2.Text.tunnel.error.delete(message), errorCode, statusCode);
12
+ constructor(message, { requestId, code, statusCode }) {
13
+ super(cli_shared_2.Text.tunnel.error.delete(message), { requestId, code, statusCode });
14
14
  }
15
15
  }
16
16
  class TunnelGraphqlClient {
@@ -42,7 +42,11 @@ class TunnelGraphqlClient {
42
42
  });
43
43
  const error = (0, cli_shared_1.getError)(errors);
44
44
  if (!success) {
45
- throw new CreateAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
45
+ throw new CreateAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
46
+ requestId,
47
+ code: error.code,
48
+ statusCode: error.statusCode
49
+ });
46
50
  }
47
51
  return keepAlive;
48
52
  }
@@ -68,7 +72,11 @@ class TunnelGraphqlClient {
68
72
  });
69
73
  const error = (0, cli_shared_1.getError)(errors);
70
74
  if (!success) {
71
- throw new DeleteAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
75
+ throw new DeleteAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
76
+ requestId,
77
+ code: error.code,
78
+ statusCode: error.statusCode
79
+ });
72
80
  }
73
81
  }
74
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "2.2.1-next.1",
3
+ "version": "2.2.1-next.11",
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": "4.1.1-next.0",
20
- "@forge/cli-shared": "3.4.1-next.0",
19
+ "@forge/bundler": "4.1.1-next.5",
20
+ "@forge/cli-shared": "3.4.1-next.2",
21
21
  "@forge/csp": "^2.1.0",
22
22
  "@forge/isolated-vm": "4.0.0-next.0",
23
- "@forge/runtime": "3.0.0-next.0",
23
+ "@forge/runtime": "3.0.0-next.5",
24
24
  "express": "^4.17.1",
25
25
  "express-intercept": "^0.8.10",
26
26
  "http-proxy-middleware": "^1.0.6",