UNPKG

renovate

Version:

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

15 lines (14 loc) 558 B
import { satisfiesDateRange } from "../pretty-time.js"; import { Matcher } from "./base.js"; import { isString } from "@sindresorhus/is"; //#region lib/util/package-rules/current-age.ts var CurrentAgeMatcher = class extends Matcher { matches({ currentVersionTimestamp }, { matchCurrentAge }) { if (!isString(matchCurrentAge)) return null; if (!isString(currentVersionTimestamp)) return false; return satisfiesDateRange(currentVersionTimestamp, matchCurrentAge); } }; //#endregion export { CurrentAgeMatcher }; //# sourceMappingURL=current-age.js.map