chore(semver): remove legacy Range.ranges object definition (#4374)

* initial commit

* remove obsolete type

* minify

* update
This commit is contained in:
Tim Reichen 2024-02-23 10:35:19 +01:00 committed by GitHub
parent 333c4db283
commit 513805661b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,6 +279,5 @@ export function parseRange(range: string): Range {
const ranges = range
.split(/\s*\|\|\s*/)
.map((range) => parseHyphenRange(range).flatMap(parseRangeString));
Object.defineProperty(ranges, "ranges", { value: ranges });
return ranges as Range;
return ranges;
}