@forge/egress
Advanced tools
Comparing version 1.2.6-next.1 to 1.2.6-next.2
# @forge/egress | ||
## 1.2.6-next.2 | ||
### Patch Changes | ||
- 43121bc3: Bumping dependencies via Renovate: | ||
- minimatch | ||
## 1.2.6-next.1 | ||
@@ -4,0 +12,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EgressFilteringService = void 0; | ||
const tslib_1 = require("tslib"); | ||
const minimatch_1 = tslib_1.__importDefault(require("minimatch")); | ||
const minimatch_1 = require("minimatch"); | ||
const url_parser_1 = require("./url-parser"); | ||
@@ -29,5 +28,5 @@ class EgressFilteringService { | ||
.filter((allowed) => allowed.protocol === domain.protocol) | ||
.some((url) => (0, minimatch_1.default)(domain.hostname, decodeURIComponent(url.hostname))); | ||
.some((url) => (0, minimatch_1.minimatch)(domain.hostname, decodeURIComponent(url.hostname))); | ||
} | ||
} | ||
exports.EgressFilteringService = EgressFilteringService; |
@@ -18,3 +18,3 @@ "use strict"; | ||
domains.add(url.hostname.substring(2)); | ||
wildcardDomains.push((0, minimatch_1.makeRe)(url.hostname)); | ||
wildcardDomains.push(new minimatch_1.Minimatch(url.hostname)); | ||
} | ||
@@ -26,3 +26,3 @@ else { | ||
return [...domains].sort().reduce((grouped, domain) => { | ||
if (!wildcardDomains.some((wcd) => wcd.test(domain))) { | ||
if (!wildcardDomains.some((wcd) => wcd.match(domain))) { | ||
grouped.push(domain); | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "@forge/egress", | ||
"version": "1.2.6-next.1", | ||
"version": "1.2.6-next.2", | ||
"description": "Helpers and utils for egress implementation in Forge apps", | ||
@@ -21,4 +21,4 @@ "main": "out/index.js", | ||
"dependencies": { | ||
"minimatch": "^5.1.0" | ||
"minimatch": "^9.0.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9239
100
+ Addedminimatch@9.0.5(transitive)
- Removedminimatch@5.1.6(transitive)
Updatedminimatch@^9.0.3