npm package diff

Package: @forge/cli-shared

Versions: 5.4.0-next.4 - 5.4.0-next.5

Modified:package/out/service/bridge-script-service.js

Index: package/out/service/bridge-script-service.js
===================================================================
--- package/out/service/bridge-script-service.js
+++ package/out/service/bridge-script-service.js
@@ -1,9 +1,8 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.BridgeScriptService = void 0;
-const tslib_1 = require("tslib");
-const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
+const cheerio_1 = require("cheerio");
 const gateway_1 = require("../graphql/gateway");
 const BRIDGE_CORE_CDN_PATH = 'global-bridge.js';
 const GLOBAL_FORGE_INSTALL_ID = 'forge';
 class BridgeScriptService {
@@ -14,9 +13,9 @@
     createBridgeCoreScriptTag() {
         return `<script src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${BRIDGE_CORE_CDN_PATH}"></script>`;
     }
     injectBridgeCore(content, onError) {
-        const $ = cheerio_1.default.load(content);
+        const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
         if ($('html').length === 0)
             onError();
         let head = $('head');
         if (head.length === 0) {

Modified:package/out/graphql/graphql-types.js

too-big

Modified:package/out/service/iframe-resizer-script-service.js

Index: package/out/service/iframe-resizer-script-service.js
===================================================================
--- package/out/service/iframe-resizer-script-service.js
+++ package/out/service/iframe-resizer-script-service.js
@@ -1,9 +1,8 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.IframeResizerScriptService = void 0;
-const tslib_1 = require("tslib");
-const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
+const cheerio_1 = require("cheerio");
 const gateway_1 = require("../graphql/gateway");
 const IFRAME_RESIZER_CDN_PATH = 'iframeResizer.contentWindow.min.js';
 const GLOBAL_FORGE_INSTALL_ID = 'forge';
 class IframeResizerScriptService {
@@ -14,9 +13,9 @@
     createIframeResizerScriptTag() {
         return `<script async src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${IFRAME_RESIZER_CDN_PATH}"></script>`;
     }
     injectIframeResizer(content, onError) {
-        const $ = cheerio_1.default.load(content);
+        const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
         if ($('html').length === 0)
             onError();
         let head = $('head');
         if (head.length === 0) {

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/cli-shared",
-  "version": "5.4.0-next.4",
+  "version": "5.4.0-next.5",
   "description": "Common functionality for Forge CLI",
   "author": "Atlassian",
   "license": "UNLICENSED",
   "main": "out/index.js",
@@ -11,16 +11,16 @@
     "compile": "tsc -b -v",
     "generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
   },
   "dependencies": {
-    "@forge/manifest": "7.5.4-next.2",
+    "@forge/manifest": "7.6.0-next.3",
     "@forge/util": "1.4.4",
     "@sentry/node": "7.100.1",
     "adm-zip": "^0.5.10",
     "array.prototype.flatmap": "^1.3.2",
     "case": "^1.6.3",
     "chalk": "^4.1.2",
-    "cheerio": "^0.22.0",
+    "cheerio": "^1.0.0",
     "cli-table3": "^0.6.3",
     "conf": "^10.2.0",
     "cross-spawn": "^7.0.3",
     "env-paths": "^2.2.1",

Modified:package/out/graphql/graphql-types.d.ts.map

too-big

Modified:package/CHANGELOG.md

too-big

Modified:package/out/graphql/graphql-types.d.ts

too-big