add @discordjs/opus + jmd.js

This commit is contained in:
2021-04-11 12:12:39 +02:00
parent c49adbb146
commit 5c2e0737c0
977 changed files with 199471 additions and 1074 deletions

33
node_modules/semver/functions/parse.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
const {MAX_LENGTH} = require('../internal/constants')
const { re, t } = require('../internal/re')
const SemVer = require('../classes/semver')
const parseOptions = require('../internal/parse-options')
const parse = (version, options) => {
options = parseOptions(options)
if (version instanceof SemVer) {
return version
}
if (typeof version !== 'string') {
return null
}
if (version.length > MAX_LENGTH) {
return null
}
const r = options.loose ? re[t.LOOSE] : re[t.FULL]
if (!r.test(version)) {
return null
}
try {
return new SemVer(version, options)
} catch (er) {
return null
}
}
module.exports = parse