npm package diff
Package: @forge/bundler
Versions: 4.17.6-next.5 - 4.18.0-next.6
File: package/out/config/node.js
Index: package/out/config/node.js
===================================================================
--- package/out/config/node.js
+++ package/out/config/node.js
@@ -1,9 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
const tslib_1 = require("tslib");
-const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
+const cheerio_1 = require("cheerio");
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
const cli_shared_1 = require("@forge/cli-shared");
const common_1 = require("./common");
exports.NODE_WEBPACK_CONFIG_NAME = 'node-runtime';
@@ -60,9 +60,9 @@
constructor() {
this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
}
async getWrapperPathFromIndex(htmlContent, requestId) {
- const html = cheerio_1.default.load(htmlContent);
+ const html = (0, cheerio_1.load)(htmlContent, { xml: { xmlMode: false } });
const wrapperPath = html('script')?.get()?.[0]?.attribs['src'];
if (typeof wrapperPath !== 'string') {
throw new ParseWrapperCDNIndexError('Unable to parse source of runtime component.', requestId);
}