renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
35 lines (34 loc) • 910 B
JavaScript
import api$1 from "../npm/index.js";
//#region lib/modules/versioning/deno/index.ts
const id = "deno";
function isValid(input) {
if (input === "latest") return true;
return api$1.isValid(input);
}
function getNewValue({ currentValue, rangeStrategy, currentVersion, newVersion, isReplacement }) {
if (currentValue === "latest") {
if (rangeStrategy === "replace" || rangeStrategy === "pin") return newVersion;
if (rangeStrategy === "update-lockfile") return currentValue;
return null;
}
if (currentValue === "*") {
if (rangeStrategy === "pin") return newVersion;
if (rangeStrategy === "update-lockfile") return currentValue;
return null;
}
return api$1.getNewValue({
currentValue,
rangeStrategy,
currentVersion,
newVersion,
isReplacement
});
}
const api = {
...api$1,
isValid,
getNewValue
};
//#endregion
export { api as default, id, isValid };
//# sourceMappingURL=index.js.map