diff options
Diffstat (limited to 'together/node_modules/semver/functions/prerelease.js')
-rw-r--r-- | together/node_modules/semver/functions/prerelease.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/prerelease.js b/together/node_modules/semver/functions/prerelease.js new file mode 100644 index 0000000..06aa132 --- /dev/null +++ b/together/node_modules/semver/functions/prerelease.js @@ -0,0 +1,6 @@ +const parse = require('./parse') +const prerelease = (version, options) => { + const parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null +} +module.exports = prerelease |