import { Term } from "./Term.js"; import { ValidationError } from "../ValidationError.js"; export class VersionTerm extends Term { separator = "="; qualifierAllowed = false; constructor(key, version) { super(key); this.version = version; } validate(value) { if (value !== this.version) throw new ValidationError(`Version must be "${this.version}"`); return true; } getInputValue(id) { return this.version; } }