npm package diff

Package: @forge/tunnel

Versions: 5.10.1-next.9 - 5.10.1-next.10

Modified: package/out/servers/resource-tunnel-server.js

Index: package/out/servers/resource-tunnel-server.js
===================================================================
--- package/out/servers/resource-tunnel-server.js
+++ package/out/servers/resource-tunnel-server.js
@@ -49,13 +49,17 @@
         .if((res) => /html/i.test(res.get('content-type')))
         .replaceBuffer((body, _, res) => {
         if (!res)
             return body;
-        const htmlContentWithIframeResizerScript = this.injectIframeResizerScript(body);
-        const htmlContentWithBridgeScript = this.injectGlobalBridgeScript(htmlContentWithIframeResizerScript);
-        const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
+        let htmlContent = body;
+        if (res.get('url') === '/') {
+            const htmlContentWithIframeResizerScript = this.injectIframeResizerScript(body);
+            const htmlContentWithBridgeScript = this.injectGlobalBridgeScript(htmlContentWithIframeResizerScript);
+            htmlContent = htmlContentWithBridgeScript;
+        }
+        const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContent, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
         res.setHeader('Content-Security-Policy', this.getCspHeader(cspDetails));
-        return htmlContentWithBridgeScript;
+        return htmlContent;
     });
     getI18nResourcesMiddleware = (i18nConfig) => {
         const i18nResourcesPathRegex = /^\/__LOCALES__\/(.+)\.json$/i;
         const i18nResourceFileAccessor = new cli_shared_1.I18nResourceBundlingService().createFileAccessor(i18nConfig);

Modified: package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/tunnel",
-  "version": "5.10.1-next.9",
+  "version": "5.10.1-next.10",
   "description": "Tunnel functionality for Forge CLI",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -10,10 +10,10 @@
     "clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo",
     "compile": "tsc -b -v"
   },
   "dependencies": {
-    "@forge/bundler": "4.21.1-next.9",
-    "@forge/cli-shared": "6.8.0-next.9",
+    "@forge/bundler": "4.21.1-next.10",
+    "@forge/cli-shared": "6.8.0-next.10",
     "@forge/csp": "3.6.2",
     "@forge/runtime": "5.10.7",
     "cloudflared": "^0.7.0",
     "chokidar": "^3.6.0",
@@ -29,9 +29,9 @@
     "which": "^3.0.1"
   },
   "devDependencies": {
     "@atlassian/xen-test-util": "^4.2.0",
-    "@forge/manifest": "8.9.0-next.4",
+    "@forge/manifest": "8.9.0-next.5",
     "@types/express": "^4.17.21",
     "@types/jest": "^29.5.12",
     "@types/node": "14.18.63",
     "@types/supertest": "^2.0.16",

Modified: package/out/servers/resource-tunnel-server.d.ts.map

Index: package/out/servers/resource-tunnel-server.d.ts.map
===================================================================
--- package/out/servers/resource-tunnel-server.d.ts.map
+++ package/out/servers/resource-tunnel-server.d.ts.map
@@ -1,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;AAG1E,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CA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