@jsenv/url-meta
Advanced tools
Comparing version 8.4.2 to 8.5.0
{ | ||
"name": "@jsenv/url-meta", | ||
"version": "8.4.2", | ||
"version": "8.5.0", | ||
"license": "MIT", | ||
@@ -15,4 +15,3 @@ "repository": { | ||
"name": "dmail", | ||
"email": "dmaillard06@gmail.com", | ||
"url": "https://twitter.com/damienmaillard" | ||
"email": "dmaillard06@gmail.com" | ||
}, | ||
@@ -26,2 +25,3 @@ "type": "module", | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
@@ -28,0 +28,0 @@ "/src/" |
import { | ||
resolveAssociations, | ||
applyAliases, | ||
applyAssociations, | ||
applyAliases, | ||
applyPatternMatching, | ||
matches, | ||
resolveAssociations, | ||
urlChildMayMatch, | ||
matches, | ||
} from "./url_meta.js"; | ||
const createFilter = (patterns, url) => { | ||
const associations = resolveAssociations( | ||
{ | ||
yes: patterns, | ||
}, | ||
url, | ||
); | ||
return (url) => { | ||
const meta = applyAssociations({ url, associations }); | ||
return Boolean(meta.yes); | ||
}; | ||
}; | ||
export const URL_META = { | ||
@@ -17,2 +30,3 @@ resolveAssociations, | ||
matches, | ||
createFilter, | ||
}; |
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
19154
530