@forge/lint 5.9.0-experimental-71cedbc → 5.9.0-next.10-experimental-97e4b11
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 +5 -60
- package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.d.ts.map +1 -1
- package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.js +1 -3
- package/out/lint/linters/permission-linter/verifiers/image-url-verifier.d.ts.map +1 -1
- package/out/lint/linters/permission-linter/verifiers/image-url-verifier.js +1 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
-
## 5.9.0-experimental-
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [71cedbc]
|
|
8
|
-
- @forge/cli-shared@8.0.0-experimental-71cedbc
|
|
9
|
-
- @forge/csp@4.0.0-experimental-71cedbc
|
|
10
|
-
|
|
11
|
-
## 5.9.0
|
|
3
|
+
## 5.9.0-next.10-experimental-97e4b11
|
|
12
4
|
|
|
13
5
|
### Minor Changes
|
|
14
6
|
|
|
@@ -18,7 +10,6 @@
|
|
|
18
10
|
|
|
19
11
|
### Patch Changes
|
|
20
12
|
|
|
21
|
-
- 67bff6d: Fix linter for image egress
|
|
22
13
|
- dd7cad7: Fix deprecated egress manifest linter
|
|
23
14
|
- Updated dependencies [a7bd152]
|
|
24
15
|
- Updated dependencies [73a88f6]
|
|
@@ -26,67 +17,21 @@
|
|
|
26
17
|
- Updated dependencies [e4ab25f]
|
|
27
18
|
- Updated dependencies [0c92352]
|
|
28
19
|
- Updated dependencies [8f2a3c9]
|
|
29
|
-
- Updated dependencies [1992aaf]
|
|
30
20
|
- Updated dependencies [75b7732]
|
|
31
21
|
- Updated dependencies [b44a5b3]
|
|
32
22
|
- Updated dependencies [c3df542]
|
|
33
23
|
- Updated dependencies [9f050ff]
|
|
34
24
|
- Updated dependencies [e6cd96a]
|
|
35
25
|
- Updated dependencies [97255de]
|
|
36
|
-
- Updated dependencies [3d96d1c]
|
|
37
26
|
- Updated dependencies [18eab48]
|
|
38
27
|
- Updated dependencies [be59801]
|
|
39
28
|
- Updated dependencies [8a548ce]
|
|
40
29
|
- Updated dependencies [37eba69]
|
|
41
|
-
- Updated dependencies [c2e09b9]
|
|
42
|
-
- Updated dependencies [ba634d9]
|
|
43
30
|
- Updated dependencies [64befbb]
|
|
44
|
-
-
|
|
45
|
-
- @forge/
|
|
46
|
-
- @forge/
|
|
47
|
-
- @forge/
|
|
48
|
-
- @forge/csp@4.0.0
|
|
49
|
-
|
|
50
|
-
## 5.9.0-next.15
|
|
51
|
-
|
|
52
|
-
### Patch Changes
|
|
53
|
-
|
|
54
|
-
- 67bff6d: Fix linter for image egress
|
|
55
|
-
- Updated dependencies [3d96d1c]
|
|
56
|
-
- @forge/manifest@10.0.0-next.13
|
|
57
|
-
- @forge/cli-shared@8.0.0-next.15
|
|
58
|
-
|
|
59
|
-
## 5.9.0-next.14
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- Updated dependencies [ba634d9]
|
|
64
|
-
- @forge/cli-shared@8.0.0-next.14
|
|
65
|
-
- @forge/manifest@10.0.0-next.12
|
|
66
|
-
|
|
67
|
-
## 5.9.0-next.13
|
|
68
|
-
|
|
69
|
-
### Patch Changes
|
|
70
|
-
|
|
71
|
-
- Updated dependencies [1992aaf]
|
|
72
|
-
- Updated dependencies [c2e09b9]
|
|
73
|
-
- @forge/manifest@10.0.0-next.11
|
|
74
|
-
- @forge/cli-shared@8.0.0-next.13
|
|
75
|
-
|
|
76
|
-
## 5.9.0-next.12
|
|
77
|
-
|
|
78
|
-
### Patch Changes
|
|
79
|
-
|
|
80
|
-
- Updated dependencies [d33186c]
|
|
81
|
-
- @forge/cli-shared@8.0.0-next.12
|
|
82
|
-
|
|
83
|
-
## 5.9.0-next.11
|
|
84
|
-
|
|
85
|
-
### Patch Changes
|
|
86
|
-
|
|
87
|
-
- Updated dependencies [e6cd96a]
|
|
88
|
-
- @forge/manifest@10.0.0-next.10
|
|
89
|
-
- @forge/cli-shared@8.0.0-next.11
|
|
31
|
+
- @forge/manifest@10.0.0-next.9-experimental-97e4b11
|
|
32
|
+
- @forge/cli-shared@8.0.0-next.10-experimental-97e4b11
|
|
33
|
+
- @forge/egress@2.0.0-next.0-experimental-97e4b11
|
|
34
|
+
- @forge/csp@4.0.0-next.0-experimental-97e4b11
|
|
90
35
|
|
|
91
36
|
## 5.9.0-next.10
|
|
92
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-properties-icon-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,qBAAa,6BACX,SAAQ,iCACR,YAAW,iBAAiB,CAAC,wBAAwB,EAAE,CAAC;IAExD,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"dynamic-properties-icon-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,qBAAa,6BACX,SAAQ,iCACR,YAAW,iBAAiB,CAAC,wBAAwB,EAAE,CAAC;IAExD,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IASnD,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,QAAQ,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAmBtF"}
|
package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.js
CHANGED
|
@@ -10,9 +10,7 @@ class DynamicPropertiesIconVerifier extends abstract_dynamic_properties_verifier
|
|
|
10
10
|
egressFilteringService;
|
|
11
11
|
constructor(environment, manifest) {
|
|
12
12
|
super(environment, manifest);
|
|
13
|
-
const allowList =
|
|
14
|
-
.map((item) => (typeof item === 'object' && 'address' in item ? item.address : item))
|
|
15
|
-
.filter((item) => typeof item === 'string');
|
|
13
|
+
const allowList = this.manifest?.permissions?.external?.images ?? [];
|
|
16
14
|
const collectedUrls = allowList.filter((item) => typeof item === 'string');
|
|
17
15
|
this.egressFilteringService = new egress_1.EgressFilteringService(collectedUrls);
|
|
18
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-url-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/image-url-verifier.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiBjD,qBAAa,gBAAiB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAClG,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"image-url-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/image-url-verifier.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiBjD,qBAAa,gBAAiB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAClG,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAgBnD,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAcvE"}
|
|
@@ -28,9 +28,7 @@ class ImageUrlVerifier extends verifier_interface_1.BaseLintIssueVerifier {
|
|
|
28
28
|
constructor(environment, manifest) {
|
|
29
29
|
super(environment, manifest);
|
|
30
30
|
const microsEnv = getMicrosEnvironment((0, cli_shared_1.getEnvironmentConfig)());
|
|
31
|
-
const allowList =
|
|
32
|
-
.map((item) => (typeof item === 'object' && 'address' in item ? item.address : item))
|
|
33
|
-
.filter((item) => typeof item === 'string');
|
|
31
|
+
const allowList = this.manifest?.permissions?.external?.images ?? [];
|
|
34
32
|
const collectedUrls = [
|
|
35
33
|
...allowList,
|
|
36
34
|
...csp_1.ATLASSIAN_IMAGES_HOSTS[microsEnv],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "5.9.0-experimental-
|
|
3
|
+
"version": "5.9.0-next.10-experimental-97e4b11",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
14
|
-
"@forge/api": "^6.0.0",
|
|
14
|
+
"@forge/api": "^6.0.0-next.0-experimental-97e4b11",
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.2",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"eslint-plugin-import": "^2.29.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@forge/cli-shared": "8.0.0-experimental-
|
|
23
|
-
"@forge/csp": "4.0.0-experimental-
|
|
24
|
-
"@forge/egress": "2.0.0",
|
|
25
|
-
"@forge/manifest": "10.0.0",
|
|
22
|
+
"@forge/cli-shared": "8.0.0-next.10-experimental-97e4b11",
|
|
23
|
+
"@forge/csp": "4.0.0-next.0-experimental-97e4b11",
|
|
24
|
+
"@forge/egress": "2.0.0-next.0-experimental-97e4b11",
|
|
25
|
+
"@forge/manifest": "10.0.0-next.9-experimental-97e4b11",
|
|
26
26
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.2",
|
|
28
28
|
"atlassian-openapi": "^1.0.18",
|