npm package diff
Package: @forge/cli-shared
Versions: 5.4.0-next.4 - 5.4.0-next.5
File: 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) {