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

Function make

packages/effect/src/SemVer.ts:310–317  ·  view source on GitHub ↗
(components: Components)

Source from the content-addressed store, hash-verified

308 * @since 4.0.6
309 */
310export const make = (components: Components): SemVer =>
311 unchecked(
312 checkComponent(components.major, "major"),
313 checkComponent(components.minor, "minor"),
314 checkComponent(components.patch, "patch"),
315 components.prerelease?.map(prereleaseIdentifier) ?? [],
316 components.build?.map(buildIdentifier) ?? []
317 )
318
319const parseOrThrow = (input: string): SemVer => {
320 let rest = input

Callers 1

fromInputFunction · 0.70

Calls 3

uncheckedFunction · 0.85
checkComponentFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected