@forge/csp 3.4.1-next.0 → 3.5.0-next.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,17 @@
|
|
|
1
1
|
# @forge/csp
|
|
2
2
|
|
|
3
|
+
## 3.5.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 540ea27: Allow listing the media API for image CSPs
|
|
8
|
+
|
|
9
|
+
## 3.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2819919: remove connect-to from csp header as it is no longer used
|
|
14
|
+
|
|
3
15
|
## 3.4.1-next.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csp-injection-service.d.ts","sourceRoot":"","sources":["../../src/csp/csp-injection-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"csp-injection-service.d.ts","sourceRoot":"","sources":["../../src/csp/csp-injection-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAmB,MAAM,UAAU,CAAC;AAsEvD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,iBAAiB;IA8BlB,gBAAgB;4BAOD,UAAU;mBACnB,iBAAiB;;;;UAI1B,MAAM,EAAE,CA6DV;CACH"}
|
|
@@ -9,6 +9,13 @@ const apiGatewayHost = {
|
|
|
9
9
|
'fedramp-stg': 'https://api.stg.atlassian-us-gov-mod.com',
|
|
10
10
|
'fedramp-prod': 'https://api.atlassian-us-gov-mod.com'
|
|
11
11
|
};
|
|
12
|
+
const mediaGatewayHost = {
|
|
13
|
+
dev: 'https://media.dev.atl-paas.net',
|
|
14
|
+
stg: 'https://media.staging.atl-paas.net',
|
|
15
|
+
prod: 'https://api.media.atlassian.com',
|
|
16
|
+
'fedramp-stg': 'https://api-media.stg.atlassian-us-gov-mod.com',
|
|
17
|
+
'fedramp-prod': 'https://api-media.atlassian-us-gov-mod.com'
|
|
18
|
+
};
|
|
12
19
|
const atlassianAvatarHost = {
|
|
13
20
|
dev: 'avatar-management--avatars.us-west-2.staging.public.atl-paas.net',
|
|
14
21
|
stg: 'avatar-management--avatars.us-west-2.staging.public.atl-paas.net',
|
|
@@ -20,27 +27,32 @@ const atlassianImageHosts = {
|
|
|
20
27
|
dev: [
|
|
21
28
|
`https://${atlassianAvatarHost['dev']}`,
|
|
22
29
|
`https://*.wp.com/${atlassianAvatarHost['dev']}/`,
|
|
23
|
-
apiGatewayHost['dev']
|
|
30
|
+
apiGatewayHost['dev'],
|
|
31
|
+
mediaGatewayHost['dev']
|
|
24
32
|
],
|
|
25
33
|
stg: [
|
|
26
34
|
`https://${atlassianAvatarHost['stg']}`,
|
|
27
35
|
`https://*.wp.com/${atlassianAvatarHost['stg']}/`,
|
|
28
|
-
apiGatewayHost['stg']
|
|
36
|
+
apiGatewayHost['stg'],
|
|
37
|
+
mediaGatewayHost['stg']
|
|
29
38
|
],
|
|
30
39
|
prod: [
|
|
31
40
|
`https://${atlassianAvatarHost['prod']}`,
|
|
32
41
|
`https://*.wp.com/${atlassianAvatarHost['prod']}/`,
|
|
33
|
-
apiGatewayHost['prod']
|
|
42
|
+
apiGatewayHost['prod'],
|
|
43
|
+
mediaGatewayHost['prod']
|
|
34
44
|
],
|
|
35
45
|
'fedramp-stg': [
|
|
36
46
|
`https://${atlassianAvatarHost['fedramp-stg']}`,
|
|
37
47
|
`https://*.wp.com/${atlassianAvatarHost['fedramp-stg']}/`,
|
|
38
|
-
apiGatewayHost['fedramp-stg']
|
|
48
|
+
apiGatewayHost['fedramp-stg'],
|
|
49
|
+
mediaGatewayHost['fedramp-stg']
|
|
39
50
|
],
|
|
40
51
|
'fedramp-prod': [
|
|
41
52
|
`https://${atlassianAvatarHost['fedramp-prod']}`,
|
|
42
53
|
`https://*.wp.com/${atlassianAvatarHost['fedramp-prod']}/`,
|
|
43
|
-
apiGatewayHost['fedramp-prod']
|
|
54
|
+
apiGatewayHost['fedramp-prod'],
|
|
55
|
+
mediaGatewayHost['fedramp-prod']
|
|
44
56
|
]
|
|
45
57
|
};
|
|
46
58
|
const gravatarUrl = 'https://secure.gravatar.com';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/csp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-next.0",
|
|
4
4
|
"description": "Contains the CSP configuration for Custom UI resources in Forge",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@forge/cli-shared": "6.4.
|
|
15
|
-
"@forge/manifest": "8.2.
|
|
14
|
+
"@forge/cli-shared": "6.4.2-next.3",
|
|
15
|
+
"@forge/manifest": "8.2.1-next.2",
|
|
16
16
|
"@types/jest": "^29.5.12",
|
|
17
17
|
"@types/node": "14.18.63"
|
|
18
18
|
},
|