@forge/tunnel 6.4.2-next.4 → 6.5.0-next.6
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 +21 -0
- package/out/command/interactors/function-change-watcher.d.ts.map +1 -1
- package/out/command/interactors/function-change-watcher.js +2 -1
- package/out/sandbox/node-sandbox.d.ts +1 -1
- package/out/sandbox/node-sandbox.d.ts.map +1 -1
- package/out/sandbox/node-sandbox.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 6.5.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2a03b88]
|
|
8
|
+
- @forge/cli-shared@8.25.0-next.4
|
|
9
|
+
- @forge/bundler@6.2.2-next.6
|
|
10
|
+
|
|
11
|
+
## 6.5.0-next.5
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 6aeecd7: The tunnel debugger now binds to localhost (127.0.0.1) by default instead of all network interfaces (0.0.0.0). If you need to attach a debugger from another host, use the new `--debugHost` option on `forge tunnel` to specify the IP address to bind to.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [6aeecd7]
|
|
20
|
+
- @forge/cli-shared@8.25.0-next.3
|
|
21
|
+
- @forge/runtime@6.2.0-next.0
|
|
22
|
+
- @forge/bundler@6.2.2-next.5
|
|
23
|
+
|
|
3
24
|
## 6.4.2-next.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../src/command/interactors/function-change-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAEV,MAAM,EACN,aAAa,EAId,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAIL,OAAO,EACP,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,qBAAa,iBAAkB,YAAW,qBAAqB;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IALhC,OAAO,CAAC,oBAAoB,CAA8C;gBAGvD,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC;IAG7D,aAAa,CACxB,WAAW,EAAE,aAAa,EAC1B,aAAa,GAAE,aAA2C,GACzD,OAAO,CAAC,IAAI,CAAC;IAeH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,yBAAyB,CAa/B;YAEY,mBAAmB;
|
|
1
|
+
{"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../src/command/interactors/function-change-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAEV,MAAM,EACN,aAAa,EAId,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAIL,OAAO,EACP,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,qBAAa,iBAAkB,YAAW,qBAAqB;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IALhC,OAAO,CAAC,oBAAoB,CAA8C;gBAGvD,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC;IAG7D,aAAa,CACxB,WAAW,EAAE,aAAa,EAC1B,aAAa,GAAE,aAA2C,GACzD,OAAO,CAAC,IAAI,CAAC;IAeH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,yBAAyB,CAa/B;YAEY,mBAAmB;WAwBnB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;CAY7F"}
|
|
@@ -56,7 +56,8 @@ class LocalFunctionHost {
|
|
|
56
56
|
modName: module,
|
|
57
57
|
appPath: srcPath,
|
|
58
58
|
handler: func,
|
|
59
|
-
debugPort: LocalFunctionHost.getDebuggerPort(module, func, tunnelOptions)
|
|
59
|
+
debugPort: LocalFunctionHost.getDebuggerPort(module, func, tunnelOptions),
|
|
60
|
+
debugHost: tunnelOptions.debugHost
|
|
60
61
|
});
|
|
61
62
|
}));
|
|
62
63
|
util_1.SandboxesContainer.updateSandboxes(sandboxes);
|
|
@@ -3,7 +3,7 @@ export declare class NodeSandbox implements Sandbox {
|
|
|
3
3
|
readonly name: string;
|
|
4
4
|
private process;
|
|
5
5
|
private readonly callbacks;
|
|
6
|
-
constructor({ appPath, modName, handler, debugPort }: SandboxConfig);
|
|
6
|
+
constructor({ appPath, modName, handler, debugPort, debugHost }: SandboxConfig);
|
|
7
7
|
private handleOutput;
|
|
8
8
|
execute(request: ExternalRequestBody): Promise<InvocationResult>;
|
|
9
9
|
stop(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/node-sandbox.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,EACP,aAAa,EAId,MAAM,gBAAgB,CAAC;AAMxB,qBAAa,WAAY,YAAW,OAAO;IACzC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkD;gBAEhE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"node-sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/node-sandbox.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,EACP,aAAa,EAId,MAAM,gBAAgB,CAAC;AAMxB,qBAAa,WAAY,YAAW,OAAO;IACzC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkD;gBAEhE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,aAAa;IAgC9E,OAAO,CAAC,YAAY;IAOd,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAyBtE,IAAI,IAAI,IAAI;CAGb"}
|
|
@@ -13,7 +13,7 @@ class NodeSandbox {
|
|
|
13
13
|
name;
|
|
14
14
|
process;
|
|
15
15
|
callbacks;
|
|
16
|
-
constructor({ appPath, modName, handler, debugPort }) {
|
|
16
|
+
constructor({ appPath, modName, handler, debugPort, debugHost }) {
|
|
17
17
|
const name = `${modName}.${handler}`;
|
|
18
18
|
this.name = name;
|
|
19
19
|
this.callbacks = new Map();
|
|
@@ -27,7 +27,7 @@ class NodeSandbox {
|
|
|
27
27
|
FORGE_EFS_RUNTIME_PATH: appPath,
|
|
28
28
|
FORGE_CUSTOM_WRAPPER_FILE_NAME: '__forge_wrapper__.cjs'
|
|
29
29
|
},
|
|
30
|
-
execArgv: debugPort ? [`--inspect
|
|
30
|
+
execArgv: debugPort ? [`--inspect=${debugHost}:${debugPort}`] : undefined
|
|
31
31
|
});
|
|
32
32
|
readline_1.default.createInterface(this.process.stdout).on('line', (line) => {
|
|
33
33
|
const message = JSON.parse(line);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0-next.6",
|
|
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": "6.2.2-next.
|
|
15
|
-
"@forge/cli-shared": "8.
|
|
14
|
+
"@forge/bundler": "6.2.2-next.6",
|
|
15
|
+
"@forge/cli-shared": "8.25.0-next.4",
|
|
16
16
|
"@forge/csp": "5.9.0-next.2",
|
|
17
|
-
"@forge/runtime": "6.
|
|
17
|
+
"@forge/runtime": "6.2.0-next.0",
|
|
18
18
|
"@forge/util": "^2.0.1",
|
|
19
19
|
"cheerio": "^1.2.0",
|
|
20
20
|
"chokidar": "^3.6.0",
|