@forge/lint 1.6.0-next.2 → 1.6.0-next.6
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,39 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 1.6.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fc38deb: Fix bug on the auto-fix permissions linter
|
|
8
|
+
- Updated dependencies [f5eb8e0]
|
|
9
|
+
- @forge/manifest@2.5.0-next.5
|
|
10
|
+
- @forge/cli-shared@2.1.5-next.5
|
|
11
|
+
|
|
12
|
+
## 1.6.0-next.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [4de9850]
|
|
17
|
+
- @forge/manifest@2.5.0-next.4
|
|
18
|
+
- @forge/cli-shared@2.1.5-next.4
|
|
19
|
+
|
|
20
|
+
## 1.6.0-next.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [dec8066]
|
|
25
|
+
- @forge/manifest@2.5.0-next.3
|
|
26
|
+
- @forge/cli-shared@2.1.5-next.3
|
|
27
|
+
|
|
28
|
+
## 1.6.0-next.3
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [755e35e]
|
|
33
|
+
- Updated dependencies [f013199]
|
|
34
|
+
- @forge/manifest@2.5.0-next.2
|
|
35
|
+
- @forge/cli-shared@2.1.5-next.2
|
|
36
|
+
|
|
3
37
|
## 1.6.0-next.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -37,7 +37,7 @@ exports.fixMissingPermissions = async (errors, warnings, state) => {
|
|
|
37
37
|
const currentPermissions = (_b = (_a = (await state.configFile.readConfig())) === null || _a === void 0 ? void 0 : _a.permissions) !== null && _b !== void 0 ? _b : {};
|
|
38
38
|
const currentRemotes = (_d = (_c = (await state.configFile.readConfig())) === null || _c === void 0 ? void 0 : _c.remotes) !== null && _d !== void 0 ? _d : [];
|
|
39
39
|
const currentScopes = (_e = currentPermissions === null || currentPermissions === void 0 ? void 0 : currentPermissions.scopes) !== null && _e !== void 0 ? _e : [];
|
|
40
|
-
currentScopes.forEach(missingScopes.add);
|
|
40
|
+
currentScopes.forEach((e) => missingScopes.add(e));
|
|
41
41
|
const currentExternalFetchBackend = (_h = (_g = (_f = currentPermissions === null || currentPermissions === void 0 ? void 0 : currentPermissions.external) === null || _f === void 0 ? void 0 : _f.fetch) === null || _g === void 0 ? void 0 : _g.backend) !== null && _h !== void 0 ? _h : [];
|
|
42
42
|
currentExternalFetchBackend
|
|
43
43
|
.map((item) => {
|
|
@@ -47,10 +47,10 @@ exports.fixMissingPermissions = async (errors, warnings, state) => {
|
|
|
47
47
|
return (_a = currentRemotes.find((remote) => remote.key == item.remote)) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
48
48
|
})
|
|
49
49
|
.filter((item) => typeof item === 'string')
|
|
50
|
-
.forEach(missingExternalFetchBackend.add);
|
|
50
|
+
.forEach((e) => missingExternalFetchBackend.add(e));
|
|
51
51
|
const arrayMissingExternalFetchBackend = [...missingExternalFetchBackend];
|
|
52
52
|
const currentContentStyles = (_k = (_j = currentPermissions === null || currentPermissions === void 0 ? void 0 : currentPermissions.content) === null || _j === void 0 ? void 0 : _j.styles) !== null && _k !== void 0 ? _k : [];
|
|
53
|
-
currentContentStyles.forEach(missingContentStyle.add);
|
|
53
|
+
currentContentStyles.forEach((e) => missingContentStyle.add(e));
|
|
54
54
|
const arrayMissingContentStyles = [...missingContentStyle];
|
|
55
55
|
await state.configFile.writeToConfigFile('permissions', Object.assign(Object.assign(Object.assign(Object.assign({}, currentPermissions), { scopes: [...missingScopes] }), (arrayMissingExternalFetchBackend.length > 0
|
|
56
56
|
? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "1.6.0-next.
|
|
3
|
+
"version": "1.6.0-next.6",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"@types/node-fetch": "^2.5.7"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@forge/cli-shared": "2.1.5-next.
|
|
18
|
+
"@forge/cli-shared": "2.1.5-next.5",
|
|
19
19
|
"@forge/csp": "1.8.0",
|
|
20
|
-
"@forge/manifest": "2.5.0-next.
|
|
20
|
+
"@forge/manifest": "2.5.0-next.5",
|
|
21
21
|
"@typescript-eslint/typescript-estree": "^3.5.0",
|
|
22
22
|
"cross-spawn": "^7.0.1",
|
|
23
23
|
"node-fetch": "^2.6.1"
|