chore: update dependencies (#38)

This commit is contained in:
Luca Casonato
2022-10-17 12:03:20 +02:00
committed by GitHub
parent 1dfbed57f6
commit 8e9de219f8
362 changed files with 28892 additions and 3980 deletions

View File

@@ -1,6 +1,6 @@
const SemVer = require('../classes/semver')
const parse = require('./parse')
const {re, t} = require('../internal/re')
const { re, t } = require('../internal/re')
const coerce = (version, options) => {
if (version instanceof SemVer) {
@@ -43,8 +43,9 @@ const coerce = (version, options) => {
re[t.COERCERTL].lastIndex = -1
}
if (match === null)
if (match === null) {
return null
}
return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
}