@forge/tunnel 7.1.1-next.9 → 7.1.2-next.0

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,88 @@
1
1
  # @forge/tunnel
2
2
 
3
+ ## 7.1.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @forge/bundler@7.2.1-next.0
8
+ - @forge/cli-shared@9.4.1-next.0
9
+
10
+ ## 7.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 8e5bd63: Classify TUNNEL_PERMISSIONS_ERROR as a user error in tunnel analytics to prevent false positive SLO burns
15
+ - Updated dependencies [016ed9d]
16
+ - Updated dependencies [873db00]
17
+ - Updated dependencies [d9f80a3]
18
+ - Updated dependencies [47c4c75]
19
+ - Updated dependencies [d1767a0]
20
+ - Updated dependencies [71d0c4e]
21
+ - Updated dependencies [f9fba62]
22
+ - Updated dependencies [2b13c2e]
23
+ - Updated dependencies [f6607ca]
24
+ - Updated dependencies [aebfe3f]
25
+ - Updated dependencies [9afd5c3]
26
+ - Updated dependencies [ff4f2bf]
27
+ - @forge/cli-shared@9.4.0
28
+ - @forge/csp@6.3.1
29
+ - @forge/bundler@7.2.0
30
+
31
+ ## 7.1.1-next.16
32
+
33
+ ### Patch Changes
34
+
35
+ - @forge/bundler@7.2.0-next.16
36
+ - @forge/cli-shared@9.4.0-next.13
37
+
38
+ ## 7.1.1-next.15
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [47c4c75]
43
+ - @forge/cli-shared@9.4.0-next.12
44
+ - @forge/bundler@7.2.0-next.15
45
+
46
+ ## 7.1.1-next.14
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [d9f80a3]
51
+ - @forge/cli-shared@9.4.0-next.11
52
+ - @forge/bundler@7.2.0-next.14
53
+
54
+ ## 7.1.1-next.13
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [f6607ca]
59
+ - @forge/cli-shared@9.4.0-next.10
60
+ - @forge/bundler@7.2.0-next.13
61
+
62
+ ## 7.1.1-next.12
63
+
64
+ ### Patch Changes
65
+
66
+ - 8e5bd63: Classify TUNNEL_PERMISSIONS_ERROR as a user error in tunnel analytics to prevent false positive SLO burns
67
+ - @forge/bundler@7.2.0-next.12
68
+ - @forge/cli-shared@9.4.0-next.9
69
+
70
+ ## 7.1.1-next.11
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [aebfe3f]
75
+ - @forge/csp@6.3.1-next.1
76
+ - @forge/bundler@7.2.0-next.11
77
+
78
+ ## 7.1.1-next.10
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [873db00]
83
+ - @forge/csp@6.3.1-next.0
84
+ - @forge/bundler@7.2.0-next.10
85
+
3
86
  ## 7.1.1-next.9
4
87
 
5
88
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/tunnel-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EACL,aAAa,EAGb,oBAAoB,EAGpB,kBAAkB,EAClB,cAAc,EAIf,MAAM,mBAAmB,CAAC;AAa3B,qBAAa,sBAAuB,SAAQ,oBAAqB,YAAW,kBAAkB;IAC5F,OAAO,CAAC,MAAM,CAAC,cAAc,CAAqD;IAClF,OAAO,CAAC,SAAS,CAAC,CAAS;gBAGzB,OAAO,EAAE,MAAM,EACf,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;QAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IAMjG,aAAa,IAAI,cAAc;IAK/B,WAAW,IAAI,OAAO;CAG9B;AAWD,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,GAAG,CA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CAAC;CACrE;AAED,qBAAa,mBAAoB,YAAW,YAAY;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IA2DxE,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IA0C/B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAsC1E"}
@@ -6,12 +6,19 @@ const cli_shared_1 = require("@forge/cli-shared");
6
6
  const path_1 = tslib_1.__importDefault(require("path"));
7
7
  const fs_1 = tslib_1.__importDefault(require("fs"));
8
8
  class CreateAppTunnelError extends cli_shared_1.GraphQlMutationError {
9
+ static userErrorCodes = ['TUNNEL_PERMISSIONS_ERROR'];
9
10
  constructor(message, { requestId, code, statusCode }) {
10
11
  super(cli_shared_1.Text.tunnel.error.create(message), { requestId, code, statusCode });
11
12
  }
13
+ isUserError() {
14
+ if (CreateAppTunnelError.userErrorCodes.includes(this.getCode())) {
15
+ return true;
16
+ }
17
+ return super.isUserError();
18
+ }
12
19
  }
13
20
  class RegisterAppTunnelError extends cli_shared_1.GraphQlMutationError {
14
- static userErrorCodes = ['ENVIRONMENT_MISMATCH', 'ENVIRONMENT_NOT_FOUND'];
21
+ static userErrorCodes = ['ENVIRONMENT_MISMATCH', 'ENVIRONMENT_NOT_FOUND', 'TUNNEL_PERMISSIONS_ERROR'];
15
22
  errorCode;
16
23
  constructor(message, { requestId, code, statusCode }) {
17
24
  super(cli_shared_1.Text.tunnel.error.create(message), { requestId, code, statusCode });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "7.1.1-next.9",
3
+ "version": "7.1.2-next.0",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -11,9 +11,9 @@
11
11
  "compile": "tsc -b -v"
12
12
  },
13
13
  "dependencies": {
14
- "@forge/bundler": "7.2.0-next.9",
15
- "@forge/cli-shared": "9.4.0-next.8",
16
- "@forge/csp": "6.3.0",
14
+ "@forge/bundler": "7.2.1-next.0",
15
+ "@forge/cli-shared": "9.4.1-next.0",
16
+ "@forge/csp": "6.3.1",
17
17
  "@forge/runtime": "7.0.0",
18
18
  "@forge/util": "^3.0.0",
19
19
  "cheerio": "^1.2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@atlassian/xen-test-util": "^4.2.0",
36
- "@forge/manifest": "13.3.1-next.1",
36
+ "@forge/manifest": "13.3.2-next.0",
37
37
  "@types/express": "^4.17.21",
38
38
  "@types/jest": "^29.5.14",
39
39
  "@types/node": "20.19.1",