@forge/tunnel 6.0.4-next.0 → 6.0.4-next.2
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,24 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 6.0.4-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bc8e0c5: Update @forge/csp version
|
|
8
|
+
- Updated dependencies [7a8de48]
|
|
9
|
+
- Updated dependencies [bc8e0c5]
|
|
10
|
+
- @forge/runtime@6.0.3-next.0
|
|
11
|
+
- @forge/csp@5.0.0-next.0
|
|
12
|
+
- @forge/bundler@6.1.3-next.2
|
|
13
|
+
- @forge/cli-shared@8.3.1-next.2
|
|
14
|
+
|
|
15
|
+
## 6.0.4-next.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- @forge/bundler@6.1.3-next.1
|
|
20
|
+
- @forge/cli-shared@8.3.1-next.1
|
|
21
|
+
|
|
3
22
|
## 6.0.4-next.0
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-tunnel-server.d.ts","sourceRoot":"","sources":["../../src/servers/resource-tunnel-server.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,QAAQ,EAMR,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAA6C,MAAM,YAAY,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-tunnel-server.d.ts","sourceRoot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AS,CAAC,YAAY,gBAAiB,UAAU,aAAa,MAAM,KAAG,MAAM,CAQ7D;IAEhB,SAAS,CAAC,wBAAwB,gBAAiB,MAAM,YAGpD;IAEL,SAAS,CAAC,yBAAyB,gBAAiB,MAAM,YAGrD;IAEL,SAAS,CAAC,kCAAkC,gBAAiB,WAAW,uBAAqB,cAAc,CAwBpG;IAEP,SAAS,CAAC,0BAA0B,eAAgB,YAAY,WAI3C,OAAO,QAAQ,QAAQ,QAAQ,YAAY,mBAU9D;CACH"}
|
|
@@ -4,6 +4,7 @@ exports.ResourceTunnelServer = void 0;
|
|
|
4
4
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
5
5
|
const csp_1 = require("@forge/csp");
|
|
6
6
|
const express_intercept_1 = require("express-intercept");
|
|
7
|
+
const cheerio_1 = require("cheerio");
|
|
7
8
|
class ResourceTunnelServer {
|
|
8
9
|
port;
|
|
9
10
|
key;
|
|
@@ -55,7 +56,7 @@ class ResourceTunnelServer {
|
|
|
55
56
|
return body;
|
|
56
57
|
const htmlContentWithIframeResizerScript = this.injectIframeResizerScript(body);
|
|
57
58
|
const htmlContentWithBridgeScript = this.injectGlobalBridgeScript(htmlContentWithIframeResizerScript);
|
|
58
|
-
const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
|
|
59
|
+
const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }, cheerio_1.load).getCspDetails(htmlContentWithBridgeScript, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
|
|
59
60
|
const hostname = req.query.hostname;
|
|
60
61
|
res.setHeader('Content-Security-Policy', this.getCspHeader(cspDetails, hostname));
|
|
61
62
|
return htmlContentWithBridgeScript;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "6.0.4-next.
|
|
3
|
+
"version": "6.0.4-next.2",
|
|
4
4
|
"description": "Tunnel functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
"compile": "tsc -b -v"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@forge/bundler": "6.1.3-next.
|
|
15
|
-
"@forge/cli-shared": "8.3.1-next.
|
|
16
|
-
"@forge/csp": "
|
|
17
|
-
"@forge/runtime": "6.0.
|
|
14
|
+
"@forge/bundler": "6.1.3-next.2",
|
|
15
|
+
"@forge/cli-shared": "8.3.1-next.2",
|
|
16
|
+
"@forge/csp": "5.0.0-next.0",
|
|
17
|
+
"@forge/runtime": "6.0.3-next.0",
|
|
18
|
+
"cheerio": "^1.1.0",
|
|
18
19
|
"chokidar": "^3.6.0",
|
|
19
20
|
"cloudflared": "^0.7.0",
|
|
20
21
|
"express": "^4.18.3",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
33
|
-
"@forge/manifest": "10.2.2-next.
|
|
34
|
+
"@forge/manifest": "10.2.2-next.2",
|
|
34
35
|
"@types/express": "^4.17.21",
|
|
35
36
|
"@types/jest": "^29.5.14",
|
|
36
37
|
"@types/node": "20.19.1",
|