@forge/manifest 7.5.3 → 7.5.4-next.0-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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 7.5.4-next.0-experimental-264fa0f
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 562a25c: Allow updating manifest schema resources with app-host-artifacts changes on staging
|
|
8
|
+
- 386c1f1: Bump cheerio from version 0.22 to version 1.0
|
|
9
|
+
|
|
10
|
+
## 7.5.4-next.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 562a25c: Allow updating manifest schema resources with app-host-artifacts changes on staging
|
|
15
|
+
|
|
3
16
|
## 7.5.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ exports.ResourcesValidator = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
-
const cheerio_1 =
|
|
7
|
+
const cheerio_1 = require("cheerio");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
9
|
const text_1 = require("../text");
|
|
10
10
|
const utils_2 = require("../utils");
|
|
@@ -88,7 +88,7 @@ class ResourcesValidator {
|
|
|
88
88
|
return;
|
|
89
89
|
if (fs_1.default.existsSync((0, path_1.resolve)(manifestDir, path, 'index.html'))) {
|
|
90
90
|
const content = fs_1.default.readFileSync((0, path_1.resolve)(manifestDir, path, 'index.html'));
|
|
91
|
-
const $ = cheerio_1.
|
|
91
|
+
const $ = (0, cheerio_1.load)(content, { xml: { xmlMode: false } });
|
|
92
92
|
const cspContent = $('meta[http-equiv="Content-Security-Policy"]').attr('content');
|
|
93
93
|
if (cspContent) {
|
|
94
94
|
const cspStyleSrc = cspContent.split(';').find((s) => s.startsWith('style-src'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/manifest",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.4-next.0-experimental-264fa0f",
|
|
4
4
|
"description": "Definitions and validations of the Forge manifest",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@sentry/node": "7.100.1",
|
|
29
29
|
"ajv": "^8.12.0",
|
|
30
30
|
"ajv-formats": "2.1.1",
|
|
31
|
-
"cheerio": "^0.
|
|
31
|
+
"cheerio": "^1.0.0",
|
|
32
32
|
"glob": "^10.3.10",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"node-fetch": "2.7.0",
|