@forge/lint 1.6.0-next.1 → 1.6.0-next.10

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,80 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 1.6.0-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [601527b]
8
+ - @forge/manifest@2.5.0-next.9
9
+ - @forge/cli-shared@2.1.5-next.9
10
+
11
+ ## 1.6.0-next.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [a5656f6]
16
+ - Updated dependencies [78d682f]
17
+ - @forge/manifest@2.5.0-next.8
18
+ - @forge/cli-shared@2.1.5-next.8
19
+
20
+ ## 1.6.0-next.8
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [cc8799c]
25
+ - @forge/manifest@2.5.0-next.7
26
+ - @forge/cli-shared@2.1.5-next.7
27
+
28
+ ## 1.6.0-next.7
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [0e82242]
33
+ - @forge/manifest@2.5.0-next.6
34
+ - @forge/cli-shared@2.1.5-next.6
35
+
36
+ ## 1.6.0-next.6
37
+
38
+ ### Patch Changes
39
+
40
+ - fc38deb: Fix bug on the auto-fix permissions linter
41
+ - Updated dependencies [f5eb8e0]
42
+ - @forge/manifest@2.5.0-next.5
43
+ - @forge/cli-shared@2.1.5-next.5
44
+
45
+ ## 1.6.0-next.5
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [4de9850]
50
+ - @forge/manifest@2.5.0-next.4
51
+ - @forge/cli-shared@2.1.5-next.4
52
+
53
+ ## 1.6.0-next.4
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [dec8066]
58
+ - @forge/manifest@2.5.0-next.3
59
+ - @forge/cli-shared@2.1.5-next.3
60
+
61
+ ## 1.6.0-next.3
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [755e35e]
66
+ - Updated dependencies [f013199]
67
+ - @forge/manifest@2.5.0-next.2
68
+ - @forge/cli-shared@2.1.5-next.2
69
+
70
+ ## 1.6.0-next.2
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [66f60f9]
75
+ - @forge/manifest@2.5.0-next.1
76
+ - @forge/cli-shared@2.1.5-next.1
77
+
3
78
  ## 1.6.0-next.1
4
79
 
5
80
  ### Minor 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.1",
3
+ "version": "1.6.0-next.10",
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.0",
18
+ "@forge/cli-shared": "2.1.5-next.9",
19
19
  "@forge/csp": "1.8.0",
20
- "@forge/manifest": "2.4.1-next.0",
20
+ "@forge/manifest": "2.5.0-next.9",
21
21
  "@typescript-eslint/typescript-estree": "^3.5.0",
22
22
  "cross-spawn": "^7.0.1",
23
23
  "node-fetch": "^2.6.1"