npm package diff
Package: @forge/manifest
Versions: 7.5.4-next.1 - 7.5.4-next.0-experimental-264fa0f
File: package/out/validators/resources-validator.js
Index: package/out/validators/resources-validator.js
===================================================================
--- package/out/validators/resources-validator.js
+++ package/out/validators/resources-validator.js
@@ -3,9 +3,9 @@
exports.ResourcesValidator = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const path_1 = require("path");
-const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
+const cheerio_1 = require("cheerio");
const utils_1 = require("../utils");
const text_1 = require("../text");
const utils_2 = require("../utils");
const MAX_RESOURCE_COUNT = 10;
@@ -87,9 +87,9 @@
if (!path)
return;
if (fs_1.default.existsSync((0, path_1.resolve)(manifestDir, path, 'index.html'))) {
const content = fs_1.default.readFileSync((0, path_1.resolve)(manifestDir, path, 'index.html'));
- const $ = cheerio_1.default.load(content);
+ const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
const cspContent = $('meta[http-equiv="Content-Security-Policy"]').attr('content');
if (cspContent) {
const cspStyleSrc = cspContent.split(';').find((s) => s.startsWith('style-src'));
if (cspStyleSrc?.includes("'unsafe-inline'")) {