Skip to content

Commit

Permalink
chore(semver): remove legacy Range.ranges object definition (#4374)
Browse files Browse the repository at this point in the history
* initial commit

* remove obsolete type

* minify

* update
  • Loading branch information
timreichen authored Feb 23, 2024
1 parent 333c4db commit 5138056
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions semver/parse_range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5138056

Please sign in to comment.