Add bcryptjs

This commit is contained in:
Lucas Patenaude
2024-03-15 03:27:25 -06:00
parent 1d1dc1357e
commit 90b9347318
563 changed files with 79679 additions and 1 deletions

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