@forge/tunnel 3.7.0-next.18 → 3.7.0-next.20
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,21 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 3.7.0-next.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [770654be]
|
|
8
|
+
- @forge/bundler@4.12.0-next.19
|
|
9
|
+
- @forge/runtime@5.0.1-next.7
|
|
10
|
+
|
|
11
|
+
## 3.7.0-next.19
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 902c23c0: Fetch wrapper directly from CDN instead of Launchdarkly
|
|
16
|
+
- Updated dependencies [902c23c0]
|
|
17
|
+
- @forge/bundler@4.12.0-next.18
|
|
18
|
+
|
|
3
19
|
## 3.7.0-next.18
|
|
4
20
|
|
|
5
21
|
### 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,
|
|
6
|
+
import { ConfigFile, 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,13 +30,12 @@ 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
33
|
private readonly fileSystemReader;
|
|
35
34
|
private app;
|
|
36
35
|
private httpServer;
|
|
37
36
|
private permissions;
|
|
38
37
|
private remotes;
|
|
39
|
-
constructor(invocationService: InvocationService, logger: Logger, configFile: ConfigFile,
|
|
38
|
+
constructor(invocationService: InvocationService, logger: Logger, configFile: ConfigFile, fileSystemReader: FileSystemReader);
|
|
40
39
|
start(port?: number, permissions?: Permissions, remotes?: Remotes): Promise<StartDevServerResult>;
|
|
41
40
|
stop(): Promise<void>;
|
|
42
41
|
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,EAAE,UAAU,EAAE,gBAAgB,EAAY,MAAM,EAAqB,MAAM,mBAAmB,CAAC;AACtG,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;IACh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;IAe5F,IAAI;IAIJ,eAAe,CAAC,EAC3B,gBAAgB,EAChB,eAAe,EAChB,EAAE,UAAU,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAsD1D,MAAM,IAAI,OAAO,CAAC,WAAW;IAI7B,gBAAgB,EAAE,OAAO,CAAC,OAAO,CA2CtC;CACH"}
|
|
@@ -19,11 +19,10 @@ 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, fileSystemReader) {
|
|
23
23
|
this.invocationService = invocationService;
|
|
24
24
|
this.logger = logger;
|
|
25
25
|
this.configFile = configFile;
|
|
26
|
-
this.featureFlags = featureFlags;
|
|
27
26
|
this.fileSystemReader = fileSystemReader;
|
|
28
27
|
this.handleInvocation = async (req, res) => {
|
|
29
28
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -84,7 +83,7 @@ class LocalDevelopmentServer {
|
|
|
84
83
|
return;
|
|
85
84
|
}
|
|
86
85
|
const getConfig = (await this.configFile.runtimeType()) === cli_shared_1.RuntimeType.nodejs
|
|
87
|
-
? (0, bundler_2.getNodeRuntimeBuildConfig)(await (0, bundler_1.getWrapperProvider)({
|
|
86
|
+
? (0, bundler_2.getNodeRuntimeBuildConfig)(await (0, bundler_1.getWrapperProvider)({ fileSystemReader: this.fileSystemReader }))
|
|
88
87
|
: bundler_2.getSandboxedRuntimeBuildConfig;
|
|
89
88
|
const config = getConfig(entryPoints, {
|
|
90
89
|
isWatchMode: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "3.7.0-next.
|
|
3
|
+
"version": "3.7.0-next.20",
|
|
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.12.0-next.
|
|
14
|
+
"@forge/bundler": "4.12.0-next.19",
|
|
15
15
|
"@forge/cli-shared": "3.18.0-next.12",
|
|
16
16
|
"@forge/csp": "2.2.1-next.3",
|
|
17
|
-
"@forge/runtime": "5.0.1-next.
|
|
17
|
+
"@forge/runtime": "5.0.1-next.7",
|
|
18
18
|
"express": "^4.18.2",
|
|
19
19
|
"express-intercept": "^1.1.0",
|
|
20
20
|
"http-proxy-middleware": "^1.3.1",
|