@forge/tunnel 5.9.4-next.1 → 5.9.4-next.10-experimental-d22b31e

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,89 @@
1
1
  # @forge/tunnel
2
2
 
3
+ ## 5.9.4-next.10-experimental-d22b31e
4
+
5
+ ### Patch Changes
6
+
7
+ - 30f197e: Refactoring to enable alternate bundler support
8
+ - Updated dependencies [70cd30c]
9
+ - Updated dependencies [dbc077f]
10
+ - Updated dependencies [272d770]
11
+ - Updated dependencies [78a006f]
12
+ - Updated dependencies [30f197e]
13
+ - @forge/cli-shared@6.6.2-next.8-experimental-d22b31e
14
+ - @forge/bundler@4.21.0-next.10-experimental-d22b31e
15
+ - @forge/runtime@5.10.7-next.0-experimental-d22b31e
16
+ - @forge/csp@3.6.2-experimental-d22b31e
17
+
18
+ ## 5.9.4-next.10
19
+
20
+ ### Patch Changes
21
+
22
+ - @forge/bundler@4.21.0-next.10
23
+ - @forge/cli-shared@6.6.2-next.8
24
+
25
+ ## 5.9.4-next.9
26
+
27
+ ### Patch Changes
28
+
29
+ - @forge/bundler@4.21.0-next.9
30
+ - @forge/cli-shared@6.6.2-next.7
31
+
32
+ ## 5.9.4-next.8
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [dbc077f]
37
+ - @forge/cli-shared@6.6.2-next.6
38
+ - @forge/bundler@4.21.0-next.8
39
+
40
+ ## 5.9.4-next.7
41
+
42
+ ### Patch Changes
43
+
44
+ - @forge/bundler@4.21.0-next.7
45
+ - @forge/cli-shared@6.6.2-next.5
46
+
47
+ ## 5.9.4-next.6
48
+
49
+ ### Patch Changes
50
+
51
+ - @forge/bundler@4.21.0-next.6
52
+ - @forge/cli-shared@6.6.2-next.4
53
+
54
+ ## 5.9.4-next.5
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [78a006f]
59
+ - @forge/cli-shared@6.6.2-next.3
60
+ - @forge/bundler@4.21.0-next.5
61
+
62
+ ## 5.9.4-next.4
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [272d770]
67
+ - @forge/cli-shared@6.6.2-next.2
68
+ - @forge/runtime@5.10.7-next.0
69
+ - @forge/bundler@4.21.0-next.4
70
+
71
+ ## 5.9.4-next.3
72
+
73
+ ### Patch Changes
74
+
75
+ - @forge/bundler@4.21.0-next.3
76
+
77
+ ## 5.9.4-next.2
78
+
79
+ ### Patch Changes
80
+
81
+ - 30f197e: Refactoring to enable alternate bundler support
82
+ - Updated dependencies [70cd30c]
83
+ - Updated dependencies [30f197e]
84
+ - @forge/cli-shared@6.6.2-next.1
85
+ - @forge/bundler@4.21.0-next.2
86
+
3
87
  ## 5.9.4-next.1
4
88
 
5
89
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/servers/dev-server.ts"],"names":[],"mappings":";;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAGL,YAAY,EACZ,aAAa,EAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,MAAM,EAEN,cAAc,EAId,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAIvD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAClG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,eAAe,CAAC,KAAK,EA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S,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ/E;AAED,qBAAa,sBAAuB,YAAW,iBAAiB;IAO5D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAVjC,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,OAAO,CAAsB;gBAGlB,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc;IAQpC,KAAK,CAAC,IAAI,SAAI,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAe5F,IAAI;IAIJ,eAAe,CAC1B,KAAK,EAAE,YAAY,EACnB,aAAa,GAAE,aAA2C,GACzD,OAAO,CAAC,aAAa,CAAC;IA8BlB,MAAM,IAAI,OAAO,CAAC,WAAW;IAI7B,gBAAgB,EAAE,OAAO,CAAC,OAAO,CA2CtC;CACH"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LocalDevelopmentServer = exports.stopServer = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const path_1 = tslib_1.__importDefault(require("path"));
6
5
  const express_1 = tslib_1.__importDefault(require("express"));
7
6
  const bundler_1 = require("@forge/bundler");
8
7
  const cli_shared_1 = require("@forge/cli-shared");
@@ -54,19 +53,19 @@ class LocalDevelopmentServer {
54
53
  }
55
54
  async compileAndWatch(watch, tunnelOptions = cli_shared_1.defaultNoDebugTunnelOptions) {
56
55
  const isNodeJsRuntime = (await this.configFile.runtimeType()) === cli_shared_1.RuntimeType.nodejs;
57
- const outputDir = isNodeJsRuntime && tunnelOptions.debug ? path_1.default.resolve(cli_shared_1.TUNNEL_BUNDLE_DIRECTORY) : (0, cli_shared_1.tmpDir)('tunnel');
56
+ const watchMode = tunnelOptions.debug ? 'debug' : 'watch';
58
57
  const handlers = await this.configFile.getAppHandlers();
59
58
  const entryPoints = (0, bundler_1.getEntryPoints)(handlers);
60
59
  if (!entryPoints.length) {
61
- return { outputDir };
60
+ return { outputDir: (0, bundler_1.getOutputDir)({ watchMode }) };
62
61
  }
63
62
  const bundler = isNodeJsRuntime
64
- ? new bundler_1.NodeBundler(this.logger, (0, bundler_1.getWrapperProvider)({ fileSystemReader: this.fileSystemReader, statsigService: this.statsigService }))
63
+ ? (0, bundler_1.getNodeBundler)(this.logger, (0, bundler_1.getWrapperProvider)({ fileSystemReader: this.fileSystemReader, statsigService: this.statsigService }), this.configFile)
65
64
  : new bundler_1.SandboxBundler(this.logger);
66
65
  const { result } = await bundler.watch({
67
66
  appDirectory: process.cwd(),
68
67
  entryPoints,
69
- watchMode: tunnelOptions.debug ? 'debug' : 'watch',
68
+ watchMode,
70
69
  successMessage: cli_shared_1.Text.tunnel.functionsBundlingSucceeded
71
70
  }, watch);
72
71
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "5.9.4-next.1",
3
+ "version": "5.9.4-next.10-experimental-d22b31e",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -11,10 +11,10 @@
11
11
  "compile": "tsc -b -v"
12
12
  },
13
13
  "dependencies": {
14
- "@forge/bundler": "4.20.10-next.1",
15
- "@forge/cli-shared": "6.6.2-next.0",
16
- "@forge/csp": "3.6.2",
17
- "@forge/runtime": "5.10.6",
14
+ "@forge/bundler": "4.21.0-next.10-experimental-d22b31e",
15
+ "@forge/cli-shared": "6.6.2-next.8-experimental-d22b31e",
16
+ "@forge/csp": "3.6.2-experimental-d22b31e",
17
+ "@forge/runtime": "5.10.7-next.0-experimental-d22b31e",
18
18
  "cloudflared": "^0.7.0",
19
19
  "chokidar": "^3.6.0",
20
20
  "express": "^4.18.3",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@atlassian/xen-test-util": "^4.2.0",
33
- "@forge/manifest": "8.7.1-next.0",
33
+ "@forge/manifest": "8.8.0-next.4-experimental-d22b31e",
34
34
  "@types/express": "^4.17.21",
35
35
  "@types/jest": "^29.5.12",
36
36
  "@types/node": "14.18.63",