MCPcopy
hub / github.com/npm/node-semver / cloneInputVersion

Function cloneInputVersion

functions/truncate.js:16–22  ·  view source on GitHub ↗
(version, options)

Source from the content-addressed store, hash-verified

14}
15
16const cloneInputVersion = (version, options) => {
17 const versionStringToParse = (
18 version instanceof SemVer ? version.version : version
19 )
20
21 return parse(versionStringToParse, options)
22}
23
24const doTruncation = (version, truncation) => {
25 if (isPrerelease(truncation)) {

Callers 1

truncateFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected