Skip to content

Commit 569ac84

Browse files
committed
deps: semver@7.7.2
1 parent b734099 commit 569ac84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+112
-15
lines changed

node_modules/semver/bin/semver.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Exits successfully and prints matching version(s) if
44
// any supplied version is valid and passes all tests.
55

6+
'use strict'
7+
68
const argv = process.argv.slice(2)
79

810
let versions = []

node_modules/semver/classes/comparator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const ANY = Symbol('SemVer ANY')
24
// hoisted class for cyclic dependency
35
class Comparator {

node_modules/semver/classes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
module.exports = {
24
SemVer: require('./semver.js'),
35
Range: require('./range.js'),

node_modules/semver/classes/range.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SPACE_CHARACTERS = /\s+/g
24

35
// hoisted class for cyclic dependency

node_modules/semver/classes/semver.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
'use strict'
2+
13
const debug = require('../internal/debug')
24
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
3-
const { safeRe: re, safeSrc: src, t } = require('../internal/re')
5+
const { safeRe: re, t } = require('../internal/re')
46

57
const parseOptions = require('../internal/parse-options')
68
const { compareIdentifiers } = require('../internal/identifiers')
@@ -182,8 +184,7 @@ class SemVer {
182184
}
183185
// Avoid an invalid semver results
184186
if (identifier) {
185-
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
186-
const match = `-${identifier}`.match(r)
187+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
187188
if (!match || match[1] !== identifier) {
188189
throw new Error(`invalid identifier: ${identifier}`)
189190
}

node_modules/semver/functions/clean.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const parse = require('./parse')
24
const clean = (version, options) => {
35
const s = parse(version.trim().replace(/^[=v]+/, ''), options)

node_modules/semver/functions/cmp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const eq = require('./eq')
24
const neq = require('./neq')
35
const gt = require('./gt')

node_modules/semver/functions/coerce.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const parse = require('./parse')
35
const { safeRe: re, t } = require('../internal/re')

node_modules/semver/functions/compare-build.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const compareBuild = (a, b, loose) => {
35
const versionA = new SemVer(a, loose)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const compareLoose = (a, b) => compare(a, b, true)
35
module.exports = compareLoose

node_modules/semver/functions/compare.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const compare = (a, b, loose) =>
35
new SemVer(a, loose).compare(new SemVer(b, loose))

node_modules/semver/functions/diff.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const parse = require('./parse.js')
24

35
const diff = (version1, version2) => {

node_modules/semver/functions/eq.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const eq = (a, b, loose) => compare(a, b, loose) === 0
35
module.exports = eq

node_modules/semver/functions/gt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const gt = (a, b, loose) => compare(a, b, loose) > 0
35
module.exports = gt

node_modules/semver/functions/gte.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const gte = (a, b, loose) => compare(a, b, loose) >= 0
35
module.exports = gte

node_modules/semver/functions/inc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24

35
const inc = (version, release, options, identifier, identifierBase) => {

node_modules/semver/functions/lt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const lt = (a, b, loose) => compare(a, b, loose) < 0
35
module.exports = lt

node_modules/semver/functions/lte.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const lte = (a, b, loose) => compare(a, b, loose) <= 0
35
module.exports = lte
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const major = (a, loose) => new SemVer(a, loose).major
35
module.exports = major
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const minor = (a, loose) => new SemVer(a, loose).minor
35
module.exports = minor

node_modules/semver/functions/neq.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const neq = (a, b, loose) => compare(a, b, loose) !== 0
35
module.exports = neq

node_modules/semver/functions/parse.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const parse = (version, options, throwErrors = false) => {
35
if (version instanceof SemVer) {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const patch = (a, loose) => new SemVer(a, loose).patch
35
module.exports = patch

node_modules/semver/functions/prerelease.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const parse = require('./parse')
24
const prerelease = (version, options) => {
35
const parsed = parse(version, options)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compare = require('./compare')
24
const rcompare = (a, b, loose) => compare(b, a, loose)
35
module.exports = rcompare
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compareBuild = require('./compare-build')
24
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
35
module.exports = rsort

node_modules/semver/functions/satisfies.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Range = require('../classes/range')
24
const satisfies = (version, range, options) => {
35
try {

node_modules/semver/functions/sort.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const compareBuild = require('./compare-build')
24
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
35
module.exports = sort

node_modules/semver/functions/valid.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const parse = require('./parse')
24
const valid = (version, options) => {
35
const v = parse(version, options)

node_modules/semver/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// just pre-load all the stuff that index.js lazily exports
24
const internalRe = require('./internal/re')
35
const constants = require('./internal/constants')

node_modules/semver/internal/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// Note: this is the semver.org version of the spec that it implements
24
// Not necessarily the package version of this code.
35
const SEMVER_SPEC_VERSION = '2.0.0'

node_modules/semver/internal/debug.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const debug = (
24
typeof process === 'object' &&
35
process.env &&

node_modules/semver/internal/identifiers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const numeric = /^[0-9]+$/
24
const compareIdentifiers = (a, b) => {
35
const anum = numeric.test(a)

node_modules/semver/internal/lrucache.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
class LRUCache {
24
constructor () {
35
this.max = 1000

node_modules/semver/internal/parse-options.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// parse out just the options we care about
24
const looseOption = Object.freeze({ loose: true })
35
const emptyOpts = Object.freeze({ })

node_modules/semver/internal/re.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const {
24
MAX_SAFE_COMPONENT_LENGTH,
35
MAX_SAFE_BUILD_LENGTH,
@@ -76,12 +78,14 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
7678

7779
// ## Pre-release Version Identifier
7880
// A numeric identifier, or a non-numeric identifier.
81+
// Non-numberic identifiers include numberic identifiers but can be longer.
82+
// Therefore non-numberic identifiers must go first.
7983

80-
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
81-
}|${src[t.NONNUMERICIDENTIFIER]})`)
84+
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
85+
}|${src[t.NUMERICIDENTIFIER]})`)
8286

83-
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
84-
}|${src[t.NONNUMERICIDENTIFIER]})`)
87+
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
88+
}|${src[t.NUMERICIDENTIFIERLOOSE]})`)
8589

8690
// ## Pre-release Version
8791
// Hyphen, followed by one or more dot-separated pre-release version

node_modules/semver/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "semver",
3-
"version": "7.7.1",
3+
"version": "7.7.2",
44
"description": "The semantic version parser used by npm.",
55
"main": "index.js",
66
"scripts": {
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@npmcli/eslint-config": "^5.0.0",
18-
"@npmcli/template-oss": "4.23.4",
18+
"@npmcli/template-oss": "4.24.3",
1919
"benchmark": "^2.1.4",
2020
"tap": "^16.0.0"
2121
},
@@ -52,7 +52,7 @@
5252
"author": "GitHub Inc.",
5353
"templateOSS": {
5454
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55-
"version": "4.23.4",
55+
"version": "4.24.3",
5656
"engines": ">=10",
5757
"distPaths": [
5858
"classes/",

node_modules/semver/preload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
'use strict'
2+
13
// XXX remove in v8 or beyond
24
module.exports = require('./index.js')

node_modules/semver/ranges/gtr.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// Determine if version is greater than all the versions possible in the range.
24
const outside = require('./outside')
35
const gtr = (version, range, options) => outside(version, range, '>', options)

node_modules/semver/ranges/intersects.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Range = require('../classes/range')
24
const intersects = (r1, r2, options) => {
35
r1 = new Range(r1, options)

node_modules/semver/ranges/ltr.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const outside = require('./outside')
24
// Determine if version is less than all the versions possible in the range
35
const ltr = (version, range, options) => outside(version, range, '<', options)

node_modules/semver/ranges/max-satisfying.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const Range = require('../classes/range')
35

node_modules/semver/ranges/min-satisfying.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const Range = require('../classes/range')
35
const minSatisfying = (versions, range, options) => {

node_modules/semver/ranges/min-version.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const Range = require('../classes/range')
35
const gt = require('../functions/gt')

node_modules/semver/ranges/outside.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const SemVer = require('../classes/semver')
24
const Comparator = require('../classes/comparator')
35
const { ANY } = Comparator

node_modules/semver/ranges/simplify.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
// given a set of versions and a range, create a "simplified" range
24
// that includes the same versions that the original range does
35
// If the original range is shorter than the simplified one, return that.

node_modules/semver/ranges/subset.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Range = require('../classes/range.js')
24
const Comparator = require('../classes/comparator.js')
35
const { ANY } = Comparator

node_modules/semver/ranges/to-comparators.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Range = require('../classes/range')
24

35
// Mostly just for testing and legacy API reasons

node_modules/semver/ranges/valid.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const Range = require('../classes/range')
24
const validRange = (range, options) => {
35
try {

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"proc-log": "^5.0.0",
141141
"qrcode-terminal": "^0.12.0",
142142
"read": "^4.1.0",
143-
"semver": "^7.7.1",
143+
"semver": "^7.7.2",
144144
"spdx-expression-parse": "^4.0.0",
145145
"ssri": "^12.0.0",
146146
"supports-color": "^10.0.0",
@@ -14421,9 +14421,9 @@
1442114421
}
1442214422
},
1442314423
"node_modules/semver": {
14424-
"version": "7.7.1",
14425-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
14426-
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
14424+
"version": "7.7.2",
14425+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
14426+
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
1442714427
"inBundle": true,
1442814428
"license": "ISC",
1442914429
"bin": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"proc-log": "^5.0.0",
108108
"qrcode-terminal": "^0.12.0",
109109
"read": "^4.1.0",
110-
"semver": "^7.7.1",
110+
"semver": "^7.7.2",
111111
"spdx-expression-parse": "^4.0.0",
112112
"ssri": "^12.0.0",
113113
"supports-color": "^10.0.0",

0 commit comments

Comments
 (0)