@forge/tunnel 7.2.0-next.16-experimental-fd0ebbc → 7.2.0-next.17-experimental-554d417
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,6 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
-
## 7.2.0-next.
|
|
3
|
+
## 7.2.0-next.17-experimental-554d417
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- 3e160b1: Generate GraphQL types from CLI `graphql()` documents with `@graphql-codegen/client-preset` and `onlyOperationTypes`. Stop star-exporting the 27MB gateway dump from `@forge/cli-shared`.
|
|
12
11
|
- Updated dependencies [2a491b9]
|
|
13
12
|
- Updated dependencies [82730f2]
|
|
14
13
|
- Updated dependencies [b090628]
|
|
15
14
|
- Updated dependencies [385ac1a]
|
|
16
15
|
- Updated dependencies [9f27f8a]
|
|
16
|
+
- Updated dependencies [cf81630]
|
|
17
17
|
- Updated dependencies [a384019]
|
|
18
18
|
- Updated dependencies [56fd47c]
|
|
19
19
|
- Updated dependencies [9d391ab]
|
|
@@ -22,10 +22,16 @@
|
|
|
22
22
|
- Updated dependencies [b77e195]
|
|
23
23
|
- Updated dependencies [ea3b2ba]
|
|
24
24
|
- Updated dependencies [4740d03]
|
|
25
|
-
-
|
|
26
|
-
- @forge/
|
|
27
|
-
- @forge/
|
|
28
|
-
|
|
25
|
+
- @forge/cli-shared@9.7.0-next.15-experimental-554d417
|
|
26
|
+
- @forge/bundler@7.2.3-next.16-experimental-554d417
|
|
27
|
+
- @forge/csp@6.3.1-experimental-554d417
|
|
28
|
+
|
|
29
|
+
## 7.2.0-next.17
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- @forge/bundler@7.2.3-next.16
|
|
34
|
+
- @forge/cli-shared@9.7.0-next.15
|
|
29
35
|
|
|
30
36
|
## 7.2.0-next.16
|
|
31
37
|
|
|
@@ -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,
|
|
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;AAsB3B,qBAAa,sBAAuB,SAAQ,oBAAqB,YAAW,kBAAkB;IAC5F,OAAO,CAAC,MAAM,CAAC,cAAc,CAAiF;IAC9G,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,CAAC;IACpB,QAAQ,CAAC,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,GAAG,CAAC;KAChB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9B,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACxG,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,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC;IA4DvG,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"}
|
|
@@ -45,7 +45,7 @@ class TunnelGraphqlClient {
|
|
|
45
45
|
this.graphqlClient = graphqlClient;
|
|
46
46
|
}
|
|
47
47
|
async setupTunnel(appId, environmentKey, hasContainerServices) {
|
|
48
|
-
const mutation =
|
|
48
|
+
const mutation = `
|
|
49
49
|
mutation forge_cli_setupApplicationTunnel($input: RegisterTunnelInput!) {
|
|
50
50
|
registerTunnel(input: $input) {
|
|
51
51
|
success
|
|
@@ -62,15 +62,14 @@ class TunnelGraphqlClient {
|
|
|
62
62
|
tunnelK8AuthToken
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
65
|
+
`;
|
|
66
|
+
const { response: { registerTunnel: { success, errors, tunnelId, tunnelToken, tunnelUrl, tunnelK8AuthToken } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
67
67
|
input: {
|
|
68
68
|
appId,
|
|
69
69
|
environmentKey,
|
|
70
70
|
hasContainerServices
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
const { success, errors, tunnelId, tunnelToken, tunnelUrl, tunnelK8AuthToken } = (0, cli_shared_1.requireMutationPayload)(response.registerTunnel, requestId);
|
|
74
73
|
const error = (0, cli_shared_1.getError)(errors);
|
|
75
74
|
if (!success) {
|
|
76
75
|
throw new RegisterAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
@@ -93,7 +92,7 @@ class TunnelGraphqlClient {
|
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
94
|
async createAppTunnels(appId, environmentKey, tunnelDefinitions) {
|
|
96
|
-
const mutation =
|
|
95
|
+
const mutation = `
|
|
97
96
|
mutation forge_cli_createApplicationTunnels($input: CreateAppTunnelsInput!) {
|
|
98
97
|
createAppTunnels(input: $input) {
|
|
99
98
|
success
|
|
@@ -107,8 +106,8 @@ class TunnelGraphqlClient {
|
|
|
107
106
|
keepAlive
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
|
-
|
|
111
|
-
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
109
|
+
`;
|
|
110
|
+
const { response: { createAppTunnels: { success, errors, keepAlive } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
112
111
|
input: {
|
|
113
112
|
appId,
|
|
114
113
|
environmentKey,
|
|
@@ -116,7 +115,6 @@ class TunnelGraphqlClient {
|
|
|
116
115
|
force: true
|
|
117
116
|
}
|
|
118
117
|
});
|
|
119
|
-
const { success, errors, keepAlive } = (0, cli_shared_1.requireMutationPayload)(response.createAppTunnels, requestId);
|
|
120
118
|
const error = (0, cli_shared_1.getError)(errors);
|
|
121
119
|
if (!success) {
|
|
122
120
|
throw new CreateAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
@@ -128,7 +126,7 @@ class TunnelGraphqlClient {
|
|
|
128
126
|
return keepAlive;
|
|
129
127
|
}
|
|
130
128
|
async deleteTunnels(appId, environmentKey) {
|
|
131
|
-
const mutation =
|
|
129
|
+
const mutation = `
|
|
132
130
|
mutation forge_cli_deleteApplicationTunnels($input: DeleteAppTunnelInput!) {
|
|
133
131
|
deleteAppTunnels(input: $input) {
|
|
134
132
|
success
|
|
@@ -141,14 +139,13 @@ class TunnelGraphqlClient {
|
|
|
141
139
|
}
|
|
142
140
|
}
|
|
143
141
|
}
|
|
144
|
-
|
|
145
|
-
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
142
|
+
`;
|
|
143
|
+
const { response: { deleteAppTunnels: { success, errors } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
146
144
|
input: {
|
|
147
145
|
appId,
|
|
148
146
|
environmentKey
|
|
149
147
|
}
|
|
150
148
|
});
|
|
151
|
-
const { success, errors } = (0, cli_shared_1.requireMutationPayload)(response.deleteAppTunnels, requestId);
|
|
152
149
|
const error = (0, cli_shared_1.getError)(errors);
|
|
153
150
|
if (!success) {
|
|
154
151
|
throw new DeleteAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "7.2.0-next.
|
|
3
|
+
"version": "7.2.0-next.17-experimental-554d417",
|
|
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.3-next.
|
|
15
|
-
"@forge/cli-shared": "9.7.0-next.
|
|
16
|
-
"@forge/csp": "6.3.1-experimental-
|
|
14
|
+
"@forge/bundler": "7.2.3-next.16-experimental-554d417",
|
|
15
|
+
"@forge/cli-shared": "9.7.0-next.15-experimental-554d417",
|
|
16
|
+
"@forge/csp": "6.3.1-experimental-554d417",
|
|
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.
|
|
36
|
+
"@forge/manifest": "13.6.0-next.2-experimental-554d417",
|
|
37
37
|
"@types/express": "^4.17.21",
|
|
38
38
|
"@types/jest": "^29.5.14",
|
|
39
39
|
"@types/node": "20.19.1",
|