@forge/egress 1.1.1-next.0 → 1.1.2-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/egress
2
2
 
3
+ ## 1.1.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - aa193085: Add browser field to package.json
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 63d168c: Fix browser compatibility
14
+
3
15
  ## 1.1.1-next.0
4
16
 
5
17
  ### Patch Changes
@@ -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,KAAK,CAAC,MAAM,CA6BtF,CAAC;AAEF,OAAO,EAAE,qCAAqC,EAAE,CAAC"}
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"}
@@ -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.1-next.0",
3
+ "version": "1.1.2-next.0",
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": "^26.0.0"
16
+ "@types/jest": "^29.1.2"
15
17
  },
16
18
  "dependencies": {
17
19
  "minimatch": "^5.1.0"