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

Function matcher

packages/effect/src/SemVerRange.ts:568–573  ·  view source on GitHub ↗
(range: SemVerRange, options: MatchOptions | undefined)

Source from the content-addressed store, hash-verified

566}
567
568const matcher = (range: SemVerRange, options: MatchOptions | undefined): (version: SemVer) => boolean => {
569 const self = range as SemVerRangeImpl
570 return options?.includePrerelease === true
571 ? (self.prereleaseMatcher ??= compile(self, true))
572 : (self.matcher ??= compile(self, false))
573}
574
575/**
576 * Checks whether a range matches a version.

Callers 3

SemVerRange.tsFile · 0.70
selectFunction · 0.70

Calls 1

compileFunction · 0.70

Tested by

no test coverage detected