aboutsummaryrefslogtreecommitdiffstats
path: root/backend/node_modules/semver/functions
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 12:10:39 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 12:10:39 +0530
commit4f27eefd6ec24a2644e674850f5a2b5d4928b168 (patch)
tree26067f67ef4d25b2b0d84b26d72432b1cade5825 /backend/node_modules/semver/functions
parentc00ac1ff51c795d4d93c32e0a913e2cebf917d0c (diff)
downloadadmin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.tar.gz
admin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.tar.bz2
admin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.zip
added .gitignore
Diffstat (limited to 'backend/node_modules/semver/functions')
-rw-r--r--backend/node_modules/semver/functions/clean.js6
-rw-r--r--backend/node_modules/semver/functions/cmp.js52
-rw-r--r--backend/node_modules/semver/functions/coerce.js60
-rw-r--r--backend/node_modules/semver/functions/compare-build.js7
-rw-r--r--backend/node_modules/semver/functions/compare-loose.js3
-rw-r--r--backend/node_modules/semver/functions/compare.js5
-rw-r--r--backend/node_modules/semver/functions/diff.js65
-rw-r--r--backend/node_modules/semver/functions/eq.js3
-rw-r--r--backend/node_modules/semver/functions/gt.js3
-rw-r--r--backend/node_modules/semver/functions/gte.js3
-rw-r--r--backend/node_modules/semver/functions/inc.js19
-rw-r--r--backend/node_modules/semver/functions/lt.js3
-rw-r--r--backend/node_modules/semver/functions/lte.js3
-rw-r--r--backend/node_modules/semver/functions/major.js3
-rw-r--r--backend/node_modules/semver/functions/minor.js3
-rw-r--r--backend/node_modules/semver/functions/neq.js3
-rw-r--r--backend/node_modules/semver/functions/parse.js16
-rw-r--r--backend/node_modules/semver/functions/patch.js3
-rw-r--r--backend/node_modules/semver/functions/prerelease.js6
-rw-r--r--backend/node_modules/semver/functions/rcompare.js3
-rw-r--r--backend/node_modules/semver/functions/rsort.js3
-rw-r--r--backend/node_modules/semver/functions/satisfies.js10
-rw-r--r--backend/node_modules/semver/functions/sort.js3
-rw-r--r--backend/node_modules/semver/functions/valid.js6
24 files changed, 0 insertions, 291 deletions
diff --git a/backend/node_modules/semver/functions/clean.js b/backend/node_modules/semver/functions/clean.js
deleted file mode 100644
index 811fe6b..0000000
--- a/backend/node_modules/semver/functions/clean.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const parse = require('./parse')
-const clean = (version, options) => {
- const s = parse(version.trim().replace(/^[=v]+/, ''), options)
- return s ? s.version : null
-}
-module.exports = clean
diff --git a/backend/node_modules/semver/functions/cmp.js b/backend/node_modules/semver/functions/cmp.js
deleted file mode 100644
index 4011909..0000000
--- a/backend/node_modules/semver/functions/cmp.js
+++ /dev/null
@@ -1,52 +0,0 @@
-const eq = require('./eq')
-const neq = require('./neq')
-const gt = require('./gt')
-const gte = require('./gte')
-const lt = require('./lt')
-const lte = require('./lte')
-
-const cmp = (a, op, b, loose) => {
- switch (op) {
- case '===':
- if (typeof a === 'object') {
- a = a.version
- }
- if (typeof b === 'object') {
- b = b.version
- }
- return a === b
-
- case '!==':
- if (typeof a === 'object') {
- a = a.version
- }
- if (typeof b === 'object') {
- b = b.version
- }
- return a !== b
-
- case '':
- case '=':
- case '==':
- return eq(a, b, loose)
-
- case '!=':
- return neq(a, b, loose)
-
- case '>':
- return gt(a, b, loose)
-
- case '>=':
- return gte(a, b, loose)
-
- case '<':
- return lt(a, b, loose)
-
- case '<=':
- return lte(a, b, loose)
-
- default:
- throw new TypeError(`Invalid operator: ${op}`)
- }
-}
-module.exports = cmp
diff --git a/backend/node_modules/semver/functions/coerce.js b/backend/node_modules/semver/functions/coerce.js
deleted file mode 100644
index b378dce..0000000
--- a/backend/node_modules/semver/functions/coerce.js
+++ /dev/null
@@ -1,60 +0,0 @@
-const SemVer = require('../classes/semver')
-const parse = require('./parse')
-const { safeRe: re, t } = require('../internal/re')
-
-const coerce = (version, options) => {
- if (version instanceof SemVer) {
- return version
- }
-
- if (typeof version === 'number') {
- version = String(version)
- }
-
- if (typeof version !== 'string') {
- return null
- }
-
- options = options || {}
-
- let match = null
- if (!options.rtl) {
- match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])
- } else {
- // Find the right-most coercible string that does not share
- // a terminus with a more left-ward coercible string.
- // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
- // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
- //
- // Walk through the string checking with a /g regexp
- // Manually set the index so as to pick up overlapping matches.
- // Stop when we get a match that ends at the string end, since no
- // coercible string can be more right-ward without the same terminus.
- const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]
- let next
- while ((next = coerceRtlRegex.exec(version)) &&
- (!match || match.index + match[0].length !== version.length)
- ) {
- if (!match ||
- next.index + next[0].length !== match.index + match[0].length) {
- match = next
- }
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length
- }
- // leave it in a clean state
- coerceRtlRegex.lastIndex = -1
- }
-
- if (match === null) {
- return null
- }
-
- const major = match[2]
- const minor = match[3] || '0'
- const patch = match[4] || '0'
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''
-
- return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)
-}
-module.exports = coerce
diff --git a/backend/node_modules/semver/functions/compare-build.js b/backend/node_modules/semver/functions/compare-build.js
deleted file mode 100644
index 9eb881b..0000000
--- a/backend/node_modules/semver/functions/compare-build.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const SemVer = require('../classes/semver')
-const compareBuild = (a, b, loose) => {
- const versionA = new SemVer(a, loose)
- const versionB = new SemVer(b, loose)
- return versionA.compare(versionB) || versionA.compareBuild(versionB)
-}
-module.exports = compareBuild
diff --git a/backend/node_modules/semver/functions/compare-loose.js b/backend/node_modules/semver/functions/compare-loose.js
deleted file mode 100644
index 4881fbe..0000000
--- a/backend/node_modules/semver/functions/compare-loose.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const compareLoose = (a, b) => compare(a, b, true)
-module.exports = compareLoose
diff --git a/backend/node_modules/semver/functions/compare.js b/backend/node_modules/semver/functions/compare.js
deleted file mode 100644
index 748b7af..0000000
--- a/backend/node_modules/semver/functions/compare.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const SemVer = require('../classes/semver')
-const compare = (a, b, loose) =>
- new SemVer(a, loose).compare(new SemVer(b, loose))
-
-module.exports = compare
diff --git a/backend/node_modules/semver/functions/diff.js b/backend/node_modules/semver/functions/diff.js
deleted file mode 100644
index fc224e3..0000000
--- a/backend/node_modules/semver/functions/diff.js
+++ /dev/null
@@ -1,65 +0,0 @@
-const parse = require('./parse.js')
-
-const diff = (version1, version2) => {
- const v1 = parse(version1, null, true)
- const v2 = parse(version2, null, true)
- const comparison = v1.compare(v2)
-
- if (comparison === 0) {
- return null
- }
-
- const v1Higher = comparison > 0
- const highVersion = v1Higher ? v1 : v2
- const lowVersion = v1Higher ? v2 : v1
- const highHasPre = !!highVersion.prerelease.length
- const lowHasPre = !!lowVersion.prerelease.length
-
- if (lowHasPre && !highHasPre) {
- // Going from prerelease -> no prerelease requires some special casing
-
- // If the low version has only a major, then it will always be a major
- // Some examples:
- // 1.0.0-1 -> 1.0.0
- // 1.0.0-1 -> 1.1.1
- // 1.0.0-1 -> 2.0.0
- if (!lowVersion.patch && !lowVersion.minor) {
- return 'major'
- }
-
- // Otherwise it can be determined by checking the high version
-
- if (highVersion.patch) {
- // anything higher than a patch bump would result in the wrong version
- return 'patch'
- }
-
- if (highVersion.minor) {
- // anything higher than a minor bump would result in the wrong version
- return 'minor'
- }
-
- // bumping major/minor/patch all have same result
- return 'major'
- }
-
- // add the `pre` prefix if we are going to a prerelease version
- const prefix = highHasPre ? 'pre' : ''
-
- if (v1.major !== v2.major) {
- return prefix + 'major'
- }
-
- if (v1.minor !== v2.minor) {
- return prefix + 'minor'
- }
-
- if (v1.patch !== v2.patch) {
- return prefix + 'patch'
- }
-
- // high and low are preleases
- return 'prerelease'
-}
-
-module.exports = diff
diff --git a/backend/node_modules/semver/functions/eq.js b/backend/node_modules/semver/functions/eq.js
deleted file mode 100644
index 271fed9..0000000
--- a/backend/node_modules/semver/functions/eq.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const eq = (a, b, loose) => compare(a, b, loose) === 0
-module.exports = eq
diff --git a/backend/node_modules/semver/functions/gt.js b/backend/node_modules/semver/functions/gt.js
deleted file mode 100644
index d9b2156..0000000
--- a/backend/node_modules/semver/functions/gt.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const gt = (a, b, loose) => compare(a, b, loose) > 0
-module.exports = gt
diff --git a/backend/node_modules/semver/functions/gte.js b/backend/node_modules/semver/functions/gte.js
deleted file mode 100644
index 5aeaa63..0000000
--- a/backend/node_modules/semver/functions/gte.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const gte = (a, b, loose) => compare(a, b, loose) >= 0
-module.exports = gte
diff --git a/backend/node_modules/semver/functions/inc.js b/backend/node_modules/semver/functions/inc.js
deleted file mode 100644
index 7670b1b..0000000
--- a/backend/node_modules/semver/functions/inc.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const SemVer = require('../classes/semver')
-
-const inc = (version, release, options, identifier, identifierBase) => {
- if (typeof (options) === 'string') {
- identifierBase = identifier
- identifier = options
- options = undefined
- }
-
- try {
- return new SemVer(
- version instanceof SemVer ? version.version : version,
- options
- ).inc(release, identifier, identifierBase).version
- } catch (er) {
- return null
- }
-}
-module.exports = inc
diff --git a/backend/node_modules/semver/functions/lt.js b/backend/node_modules/semver/functions/lt.js
deleted file mode 100644
index b440ab7..0000000
--- a/backend/node_modules/semver/functions/lt.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const lt = (a, b, loose) => compare(a, b, loose) < 0
-module.exports = lt
diff --git a/backend/node_modules/semver/functions/lte.js b/backend/node_modules/semver/functions/lte.js
deleted file mode 100644
index 6dcc956..0000000
--- a/backend/node_modules/semver/functions/lte.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const lte = (a, b, loose) => compare(a, b, loose) <= 0
-module.exports = lte
diff --git a/backend/node_modules/semver/functions/major.js b/backend/node_modules/semver/functions/major.js
deleted file mode 100644
index 4283165..0000000
--- a/backend/node_modules/semver/functions/major.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const SemVer = require('../classes/semver')
-const major = (a, loose) => new SemVer(a, loose).major
-module.exports = major
diff --git a/backend/node_modules/semver/functions/minor.js b/backend/node_modules/semver/functions/minor.js
deleted file mode 100644
index 57b3455..0000000
--- a/backend/node_modules/semver/functions/minor.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const SemVer = require('../classes/semver')
-const minor = (a, loose) => new SemVer(a, loose).minor
-module.exports = minor
diff --git a/backend/node_modules/semver/functions/neq.js b/backend/node_modules/semver/functions/neq.js
deleted file mode 100644
index f944c01..0000000
--- a/backend/node_modules/semver/functions/neq.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const neq = (a, b, loose) => compare(a, b, loose) !== 0
-module.exports = neq
diff --git a/backend/node_modules/semver/functions/parse.js b/backend/node_modules/semver/functions/parse.js
deleted file mode 100644
index 459b3b1..0000000
--- a/backend/node_modules/semver/functions/parse.js
+++ /dev/null
@@ -1,16 +0,0 @@
-const SemVer = require('../classes/semver')
-const parse = (version, options, throwErrors = false) => {
- if (version instanceof SemVer) {
- return version
- }
- try {
- return new SemVer(version, options)
- } catch (er) {
- if (!throwErrors) {
- return null
- }
- throw er
- }
-}
-
-module.exports = parse
diff --git a/backend/node_modules/semver/functions/patch.js b/backend/node_modules/semver/functions/patch.js
deleted file mode 100644
index 63afca2..0000000
--- a/backend/node_modules/semver/functions/patch.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const SemVer = require('../classes/semver')
-const patch = (a, loose) => new SemVer(a, loose).patch
-module.exports = patch
diff --git a/backend/node_modules/semver/functions/prerelease.js b/backend/node_modules/semver/functions/prerelease.js
deleted file mode 100644
index 06aa132..0000000
--- a/backend/node_modules/semver/functions/prerelease.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const parse = require('./parse')
-const prerelease = (version, options) => {
- const parsed = parse(version, options)
- return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
-}
-module.exports = prerelease
diff --git a/backend/node_modules/semver/functions/rcompare.js b/backend/node_modules/semver/functions/rcompare.js
deleted file mode 100644
index 0ac509e..0000000
--- a/backend/node_modules/semver/functions/rcompare.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compare = require('./compare')
-const rcompare = (a, b, loose) => compare(b, a, loose)
-module.exports = rcompare
diff --git a/backend/node_modules/semver/functions/rsort.js b/backend/node_modules/semver/functions/rsort.js
deleted file mode 100644
index 82404c5..0000000
--- a/backend/node_modules/semver/functions/rsort.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compareBuild = require('./compare-build')
-const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
-module.exports = rsort
diff --git a/backend/node_modules/semver/functions/satisfies.js b/backend/node_modules/semver/functions/satisfies.js
deleted file mode 100644
index 50af1c1..0000000
--- a/backend/node_modules/semver/functions/satisfies.js
+++ /dev/null
@@ -1,10 +0,0 @@
-const Range = require('../classes/range')
-const satisfies = (version, range, options) => {
- try {
- range = new Range(range, options)
- } catch (er) {
- return false
- }
- return range.test(version)
-}
-module.exports = satisfies
diff --git a/backend/node_modules/semver/functions/sort.js b/backend/node_modules/semver/functions/sort.js
deleted file mode 100644
index 4d10917..0000000
--- a/backend/node_modules/semver/functions/sort.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const compareBuild = require('./compare-build')
-const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
-module.exports = sort
diff --git a/backend/node_modules/semver/functions/valid.js b/backend/node_modules/semver/functions/valid.js
deleted file mode 100644
index f27bae1..0000000
--- a/backend/node_modules/semver/functions/valid.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const parse = require('./parse')
-const valid = (version, options) => {
- const v = parse(version, options)
- return v ? v.version : null
-}
-module.exports = valid