@forge/tunnel 3.8.10-next.9 → 4.0.0-next.23
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 +117 -0
- package/out/command/start-tunnel-command.d.ts +1 -3
- package/out/command/start-tunnel-command.d.ts.map +1 -1
- package/out/command/start-tunnel-command.js +1 -9
- package/out/graphql/tunnel-graphql-client.d.ts +1 -1
- package/out/servers/dev-server.d.ts +2 -2
- package/out/servers/resource-tunnel-server.d.ts +1 -1
- package/out/services/create-tunnel-service.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,122 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 4.0.0-next.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [bfb4b87]
|
|
8
|
+
- @forge/cli-shared@3.23.0-next.13
|
|
9
|
+
- @forge/bundler@4.15.0-next.23
|
|
10
|
+
- @forge/runtime@5.3.0-next.6
|
|
11
|
+
|
|
12
|
+
## 4.0.0-next.22
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- 1fcc797: Require ngrok account for tunnelling
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [1fcc797]
|
|
21
|
+
- @forge/cli-shared@3.23.0-next.12
|
|
22
|
+
- @forge/bundler@4.14.4-next.22
|
|
23
|
+
|
|
24
|
+
## 3.8.10-next.21
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [44f1456]
|
|
29
|
+
- @forge/cli-shared@3.23.0-next.11
|
|
30
|
+
- @forge/runtime@5.3.0-next.5
|
|
31
|
+
- @forge/bundler@4.14.4-next.21
|
|
32
|
+
|
|
33
|
+
## 3.8.10-next.20
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- @forge/bundler@4.14.4-next.20
|
|
38
|
+
|
|
39
|
+
## 3.8.10-next.19
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [3e01b20]
|
|
44
|
+
- @forge/cli-shared@3.23.0-next.10
|
|
45
|
+
- @forge/bundler@4.14.4-next.19
|
|
46
|
+
|
|
47
|
+
## 3.8.10-next.18
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [73e1aac]
|
|
52
|
+
- @forge/bundler@4.14.4-next.18
|
|
53
|
+
- @forge/runtime@5.3.0-next.4
|
|
54
|
+
|
|
55
|
+
## 3.8.10-next.17
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [66723ca]
|
|
60
|
+
- @forge/bundler@4.14.4-next.17
|
|
61
|
+
|
|
62
|
+
## 3.8.10-next.16
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- Updated dependencies [df6db2a]
|
|
67
|
+
- Updated dependencies [2293dd6]
|
|
68
|
+
- @forge/bundler@4.14.4-next.16
|
|
69
|
+
|
|
70
|
+
## 3.8.10-next.15
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- Updated dependencies [b9f4db9]
|
|
75
|
+
- @forge/cli-shared@3.23.0-next.9
|
|
76
|
+
- @forge/bundler@4.14.4-next.15
|
|
77
|
+
|
|
78
|
+
## 3.8.10-next.14
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- Updated dependencies [c714732]
|
|
83
|
+
- @forge/cli-shared@3.23.0-next.8
|
|
84
|
+
- @forge/csp@3.1.4-next.0
|
|
85
|
+
- @forge/bundler@4.14.4-next.14
|
|
86
|
+
|
|
87
|
+
## 3.8.10-next.13
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- @forge/cli-shared@3.23.0-next.7
|
|
92
|
+
- @forge/bundler@4.14.4-next.13
|
|
93
|
+
|
|
94
|
+
## 3.8.10-next.12
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Updated dependencies [dc0ca5d]
|
|
99
|
+
- Updated dependencies [5067ba2]
|
|
100
|
+
- @forge/cli-shared@3.23.0-next.6
|
|
101
|
+
- @forge/bundler@4.14.4-next.12
|
|
102
|
+
|
|
103
|
+
## 3.8.10-next.11
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- @forge/bundler@4.14.4-next.11
|
|
108
|
+
- @forge/cli-shared@3.23.0-next.5
|
|
109
|
+
|
|
110
|
+
## 3.8.10-next.10
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- Updated dependencies [ea2f814]
|
|
115
|
+
- Updated dependencies [16a7cf5]
|
|
116
|
+
- @forge/bundler@4.14.4-next.10
|
|
117
|
+
- @forge/cli-shared@3.23.0-next.4
|
|
118
|
+
- @forge/runtime@5.3.0-next.3
|
|
119
|
+
|
|
3
120
|
## 3.8.10-next.9
|
|
4
121
|
|
|
5
122
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ export interface StartTunnelOptions {
|
|
|
9
9
|
port?: number;
|
|
10
10
|
host: string;
|
|
11
11
|
environmentKey: string;
|
|
12
|
-
ngrokConfig
|
|
12
|
+
ngrokConfig: string;
|
|
13
13
|
resourcePortMap?: Record<string, number>;
|
|
14
14
|
}
|
|
15
15
|
export interface StartTunnelResult {
|
|
@@ -20,8 +20,6 @@ export interface StartTunnelResult {
|
|
|
20
20
|
stopFunction(): Promise<void>;
|
|
21
21
|
reloadSandboxes(bundledCode: BundlerOutput): Promise<void>;
|
|
22
22
|
}
|
|
23
|
-
export declare const NGROK_TIMEOUT_HOURS = 2;
|
|
24
|
-
export declare const MS_IN_HOUR: number;
|
|
25
23
|
export declare class StartTunnelCommand {
|
|
26
24
|
private readonly getAppConfig;
|
|
27
25
|
private readonly devServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-tunnel-command.d.ts","sourceRoot":"","sources":["../../src/command/start-tunnel-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EACL,iBAAiB,EAKlB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAsC,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACzE,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,
|
|
1
|
+
{"version":3,"file":"start-tunnel-command.d.ts","sourceRoot":"","sources":["../../src/command/start-tunnel-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EACL,iBAAiB,EAKlB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAsC,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACzE,MAAM,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AO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAoD9E"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartTunnelCommand =
|
|
3
|
+
exports.StartTunnelCommand = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
6
6
|
const runtime_1 = require("@forge/runtime");
|
|
7
7
|
const node_cache_1 = tslib_1.__importDefault(require("node-cache"));
|
|
8
8
|
const servers_1 = require("../servers");
|
|
9
9
|
const index_1 = require("../index");
|
|
10
|
-
exports.NGROK_TIMEOUT_HOURS = 2;
|
|
11
|
-
exports.MS_IN_HOUR = 60 * 60 * 1000;
|
|
12
10
|
class StartTunnelCommand {
|
|
13
11
|
constructor(getAppConfig, devServer, tunnelFactory, tunnelClient, functionHost, inspector, logger, configFile) {
|
|
14
12
|
this.getAppConfig = getAppConfig;
|
|
@@ -36,12 +34,6 @@ class StartTunnelCommand {
|
|
|
36
34
|
const { permissions = {}, remotes = [] } = await this.configFile.readConfig();
|
|
37
35
|
const serverInfo = await this.devServer.start(port, permissions, remotes);
|
|
38
36
|
const faasTunnelUrl = await this.tunnelFactory.establishTunnel({ port: serverInfo.port, tunnelConfigPath });
|
|
39
|
-
if (!tunnelConfigPath) {
|
|
40
|
-
this.logger.warn(cli_shared_1.Text.tunnel.ngrokTimeoutWarning(exports.NGROK_TIMEOUT_HOURS));
|
|
41
|
-
setTimeout(() => {
|
|
42
|
-
this.logger.warn(cli_shared_1.Text.tunnel.ngrokTimeoutReached(exports.NGROK_TIMEOUT_HOURS));
|
|
43
|
-
}, exports.NGROK_TIMEOUT_HOURS * exports.MS_IN_HOUR);
|
|
44
|
-
}
|
|
45
37
|
return Object.assign(Object.assign({}, serverInfo), { tunnelUrl: faasTunnelUrl });
|
|
46
38
|
};
|
|
47
39
|
this.startResourceBasedTunnelsServers = async (resourceDetails, options) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import express from 'express';
|
|
4
4
|
import * as http from 'http';
|
|
5
5
|
import { URL } from 'url';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-next.23",
|
|
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.
|
|
15
|
-
"@forge/cli-shared": "3.23.0-next.
|
|
16
|
-
"@forge/csp": "3.1.
|
|
17
|
-
"@forge/runtime": "5.3.0-next.
|
|
14
|
+
"@forge/bundler": "4.15.0-next.23",
|
|
15
|
+
"@forge/cli-shared": "3.23.0-next.13",
|
|
16
|
+
"@forge/csp": "3.1.4-next.0",
|
|
17
|
+
"@forge/runtime": "5.3.0-next.6",
|
|
18
18
|
"express": "^4.18.2",
|
|
19
19
|
"express-intercept": "^1.1.0",
|
|
20
20
|
"http-proxy-middleware": "^2.0.6",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@atlassian/xen-test-util": "^3.1.3",
|
|
30
|
-
"@forge/manifest": "5.
|
|
30
|
+
"@forge/manifest": "5.5.0-next.5",
|
|
31
31
|
"@types/express": "^4.17.21",
|
|
32
32
|
"@types/jest": "^29.5.11",
|
|
33
33
|
"@types/node": "14.18.63",
|