@forge/egress 1.1.1 → 1.1.2
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
|
@@ -27,7 +27,7 @@ class EgressFilteringService {
|
|
|
27
27
|
domainCheck(domain, allowList) {
|
|
28
28
|
return allowList
|
|
29
29
|
.filter((allowed) => allowed.protocol === domain.protocol)
|
|
30
|
-
.some((url) => minimatch_1.default(domain.hostname, decodeURIComponent(url.hostname)));
|
|
30
|
+
.some((url) => (0, minimatch_1.default)(domain.hostname, decodeURIComponent(url.hostname)));
|
|
31
31
|
}
|
|
32
32
|
domainIsAllowed(domain) {
|
|
33
33
|
if (this.domainCheck(domain, this.URLs)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/egress/utils.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,qCAAqC,oBAAqB,MAAM,EAAE,KAAG,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/egress/utils.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,qCAAqC,oBAAqB,MAAM,EAAE,KAAG,MAAM,MAAM,CA6BtF,CAAC;AAEF,OAAO,EAAE,qCAAqC,EAAE,CAAC"}
|
package/out/egress/utils.js
CHANGED
|
@@ -15,7 +15,7 @@ const sortAndGroupEgressPermissionsByDomain = (egressAddresses) => {
|
|
|
15
15
|
const url = new url_1.URL(itemWithProtocol);
|
|
16
16
|
if (url.hostname.startsWith('*')) {
|
|
17
17
|
domains.add(url.hostname.substring(2));
|
|
18
|
-
wildcardDomains.push(minimatch_1.makeRe(url.hostname));
|
|
18
|
+
wildcardDomains.push((0, minimatch_1.makeRe)(url.hostname));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
domains.add(url.hostname);
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/egress",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Helpers and utils for egress implementation in Forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"author": "Atlassian",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
|
+
"browser": "out/index.js",
|
|
9
|
+
"types": "out/index.d.ts",
|
|
8
10
|
"scripts": {
|
|
9
11
|
"build": "yarn run clean && yarn run compile",
|
|
10
12
|
"compile": "tsc -b -v",
|
|
11
13
|
"clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo"
|
|
12
14
|
},
|
|
13
15
|
"devDependencies": {
|
|
14
|
-
"@types/jest": "^
|
|
16
|
+
"@types/jest": "^29.1.2"
|
|
15
17
|
},
|
|
16
18
|
"dependencies": {
|
|
17
19
|
"minimatch": "^5.1.0"
|