Update dist files.

This commit is contained in:
Fabio Niephaus 2025-02-12 14:35:15 +01:00 committed by Fabio Niephaus
parent fcc01ed19b
commit f07b5bfaef
4 changed files with 60 additions and 38 deletions

45
dist/cleanup.js generated vendored
View File

@ -82690,6 +82690,7 @@ function requireRe () {
const re = exports.re = []; const re = exports.re = [];
const safeRe = exports.safeRe = []; const safeRe = exports.safeRe = [];
const src = exports.src = []; const src = exports.src = [];
const safeSrc = exports.safeSrc = [];
const t = exports.t = {}; const t = exports.t = {};
let R = 0; let R = 0;
@ -82722,6 +82723,7 @@ function requireRe () {
debug(name, index, value); debug(name, index, value);
t[name] = index; t[name] = index;
src[index] = value; src[index] = value;
safeSrc[index] = safe;
re[index] = new RegExp(value, isGlobal ? 'g' : undefined); re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined); safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);
}; };
@ -82963,7 +82965,7 @@ function requireSemver$2 () {
hasRequiredSemver$2 = 1; hasRequiredSemver$2 = 1;
const debug = requireDebug(); const debug = requireDebug();
const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants(); const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants();
const { safeRe: re, t } = requireRe(); const { safeRe: re, safeSrc: src, t } = requireRe();
const parseOptions = requireParseOptions(); const parseOptions = requireParseOptions();
const { compareIdentifiers } = requireIdentifiers(); const { compareIdentifiers } = requireIdentifiers();
@ -83139,6 +83141,20 @@ function requireSemver$2 () {
// preminor will bump the version up to the next minor release, and immediately // preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way. // down to pre-release. premajor and prepatch work the same way.
inc (release, identifier, identifierBase) { inc (release, identifier, identifierBase) {
if (release.startsWith('pre')) {
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
// Avoid an invalid semver results
if (identifier) {
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
const match = `-${identifier}`.match(r);
if (!match || match[1] !== identifier) {
throw new Error(`invalid identifier: ${identifier}`)
}
}
}
switch (release) { switch (release) {
case 'premajor': case 'premajor':
this.prerelease.length = 0; this.prerelease.length = 0;
@ -83169,6 +83185,12 @@ function requireSemver$2 () {
} }
this.inc('pre', identifier, identifierBase); this.inc('pre', identifier, identifierBase);
break break
case 'release':
if (this.prerelease.length === 0) {
throw new Error(`version ${this.raw} is not a prerelease`)
}
this.prerelease.length = 0;
break
case 'major': case 'major':
// If this is a pre-major version, bump up to the same major version. // If this is a pre-major version, bump up to the same major version.
@ -83212,10 +83234,6 @@ function requireSemver$2 () {
case 'pre': { case 'pre': {
const base = Number(identifierBase) ? 1 : 0; const base = Number(identifierBase) ? 1 : 0;
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
if (this.prerelease.length === 0) { if (this.prerelease.length === 0) {
this.prerelease = [base]; this.prerelease = [base];
} else { } else {
@ -83384,20 +83402,13 @@ function requireDiff () {
return 'major' return 'major'
} }
// Otherwise it can be determined by checking the high version // If the main part has no difference
if (lowVersion.compareMain(highVersion) === 0) {
if (highVersion.patch) { if (lowVersion.minor && !lowVersion.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' return 'minor'
} }
return 'patch'
// bumping major/minor/patch all have same result }
return 'major'
} }
// add the `pre` prefix if we are going to a prerelease version // add the `pre` prefix if we are going to a prerelease version

2
dist/cleanup.js.map generated vendored

File diff suppressed because one or more lines are too long

45
dist/main.js generated vendored
View File

@ -27449,6 +27449,7 @@ function requireRe () {
const re = exports.re = []; const re = exports.re = [];
const safeRe = exports.safeRe = []; const safeRe = exports.safeRe = [];
const src = exports.src = []; const src = exports.src = [];
const safeSrc = exports.safeSrc = [];
const t = exports.t = {}; const t = exports.t = {};
let R = 0; let R = 0;
@ -27481,6 +27482,7 @@ function requireRe () {
debug(name, index, value); debug(name, index, value);
t[name] = index; t[name] = index;
src[index] = value; src[index] = value;
safeSrc[index] = safe;
re[index] = new RegExp(value, isGlobal ? 'g' : undefined); re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined); safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);
}; };
@ -27722,7 +27724,7 @@ function requireSemver$3 () {
hasRequiredSemver$3 = 1; hasRequiredSemver$3 = 1;
const debug = requireDebug(); const debug = requireDebug();
const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants$1(); const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants$1();
const { safeRe: re, t } = requireRe(); const { safeRe: re, safeSrc: src, t } = requireRe();
const parseOptions = requireParseOptions(); const parseOptions = requireParseOptions();
const { compareIdentifiers } = requireIdentifiers(); const { compareIdentifiers } = requireIdentifiers();
@ -27898,6 +27900,20 @@ function requireSemver$3 () {
// preminor will bump the version up to the next minor release, and immediately // preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way. // down to pre-release. premajor and prepatch work the same way.
inc (release, identifier, identifierBase) { inc (release, identifier, identifierBase) {
if (release.startsWith('pre')) {
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
// Avoid an invalid semver results
if (identifier) {
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
const match = `-${identifier}`.match(r);
if (!match || match[1] !== identifier) {
throw new Error(`invalid identifier: ${identifier}`)
}
}
}
switch (release) { switch (release) {
case 'premajor': case 'premajor':
this.prerelease.length = 0; this.prerelease.length = 0;
@ -27928,6 +27944,12 @@ function requireSemver$3 () {
} }
this.inc('pre', identifier, identifierBase); this.inc('pre', identifier, identifierBase);
break break
case 'release':
if (this.prerelease.length === 0) {
throw new Error(`version ${this.raw} is not a prerelease`)
}
this.prerelease.length = 0;
break
case 'major': case 'major':
// If this is a pre-major version, bump up to the same major version. // If this is a pre-major version, bump up to the same major version.
@ -27971,10 +27993,6 @@ function requireSemver$3 () {
case 'pre': { case 'pre': {
const base = Number(identifierBase) ? 1 : 0; const base = Number(identifierBase) ? 1 : 0;
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
if (this.prerelease.length === 0) { if (this.prerelease.length === 0) {
this.prerelease = [base]; this.prerelease = [base];
} else { } else {
@ -28143,20 +28161,13 @@ function requireDiff () {
return 'major' return 'major'
} }
// Otherwise it can be determined by checking the high version // If the main part has no difference
if (lowVersion.compareMain(highVersion) === 0) {
if (highVersion.patch) { if (lowVersion.minor && !lowVersion.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' return 'minor'
} }
return 'patch'
// bumping major/minor/patch all have same result }
return 'major'
} }
// add the `pre` prefix if we are going to a prerelease version // add the `pre` prefix if we are going to a prerelease version

2
dist/main.js.map generated vendored

File diff suppressed because one or more lines are too long