MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / explicitVersion

Function explicitVersion

apps/site/scripts/release-post/index.mjs:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89};
90
91const explicitVersion = version =>
92 new Promise((resolve, reject) =>
93 version && version.length > 0
94 ? resolve(version)
95 : reject(ERRORS.NO_VERSION_PROVIDED)
96 );
97
98const findLatestVersion = () =>
99 request({ url: URLS.NODE_DIST_JSON, json: true })

Callers 1

index.mjsFile · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected