@forge/tunnel 3.6.4-next.1 → 3.6.4-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,92 @@
1
1
  # @forge/tunnel
2
2
 
3
+ ## 3.6.4-next.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 48a4ea41: Renovate
8
+ - Updated dependencies [48a4ea41]
9
+ - @forge/cli-shared@3.17.0-next.6
10
+ - @forge/bundler@4.10.4-next.11
11
+
12
+ ## 3.6.4-next.10
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [88be9538]
17
+ - @forge/bundler@4.10.4-next.10
18
+ - @forge/runtime@4.4.5-next.1
19
+
20
+ ## 3.6.4-next.9
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [07eb84dc]
25
+ - @forge/cli-shared@3.17.0-next.5
26
+ - @forge/bundler@4.10.4-next.9
27
+
28
+ ## 3.6.4-next.8
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [665f1b2f]
33
+ - @forge/cli-shared@3.17.0-next.4
34
+ - @forge/bundler@4.10.4-next.8
35
+
36
+ ## 3.6.4-next.7
37
+
38
+ ### Patch Changes
39
+
40
+ - 467d04a4: Added warning message for ngrok tunnel timing out after two hours
41
+ - Updated dependencies [467d04a4]
42
+ - @forge/cli-shared@3.17.0-next.3
43
+ - @forge/bundler@4.10.4-next.7
44
+
45
+ ## 3.6.4-next.6
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [d6728272]
50
+ - @forge/cli-shared@3.17.0-next.2
51
+ - @forge/bundler@4.10.4-next.6
52
+
53
+ ## 3.6.4-next.5
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [79b19f24]
58
+ - @forge/bundler@4.10.4-next.5
59
+
60
+ ## 3.6.4-next.4
61
+
62
+ ### Patch Changes
63
+
64
+ - @forge/cli-shared@3.16.1-next.1
65
+ - @forge/bundler@4.10.4-next.4
66
+
67
+ ## 3.6.4-next.3
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [7ade714]
72
+ - @forge/bundler@4.10.4-next.3
73
+
74
+ ## 3.6.4-next.2
75
+
76
+ ### Patch Changes
77
+
78
+ - 8105c45: Bumping dependencies via Renovate:
79
+
80
+ - @types/jest
81
+ - jest
82
+ - jest-environment-jsdom
83
+
84
+ - Updated dependencies [8105c45]
85
+ - @forge/bundler@4.10.4-next.2
86
+ - @forge/cli-shared@3.16.1-next.0
87
+ - @forge/csp@2.1.5-next.0
88
+ - @forge/runtime@4.4.5-next.0
89
+
3
90
  ## 3.6.4-next.1
4
91
 
5
92
  ### Patch Changes
@@ -19,6 +19,8 @@ export interface StartTunnelResult {
19
19
  stopFunction(): Promise<void>;
20
20
  reloadSandboxes(bundledCode: BundlerOutput): Promise<void>;
21
21
  }
22
+ export declare const NGROK_TIMEOUT_HOURS = 2;
23
+ export declare const MS_IN_HOUR: number;
22
24
  export declare class StartTunnelCommand {
23
25
  private readonly getAppConfig;
24
26
  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;I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,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAX7B,OAAO,CAAC,aAAa,CAAmE;IACxF,OAAO,CAAC,iBAAiB,CAAgC;gBAGtC,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,qBAAqB,EACnC,YAAY,EAAE,qBAAqB,EACnC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU;IAGzC,OAAO,CAAC,YAAY,CAUlB;IAEF,OAAO,CAAC,qBAAqB,CAc3B;IAEF,OAAO,CAAC,gCAAgC,CAmCtC;IAEW,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAoD9E"}
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartTunnelCommand = void 0;
3
+ exports.StartTunnelCommand = exports.MS_IN_HOUR = exports.NGROK_TIMEOUT_HOURS = 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;
10
12
  class StartTunnelCommand {
11
13
  constructor(getAppConfig, devServer, tunnelFactory, tunnelClient, functionHost, inspector, logger, configFile) {
12
14
  this.getAppConfig = getAppConfig;
@@ -34,6 +36,10 @@ class StartTunnelCommand {
34
36
  const { permissions = {}, remotes = [] } = await this.configFile.readConfig();
35
37
  const serverInfo = await this.devServer.start(port, permissions, remotes);
36
38
  const faasTunnelUrl = await this.tunnelFactory.establishTunnel(serverInfo.port);
39
+ this.logger.warn(cli_shared_1.Text.tunnel.ngrokTimeoutWarning(exports.NGROK_TIMEOUT_HOURS));
40
+ setTimeout(() => {
41
+ this.logger.warn(cli_shared_1.Text.tunnel.ngrokTimeoutReached(exports.NGROK_TIMEOUT_HOURS));
42
+ }, exports.NGROK_TIMEOUT_HOURS * exports.MS_IN_HOUR);
37
43
  return Object.assign(Object.assign({}, serverInfo), { tunnelUrl: faasTunnelUrl });
38
44
  };
39
45
  this.startResourceBasedTunnelsServers = async (resourceDetails, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "3.6.4-next.1",
3
+ "version": "3.6.4-next.11",
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.10.4-next.1",
15
- "@forge/cli-shared": "3.16.0",
16
- "@forge/csp": "2.1.4",
17
- "@forge/runtime": "4.4.4",
14
+ "@forge/bundler": "4.10.4-next.11",
15
+ "@forge/cli-shared": "3.17.0-next.6",
16
+ "@forge/csp": "2.1.5-next.0",
17
+ "@forge/runtime": "4.4.5-next.1",
18
18
  "express": "^4.18.2",
19
19
  "express-intercept": "^0.8.10",
20
20
  "http-proxy-middleware": "^1.3.1",
@@ -26,10 +26,10 @@
26
26
  "webpack-dev-server": "^4.15.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@atlassian/xen-test-util": "^1.16.0",
30
- "@forge/manifest": "4.17.0",
29
+ "@atlassian/xen-test-util": "^2.1.3",
30
+ "@forge/manifest": "4.17.1-next.1",
31
31
  "@types/express": "^4.17.17",
32
- "@types/jest": "^29.1.2",
32
+ "@types/jest": "^29.5.3",
33
33
  "@types/node": "14.18.53",
34
34
  "@types/supertest": "^2.0.12",
35
35
  "@types/tmp": "^0.2.3",