Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-05-12 18:01:08 +00:00
parent d5e9ae3f8b
commit 3d97729508
174 changed files with 5012 additions and 828 deletions

View file

@ -1,3 +1,5 @@
'use strict'
const ANY = Symbol('SemVer ANY')
// hoisted class for cyclic dependency
class Comparator {

View file

@ -1,3 +1,5 @@
'use strict'
module.exports = {
SemVer: require('./semver.js'),
Range: require('./range.js'),

View file

@ -1,3 +1,5 @@
'use strict'
const SPACE_CHARACTERS = /\s+/g
// hoisted class for cyclic dependency

View file

@ -1,6 +1,8 @@
'use strict'
const debug = require('../internal/debug')
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
const { safeRe: re, safeSrc: src, t } = require('../internal/re')
const { safeRe: re, t } = require('../internal/re')
const parseOptions = require('../internal/parse-options')
const { compareIdentifiers } = require('../internal/identifiers')
@ -182,8 +184,7 @@ class SemVer {
}
// Avoid an invalid semver results
if (identifier) {
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
const match = `-${identifier}`.match(r)
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
if (!match || match[1] !== identifier) {
throw new Error(`invalid identifier: ${identifier}`)
}