@forge/lint 5.9.2-next.1 → 5.10.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 +80 -0
- 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 +2 -1
- package/out/lint/linters/permission-linter/verifiers/product-verifier.d.ts +1 -1
- package/out/lint/linters/permission-linter/verifiers/product-verifier.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 5.10.0-next.10
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cfde21e: Add CSP Urls for IC environment
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [cfde21e]
|
|
12
|
+
- @forge/cli-shared@8.2.0-next.10
|
|
13
|
+
- @forge/csp@4.2.0-next.0
|
|
14
|
+
|
|
15
|
+
## 5.10.0-next.9
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 0402460: Upgraded archiver from 6.0.2 to 7.0.1, moved atlassian-openapi to @atlassian/atlassian-openapi, bumped get-folder-size from 2.0.1 to 5.0.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [0402460]
|
|
24
|
+
- @forge/cli-shared@8.2.0-next.9
|
|
25
|
+
|
|
26
|
+
## 5.10.0-next.8
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [8e9a8b5]
|
|
31
|
+
- Updated dependencies [426dfe1]
|
|
32
|
+
- @forge/cli-shared@8.2.0-next.8
|
|
33
|
+
- @forge/manifest@10.1.1-next.2
|
|
34
|
+
|
|
35
|
+
## 5.10.0-next.7
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [5069c3c]
|
|
40
|
+
- @forge/manifest@10.1.1-next.1
|
|
41
|
+
- @forge/cli-shared@8.2.0-next.7
|
|
42
|
+
|
|
43
|
+
## 5.10.0-next.6
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [e118b07]
|
|
48
|
+
- @forge/cli-shared@8.2.0-next.6
|
|
49
|
+
|
|
50
|
+
## 5.10.0-next.5
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [d544fc6]
|
|
55
|
+
- @forge/cli-shared@8.2.0-next.5
|
|
56
|
+
|
|
57
|
+
## 5.10.0-next.4
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- Updated dependencies [73f3108]
|
|
62
|
+
- @forge/cli-shared@8.2.0-next.4
|
|
63
|
+
|
|
64
|
+
## 5.10.0-next.3
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- a26c603: revert package upgrades
|
|
69
|
+
- Updated dependencies [a26c603]
|
|
70
|
+
- @forge/cli-shared@8.2.0-next.3
|
|
71
|
+
|
|
72
|
+
## 5.10.0-next.2
|
|
73
|
+
|
|
74
|
+
### Minor Changes
|
|
75
|
+
|
|
76
|
+
- 05d33ea: Upgraded archiver from 6.0.2 to 7.0.1, moved atlassian-openapi to @atlassian/atlassian-openapi, bumped get-folder-size from 2.0.1 to 5.0.0
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [05d33ea]
|
|
81
|
+
- @forge/cli-shared@8.2.0-next.2
|
|
82
|
+
|
|
3
83
|
## 5.9.2-next.1
|
|
4
84
|
|
|
5
85
|
### Patch Changes
|
|
@@ -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;IAoBnD,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAcvE"}
|
|
@@ -31,9 +31,10 @@ class ImageUrlVerifier extends verifier_interface_1.BaseLintIssueVerifier {
|
|
|
31
31
|
const allowList = (this.manifest?.permissions?.external?.images ?? [])
|
|
32
32
|
.map((item) => (typeof item === 'object' && 'address' in item ? item.address : item))
|
|
33
33
|
.filter((item) => typeof item === 'string');
|
|
34
|
+
const icOptions = { icLabel: '*', serviceName: 'forge-cdn' };
|
|
34
35
|
const collectedUrls = [
|
|
35
36
|
...allowList,
|
|
36
|
-
...csp_1.
|
|
37
|
+
...(0, csp_1.getAtlassianImageHost)(microsEnv, icOptions),
|
|
37
38
|
...csp_1.EXTERNAL_ALLOW_LISTED_IMAGES_HOSTS
|
|
38
39
|
].filter((item) => typeof item === 'string');
|
|
39
40
|
this.egressFilteringService = new egress_1.EgressFilteringService(collectedUrls);
|
|
@@ -2,7 +2,7 @@ import { LintResultRule, LintClass } from '../../../linter-interface';
|
|
|
2
2
|
import { ApiCall, ProductApiCall } from '../api-call-interface';
|
|
3
3
|
import { LintIssueVerifier, BaseLintIssueVerifier } from '../../verifier-interface';
|
|
4
4
|
import { ManifestSchema as Manifest } from '@forge/manifest';
|
|
5
|
-
import { Swagger } from 'atlassian-openapi';
|
|
5
|
+
import { Swagger } from '@atlassian/atlassian-openapi';
|
|
6
6
|
import OAuth2ScopesWithState = Swagger.OAuth2ScopesWithState;
|
|
7
7
|
export interface ProductMethod {
|
|
8
8
|
originalPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/product-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGpF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAoB,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/product-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGpF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAoB,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,MAAM,EAAE,MAAM,GAAG;QAChB,QAAQ,EAAE,aAAa,EAAE,CAAC;QAC1B,2BAA2B,CAAC,EAAE,qBAAqB,EAAE,CAAC;KACvD,CAAC;CACH;AAED,UAAU,aAAa;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC9B;AAED,oBAAY,uBAAuB,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEjE,qBAAa,eAAgB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,OAAO,EAAE,CAAC;IAI9F,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHxB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,EACD,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,MAAM;IAKlC,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAuC3E,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,0BAA0B;IAOlC,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,aAAa;CAWtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0-next.10",
|
|
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.2-next.
|
|
14
|
+
"@forge/api": "^6.0.2-next.2",
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.12",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"eslint-plugin-import": "^2.29.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@forge/cli-shared": "8.
|
|
23
|
-
"@forge/csp": "4.
|
|
22
|
+
"@forge/cli-shared": "8.2.0-next.10",
|
|
23
|
+
"@forge/csp": "4.2.0-next.0",
|
|
24
24
|
"@forge/egress": "2.0.1",
|
|
25
|
-
"@forge/manifest": "10.1.1-next.
|
|
25
|
+
"@forge/manifest": "10.1.1-next.2",
|
|
26
26
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.3",
|
|
28
|
-
"atlassian-openapi": "^1.0.
|
|
28
|
+
"@atlassian/atlassian-openapi": "^1.0.6",
|
|
29
29
|
"cross-spawn": "^7.0.6",
|
|
30
30
|
"node-fetch": "2.7.0"
|
|
31
31
|
},
|