UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

15 lines (14 loc) 506 B
import { matchRegexOrGlobList } from "../string-match.js"; import { Matcher } from "./base.js"; import { isUndefined } from "@sindresorhus/is"; //#region lib/util/package-rules/dep-names.ts var DepNameMatcher = class extends Matcher { matches({ depName }, { matchDepNames }) { if (isUndefined(matchDepNames)) return null; if (isUndefined(depName)) return false; return matchRegexOrGlobList(depName, matchDepNames); } }; //#endregion export { DepNameMatcher }; //# sourceMappingURL=dep-names.js.map