first commit

This commit is contained in:
2024-04-18 09:30:05 +05:30
commit ee5c224767
809 changed files with 93350 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const SemVer = require('../classes/semver')
const parse = (version, options, throwErrors = false) => {
if (version instanceof SemVer) {
return version
}
try {
return new SemVer(version, options)
} catch (er) {
if (!throwErrors) {
return null
}
throw er
}
}
module.exports = parse