A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/569ac84537f05450260e05d006361cdfe586359b below:

semver@7.7.2 · npm/cli@569ac84 · GitHub

File tree Expand file treeCollapse file tree 51 files changed

+112

-15

lines changed

Filter options

Expand file treeCollapse file tree 51 files changed

+112

-15

lines changed Original file line number Diff line number Diff line change

@@ -3,6 +3,8 @@

3 3

// Exits successfully and prints matching version(s) if

4 4

// any supplied version is valid and passes all tests.

5 5 6 +

'use strict'

7 + 6 8

const argv = process.argv.slice(2)

7 9 8 10

let versions = []

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const ANY = Symbol('SemVer ANY')

2 4

// hoisted class for cyclic dependency

3 5

class Comparator {

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

module.exports = {

2 4

SemVer: require('./semver.js'),

3 5

Range: require('./range.js'),

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const SPACE_CHARACTERS = /\s+/g

2 4 3 5

// hoisted class for cyclic dependency

Original file line number Diff line number Diff line change

@@ -1,6 +1,8 @@

1 +

'use strict'

2 + 1 3

const debug = require('../internal/debug')

2 4

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')

4 6 5 7

const parseOptions = require('../internal/parse-options')

6 8

const { compareIdentifiers } = require('../internal/identifiers')

@@ -182,8 +184,7 @@ class SemVer {

182 184

}

183 185

// Avoid an invalid semver results

184 186

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])

187 188

if (!match || match[1] !== identifier) {

188 189

throw new Error(`invalid identifier: ${identifier}`)

189 190

}

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const parse = require('./parse')

2 4

const clean = (version, options) => {

3 5

const s = parse(version.trim().replace(/^[=v]+/, ''), options)

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const eq = require('./eq')

2 4

const neq = require('./neq')

3 5

const gt = require('./gt')

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const SemVer = require('../classes/semver')

2 4

const parse = require('./parse')

3 5

const { safeRe: re, t } = require('../internal/re')

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const SemVer = require('../classes/semver')

2 4

const compareBuild = (a, b, loose) => {

3 5

const versionA = new SemVer(a, loose)

Original file line number Diff line number Diff line change

@@ -1,3 +1,5 @@

1 +

'use strict'

2 + 1 3

const compare = require('./compare')

2 4

const compareLoose = (a, b) => compare(a, b, true)

3 5

module.exports = compareLoose

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4