@forge/manifest 7.6.0-next.5 → 7.6.0
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,27 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 7.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 90f621b: Revert cheerio upgrade
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 114989d: remove unused dependencies: @forge/util and node-fetch
|
|
12
|
+
- c0e7e2f: Add test to validate if the i18n props in manifest json is configured properly
|
|
13
|
+
- 562a25c: Allow updating manifest schema resources with app-host-artifacts changes on staging
|
|
14
|
+
- 09d005e: Fix failing unit tests in pipeline
|
|
15
|
+
- 3f5f84e: Update manifest definitions
|
|
16
|
+
- 03eba4f: Update manifest definitions
|
|
17
|
+
- 9384afe: Update manifest definitions
|
|
18
|
+
|
|
19
|
+
## 7.6.0-next.6
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 90f621b: Revert cheerio upgrade
|
|
24
|
+
|
|
3
25
|
## 7.6.0-next.5
|
|
4
26
|
|
|
5
27
|
### 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 = require("cheerio");
|
|
7
|
+
const cheerio_1 = tslib_1.__importDefault(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 $ =
|
|
91
|
+
const $ = cheerio_1.default.load(content);
|
|
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.6.0
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Definitions and validations of the Forge manifest",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@sentry/node": "7.100.1",
|
|
28
28
|
"ajv": "^8.12.0",
|
|
29
29
|
"ajv-formats": "2.1.1",
|
|
30
|
-
"cheerio": "^
|
|
30
|
+
"cheerio": "^0.22.0",
|
|
31
31
|
"glob": "^10.3.10",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"yaml": "^2.3.4"
|