// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.importtype{SemVerRange}from"./types.ts";import{ comparatorFormat }from"./comparator_format.ts"; /** * Formats the range into a string * @example >=0.0.0 || <1.0.0 * @param range The range to format * @returns A string representation of the range */exportfunctionrangeFormat(range:SemVerRange){return range.ranges.map((c)=> c.map((c)=>comparatorFormat(c)).join(" ")).join("||",);}