@slicemachine/adapter-next 0.3.85-beta.2 → 0.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node_modules/lru-cache/index.cjs +267 -0
- package/dist/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/lru-cache/index.js +267 -0
- package/dist/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/yallist/iterator.cjs +18 -0
- package/dist/_node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/_node_modules/yallist/iterator.js +18 -0
- package/dist/_node_modules/yallist/iterator.js.map +1 -0
- package/dist/_node_modules/yallist/yallist.cjs +367 -0
- package/dist/_node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/_node_modules/yallist/yallist.js +367 -0
- package/dist/_node_modules/yallist/yallist.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/re.cjs +5 -0
- package/dist/_virtual/re.cjs.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/hooks/project-init.cjs +5 -1
- package/dist/hooks/project-init.cjs.map +1 -1
- package/dist/hooks/project-init.js +5 -1
- package/dist/hooks/project-init.js.map +1 -1
- package/dist/lib/getNextJSVersion.cjs +34 -0
- package/dist/lib/getNextJSVersion.cjs.map +1 -0
- package/dist/lib/getNextJSVersion.d.ts +1 -0
- package/dist/lib/getNextJSVersion.js +12 -0
- package/dist/lib/getNextJSVersion.js.map +1 -0
- package/dist/lib/requireResolve.cjs +16 -0
- package/dist/lib/requireResolve.cjs.map +1 -0
- package/dist/lib/requireResolve.d.ts +10 -0
- package/dist/lib/requireResolve.js +16 -0
- package/dist/lib/requireResolve.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/comparator.cjs +122 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/comparator.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/comparator.js +122 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/range.cjs +373 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/range.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/range.js +373 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/range.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/semver.cjs +243 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/semver.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/semver.js +243 -0
- package/dist/packages/adapter-next/_node_modules/semver/classes/semver.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/clean.cjs +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/clean.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/clean.js +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/clean.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/cmp.cjs +53 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/cmp.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/cmp.js +53 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/coerce.cjs +40 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/coerce.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/coerce.js +40 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-build.cjs +12 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-build.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-build.js +12 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-loose.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-loose.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-loose.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/compare.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/diff.cjs +39 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/diff.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/diff.js +39 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/diff.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/eq.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/eq.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/eq.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/eq.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gt.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gt.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gt.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gt.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gte.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gte.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gte.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/gte.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/inc.cjs +22 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/inc.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/inc.js +22 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/inc.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lt.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lt.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lt.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lt.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lte.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lte.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lte.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/lte.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/major.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/major.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/major.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/major.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/minor.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/minor.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/minor.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/minor.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/neq.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/neq.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/neq.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/neq.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/parse.cjs +20 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/parse.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/parse.js +20 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/parse.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/patch.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/patch.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/patch.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/patch.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/prerelease.cjs +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/prerelease.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/prerelease.js +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rcompare.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rcompare.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rcompare.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rsort.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rsort.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rsort.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/satisfies.cjs +15 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/satisfies.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/satisfies.js +15 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/sort.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/sort.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/sort.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/sort.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/valid.cjs +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/valid.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/valid.js +11 -0
- package/dist/packages/adapter-next/_node_modules/semver/functions/valid.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/index.cjs +134 -0
- package/dist/packages/adapter-next/_node_modules/semver/index.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/index.js +135 -0
- package/dist/packages/adapter-next/_node_modules/semver/index.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/constants.cjs +27 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/constants.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/constants.js +27 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/constants.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/debug.cjs +7 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/debug.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/debug.js +7 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/debug.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/identifiers.cjs +19 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/identifiers.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/identifiers.js +19 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/parse-options.cjs +16 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/parse-options.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/parse-options.js +16 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/re.cjs +67 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/re.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/re.js +67 -0
- package/dist/packages/adapter-next/_node_modules/semver/internal/re.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/gtr.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/gtr.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/gtr.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/intersects.cjs +12 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/intersects.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/intersects.js +12 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/ltr.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/ltr.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/ltr.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/max-satisfying.cjs +28 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/max-satisfying.js +28 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-satisfying.cjs +28 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-satisfying.js +28 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-version.cjs +57 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-version.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-version.js +57 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/outside.cjs +74 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/outside.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/outside.js +74 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/simplify.cjs +49 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/simplify.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/simplify.js +49 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/subset.cjs +163 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/subset.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/subset.js +163 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/to-comparators.cjs +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/to-comparators.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/to-comparators.js +8 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/valid.cjs +14 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/valid.cjs.map +1 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/valid.js +14 -0
- package/dist/packages/adapter-next/_node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +7 -8
- package/src/hooks/project-init.ts +6 -1
- package/src/lib/getNextJSVersion.ts +16 -0
- package/src/lib/requireResolve.ts +30 -0
- /package/dist/{package.json.cjs → packages/adapter-next/package.json.cjs} +0 -0
- /package/dist/{package.json.cjs.map → packages/adapter-next/package.json.cjs.map} +0 -0
- /package/dist/{package.json.js → packages/adapter-next/package.json.js} +0 -0
- /package/dist/{package.json.js.map → packages/adapter-next/package.json.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.cjs","sources":["../../../../../../node_modules/semver/classes/semver.js"],"sourcesContent":["const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;AAAA,MAAM,QAAQA,QAAAA;AACd,MAAM,EAAE,YAAY,qBAAqBC,UAAAA;AACzC,MAAM,EAAE,IAAI,MAAMC,KAAAA;AAElB,MAAM,eAAeC,eAAAA;AACrB,MAAM,EAAE,mBAAkB,IAAKC,YAAAA;AAC/B,MAAM,OAAO;AAAA,EACX,YAAa,SAAS,SAAS;AAC7B,cAAU,aAAa,OAAO;AAE9B,QAAI,mBAAmB,QAAQ;AAC7B,UAAI,QAAQ,UAAU,CAAC,CAAC,QAAQ,SAC5B,QAAQ,sBAAsB,CAAC,CAAC,QAAQ,mBAAmB;AAC7D,eAAO;AAAA,MACf,OAAa;AACL,kBAAU,QAAQ;AAAA,MAC1B;AAAA,IACA,WAAe,OAAO,YAAY,UAAU;AACtC,YAAM,IAAI,UAAU,gDAAgD,OAAO,OAAO,IAAI;AAAA,IAC5F;AAEI,QAAI,QAAQ,SAAS,YAAY;AAC/B,YAAM,IAAI;AAAA,QACR,0BAA0B,UAAU;AAAA,MAC5C;AAAA,IACA;AAEI,UAA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aAAa,CAAC,YAAY,IAAI;AAClC,cAAI,mBAAmB,OAAO;AAC5B,yBAAa,CAAC,UAAU;AAAA,UACpC;AACU,cAAI,mBAAmB,KAAK,WAAW,CAAC,GAAG,UAAU,MAAM,GAAG;AAC5D,gBAAI,MAAM,KAAK,WAAW,CAAC,CAAC,GAAG;AAC7B,mBAAK,aAAa;AAAA,YAChC;AAAA,UACA,OAAiB;AACL,iBAAK,aAAa;AAAA,UAC9B;AAAA,QACA;AACQ;AAAA,MACR;AAAA,MACM;AACE,cAAM,IAAI,MAAM,+BAA+B,OAAO,EAAE;AAAA,IAChE;AACI,SAAK,OAAM;AACX,SAAK,MAAM,KAAK;AAChB,WAAO;AAAA,EACX;AACA;AAEA,IAAA,SAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { d as debug_1 } from "../internal/debug.js";
|
|
2
|
+
import { c as constants } from "../internal/constants.js";
|
|
3
|
+
import { r as reExports } from "../internal/re.js";
|
|
4
|
+
import { p as parseOptions_1 } from "../internal/parse-options.js";
|
|
5
|
+
import { i as identifiers } from "../internal/identifiers.js";
|
|
6
|
+
const debug = debug_1;
|
|
7
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = constants;
|
|
8
|
+
const { re, t } = reExports;
|
|
9
|
+
const parseOptions = parseOptions_1;
|
|
10
|
+
const { compareIdentifiers } = identifiers;
|
|
11
|
+
class SemVer {
|
|
12
|
+
constructor(version, options) {
|
|
13
|
+
options = parseOptions(options);
|
|
14
|
+
if (version instanceof SemVer) {
|
|
15
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
16
|
+
return version;
|
|
17
|
+
} else {
|
|
18
|
+
version = version.version;
|
|
19
|
+
}
|
|
20
|
+
} else if (typeof version !== "string") {
|
|
21
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
22
|
+
}
|
|
23
|
+
if (version.length > MAX_LENGTH) {
|
|
24
|
+
throw new TypeError(
|
|
25
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
debug("SemVer", version, options);
|
|
29
|
+
this.options = options;
|
|
30
|
+
this.loose = !!options.loose;
|
|
31
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
32
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
33
|
+
if (!m) {
|
|
34
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
35
|
+
}
|
|
36
|
+
this.raw = version;
|
|
37
|
+
this.major = +m[1];
|
|
38
|
+
this.minor = +m[2];
|
|
39
|
+
this.patch = +m[3];
|
|
40
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
41
|
+
throw new TypeError("Invalid major version");
|
|
42
|
+
}
|
|
43
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
44
|
+
throw new TypeError("Invalid minor version");
|
|
45
|
+
}
|
|
46
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
47
|
+
throw new TypeError("Invalid patch version");
|
|
48
|
+
}
|
|
49
|
+
if (!m[4]) {
|
|
50
|
+
this.prerelease = [];
|
|
51
|
+
} else {
|
|
52
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
53
|
+
if (/^[0-9]+$/.test(id)) {
|
|
54
|
+
const num = +id;
|
|
55
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
56
|
+
return num;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return id;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
63
|
+
this.format();
|
|
64
|
+
}
|
|
65
|
+
format() {
|
|
66
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
67
|
+
if (this.prerelease.length) {
|
|
68
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
69
|
+
}
|
|
70
|
+
return this.version;
|
|
71
|
+
}
|
|
72
|
+
toString() {
|
|
73
|
+
return this.version;
|
|
74
|
+
}
|
|
75
|
+
compare(other) {
|
|
76
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
77
|
+
if (!(other instanceof SemVer)) {
|
|
78
|
+
if (typeof other === "string" && other === this.version) {
|
|
79
|
+
return 0;
|
|
80
|
+
}
|
|
81
|
+
other = new SemVer(other, this.options);
|
|
82
|
+
}
|
|
83
|
+
if (other.version === this.version) {
|
|
84
|
+
return 0;
|
|
85
|
+
}
|
|
86
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
87
|
+
}
|
|
88
|
+
compareMain(other) {
|
|
89
|
+
if (!(other instanceof SemVer)) {
|
|
90
|
+
other = new SemVer(other, this.options);
|
|
91
|
+
}
|
|
92
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
93
|
+
}
|
|
94
|
+
comparePre(other) {
|
|
95
|
+
if (!(other instanceof SemVer)) {
|
|
96
|
+
other = new SemVer(other, this.options);
|
|
97
|
+
}
|
|
98
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
99
|
+
return -1;
|
|
100
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
101
|
+
return 1;
|
|
102
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
103
|
+
return 0;
|
|
104
|
+
}
|
|
105
|
+
let i = 0;
|
|
106
|
+
do {
|
|
107
|
+
const a = this.prerelease[i];
|
|
108
|
+
const b = other.prerelease[i];
|
|
109
|
+
debug("prerelease compare", i, a, b);
|
|
110
|
+
if (a === void 0 && b === void 0) {
|
|
111
|
+
return 0;
|
|
112
|
+
} else if (b === void 0) {
|
|
113
|
+
return 1;
|
|
114
|
+
} else if (a === void 0) {
|
|
115
|
+
return -1;
|
|
116
|
+
} else if (a === b) {
|
|
117
|
+
continue;
|
|
118
|
+
} else {
|
|
119
|
+
return compareIdentifiers(a, b);
|
|
120
|
+
}
|
|
121
|
+
} while (++i);
|
|
122
|
+
}
|
|
123
|
+
compareBuild(other) {
|
|
124
|
+
if (!(other instanceof SemVer)) {
|
|
125
|
+
other = new SemVer(other, this.options);
|
|
126
|
+
}
|
|
127
|
+
let i = 0;
|
|
128
|
+
do {
|
|
129
|
+
const a = this.build[i];
|
|
130
|
+
const b = other.build[i];
|
|
131
|
+
debug("prerelease compare", i, a, b);
|
|
132
|
+
if (a === void 0 && b === void 0) {
|
|
133
|
+
return 0;
|
|
134
|
+
} else if (b === void 0) {
|
|
135
|
+
return 1;
|
|
136
|
+
} else if (a === void 0) {
|
|
137
|
+
return -1;
|
|
138
|
+
} else if (a === b) {
|
|
139
|
+
continue;
|
|
140
|
+
} else {
|
|
141
|
+
return compareIdentifiers(a, b);
|
|
142
|
+
}
|
|
143
|
+
} while (++i);
|
|
144
|
+
}
|
|
145
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
146
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
147
|
+
inc(release, identifier, identifierBase) {
|
|
148
|
+
switch (release) {
|
|
149
|
+
case "premajor":
|
|
150
|
+
this.prerelease.length = 0;
|
|
151
|
+
this.patch = 0;
|
|
152
|
+
this.minor = 0;
|
|
153
|
+
this.major++;
|
|
154
|
+
this.inc("pre", identifier, identifierBase);
|
|
155
|
+
break;
|
|
156
|
+
case "preminor":
|
|
157
|
+
this.prerelease.length = 0;
|
|
158
|
+
this.patch = 0;
|
|
159
|
+
this.minor++;
|
|
160
|
+
this.inc("pre", identifier, identifierBase);
|
|
161
|
+
break;
|
|
162
|
+
case "prepatch":
|
|
163
|
+
this.prerelease.length = 0;
|
|
164
|
+
this.inc("patch", identifier, identifierBase);
|
|
165
|
+
this.inc("pre", identifier, identifierBase);
|
|
166
|
+
break;
|
|
167
|
+
case "prerelease":
|
|
168
|
+
if (this.prerelease.length === 0) {
|
|
169
|
+
this.inc("patch", identifier, identifierBase);
|
|
170
|
+
}
|
|
171
|
+
this.inc("pre", identifier, identifierBase);
|
|
172
|
+
break;
|
|
173
|
+
case "major":
|
|
174
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
175
|
+
this.major++;
|
|
176
|
+
}
|
|
177
|
+
this.minor = 0;
|
|
178
|
+
this.patch = 0;
|
|
179
|
+
this.prerelease = [];
|
|
180
|
+
break;
|
|
181
|
+
case "minor":
|
|
182
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
183
|
+
this.minor++;
|
|
184
|
+
}
|
|
185
|
+
this.patch = 0;
|
|
186
|
+
this.prerelease = [];
|
|
187
|
+
break;
|
|
188
|
+
case "patch":
|
|
189
|
+
if (this.prerelease.length === 0) {
|
|
190
|
+
this.patch++;
|
|
191
|
+
}
|
|
192
|
+
this.prerelease = [];
|
|
193
|
+
break;
|
|
194
|
+
case "pre": {
|
|
195
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
196
|
+
if (!identifier && identifierBase === false) {
|
|
197
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
198
|
+
}
|
|
199
|
+
if (this.prerelease.length === 0) {
|
|
200
|
+
this.prerelease = [base];
|
|
201
|
+
} else {
|
|
202
|
+
let i = this.prerelease.length;
|
|
203
|
+
while (--i >= 0) {
|
|
204
|
+
if (typeof this.prerelease[i] === "number") {
|
|
205
|
+
this.prerelease[i]++;
|
|
206
|
+
i = -2;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (i === -1) {
|
|
210
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
211
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
212
|
+
}
|
|
213
|
+
this.prerelease.push(base);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (identifier) {
|
|
217
|
+
let prerelease = [identifier, base];
|
|
218
|
+
if (identifierBase === false) {
|
|
219
|
+
prerelease = [identifier];
|
|
220
|
+
}
|
|
221
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
222
|
+
if (isNaN(this.prerelease[1])) {
|
|
223
|
+
this.prerelease = prerelease;
|
|
224
|
+
}
|
|
225
|
+
} else {
|
|
226
|
+
this.prerelease = prerelease;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
default:
|
|
232
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
233
|
+
}
|
|
234
|
+
this.format();
|
|
235
|
+
this.raw = this.version;
|
|
236
|
+
return this;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
var semver = SemVer;
|
|
240
|
+
export {
|
|
241
|
+
semver as s
|
|
242
|
+
};
|
|
243
|
+
//# sourceMappingURL=semver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.js","sources":["../../../../../../node_modules/semver/classes/semver.js"],"sourcesContent":["const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;AAAA,MAAM,QAAQA;AACd,MAAM,EAAE,YAAY,qBAAqBC;AACzC,MAAM,EAAE,IAAI,MAAMC;AAElB,MAAM,eAAeC;AACrB,MAAM,EAAE,mBAAkB,IAAKC;AAC/B,MAAM,OAAO;AAAA,EACX,YAAa,SAAS,SAAS;AAC7B,cAAU,aAAa,OAAO;AAE9B,QAAI,mBAAmB,QAAQ;AAC7B,UAAI,QAAQ,UAAU,CAAC,CAAC,QAAQ,SAC5B,QAAQ,sBAAsB,CAAC,CAAC,QAAQ,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AAC1C,mBAAK,WAAW,CAAC;AACjB,kBAAI;AAAA,YAClB;AAAA,UACA;AACU,cAAI,MAAM,IAAI;AAEZ,gBAAI,eAAe,KAAK,WAAW,KAAK,GAAG,KAAK,mBAAmB,OAAO;AACxE,oBAAM,IAAI,MAAM,uDAAuD;AAAA,YACrF;AACY,iBAAK,WAAW,KAAK,IAAI;AAAA,UACrC;AAAA,QACA;AACQ,YAAI,YAAY;AAGd,cAAI,aAAa,CAAC,YAAY,IAAI;AAClC,cAAI,mBAAmB,OAAO;AAC5B,yBAAa,CAAC,UAAU;AAAA,UACpC;AACU,cAAI,mBAAmB,KAAK,WAAW,CAAC,GAAG,UAAU,MAAM,GAAG;AAC5D,gBAAI,MAAM,KAAK,WAAW,CAAC,CAAC,GAAG;AAC7B,mBAAK,aAAa;AAAA,YAChC;AAAA,UACA,OAAiB;AACL,iBAAK,aAAa;AAAA,UAC9B;AAAA,QACA;AACQ;AAAA,MACR;AAAA,MACM;AACE,cAAM,IAAI,MAAM,+BAA+B,OAAO,EAAE;AAAA,IAChE;AACI,SAAK,OAAM;AACX,SAAK,MAAM,KAAK;AAChB,WAAO;AAAA,EACX;AACA;AAEA,IAAA,SAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const parse$1 = require("./parse.cjs");
|
|
4
|
+
const parse = parse$1.parse_1;
|
|
5
|
+
const clean = (version, options) => {
|
|
6
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
7
|
+
return s ? s.version : null;
|
|
8
|
+
};
|
|
9
|
+
var clean_1 = clean;
|
|
10
|
+
exports.clean_1 = clean_1;
|
|
11
|
+
//# sourceMappingURL=clean.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.cjs","sources":["../../../../../../node_modules/semver/functions/clean.js"],"sourcesContent":["const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,QAAQA,QAAAA;AACd,MAAM,QAAQ,CAAC,SAAS,YAAY;AAClC,QAAM,IAAI,MAAM,QAAQ,KAAI,EAAG,QAAQ,UAAU,EAAE,GAAG,OAAO;AAC7D,SAAO,IAAI,EAAE,UAAU;AACzB;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { p as parse_1 } from "./parse.js";
|
|
2
|
+
const parse = parse_1;
|
|
3
|
+
const clean = (version, options) => {
|
|
4
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
5
|
+
return s ? s.version : null;
|
|
6
|
+
};
|
|
7
|
+
var clean_1 = clean;
|
|
8
|
+
export {
|
|
9
|
+
clean_1 as c
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=clean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.js","sources":["../../../../../../node_modules/semver/functions/clean.js"],"sourcesContent":["const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["require$$0"],"mappings":";AAAA,MAAM,QAAQA;AACd,MAAM,QAAQ,CAAC,SAAS,YAAY;AAClC,QAAM,IAAI,MAAM,QAAQ,KAAI,EAAG,QAAQ,UAAU,EAAE,GAAG,OAAO;AAC7D,SAAO,IAAI,EAAE,UAAU;AACzB;AACA,IAAA,UAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const eq$1 = require("./eq.cjs");
|
|
4
|
+
const neq$1 = require("./neq.cjs");
|
|
5
|
+
const gt$1 = require("./gt.cjs");
|
|
6
|
+
const gte$1 = require("./gte.cjs");
|
|
7
|
+
const lt$1 = require("./lt.cjs");
|
|
8
|
+
const lte$1 = require("./lte.cjs");
|
|
9
|
+
const eq = eq$1.eq_1;
|
|
10
|
+
const neq = neq$1.neq_1;
|
|
11
|
+
const gt = gt$1.gt_1;
|
|
12
|
+
const gte = gte$1.gte_1;
|
|
13
|
+
const lt = lt$1.lt_1;
|
|
14
|
+
const lte = lte$1.lte_1;
|
|
15
|
+
const cmp = (a, op, b, loose) => {
|
|
16
|
+
switch (op) {
|
|
17
|
+
case "===":
|
|
18
|
+
if (typeof a === "object") {
|
|
19
|
+
a = a.version;
|
|
20
|
+
}
|
|
21
|
+
if (typeof b === "object") {
|
|
22
|
+
b = b.version;
|
|
23
|
+
}
|
|
24
|
+
return a === b;
|
|
25
|
+
case "!==":
|
|
26
|
+
if (typeof a === "object") {
|
|
27
|
+
a = a.version;
|
|
28
|
+
}
|
|
29
|
+
if (typeof b === "object") {
|
|
30
|
+
b = b.version;
|
|
31
|
+
}
|
|
32
|
+
return a !== b;
|
|
33
|
+
case "":
|
|
34
|
+
case "=":
|
|
35
|
+
case "==":
|
|
36
|
+
return eq(a, b, loose);
|
|
37
|
+
case "!=":
|
|
38
|
+
return neq(a, b, loose);
|
|
39
|
+
case ">":
|
|
40
|
+
return gt(a, b, loose);
|
|
41
|
+
case ">=":
|
|
42
|
+
return gte(a, b, loose);
|
|
43
|
+
case "<":
|
|
44
|
+
return lt(a, b, loose);
|
|
45
|
+
case "<=":
|
|
46
|
+
return lte(a, b, loose);
|
|
47
|
+
default:
|
|
48
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var cmp_1 = cmp;
|
|
52
|
+
exports.cmp_1 = cmp_1;
|
|
53
|
+
//# sourceMappingURL=cmp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmp.cjs","sources":["../../../../../../node_modules/semver/functions/cmp.js"],"sourcesContent":["const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":";;;;;;;;AAAA,MAAM,KAAKA,KAAAA;AACX,MAAM,MAAMC,MAAAA;AACZ,MAAM,KAAKC,KAAAA;AACX,MAAM,MAAMC,MAAAA;AACZ,MAAM,KAAKC,KAAAA;AACX,MAAM,MAAMC,MAAAA;AAEZ,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,UAAU;AAC/B,UAAQ,IAAE;AAAA,IACR,KAAK;AACH,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,aAAO,MAAM;AAAA,IAEf,KAAK;AACH,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,aAAO,MAAM;AAAA,IAEf,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB;AACE,YAAM,IAAI,UAAU,qBAAqB,EAAE,EAAE;AAAA,EACnD;AACA;AACA,IAAA,QAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { e as eq_1 } from "./eq.js";
|
|
2
|
+
import { n as neq_1 } from "./neq.js";
|
|
3
|
+
import { g as gt_1 } from "./gt.js";
|
|
4
|
+
import { g as gte_1 } from "./gte.js";
|
|
5
|
+
import { l as lt_1 } from "./lt.js";
|
|
6
|
+
import { l as lte_1 } from "./lte.js";
|
|
7
|
+
const eq = eq_1;
|
|
8
|
+
const neq = neq_1;
|
|
9
|
+
const gt = gt_1;
|
|
10
|
+
const gte = gte_1;
|
|
11
|
+
const lt = lt_1;
|
|
12
|
+
const lte = lte_1;
|
|
13
|
+
const cmp = (a, op, b, loose) => {
|
|
14
|
+
switch (op) {
|
|
15
|
+
case "===":
|
|
16
|
+
if (typeof a === "object") {
|
|
17
|
+
a = a.version;
|
|
18
|
+
}
|
|
19
|
+
if (typeof b === "object") {
|
|
20
|
+
b = b.version;
|
|
21
|
+
}
|
|
22
|
+
return a === b;
|
|
23
|
+
case "!==":
|
|
24
|
+
if (typeof a === "object") {
|
|
25
|
+
a = a.version;
|
|
26
|
+
}
|
|
27
|
+
if (typeof b === "object") {
|
|
28
|
+
b = b.version;
|
|
29
|
+
}
|
|
30
|
+
return a !== b;
|
|
31
|
+
case "":
|
|
32
|
+
case "=":
|
|
33
|
+
case "==":
|
|
34
|
+
return eq(a, b, loose);
|
|
35
|
+
case "!=":
|
|
36
|
+
return neq(a, b, loose);
|
|
37
|
+
case ">":
|
|
38
|
+
return gt(a, b, loose);
|
|
39
|
+
case ">=":
|
|
40
|
+
return gte(a, b, loose);
|
|
41
|
+
case "<":
|
|
42
|
+
return lt(a, b, loose);
|
|
43
|
+
case "<=":
|
|
44
|
+
return lte(a, b, loose);
|
|
45
|
+
default:
|
|
46
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var cmp_1 = cmp;
|
|
50
|
+
export {
|
|
51
|
+
cmp_1 as c
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=cmp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmp.js","sources":["../../../../../../node_modules/semver/functions/cmp.js"],"sourcesContent":["const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":";;;;;;AAAA,MAAM,KAAKA;AACX,MAAM,MAAMC;AACZ,MAAM,KAAKC;AACX,MAAM,MAAMC;AACZ,MAAM,KAAKC;AACX,MAAM,MAAMC;AAEZ,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,UAAU;AAC/B,UAAQ,IAAE;AAAA,IACR,KAAK;AACH,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,aAAO,MAAM;AAAA,IAEf,KAAK;AACH,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,UAAI,OAAO,MAAM,UAAU;AACzB,YAAI,EAAE;AAAA,MACd;AACM,aAAO,MAAM;AAAA,IAEf,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB,KAAK;AACH,aAAO,GAAG,GAAG,GAAG,KAAK;AAAA,IAEvB,KAAK;AACH,aAAO,IAAI,GAAG,GAAG,KAAK;AAAA,IAExB;AACE,YAAM,IAAI,UAAU,qBAAqB,EAAE,EAAE;AAAA,EACnD;AACA;AACA,IAAA,QAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const semver = require("../classes/semver.cjs");
|
|
4
|
+
const parse$1 = require("./parse.cjs");
|
|
5
|
+
const re$1 = require("../internal/re.cjs");
|
|
6
|
+
const SemVer = semver.semver;
|
|
7
|
+
const parse = parse$1.parse_1;
|
|
8
|
+
const { re, t } = re$1.reExports;
|
|
9
|
+
const coerce = (version, options) => {
|
|
10
|
+
if (version instanceof SemVer) {
|
|
11
|
+
return version;
|
|
12
|
+
}
|
|
13
|
+
if (typeof version === "number") {
|
|
14
|
+
version = String(version);
|
|
15
|
+
}
|
|
16
|
+
if (typeof version !== "string") {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
options = options || {};
|
|
20
|
+
let match = null;
|
|
21
|
+
if (!options.rtl) {
|
|
22
|
+
match = version.match(re[t.COERCE]);
|
|
23
|
+
} else {
|
|
24
|
+
let next;
|
|
25
|
+
while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
26
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
27
|
+
match = next;
|
|
28
|
+
}
|
|
29
|
+
re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
30
|
+
}
|
|
31
|
+
re[t.COERCERTL].lastIndex = -1;
|
|
32
|
+
}
|
|
33
|
+
if (match === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
37
|
+
};
|
|
38
|
+
var coerce_1 = coerce;
|
|
39
|
+
exports.coerce_1 = coerce_1;
|
|
40
|
+
//# sourceMappingURL=coerce.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce.cjs","sources":["../../../../../../node_modules/semver/functions/coerce.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;AAAA,MAAM,SAASA,OAAAA;AACf,MAAM,QAAQC,QAAAA;AACd,MAAM,EAAE,IAAI,MAAMC,KAAAA;AAElB,MAAM,SAAS,CAAC,SAAS,YAAY;AACnC,MAAI,mBAAmB,QAAQ;AAC7B,WAAO;AAAA,EACX;AAEE,MAAI,OAAO,YAAY,UAAU;AAC/B,cAAU,OAAO,OAAO;AAAA,EAC5B;AAEE,MAAI,OAAO,YAAY,UAAU;AAC/B,WAAO;AAAA,EACX;AAEE,YAAU,WAAW,CAAA;AAErB,MAAI,QAAQ;AACZ,MAAI,CAAC,QAAQ,KAAK;AAChB,YAAQ,QAAQ,MAAM,GAAG,EAAE,MAAM,CAAC;AAAA,EACtC,OAAS;AASL,QAAI;AACJ,YAAQ,OAAO,GAAG,EAAE,SAAS,EAAE,KAAK,OAAO,OACtC,CAAC,SAAS,MAAM,QAAQ,MAAM,CAAC,EAAE,WAAW,QAAQ,SACvD;AACA,UAAI,CAAC,SACC,KAAK,QAAQ,KAAK,CAAC,EAAE,WAAW,MAAM,QAAQ,MAAM,CAAC,EAAE,QAAQ;AACnE,gBAAQ;AAAA,MAChB;AACM,SAAG,EAAE,SAAS,EAAE,YAAY,KAAK,QAAQ,KAAK,CAAC,EAAE,SAAS,KAAK,CAAC,EAAE;AAAA,IACxE;AAEI,OAAG,EAAE,SAAS,EAAE,YAAY;AAAA,EAChC;AAEE,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACX;AAEE,SAAO,MAAM,GAAG,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,OAAO;AAC3E;AACA,IAAA,WAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { s as semver } from "../classes/semver.js";
|
|
2
|
+
import { p as parse_1 } from "./parse.js";
|
|
3
|
+
import { r as reExports } from "../internal/re.js";
|
|
4
|
+
const SemVer = semver;
|
|
5
|
+
const parse = parse_1;
|
|
6
|
+
const { re, t } = reExports;
|
|
7
|
+
const coerce = (version, options) => {
|
|
8
|
+
if (version instanceof SemVer) {
|
|
9
|
+
return version;
|
|
10
|
+
}
|
|
11
|
+
if (typeof version === "number") {
|
|
12
|
+
version = String(version);
|
|
13
|
+
}
|
|
14
|
+
if (typeof version !== "string") {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
options = options || {};
|
|
18
|
+
let match = null;
|
|
19
|
+
if (!options.rtl) {
|
|
20
|
+
match = version.match(re[t.COERCE]);
|
|
21
|
+
} else {
|
|
22
|
+
let next;
|
|
23
|
+
while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
24
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
25
|
+
match = next;
|
|
26
|
+
}
|
|
27
|
+
re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
28
|
+
}
|
|
29
|
+
re[t.COERCERTL].lastIndex = -1;
|
|
30
|
+
}
|
|
31
|
+
if (match === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
35
|
+
};
|
|
36
|
+
var coerce_1 = coerce;
|
|
37
|
+
export {
|
|
38
|
+
coerce_1 as c
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=coerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce.js","sources":["../../../../../../node_modules/semver/functions/coerce.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;AAAA,MAAM,SAASA;AACf,MAAM,QAAQC;AACd,MAAM,EAAE,IAAI,MAAMC;AAElB,MAAM,SAAS,CAAC,SAAS,YAAY;AACnC,MAAI,mBAAmB,QAAQ;AAC7B,WAAO;AAAA,EACX;AAEE,MAAI,OAAO,YAAY,UAAU;AAC/B,cAAU,OAAO,OAAO;AAAA,EAC5B;AAEE,MAAI,OAAO,YAAY,UAAU;AAC/B,WAAO;AAAA,EACX;AAEE,YAAU,WAAW,CAAA;AAErB,MAAI,QAAQ;AACZ,MAAI,CAAC,QAAQ,KAAK;AAChB,YAAQ,QAAQ,MAAM,GAAG,EAAE,MAAM,CAAC;AAAA,EACtC,OAAS;AASL,QAAI;AACJ,YAAQ,OAAO,GAAG,EAAE,SAAS,EAAE,KAAK,OAAO,OACtC,CAAC,SAAS,MAAM,QAAQ,MAAM,CAAC,EAAE,WAAW,QAAQ,SACvD;AACA,UAAI,CAAC,SACC,KAAK,QAAQ,KAAK,CAAC,EAAE,WAAW,MAAM,QAAQ,MAAM,CAAC,EAAE,QAAQ;AACnE,gBAAQ;AAAA,MAChB;AACM,SAAG,EAAE,SAAS,EAAE,YAAY,KAAK,QAAQ,KAAK,CAAC,EAAE,SAAS,KAAK,CAAC,EAAE;AAAA,IACxE;AAEI,OAAG,EAAE,SAAS,EAAE,YAAY;AAAA,EAChC;AAEE,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACX;AAEE,SAAO,MAAM,GAAG,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,KAAK,GAAG,IAAI,OAAO;AAC3E;AACA,IAAA,WAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const semver = require("../classes/semver.cjs");
|
|
4
|
+
const SemVer = semver.semver;
|
|
5
|
+
const compareBuild = (a, b, loose) => {
|
|
6
|
+
const versionA = new SemVer(a, loose);
|
|
7
|
+
const versionB = new SemVer(b, loose);
|
|
8
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
9
|
+
};
|
|
10
|
+
var compareBuild_1 = compareBuild;
|
|
11
|
+
exports.compareBuild_1 = compareBuild_1;
|
|
12
|
+
//# sourceMappingURL=compare-build.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-build.cjs","sources":["../../../../../../node_modules/semver/functions/compare-build.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,SAASA,OAAAA;AACf,MAAM,eAAe,CAAC,GAAG,GAAG,UAAU;AACpC,QAAM,WAAW,IAAI,OAAO,GAAG,KAAK;AACpC,QAAM,WAAW,IAAI,OAAO,GAAG,KAAK;AACpC,SAAO,SAAS,QAAQ,QAAQ,KAAK,SAAS,aAAa,QAAQ;AACrE;AACA,IAAA,iBAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { s as semver } from "../classes/semver.js";
|
|
2
|
+
const SemVer = semver;
|
|
3
|
+
const compareBuild = (a, b, loose) => {
|
|
4
|
+
const versionA = new SemVer(a, loose);
|
|
5
|
+
const versionB = new SemVer(b, loose);
|
|
6
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
7
|
+
};
|
|
8
|
+
var compareBuild_1 = compareBuild;
|
|
9
|
+
export {
|
|
10
|
+
compareBuild_1 as c
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=compare-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-build.js","sources":["../../../../../../node_modules/semver/functions/compare-build.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n"],"names":["require$$0"],"mappings":";AAAA,MAAM,SAASA;AACf,MAAM,eAAe,CAAC,GAAG,GAAG,UAAU;AACpC,QAAM,WAAW,IAAI,OAAO,GAAG,KAAK;AACpC,QAAM,WAAW,IAAI,OAAO,GAAG,KAAK;AACpC,SAAO,SAAS,QAAQ,QAAQ,KAAK,SAAS,aAAa,QAAQ;AACrE;AACA,IAAA,iBAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const compare$1 = require("./compare.cjs");
|
|
4
|
+
const compare = compare$1.compare_1;
|
|
5
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
6
|
+
var compareLoose_1 = compareLoose;
|
|
7
|
+
exports.compareLoose_1 = compareLoose_1;
|
|
8
|
+
//# sourceMappingURL=compare-loose.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-loose.cjs","sources":["../../../../../../node_modules/semver/functions/compare-loose.js"],"sourcesContent":["const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,UAAUA,UAAAA;AAChB,MAAM,eAAe,CAAC,GAAG,MAAM,QAAQ,GAAG,GAAG,IAAI;AACjD,IAAA,iBAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-loose.js","sources":["../../../../../../node_modules/semver/functions/compare-loose.js"],"sourcesContent":["const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n"],"names":["require$$0"],"mappings":";AAAA,MAAM,UAAUA;AAChB,MAAM,eAAe,CAAC,GAAG,MAAM,QAAQ,GAAG,GAAG,IAAI;AACjD,IAAA,iBAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const semver = require("../classes/semver.cjs");
|
|
4
|
+
const SemVer = semver.semver;
|
|
5
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
6
|
+
var compare_1 = compare;
|
|
7
|
+
exports.compare_1 = compare_1;
|
|
8
|
+
//# sourceMappingURL=compare.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.cjs","sources":["../../../../../../node_modules/semver/functions/compare.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,SAASA,OAAAA;AACf,MAAM,UAAU,CAAC,GAAG,GAAG,UACrB,IAAI,OAAO,GAAG,KAAK,EAAE,QAAQ,IAAI,OAAO,GAAG,KAAK,CAAC;AAEnD,IAAA,YAAiB;;","x_google_ignoreList":[0]}
|