MCPcopy Create free account
hub / github.com/Effect-TS/effect / parseOrThrow

Function parseOrThrow

packages/effect/src/SemVerRange.ts:183–186  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

181}
182
183const parseOrThrow = (input: string): SemVerRange => {
184 if (input.trim().length === 0) return any
185 return makeRange(input.split("||").map(parseComparatorSet))
186}
187
188/**
189 * Parses an npm-style version range.

Callers

nothing calls this directly

Calls 4

makeRangeFunction · 0.85
trimMethod · 0.80
mapMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected