@forge/egress 1.2.6-next.1 → 1.2.6

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,29 @@
1
1
  # @forge/egress
2
2
 
3
+ ## 1.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 43121bc: Bumping dependencies via Renovate:
8
+
9
+ - minimatch
10
+
11
+ - 0fbf747: Bumping dependencies via Renovate:
12
+
13
+ - @types/ignore-walk
14
+
15
+ - 9d50860: Bumping dependencies via Renovate:
16
+
17
+ - @types/node
18
+
19
+ ## 1.2.6-next.2
20
+
21
+ ### Patch Changes
22
+
23
+ - 43121bc3: Bumping dependencies via Renovate:
24
+
25
+ - minimatch
26
+
3
27
  ## 1.2.6-next.1
4
28
 
5
29
  ### Patch Changes
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EgressFilteringService = void 0;
4
- const tslib_1 = require("tslib");
5
- const minimatch_1 = tslib_1.__importDefault(require("minimatch"));
4
+ const minimatch_1 = require("minimatch");
6
5
  const url_parser_1 = require("./url-parser");
7
6
  class EgressFilteringService {
8
7
  constructor(allowList) {
@@ -26,7 +25,7 @@ class EgressFilteringService {
26
25
  allowedDomain(domain, allowList) {
27
26
  return allowList
28
27
  .filter((allowed) => allowed.protocol === domain.protocol)
29
- .some((url) => (0, minimatch_1.default)(domain.hostname, decodeURIComponent(url.hostname)));
28
+ .some((url) => (0, minimatch_1.minimatch)(domain.hostname, decodeURIComponent(url.hostname)));
30
29
  }
31
30
  }
32
31
  exports.EgressFilteringService = EgressFilteringService;
@@ -15,14 +15,14 @@ const sortAndGroupEgressPermissionsByDomain = (egressAddresses) => {
15
15
  const url = (0, url_parser_1.parseUrl)(itemWithProtocol);
16
16
  if (url.hostname.startsWith('*')) {
17
17
  domains.add(url.hostname.substring(2));
18
- wildcardDomains.push((0, minimatch_1.makeRe)(url.hostname));
18
+ wildcardDomains.push(new minimatch_1.Minimatch(url.hostname));
19
19
  }
20
20
  else {
21
21
  domains.add(url.hostname);
22
22
  }
23
23
  });
24
24
  return [...domains].sort().reduce((grouped, domain) => {
25
- if (!wildcardDomains.some((wcd) => wcd.test(domain))) {
25
+ if (!wildcardDomains.some((wcd) => wcd.match(domain))) {
26
26
  grouped.push(domain);
27
27
  }
28
28
  return grouped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/egress",
3
- "version": "1.2.6-next.1",
3
+ "version": "1.2.6",
4
4
  "description": "Helpers and utils for egress implementation in Forge apps",
5
5
  "main": "out/index.js",
6
6
  "author": "Atlassian",
@@ -18,6 +18,6 @@
18
18
  "@types/node": "14.18.63"
19
19
  },
20
20
  "dependencies": {
21
- "minimatch": "^5.1.0"
21
+ "minimatch": "^9.0.3"
22
22
  }
23
23
  }