@forge/tunnel 2.2.1-next.0 → 2.2.1-next.10

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,78 @@
1
1
  # @forge/tunnel
2
2
 
3
+ ## 2.2.1-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f392eff]
8
+ - @forge/bundler@4.1.1-next.5
9
+
10
+ ## 2.2.1-next.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [626f0903]
15
+ - @forge/runtime@3.0.0-next.4
16
+
17
+ ## 2.2.1-next.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [6cda566]
22
+ - @forge/cli-shared@3.4.1-next.2
23
+ - @forge/bundler@4.1.1-next.4
24
+
25
+ ## 2.2.1-next.7
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [fed846f]
30
+ - @forge/cli-shared@3.4.1-next.1
31
+ - @forge/bundler@4.1.1-next.3
32
+
33
+ ## 2.2.1-next.6
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [231c79f]
38
+ - @forge/runtime@3.0.0-next.3
39
+
40
+ ## 2.2.1-next.5
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [89cd4b6d]
45
+ - @forge/runtime@3.0.0-next.2
46
+
47
+ ## 2.2.1-next.4
48
+
49
+ ### Patch Changes
50
+
51
+ - @forge/bundler@4.1.1-next.2
52
+
53
+ ## 2.2.1-next.3
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [7a4fa35]
58
+ - @forge/bundler@4.1.1-next.1
59
+
60
+ ## 2.2.1-next.2
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [f1e08ff]
65
+ - @forge/runtime@3.0.0-next.1
66
+
67
+ ## 2.2.1-next.1
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [00a9ece]
72
+ - Updated dependencies [a4a0ea3]
73
+ - @forge/runtime@3.0.0-next.0
74
+ - @forge/isolated-vm@4.0.0-next.0
75
+
3
76
  ## 2.2.1-next.0
4
77
 
5
78
  ### 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.0",
3
+ "version": "2.2.1-next.10",
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
- "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "2.6.0",
22
+ "@forge/isolated-vm": "4.0.0-next.0",
23
+ "@forge/runtime": "3.0.0-next.4",
24
24
  "express": "^4.17.1",
25
25
  "express-intercept": "^0.8.10",
26
26
  "http-proxy-middleware": "^1.0.6",