@forge/tunnel 3.6.7-next.8 → 3.7.0-next.9
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,17 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 3.7.0-next.9
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 424cf45e: Use CDN packaged wrapper script for the node runtime
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [424cf45e]
|
|
12
|
+
- @forge/cli-shared@3.18.0-next.6
|
|
13
|
+
- @forge/bundler@4.12.0-next.9
|
|
14
|
+
|
|
3
15
|
## 3.6.7-next.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import express from 'express';
|
|
4
4
|
import * as http from 'http';
|
|
5
5
|
import { URL } from 'url';
|
|
6
|
-
import { ConfigFile, Logger } from '@forge/cli-shared';
|
|
6
|
+
import { ConfigFile, FeatureFlagService, FileSystemReader, Logger } from '@forge/cli-shared';
|
|
7
7
|
import { ExternalRequestBody } from '@forge/runtime';
|
|
8
8
|
import { Permissions, Remotes } from '@forge/manifest';
|
|
9
9
|
import { BundlerOutput } from '@forge/bundler';
|
|
@@ -30,11 +30,13 @@ export declare class LocalDevelopmentServer implements DevelopmentServer {
|
|
|
30
30
|
private readonly invocationService;
|
|
31
31
|
private readonly logger;
|
|
32
32
|
private readonly configFile;
|
|
33
|
+
private readonly featureFlags;
|
|
34
|
+
private readonly fileSystemReader;
|
|
33
35
|
private app;
|
|
34
36
|
private httpServer;
|
|
35
37
|
private permissions;
|
|
36
38
|
private remotes;
|
|
37
|
-
constructor(invocationService: InvocationService, logger: Logger, configFile: ConfigFile);
|
|
39
|
+
constructor(invocationService: InvocationService, logger: Logger, configFile: ConfigFile, featureFlags: FeatureFlagService, fileSystemReader: FileSystemReader);
|
|
38
40
|
start(port?: number, permissions?: Permissions, remotes?: Remotes): Promise<StartDevServerResult>;
|
|
39
41
|
stop(): Promise<void>;
|
|
40
42
|
compileAndWatch({ onBuildWillStart, onBuildFinished }: WatchHooks<BundlerOutput>): Promise<BundlerOutput | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/servers/dev-server.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,OAAO,
|
|
1
|
+
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/servers/dev-server.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAEhB,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,aAAa,EAMd,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IACjC,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,eAAe,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,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O,CAAC,oBAAoB,CAAC;IAe5F,IAAI;IAIJ,eAAe,CAAC,EAC3B,gBAAgB,EAChB,eAAe,EAChB,EAAE,UAAU,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAwD1D,MAAM,IAAI,OAAO,CAAC,WAAW;IAI7B,gBAAgB,EAAE,OAAO,CAAC,OAAO,CA2CtC;CACH"}
|
|
@@ -19,10 +19,12 @@ async function stopServer(server) {
|
|
|
19
19
|
}
|
|
20
20
|
exports.stopServer = stopServer;
|
|
21
21
|
class LocalDevelopmentServer {
|
|
22
|
-
constructor(invocationService, logger, configFile) {
|
|
22
|
+
constructor(invocationService, logger, configFile, featureFlags, fileSystemReader) {
|
|
23
23
|
this.invocationService = invocationService;
|
|
24
24
|
this.logger = logger;
|
|
25
25
|
this.configFile = configFile;
|
|
26
|
+
this.featureFlags = featureFlags;
|
|
27
|
+
this.fileSystemReader = fileSystemReader;
|
|
26
28
|
this.handleInvocation = async (req, res) => {
|
|
27
29
|
var _a, _b, _c, _d, _e, _f;
|
|
28
30
|
const request = req.body;
|
|
@@ -82,7 +84,7 @@ class LocalDevelopmentServer {
|
|
|
82
84
|
return;
|
|
83
85
|
}
|
|
84
86
|
const getConfig = (await this.configFile.runtimeType()) === cli_shared_1.RuntimeType.nodejs
|
|
85
|
-
? bundler_2.getNodeRuntimeBuildConfig
|
|
87
|
+
? (0, bundler_2.getNodeRuntimeBuildConfig)(await (0, bundler_1.getWrapperProvider)({ featureFlags: this.featureFlags, fileSystemReader: this.fileSystemReader }))
|
|
86
88
|
: bundler_2.getSandboxedRuntimeBuildConfig;
|
|
87
89
|
const config = getConfig(entryPoints, {
|
|
88
90
|
isWatchMode: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0-next.9",
|
|
4
4
|
"description": "Tunnel functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"compile": "tsc -b -v"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@forge/bundler": "4.
|
|
15
|
-
"@forge/cli-shared": "3.18.0-next.
|
|
14
|
+
"@forge/bundler": "4.12.0-next.9",
|
|
15
|
+
"@forge/cli-shared": "3.18.0-next.6",
|
|
16
16
|
"@forge/csp": "2.2.1-next.1",
|
|
17
17
|
"@forge/runtime": "5.0.1-next.2",
|
|
18
18
|
"express": "^4.18.2",
|