@dappnode/dappnodesdk
Version:
dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain
9 lines • 417 B
JavaScript
// Valid increase types for the Aragon Package Manager (APM)
// https://hack.aragon.org/docs/apm-ref.html
const validIncreaseTypes = ["major", "minor", "patch"];
export function checkSemverType(type) {
if (!validIncreaseTypes.includes(type)) {
throw Error(`Semver increase type "${type}" is not valid. Must be one of: ${validIncreaseTypes.join(", ")}`);
}
}
//# sourceMappingURL=checkSemverType.js.map