@forge/cli-shared 8.1.0-next.8 → 8.1.0-next.8-experimental-64a3a39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-script-service.d.ts","sourceRoot":"","sources":["../../src/service/bridge-script-service.ts"],"names":[],"mappings":";;AAMA,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAwC;IAExE,OAAO,CAAC,yBAAyB;IAI1B,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYtE"}
1
+ {"version":3,"file":"bridge-script-service.d.ts","sourceRoot":"","sources":["../../src/service/bridge-script-service.ts"],"names":[],"mappings":";;AAMA,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAwC;IAExE,OAAO,CAAC,yBAAyB;IAI1B,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAatE"}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BridgeScriptService = void 0;
4
- const tslib_1 = require("tslib");
5
- const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
4
+ const cheerio_1 = require("cheerio");
6
5
  const gateway_1 = require("../graphql/gateway");
7
6
  const BRIDGE_CORE_CDN_PATH = 'global-bridge.js';
8
7
  const GLOBAL_FORGE_INSTALL_ID = 'forge';
@@ -15,7 +14,7 @@ class BridgeScriptService {
15
14
  return `<script src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${BRIDGE_CORE_CDN_PATH}"></script>`;
16
15
  }
17
16
  injectBridgeCore(content, onError) {
18
- const $ = cheerio_1.default.load(content);
17
+ const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
19
18
  if ($('html').length === 0)
20
19
  onError();
21
20
  let head = $('head');
@@ -1 +1 @@
1
- {"version":3,"file":"iframe-resizer-script-service.d.ts","sourceRoot":"","sources":["../../src/service/iframe-resizer-script-service.ts"],"names":[],"mappings":";;AAMA,qBAAa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAwC;IAExE,OAAO,CAAC,4BAA4B;IAI7B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYzE"}
1
+ {"version":3,"file":"iframe-resizer-script-service.d.ts","sourceRoot":"","sources":["../../src/service/iframe-resizer-script-service.ts"],"names":[],"mappings":";;AAMA,qBAAa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAwC;IAExE,OAAO,CAAC,4BAA4B;IAI7B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAazE"}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IframeResizerScriptService = void 0;
4
- const tslib_1 = require("tslib");
5
- const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
4
+ const cheerio_1 = require("cheerio");
6
5
  const gateway_1 = require("../graphql/gateway");
7
6
  const IFRAME_RESIZER_CDN_PATH = 'iframeResizer.contentWindow.min.js';
8
7
  const GLOBAL_FORGE_INSTALL_ID = 'forge';
@@ -15,7 +14,7 @@ class IframeResizerScriptService {
15
14
  return `<script async src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${IFRAME_RESIZER_CDN_PATH}"></script>`;
16
15
  }
17
16
  injectIframeResizer(content, onError) {
18
- const $ = cheerio_1.default.load(content);
17
+ const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
19
18
  if ($('html').length === 0)
20
19
  onError();
21
20
  let head = $('head');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "8.1.0-next.8",
3
+ "version": "8.1.0-next.8-experimental-64a3a39",
4
4
  "description": "Common functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -12,15 +12,15 @@
12
12
  "generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
13
13
  },
14
14
  "dependencies": {
15
- "@forge/manifest": "10.1.0-next.8",
16
- "@forge/util": "1.4.10-next.0",
17
- "@forge/i18n": "0.0.7-next.0",
15
+ "@forge/manifest": "10.1.0-next.8-experimental-64a3a39",
16
+ "@forge/util": "1.4.10-next.0-experimental-64a3a39",
17
+ "@forge/i18n": "0.0.7-next.0-experimental-64a3a39",
18
18
  "@sentry/node": "7.106.0",
19
19
  "adm-zip": "^0.5.10",
20
20
  "array.prototype.flatmap": "^1.3.3",
21
21
  "case": "^1.6.3",
22
22
  "chalk": "^4.1.2",
23
- "cheerio": "^0.22.0",
23
+ "cheerio": "^1.1.0",
24
24
  "cli-table3": "^0.6.5",
25
25
  "conf": "^10.2.0",
26
26
  "cross-spawn": "^7.0.6",
@@ -28,7 +28,7 @@
28
28
  "figures": "^3.2.0",
29
29
  "fp-ts": "^2.16.2",
30
30
  "fs-extra": "^11.2.0",
31
- "get-folder-size": "^2.0.1",
31
+ "get-folder-size": "^5.0.0",
32
32
  "glob": "^10.3.10",
33
33
  "graphql": "^16.8.1",
34
34
  "graphql-request": "6.1.0",
@@ -53,7 +53,6 @@
53
53
  "@graphql-tools/schema": "^10.0.23",
54
54
  "@types/adm-zip": "^0.5.5",
55
55
  "@types/array.prototype.flatmap": "^1.2.6",
56
- "@types/cheerio": "^0.22.35",
57
56
  "@types/cross-spawn": "^6.0.6",
58
57
  "@types/fs-extra": "^11.0.4",
59
58
  "@types/get-folder-size": "^2.0.0",