npm package diff
Package: @forge/manifest
Versions: 7.5.4-next.2 - 7.6.0-next.3
Modified: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'")) {
Modified:package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/manifest",
- "version": "7.5.4-next.2",
+ "version": "7.6.0-next.3",
"description": "Definitions and validations of the Forge manifest",
"main": "out/index.js",
"scripts": {
"build": "yarn run compile",
@@ -27,9 +27,9 @@
"@forge/util": "1.4.4",
"@sentry/node": "7.100.1",
"ajv": "^8.12.0",
"ajv-formats": "2.1.1",
- "cheerio": "^0.22.0",
+ "cheerio": "^1.0.0",
"glob": "^10.3.10",
"lodash": "^4.17.21",
"node-fetch": "2.7.0",
"yaml": "^2.3.4"
Modified:package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
# @forge/manifest
+## 7.6.0-next.3
+
+### Minor Changes
+
+- 4117f97: Bump cheerio from version 0.22 to version 1.0
+
## 7.5.4-next.2
### Patch Changes