@forge/bundler 4.17.6-next.1 → 4.17.6-next.1-experimental-264fa0f
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 +10 -0
- package/out/config/node.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.17.6-next.1-experimental-264fa0f
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 386c1f1: Bump cheerio from version 0.22 to version 1.0
|
|
8
|
+
- Updated dependencies [41ba7c6]
|
|
9
|
+
- Updated dependencies [386c1f1]
|
|
10
|
+
- @forge/cli-shared@5.4.0-next.1-experimental-264fa0f
|
|
11
|
+
- @forge/lint@5.3.2-next.1-experimental-264fa0f
|
|
12
|
+
|
|
3
13
|
## 4.17.6-next.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/out/config/node.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.LOCAL_WRAPPER_PATH = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
-
const cheerio_1 =
|
|
6
|
+
const cheerio_1 = require("cheerio");
|
|
7
7
|
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
8
8
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
9
9
|
const common_1 = require("./common");
|
|
@@ -63,7 +63,7 @@ class NetworkWrapperProvider {
|
|
|
63
63
|
this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
|
|
64
64
|
}
|
|
65
65
|
async getWrapperPathFromIndex(htmlContent, requestId) {
|
|
66
|
-
const html = cheerio_1.
|
|
66
|
+
const html = (0, cheerio_1.load)(htmlContent, { xml: { xmlMode: false } });
|
|
67
67
|
const wrapperPath = html('script')?.get()?.[0]?.attribs['src'];
|
|
68
68
|
if (typeof wrapperPath !== 'string') {
|
|
69
69
|
throw new ParseWrapperCDNIndexError('Unable to parse source of runtime component.', requestId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.17.6-next.1",
|
|
3
|
+
"version": "4.17.6-next.1-experimental-264fa0f",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"@babel/preset-typescript": "^7.23.3",
|
|
22
22
|
"@forge/api": "3.9.0",
|
|
23
23
|
"@forge/babel-plugin-transform-ui": "1.1.18",
|
|
24
|
-
"@forge/cli-shared": "5.4.0-next.1",
|
|
25
|
-
"@forge/lint": "5.3.2-next.1",
|
|
24
|
+
"@forge/cli-shared": "5.4.0-next.1-experimental-264fa0f",
|
|
25
|
+
"@forge/lint": "5.3.2-next.1-experimental-264fa0f",
|
|
26
26
|
"@forge/util": "1.4.4",
|
|
27
27
|
"assert": "^2.1.0",
|
|
28
28
|
"babel-loader": "^8.3.0",
|
|
29
29
|
"browserify-zlib": "^0.2.0",
|
|
30
30
|
"buffer": "^6.0.3",
|
|
31
31
|
"chalk": "^4.1.2",
|
|
32
|
-
"cheerio": "^0.
|
|
32
|
+
"cheerio": "^1.0.0",
|
|
33
33
|
"console-browserify": "^1.2.0",
|
|
34
34
|
"crypto-browserify": "^3.12.0",
|
|
35
35
|
"events": "^3.3.0",
|