@wise/wds-codemods 1.0.0-experimental-b7a098e → 1.0.0-experimental-87acc58
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/{helpers-CRViSmes.js → helpers-BNLAPdMR.js} +364 -364
- package/dist/helpers-BNLAPdMR.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/transforms/button/transformer.js +1 -1
- package/package.json +19 -19
- package/dist/helpers-CRViSmes.js.map +0 -1
- /package/dist/transforms/button/{config.json → config.json/config.json} +0 -0
|
@@ -31,16 +31,16 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
31
31
|
node_fs_promises = __toESM(node_fs_promises);
|
|
32
32
|
let node_path = require("node:path");
|
|
33
33
|
node_path = __toESM(node_path);
|
|
34
|
-
let
|
|
34
|
+
let __inquirer_prompts = require("@inquirer/prompts");
|
|
35
35
|
let node_fs = require("node:fs");
|
|
36
36
|
|
|
37
37
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
38
38
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39
39
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
40
|
-
const MAX_LENGTH = 256;
|
|
41
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
42
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
43
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
40
|
+
const MAX_LENGTH$2 = 256;
|
|
41
|
+
const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
42
|
+
const MAX_SAFE_COMPONENT_LENGTH$1 = 16;
|
|
43
|
+
const MAX_SAFE_BUILD_LENGTH$1 = MAX_LENGTH$2 - 6;
|
|
44
44
|
const RELEASE_TYPES = [
|
|
45
45
|
"major",
|
|
46
46
|
"premajor",
|
|
@@ -51,10 +51,10 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
51
51
|
"prerelease"
|
|
52
52
|
];
|
|
53
53
|
module.exports = {
|
|
54
|
-
MAX_LENGTH,
|
|
55
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
56
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
57
|
-
MAX_SAFE_INTEGER,
|
|
54
|
+
MAX_LENGTH: MAX_LENGTH$2,
|
|
55
|
+
MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH$1,
|
|
56
|
+
MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH$1,
|
|
57
|
+
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
|
|
58
58
|
RELEASE_TYPES,
|
|
59
59
|
SEMVER_SPEC_VERSION,
|
|
60
60
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
@@ -65,26 +65,26 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
67
67
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
68
|
-
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
69
|
-
module.exports = debug;
|
|
68
|
+
const debug$4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
69
|
+
module.exports = debug$4;
|
|
70
70
|
}));
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
|
|
74
74
|
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
76
|
-
const debug = require_debug();
|
|
75
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
|
|
76
|
+
const debug$3 = require_debug();
|
|
77
77
|
exports = module.exports = {};
|
|
78
|
-
const re = exports.re = [];
|
|
78
|
+
const re$4 = exports.re = [];
|
|
79
79
|
const safeRe = exports.safeRe = [];
|
|
80
80
|
const src = exports.src = [];
|
|
81
81
|
const safeSrc = exports.safeSrc = [];
|
|
82
|
-
const t = exports.t = {};
|
|
82
|
+
const t$4 = exports.t = {};
|
|
83
83
|
let R = 0;
|
|
84
84
|
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
85
85
|
const safeRegexReplacements = [
|
|
86
86
|
["\\s", 1],
|
|
87
|
-
["\\d", MAX_LENGTH],
|
|
87
|
+
["\\d", MAX_LENGTH$1],
|
|
88
88
|
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89
89
|
];
|
|
90
90
|
const makeSafeRegex = (value) => {
|
|
@@ -94,56 +94,56 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94
94
|
const createToken = (name, value, isGlobal) => {
|
|
95
95
|
const safe = makeSafeRegex(value);
|
|
96
96
|
const index = R++;
|
|
97
|
-
debug(name, index, value);
|
|
98
|
-
t[name] = index;
|
|
97
|
+
debug$3(name, index, value);
|
|
98
|
+
t$4[name] = index;
|
|
99
99
|
src[index] = value;
|
|
100
100
|
safeSrc[index] = safe;
|
|
101
|
-
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
101
|
+
re$4[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
102
102
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
103
103
|
};
|
|
104
104
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
105
105
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
106
106
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
107
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
108
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
109
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
110
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
111
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
112
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
107
|
+
createToken("MAINVERSION", `(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`);
|
|
108
|
+
createToken("MAINVERSIONLOOSE", `(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
|
|
109
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`);
|
|
110
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
|
|
111
|
+
createToken("PRERELEASE", `(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`);
|
|
112
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
113
113
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
114
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
115
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
116
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
117
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
118
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
114
|
+
createToken("BUILD", `(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`);
|
|
115
|
+
createToken("FULLPLAIN", `v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`);
|
|
116
|
+
createToken("FULL", `^${src[t$4.FULLPLAIN]}$`);
|
|
117
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`);
|
|
118
|
+
createToken("LOOSE", `^${src[t$4.LOOSEPLAIN]}$`);
|
|
119
119
|
createToken("GTLT", "((?:<|>)?=?)");
|
|
120
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
121
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
122
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
123
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
124
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
125
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
120
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
121
|
+
createToken("XRANGEIDENTIFIER", `${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
122
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`);
|
|
123
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`);
|
|
124
|
+
createToken("XRANGE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`);
|
|
125
|
+
createToken("XRANGELOOSE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`);
|
|
126
126
|
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
127
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
128
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
129
|
-
createToken("COERCERTL", src[t.COERCE], true);
|
|
130
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
127
|
+
createToken("COERCE", `${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
128
|
+
createToken("COERCEFULL", src[t$4.COERCEPLAIN] + `(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`);
|
|
129
|
+
createToken("COERCERTL", src[t$4.COERCE], true);
|
|
130
|
+
createToken("COERCERTLFULL", src[t$4.COERCEFULL], true);
|
|
131
131
|
createToken("LONETILDE", "(?:~>?)");
|
|
132
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
132
|
+
createToken("TILDETRIM", `(\\s*)${src[t$4.LONETILDE]}\\s+`, true);
|
|
133
133
|
exports.tildeTrimReplace = "$1~";
|
|
134
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
135
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
134
|
+
createToken("TILDE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`);
|
|
135
|
+
createToken("TILDELOOSE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`);
|
|
136
136
|
createToken("LONECARET", "(?:\\^)");
|
|
137
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
137
|
+
createToken("CARETTRIM", `(\\s*)${src[t$4.LONECARET]}\\s+`, true);
|
|
138
138
|
exports.caretTrimReplace = "$1^";
|
|
139
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
140
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
141
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
143
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
139
|
+
createToken("CARET", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`);
|
|
140
|
+
createToken("CARETLOOSE", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`);
|
|
141
|
+
createToken("COMPARATORLOOSE", `^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`);
|
|
142
|
+
createToken("COMPARATOR", `^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`);
|
|
143
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`, true);
|
|
144
144
|
exports.comparatorTrimReplace = "$1$2$3";
|
|
145
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
146
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
145
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`);
|
|
146
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`);
|
|
147
147
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
148
148
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
149
149
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
@@ -154,19 +154,19 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
154
154
|
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
155
155
|
const looseOption = Object.freeze({ loose: true });
|
|
156
156
|
const emptyOpts = Object.freeze({});
|
|
157
|
-
const parseOptions = (options) => {
|
|
157
|
+
const parseOptions$3 = (options) => {
|
|
158
158
|
if (!options) return emptyOpts;
|
|
159
159
|
if (typeof options !== "object") return looseOption;
|
|
160
160
|
return options;
|
|
161
161
|
};
|
|
162
|
-
module.exports = parseOptions;
|
|
162
|
+
module.exports = parseOptions$3;
|
|
163
163
|
}));
|
|
164
164
|
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
167
167
|
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
168
|
const numeric = /^[0-9]+$/;
|
|
169
|
-
const compareIdentifiers = (a, b) => {
|
|
169
|
+
const compareIdentifiers$1 = (a, b) => {
|
|
170
170
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
171
171
|
const anum = numeric.test(a);
|
|
172
172
|
const bnum = numeric.test(b);
|
|
@@ -176,9 +176,9 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
176
176
|
}
|
|
177
177
|
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
178
178
|
};
|
|
179
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
179
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a);
|
|
180
180
|
module.exports = {
|
|
181
|
-
compareIdentifiers,
|
|
181
|
+
compareIdentifiers: compareIdentifiers$1,
|
|
182
182
|
rcompareIdentifiers
|
|
183
183
|
};
|
|
184
184
|
}));
|
|
@@ -186,23 +186,23 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
188
188
|
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
189
|
-
const debug = require_debug();
|
|
189
|
+
const debug$2 = require_debug();
|
|
190
190
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
191
|
-
const { safeRe: re, t } = require_re();
|
|
192
|
-
const parseOptions = require_parse_options();
|
|
191
|
+
const { safeRe: re$3, t: t$3 } = require_re();
|
|
192
|
+
const parseOptions$2 = require_parse_options();
|
|
193
193
|
const { compareIdentifiers } = require_identifiers();
|
|
194
|
-
var SemVer = class SemVer {
|
|
194
|
+
var SemVer$15 = class SemVer$15 {
|
|
195
195
|
constructor(version, options) {
|
|
196
|
-
options = parseOptions(options);
|
|
197
|
-
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
196
|
+
options = parseOptions$2(options);
|
|
197
|
+
if (version instanceof SemVer$15) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
198
198
|
else version = version.version;
|
|
199
199
|
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
200
200
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
201
|
-
debug("SemVer", version, options);
|
|
201
|
+
debug$2("SemVer", version, options);
|
|
202
202
|
this.options = options;
|
|
203
203
|
this.loose = !!options.loose;
|
|
204
204
|
this.includePrerelease = !!options.includePrerelease;
|
|
205
|
-
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
205
|
+
const m = version.trim().match(options.loose ? re$3[t$3.LOOSE] : re$3[t$3.FULL]);
|
|
206
206
|
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
207
207
|
this.raw = version;
|
|
208
208
|
this.major = +m[1];
|
|
@@ -231,16 +231,16 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
231
231
|
return this.version;
|
|
232
232
|
}
|
|
233
233
|
compare(other) {
|
|
234
|
-
debug("SemVer.compare", this.version, this.options, other);
|
|
235
|
-
if (!(other instanceof SemVer)) {
|
|
234
|
+
debug$2("SemVer.compare", this.version, this.options, other);
|
|
235
|
+
if (!(other instanceof SemVer$15)) {
|
|
236
236
|
if (typeof other === "string" && other === this.version) return 0;
|
|
237
|
-
other = new SemVer(other, this.options);
|
|
237
|
+
other = new SemVer$15(other, this.options);
|
|
238
238
|
}
|
|
239
239
|
if (other.version === this.version) return 0;
|
|
240
240
|
return this.compareMain(other) || this.comparePre(other);
|
|
241
241
|
}
|
|
242
242
|
compareMain(other) {
|
|
243
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
243
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
244
244
|
if (this.major < other.major) return -1;
|
|
245
245
|
if (this.major > other.major) return 1;
|
|
246
246
|
if (this.minor < other.minor) return -1;
|
|
@@ -250,7 +250,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
250
250
|
return 0;
|
|
251
251
|
}
|
|
252
252
|
comparePre(other) {
|
|
253
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
253
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
254
254
|
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
255
255
|
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
256
256
|
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
@@ -258,7 +258,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
258
258
|
do {
|
|
259
259
|
const a = this.prerelease[i];
|
|
260
260
|
const b = other.prerelease[i];
|
|
261
|
-
debug("prerelease compare", i, a, b);
|
|
261
|
+
debug$2("prerelease compare", i, a, b);
|
|
262
262
|
if (a === void 0 && b === void 0) return 0;
|
|
263
263
|
else if (b === void 0) return 1;
|
|
264
264
|
else if (a === void 0) return -1;
|
|
@@ -267,12 +267,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
267
267
|
} while (++i);
|
|
268
268
|
}
|
|
269
269
|
compareBuild(other) {
|
|
270
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
270
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
271
271
|
let i = 0;
|
|
272
272
|
do {
|
|
273
273
|
const a = this.build[i];
|
|
274
274
|
const b = other.build[i];
|
|
275
|
-
debug("build compare", i, a, b);
|
|
275
|
+
debug$2("build compare", i, a, b);
|
|
276
276
|
if (a === void 0 && b === void 0) return 0;
|
|
277
277
|
else if (b === void 0) return 1;
|
|
278
278
|
else if (a === void 0) return -1;
|
|
@@ -284,7 +284,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
284
284
|
if (release.startsWith("pre")) {
|
|
285
285
|
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
286
286
|
if (identifier) {
|
|
287
|
-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
287
|
+
const match = `-${identifier}`.match(this.options.loose ? re$3[t$3.PRERELEASELOOSE] : re$3[t$3.PRERELEASE]);
|
|
288
288
|
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -345,11 +345,11 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
if (identifier) {
|
|
348
|
-
let prerelease = [identifier, base];
|
|
349
|
-
if (identifierBase === false) prerelease = [identifier];
|
|
348
|
+
let prerelease$2 = [identifier, base];
|
|
349
|
+
if (identifierBase === false) prerelease$2 = [identifier];
|
|
350
350
|
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
351
|
-
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
352
|
-
} else this.prerelease = prerelease;
|
|
351
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease$2;
|
|
352
|
+
} else this.prerelease = prerelease$2;
|
|
353
353
|
}
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
@@ -360,73 +360,73 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
360
360
|
return this;
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
-
module.exports = SemVer;
|
|
363
|
+
module.exports = SemVer$15;
|
|
364
364
|
}));
|
|
365
365
|
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
368
368
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
369
|
-
const SemVer = require_semver$1();
|
|
370
|
-
const parse = (version, options, throwErrors = false) => {
|
|
371
|
-
if (version instanceof SemVer) return version;
|
|
369
|
+
const SemVer$14 = require_semver$1();
|
|
370
|
+
const parse$6 = (version, options, throwErrors = false) => {
|
|
371
|
+
if (version instanceof SemVer$14) return version;
|
|
372
372
|
try {
|
|
373
|
-
return new SemVer(version, options);
|
|
373
|
+
return new SemVer$14(version, options);
|
|
374
374
|
} catch (er) {
|
|
375
375
|
if (!throwErrors) return null;
|
|
376
376
|
throw er;
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
module.exports = parse;
|
|
379
|
+
module.exports = parse$6;
|
|
380
380
|
}));
|
|
381
381
|
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
384
384
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
|
-
const parse = require_parse();
|
|
386
|
-
const valid = (version, options) => {
|
|
387
|
-
const v = parse(version, options);
|
|
385
|
+
const parse$5 = require_parse();
|
|
386
|
+
const valid$1 = (version, options) => {
|
|
387
|
+
const v = parse$5(version, options);
|
|
388
388
|
return v ? v.version : null;
|
|
389
389
|
};
|
|
390
|
-
module.exports = valid;
|
|
390
|
+
module.exports = valid$1;
|
|
391
391
|
}));
|
|
392
392
|
|
|
393
393
|
//#endregion
|
|
394
394
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
395
395
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
396
|
-
const parse = require_parse();
|
|
397
|
-
const clean = (version, options) => {
|
|
398
|
-
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
396
|
+
const parse$4 = require_parse();
|
|
397
|
+
const clean$1 = (version, options) => {
|
|
398
|
+
const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
|
|
399
399
|
return s ? s.version : null;
|
|
400
400
|
};
|
|
401
|
-
module.exports = clean;
|
|
401
|
+
module.exports = clean$1;
|
|
402
402
|
}));
|
|
403
403
|
|
|
404
404
|
//#endregion
|
|
405
405
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
406
406
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
407
|
-
const SemVer = require_semver$1();
|
|
408
|
-
const inc = (version, release, options, identifier, identifierBase) => {
|
|
407
|
+
const SemVer$13 = require_semver$1();
|
|
408
|
+
const inc$1 = (version, release, options, identifier, identifierBase) => {
|
|
409
409
|
if (typeof options === "string") {
|
|
410
410
|
identifierBase = identifier;
|
|
411
411
|
identifier = options;
|
|
412
412
|
options = void 0;
|
|
413
413
|
}
|
|
414
414
|
try {
|
|
415
|
-
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
415
|
+
return new SemVer$13(version instanceof SemVer$13 ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
416
416
|
} catch (er) {
|
|
417
417
|
return null;
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
module.exports = inc;
|
|
420
|
+
module.exports = inc$1;
|
|
421
421
|
}));
|
|
422
422
|
|
|
423
423
|
//#endregion
|
|
424
424
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
425
425
|
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
426
|
-
const parse = require_parse();
|
|
427
|
-
const diff = (version1, version2) => {
|
|
428
|
-
const v1 = parse(version1, null, true);
|
|
429
|
-
const v2 = parse(version2, null, true);
|
|
426
|
+
const parse$3 = require_parse();
|
|
427
|
+
const diff$1 = (version1, version2) => {
|
|
428
|
+
const v1 = parse$3(version1, null, true);
|
|
429
|
+
const v2 = parse$3(version2, null, true);
|
|
430
430
|
const comparison = v1.compare(v2);
|
|
431
431
|
if (comparison === 0) return null;
|
|
432
432
|
const v1Higher = comparison > 0;
|
|
@@ -446,154 +446,154 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
446
446
|
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
447
447
|
return "prerelease";
|
|
448
448
|
};
|
|
449
|
-
module.exports = diff;
|
|
449
|
+
module.exports = diff$1;
|
|
450
450
|
}));
|
|
451
451
|
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
|
|
454
454
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
-
const SemVer = require_semver$1();
|
|
456
|
-
const major = (a, loose) => new SemVer(a, loose).major;
|
|
457
|
-
module.exports = major;
|
|
455
|
+
const SemVer$12 = require_semver$1();
|
|
456
|
+
const major$1 = (a, loose) => new SemVer$12(a, loose).major;
|
|
457
|
+
module.exports = major$1;
|
|
458
458
|
}));
|
|
459
459
|
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
462
462
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
463
|
-
const SemVer = require_semver$1();
|
|
464
|
-
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
465
|
-
module.exports = minor;
|
|
463
|
+
const SemVer$11 = require_semver$1();
|
|
464
|
+
const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
|
|
465
|
+
module.exports = minor$1;
|
|
466
466
|
}));
|
|
467
467
|
|
|
468
468
|
//#endregion
|
|
469
469
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
470
470
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
471
|
-
const SemVer = require_semver$1();
|
|
472
|
-
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
473
|
-
module.exports = patch;
|
|
471
|
+
const SemVer$10 = require_semver$1();
|
|
472
|
+
const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
|
|
473
|
+
module.exports = patch$1;
|
|
474
474
|
}));
|
|
475
475
|
|
|
476
476
|
//#endregion
|
|
477
477
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
478
478
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
-
const parse = require_parse();
|
|
480
|
-
const prerelease = (version, options) => {
|
|
481
|
-
const parsed = parse(version, options);
|
|
479
|
+
const parse$2 = require_parse();
|
|
480
|
+
const prerelease$1 = (version, options) => {
|
|
481
|
+
const parsed = parse$2(version, options);
|
|
482
482
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
483
483
|
};
|
|
484
|
-
module.exports = prerelease;
|
|
484
|
+
module.exports = prerelease$1;
|
|
485
485
|
}));
|
|
486
486
|
|
|
487
487
|
//#endregion
|
|
488
488
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
489
489
|
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
490
|
-
const SemVer = require_semver$1();
|
|
491
|
-
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
492
|
-
module.exports = compare;
|
|
490
|
+
const SemVer$9 = require_semver$1();
|
|
491
|
+
const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
|
|
492
|
+
module.exports = compare$11;
|
|
493
493
|
}));
|
|
494
494
|
|
|
495
495
|
//#endregion
|
|
496
496
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
497
497
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
498
|
-
const compare = require_compare();
|
|
499
|
-
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
500
|
-
module.exports = rcompare;
|
|
498
|
+
const compare$10 = require_compare();
|
|
499
|
+
const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
|
|
500
|
+
module.exports = rcompare$1;
|
|
501
501
|
}));
|
|
502
502
|
|
|
503
503
|
//#endregion
|
|
504
504
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
505
505
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
506
|
-
const compare = require_compare();
|
|
507
|
-
const compareLoose = (a, b) => compare(a, b, true);
|
|
508
|
-
module.exports = compareLoose;
|
|
506
|
+
const compare$9 = require_compare();
|
|
507
|
+
const compareLoose$1 = (a, b) => compare$9(a, b, true);
|
|
508
|
+
module.exports = compareLoose$1;
|
|
509
509
|
}));
|
|
510
510
|
|
|
511
511
|
//#endregion
|
|
512
512
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
513
513
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
514
|
-
const SemVer = require_semver$1();
|
|
515
|
-
const compareBuild = (a, b, loose) => {
|
|
516
|
-
const versionA = new SemVer(a, loose);
|
|
517
|
-
const versionB = new SemVer(b, loose);
|
|
514
|
+
const SemVer$8 = require_semver$1();
|
|
515
|
+
const compareBuild$3 = (a, b, loose) => {
|
|
516
|
+
const versionA = new SemVer$8(a, loose);
|
|
517
|
+
const versionB = new SemVer$8(b, loose);
|
|
518
518
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
519
519
|
};
|
|
520
|
-
module.exports = compareBuild;
|
|
520
|
+
module.exports = compareBuild$3;
|
|
521
521
|
}));
|
|
522
522
|
|
|
523
523
|
//#endregion
|
|
524
524
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
525
525
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
526
|
-
const compareBuild = require_compare_build();
|
|
527
|
-
const sort = (list$1, loose) => list$1.sort((a, b) => compareBuild(a, b, loose));
|
|
528
|
-
module.exports = sort;
|
|
526
|
+
const compareBuild$2 = require_compare_build();
|
|
527
|
+
const sort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$2(a, b, loose));
|
|
528
|
+
module.exports = sort$1;
|
|
529
529
|
}));
|
|
530
530
|
|
|
531
531
|
//#endregion
|
|
532
532
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
533
533
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
534
|
-
const compareBuild = require_compare_build();
|
|
535
|
-
const rsort = (list$1, loose) => list$1.sort((a, b) => compareBuild(b, a, loose));
|
|
536
|
-
module.exports = rsort;
|
|
534
|
+
const compareBuild$1 = require_compare_build();
|
|
535
|
+
const rsort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$1(b, a, loose));
|
|
536
|
+
module.exports = rsort$1;
|
|
537
537
|
}));
|
|
538
538
|
|
|
539
539
|
//#endregion
|
|
540
540
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
541
541
|
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
542
|
-
const compare = require_compare();
|
|
543
|
-
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
544
|
-
module.exports = gt;
|
|
542
|
+
const compare$8 = require_compare();
|
|
543
|
+
const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
|
|
544
|
+
module.exports = gt$4;
|
|
545
545
|
}));
|
|
546
546
|
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
549
549
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
550
|
-
const compare = require_compare();
|
|
551
|
-
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
552
|
-
module.exports = lt;
|
|
550
|
+
const compare$7 = require_compare();
|
|
551
|
+
const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
|
|
552
|
+
module.exports = lt$3;
|
|
553
553
|
}));
|
|
554
554
|
|
|
555
555
|
//#endregion
|
|
556
556
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
557
557
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
558
|
-
const compare = require_compare();
|
|
559
|
-
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
560
|
-
module.exports = eq;
|
|
558
|
+
const compare$6 = require_compare();
|
|
559
|
+
const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
|
|
560
|
+
module.exports = eq$2;
|
|
561
561
|
}));
|
|
562
562
|
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
565
565
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
566
|
-
const compare = require_compare();
|
|
567
|
-
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
568
|
-
module.exports = neq;
|
|
566
|
+
const compare$5 = require_compare();
|
|
567
|
+
const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
|
|
568
|
+
module.exports = neq$2;
|
|
569
569
|
}));
|
|
570
570
|
|
|
571
571
|
//#endregion
|
|
572
572
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
573
573
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
574
|
-
const compare = require_compare();
|
|
575
|
-
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
576
|
-
module.exports = gte;
|
|
574
|
+
const compare$4 = require_compare();
|
|
575
|
+
const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
|
|
576
|
+
module.exports = gte$3;
|
|
577
577
|
}));
|
|
578
578
|
|
|
579
579
|
//#endregion
|
|
580
580
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
581
581
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
582
|
-
const compare = require_compare();
|
|
583
|
-
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
584
|
-
module.exports = lte;
|
|
582
|
+
const compare$3 = require_compare();
|
|
583
|
+
const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
|
|
584
|
+
module.exports = lte$3;
|
|
585
585
|
}));
|
|
586
586
|
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
589
589
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
590
|
-
const eq = require_eq();
|
|
591
|
-
const neq = require_neq();
|
|
592
|
-
const gt = require_gt();
|
|
593
|
-
const gte = require_gte();
|
|
594
|
-
const lt = require_lt();
|
|
595
|
-
const lte = require_lte();
|
|
596
|
-
const cmp = (a, op, b, loose) => {
|
|
590
|
+
const eq$1 = require_eq();
|
|
591
|
+
const neq$1 = require_neq();
|
|
592
|
+
const gt$3 = require_gt();
|
|
593
|
+
const gte$2 = require_gte();
|
|
594
|
+
const lt$2 = require_lt();
|
|
595
|
+
const lte$2 = require_lte();
|
|
596
|
+
const cmp$2 = (a, op, b, loose) => {
|
|
597
597
|
switch (op) {
|
|
598
598
|
case "===":
|
|
599
599
|
if (typeof a === "object") a = a.version;
|
|
@@ -605,33 +605,33 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
605
605
|
return a !== b;
|
|
606
606
|
case "":
|
|
607
607
|
case "=":
|
|
608
|
-
case "==": return eq(a, b, loose);
|
|
609
|
-
case "!=": return neq(a, b, loose);
|
|
610
|
-
case ">": return gt(a, b, loose);
|
|
611
|
-
case ">=": return gte(a, b, loose);
|
|
612
|
-
case "<": return lt(a, b, loose);
|
|
613
|
-
case "<=": return lte(a, b, loose);
|
|
608
|
+
case "==": return eq$1(a, b, loose);
|
|
609
|
+
case "!=": return neq$1(a, b, loose);
|
|
610
|
+
case ">": return gt$3(a, b, loose);
|
|
611
|
+
case ">=": return gte$2(a, b, loose);
|
|
612
|
+
case "<": return lt$2(a, b, loose);
|
|
613
|
+
case "<=": return lte$2(a, b, loose);
|
|
614
614
|
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
|
-
module.exports = cmp;
|
|
617
|
+
module.exports = cmp$2;
|
|
618
618
|
}));
|
|
619
619
|
|
|
620
620
|
//#endregion
|
|
621
621
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
622
622
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
623
|
-
const SemVer = require_semver$1();
|
|
624
|
-
const parse = require_parse();
|
|
625
|
-
const { safeRe: re, t } = require_re();
|
|
626
|
-
const coerce = (version, options) => {
|
|
627
|
-
if (version instanceof SemVer) return version;
|
|
623
|
+
const SemVer$7 = require_semver$1();
|
|
624
|
+
const parse$1 = require_parse();
|
|
625
|
+
const { safeRe: re$2, t: t$2 } = require_re();
|
|
626
|
+
const coerce$1 = (version, options) => {
|
|
627
|
+
if (version instanceof SemVer$7) return version;
|
|
628
628
|
if (typeof version === "number") version = String(version);
|
|
629
629
|
if (typeof version !== "string") return null;
|
|
630
630
|
options = options || {};
|
|
631
631
|
let match = null;
|
|
632
|
-
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
632
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re$2[t$2.COERCEFULL] : re$2[t$2.COERCE]);
|
|
633
633
|
else {
|
|
634
|
-
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
634
|
+
const coerceRtlRegex = options.includePrerelease ? re$2[t$2.COERCERTLFULL] : re$2[t$2.COERCERTL];
|
|
635
635
|
let next;
|
|
636
636
|
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
637
637
|
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
@@ -640,10 +640,10 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
640
640
|
coerceRtlRegex.lastIndex = -1;
|
|
641
641
|
}
|
|
642
642
|
if (match === null) return null;
|
|
643
|
-
const major = match[2];
|
|
644
|
-
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
643
|
+
const major$2 = match[2];
|
|
644
|
+
return parse$1(`${major$2}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
645
645
|
};
|
|
646
|
-
module.exports = coerce;
|
|
646
|
+
module.exports = coerce$1;
|
|
647
647
|
}));
|
|
648
648
|
|
|
649
649
|
//#endregion
|
|
@@ -684,12 +684,12 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
684
684
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
|
|
685
685
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
686
686
|
const SPACE_CHARACTERS = /\s+/g;
|
|
687
|
-
var Range = class Range {
|
|
687
|
+
var Range$11 = class Range$11 {
|
|
688
688
|
constructor(range, options) {
|
|
689
|
-
options = parseOptions(options);
|
|
690
|
-
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
691
|
-
else return new Range(range.raw, options);
|
|
692
|
-
if (range instanceof Comparator) {
|
|
689
|
+
options = parseOptions$1(options);
|
|
690
|
+
if (range instanceof Range$11) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
691
|
+
else return new Range$11(range.raw, options);
|
|
692
|
+
if (range instanceof Comparator$4) {
|
|
693
693
|
this.raw = range.value;
|
|
694
694
|
this.set = [[range]];
|
|
695
695
|
this.formatted = void 0;
|
|
@@ -739,23 +739,23 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
739
739
|
const cached = cache.get(memoKey);
|
|
740
740
|
if (cached) return cached;
|
|
741
741
|
const loose = this.options.loose;
|
|
742
|
-
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
742
|
+
const hr = loose ? re$1[t$1.HYPHENRANGELOOSE] : re$1[t$1.HYPHENRANGE];
|
|
743
743
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
744
|
-
debug("hyphen replace", range);
|
|
745
|
-
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
746
|
-
debug("comparator trim", range);
|
|
747
|
-
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
748
|
-
debug("tilde trim", range);
|
|
749
|
-
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
750
|
-
debug("caret trim", range);
|
|
744
|
+
debug$1("hyphen replace", range);
|
|
745
|
+
range = range.replace(re$1[t$1.COMPARATORTRIM], comparatorTrimReplace);
|
|
746
|
+
debug$1("comparator trim", range);
|
|
747
|
+
range = range.replace(re$1[t$1.TILDETRIM], tildeTrimReplace);
|
|
748
|
+
debug$1("tilde trim", range);
|
|
749
|
+
range = range.replace(re$1[t$1.CARETTRIM], caretTrimReplace);
|
|
750
|
+
debug$1("caret trim", range);
|
|
751
751
|
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
752
752
|
if (loose) rangeList = rangeList.filter((comp) => {
|
|
753
|
-
debug("loose invalid filter", comp, this.options);
|
|
754
|
-
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
753
|
+
debug$1("loose invalid filter", comp, this.options);
|
|
754
|
+
return !!comp.match(re$1[t$1.COMPARATORLOOSE]);
|
|
755
755
|
});
|
|
756
|
-
debug("range list", rangeList);
|
|
756
|
+
debug$1("range list", rangeList);
|
|
757
757
|
const rangeMap = /* @__PURE__ */ new Map();
|
|
758
|
-
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
758
|
+
const comparators = rangeList.map((comp) => new Comparator$4(comp, this.options));
|
|
759
759
|
for (const comp of comparators) {
|
|
760
760
|
if (isNullSet(comp)) return [comp];
|
|
761
761
|
rangeMap.set(comp.value, comp);
|
|
@@ -766,7 +766,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
766
766
|
return result;
|
|
767
767
|
}
|
|
768
768
|
intersects(range, options) {
|
|
769
|
-
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
769
|
+
if (!(range instanceof Range$11)) throw new TypeError("a Range is required");
|
|
770
770
|
return this.set.some((thisComparators) => {
|
|
771
771
|
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
772
772
|
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
@@ -780,7 +780,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
780
780
|
test(version) {
|
|
781
781
|
if (!version) return false;
|
|
782
782
|
if (typeof version === "string") try {
|
|
783
|
-
version = new SemVer(version, this.options);
|
|
783
|
+
version = new SemVer$6(version, this.options);
|
|
784
784
|
} catch (er) {
|
|
785
785
|
return false;
|
|
786
786
|
}
|
|
@@ -788,13 +788,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
788
788
|
return false;
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
|
-
module.exports = Range;
|
|
791
|
+
module.exports = Range$11;
|
|
792
792
|
const cache = new (require_lrucache())();
|
|
793
|
-
const parseOptions = require_parse_options();
|
|
794
|
-
const Comparator = require_comparator();
|
|
795
|
-
const debug = require_debug();
|
|
796
|
-
const SemVer = require_semver$1();
|
|
797
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
793
|
+
const parseOptions$1 = require_parse_options();
|
|
794
|
+
const Comparator$4 = require_comparator();
|
|
795
|
+
const debug$1 = require_debug();
|
|
796
|
+
const SemVer$6 = require_semver$1();
|
|
797
|
+
const { safeRe: re$1, t: t$1, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
798
798
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
799
799
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
800
800
|
const isAny = (c) => c.value === "";
|
|
@@ -811,16 +811,16 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
811
811
|
return result;
|
|
812
812
|
};
|
|
813
813
|
const parseComparator = (comp, options) => {
|
|
814
|
-
comp = comp.replace(re[t.BUILD], "");
|
|
815
|
-
debug("comp", comp, options);
|
|
814
|
+
comp = comp.replace(re$1[t$1.BUILD], "");
|
|
815
|
+
debug$1("comp", comp, options);
|
|
816
816
|
comp = replaceCarets(comp, options);
|
|
817
|
-
debug("caret", comp);
|
|
817
|
+
debug$1("caret", comp);
|
|
818
818
|
comp = replaceTildes(comp, options);
|
|
819
|
-
debug("tildes", comp);
|
|
819
|
+
debug$1("tildes", comp);
|
|
820
820
|
comp = replaceXRanges(comp, options);
|
|
821
|
-
debug("xrange", comp);
|
|
821
|
+
debug$1("xrange", comp);
|
|
822
822
|
comp = replaceStars(comp, options);
|
|
823
|
-
debug("stars", comp);
|
|
823
|
+
debug$1("stars", comp);
|
|
824
824
|
return comp;
|
|
825
825
|
};
|
|
826
826
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
@@ -828,18 +828,18 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
828
828
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
829
829
|
};
|
|
830
830
|
const replaceTilde = (comp, options) => {
|
|
831
|
-
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
831
|
+
const r = options.loose ? re$1[t$1.TILDELOOSE] : re$1[t$1.TILDE];
|
|
832
832
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
833
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
833
|
+
debug$1("tilde", comp, _, M, m, p, pr);
|
|
834
834
|
let ret;
|
|
835
835
|
if (isX(M)) ret = "";
|
|
836
836
|
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
837
837
|
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
838
838
|
else if (pr) {
|
|
839
|
-
debug("replaceTilde pr", pr);
|
|
839
|
+
debug$1("replaceTilde pr", pr);
|
|
840
840
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
841
841
|
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
842
|
-
debug("tilde return", ret);
|
|
842
|
+
debug$1("tilde return", ret);
|
|
843
843
|
return ret;
|
|
844
844
|
});
|
|
845
845
|
};
|
|
@@ -847,40 +847,40 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
847
847
|
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
848
848
|
};
|
|
849
849
|
const replaceCaret = (comp, options) => {
|
|
850
|
-
debug("caret", comp, options);
|
|
851
|
-
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
850
|
+
debug$1("caret", comp, options);
|
|
851
|
+
const r = options.loose ? re$1[t$1.CARETLOOSE] : re$1[t$1.CARET];
|
|
852
852
|
const z = options.includePrerelease ? "-0" : "";
|
|
853
853
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
854
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
854
|
+
debug$1("caret", comp, _, M, m, p, pr);
|
|
855
855
|
let ret;
|
|
856
856
|
if (isX(M)) ret = "";
|
|
857
857
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
858
858
|
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
859
859
|
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
860
860
|
else if (pr) {
|
|
861
|
-
debug("replaceCaret pr", pr);
|
|
861
|
+
debug$1("replaceCaret pr", pr);
|
|
862
862
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
863
863
|
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
864
864
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
865
865
|
} else {
|
|
866
|
-
debug("no pr");
|
|
866
|
+
debug$1("no pr");
|
|
867
867
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
868
868
|
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
869
869
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
870
870
|
}
|
|
871
|
-
debug("caret return", ret);
|
|
871
|
+
debug$1("caret return", ret);
|
|
872
872
|
return ret;
|
|
873
873
|
});
|
|
874
874
|
};
|
|
875
875
|
const replaceXRanges = (comp, options) => {
|
|
876
|
-
debug("replaceXRanges", comp, options);
|
|
876
|
+
debug$1("replaceXRanges", comp, options);
|
|
877
877
|
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
878
878
|
};
|
|
879
879
|
const replaceXRange = (comp, options) => {
|
|
880
880
|
comp = comp.trim();
|
|
881
|
-
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
881
|
+
const r = options.loose ? re$1[t$1.XRANGELOOSE] : re$1[t$1.XRANGE];
|
|
882
882
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
883
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
883
|
+
debug$1("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
884
884
|
const xM = isX(M);
|
|
885
885
|
const xm = xM || isX(m);
|
|
886
886
|
const xp = xm || isX(p);
|
|
@@ -911,17 +911,17 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
911
911
|
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
912
912
|
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
913
913
|
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
914
|
-
debug("xRange return", ret);
|
|
914
|
+
debug$1("xRange return", ret);
|
|
915
915
|
return ret;
|
|
916
916
|
});
|
|
917
917
|
};
|
|
918
918
|
const replaceStars = (comp, options) => {
|
|
919
|
-
debug("replaceStars", comp, options);
|
|
920
|
-
return comp.trim().replace(re[t.STAR], "");
|
|
919
|
+
debug$1("replaceStars", comp, options);
|
|
920
|
+
return comp.trim().replace(re$1[t$1.STAR], "");
|
|
921
921
|
};
|
|
922
922
|
const replaceGTE0 = (comp, options) => {
|
|
923
|
-
debug("replaceGTE0", comp, options);
|
|
924
|
-
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
923
|
+
debug$1("replaceGTE0", comp, options);
|
|
924
|
+
return comp.trim().replace(re$1[options.includePrerelease ? t$1.GTE0PRE : t$1.GTE0], "");
|
|
925
925
|
};
|
|
926
926
|
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
927
927
|
if (isX(fM)) from = "";
|
|
@@ -941,8 +941,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
941
941
|
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
942
942
|
if (version.prerelease.length && !options.includePrerelease) {
|
|
943
943
|
for (let i = 0; i < set.length; i++) {
|
|
944
|
-
debug(set[i].semver);
|
|
945
|
-
if (set[i].semver === Comparator.ANY) continue;
|
|
944
|
+
debug$1(set[i].semver);
|
|
945
|
+
if (set[i].semver === Comparator$4.ANY) continue;
|
|
946
946
|
if (set[i].semver.prerelease.length > 0) {
|
|
947
947
|
const allowed = set[i].semver;
|
|
948
948
|
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
@@ -957,21 +957,21 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
959
959
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
960
|
-
const ANY = Symbol("SemVer ANY");
|
|
961
|
-
var Comparator = class Comparator {
|
|
960
|
+
const ANY$2 = Symbol("SemVer ANY");
|
|
961
|
+
var Comparator$3 = class Comparator$3 {
|
|
962
962
|
static get ANY() {
|
|
963
|
-
return ANY;
|
|
963
|
+
return ANY$2;
|
|
964
964
|
}
|
|
965
965
|
constructor(comp, options) {
|
|
966
966
|
options = parseOptions(options);
|
|
967
|
-
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
967
|
+
if (comp instanceof Comparator$3) if (comp.loose === !!options.loose) return comp;
|
|
968
968
|
else comp = comp.value;
|
|
969
969
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
970
970
|
debug("comparator", comp, options);
|
|
971
971
|
this.options = options;
|
|
972
972
|
this.loose = !!options.loose;
|
|
973
973
|
this.parse(comp);
|
|
974
|
-
if (this.semver === ANY) this.value = "";
|
|
974
|
+
if (this.semver === ANY$2) this.value = "";
|
|
975
975
|
else this.value = this.operator + this.semver.version;
|
|
976
976
|
debug("comp", this);
|
|
977
977
|
}
|
|
@@ -981,30 +981,30 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
981
981
|
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
982
982
|
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
983
983
|
if (this.operator === "=") this.operator = "";
|
|
984
|
-
if (!m[2]) this.semver = ANY;
|
|
985
|
-
else this.semver = new SemVer(m[2], this.options.loose);
|
|
984
|
+
if (!m[2]) this.semver = ANY$2;
|
|
985
|
+
else this.semver = new SemVer$5(m[2], this.options.loose);
|
|
986
986
|
}
|
|
987
987
|
toString() {
|
|
988
988
|
return this.value;
|
|
989
989
|
}
|
|
990
990
|
test(version) {
|
|
991
991
|
debug("Comparator.test", version, this.options.loose);
|
|
992
|
-
if (this.semver === ANY || version === ANY) return true;
|
|
992
|
+
if (this.semver === ANY$2 || version === ANY$2) return true;
|
|
993
993
|
if (typeof version === "string") try {
|
|
994
|
-
version = new SemVer(version, this.options);
|
|
994
|
+
version = new SemVer$5(version, this.options);
|
|
995
995
|
} catch (er) {
|
|
996
996
|
return false;
|
|
997
997
|
}
|
|
998
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
998
|
+
return cmp$1(version, this.operator, this.semver, this.options);
|
|
999
999
|
}
|
|
1000
1000
|
intersects(comp, options) {
|
|
1001
|
-
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
1001
|
+
if (!(comp instanceof Comparator$3)) throw new TypeError("a Comparator is required");
|
|
1002
1002
|
if (this.operator === "") {
|
|
1003
1003
|
if (this.value === "") return true;
|
|
1004
|
-
return new Range(comp.value, options).test(this.value);
|
|
1004
|
+
return new Range$10(comp.value, options).test(this.value);
|
|
1005
1005
|
} else if (comp.operator === "") {
|
|
1006
1006
|
if (comp.value === "") return true;
|
|
1007
|
-
return new Range(this.value, options).test(comp.semver);
|
|
1007
|
+
return new Range$10(this.value, options).test(comp.semver);
|
|
1008
1008
|
}
|
|
1009
1009
|
options = parseOptions(options);
|
|
1010
1010
|
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
@@ -1012,54 +1012,54 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1012
1012
|
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
1013
1013
|
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
1014
1014
|
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
1015
|
-
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
1016
|
-
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
1015
|
+
if (cmp$1(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
1016
|
+
if (cmp$1(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
1017
1017
|
return false;
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
|
-
module.exports = Comparator;
|
|
1020
|
+
module.exports = Comparator$3;
|
|
1021
1021
|
const parseOptions = require_parse_options();
|
|
1022
1022
|
const { safeRe: re, t } = require_re();
|
|
1023
|
-
const cmp = require_cmp();
|
|
1023
|
+
const cmp$1 = require_cmp();
|
|
1024
1024
|
const debug = require_debug();
|
|
1025
|
-
const SemVer = require_semver$1();
|
|
1026
|
-
const Range = require_range();
|
|
1025
|
+
const SemVer$5 = require_semver$1();
|
|
1026
|
+
const Range$10 = require_range();
|
|
1027
1027
|
}));
|
|
1028
1028
|
|
|
1029
1029
|
//#endregion
|
|
1030
1030
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
1031
1031
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1032
|
-
const Range = require_range();
|
|
1033
|
-
const satisfies = (version, range, options) => {
|
|
1032
|
+
const Range$9 = require_range();
|
|
1033
|
+
const satisfies$4 = (version, range, options) => {
|
|
1034
1034
|
try {
|
|
1035
|
-
range = new Range(range, options);
|
|
1035
|
+
range = new Range$9(range, options);
|
|
1036
1036
|
} catch (er) {
|
|
1037
1037
|
return false;
|
|
1038
1038
|
}
|
|
1039
1039
|
return range.test(version);
|
|
1040
1040
|
};
|
|
1041
|
-
module.exports = satisfies;
|
|
1041
|
+
module.exports = satisfies$4;
|
|
1042
1042
|
}));
|
|
1043
1043
|
|
|
1044
1044
|
//#endregion
|
|
1045
1045
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
1046
1046
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1047
|
-
const Range = require_range();
|
|
1048
|
-
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1049
|
-
module.exports = toComparators;
|
|
1047
|
+
const Range$8 = require_range();
|
|
1048
|
+
const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1049
|
+
module.exports = toComparators$1;
|
|
1050
1050
|
}));
|
|
1051
1051
|
|
|
1052
1052
|
//#endregion
|
|
1053
1053
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
1054
1054
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1055
|
-
const SemVer = require_semver$1();
|
|
1056
|
-
const Range = require_range();
|
|
1057
|
-
const maxSatisfying = (versions, range, options) => {
|
|
1055
|
+
const SemVer$4 = require_semver$1();
|
|
1056
|
+
const Range$7 = require_range();
|
|
1057
|
+
const maxSatisfying$1 = (versions, range, options) => {
|
|
1058
1058
|
let max = null;
|
|
1059
1059
|
let maxSV = null;
|
|
1060
1060
|
let rangeObj = null;
|
|
1061
1061
|
try {
|
|
1062
|
-
rangeObj = new Range(range, options);
|
|
1062
|
+
rangeObj = new Range$7(range, options);
|
|
1063
1063
|
} catch (er) {
|
|
1064
1064
|
return null;
|
|
1065
1065
|
}
|
|
@@ -1067,26 +1067,26 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1067
1067
|
if (rangeObj.test(v)) {
|
|
1068
1068
|
if (!max || maxSV.compare(v) === -1) {
|
|
1069
1069
|
max = v;
|
|
1070
|
-
maxSV = new SemVer(max, options);
|
|
1070
|
+
maxSV = new SemVer$4(max, options);
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
return max;
|
|
1075
1075
|
};
|
|
1076
|
-
module.exports = maxSatisfying;
|
|
1076
|
+
module.exports = maxSatisfying$1;
|
|
1077
1077
|
}));
|
|
1078
1078
|
|
|
1079
1079
|
//#endregion
|
|
1080
1080
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
1081
1081
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1082
|
-
const SemVer = require_semver$1();
|
|
1083
|
-
const Range = require_range();
|
|
1084
|
-
const minSatisfying = (versions, range, options) => {
|
|
1082
|
+
const SemVer$3 = require_semver$1();
|
|
1083
|
+
const Range$6 = require_range();
|
|
1084
|
+
const minSatisfying$1 = (versions, range, options) => {
|
|
1085
1085
|
let min = null;
|
|
1086
1086
|
let minSV = null;
|
|
1087
1087
|
let rangeObj = null;
|
|
1088
1088
|
try {
|
|
1089
|
-
rangeObj = new Range(range, options);
|
|
1089
|
+
rangeObj = new Range$6(range, options);
|
|
1090
1090
|
} catch (er) {
|
|
1091
1091
|
return null;
|
|
1092
1092
|
}
|
|
@@ -1094,33 +1094,33 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1094
1094
|
if (rangeObj.test(v)) {
|
|
1095
1095
|
if (!min || minSV.compare(v) === 1) {
|
|
1096
1096
|
min = v;
|
|
1097
|
-
minSV = new SemVer(min, options);
|
|
1097
|
+
minSV = new SemVer$3(min, options);
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
return min;
|
|
1102
1102
|
};
|
|
1103
|
-
module.exports = minSatisfying;
|
|
1103
|
+
module.exports = minSatisfying$1;
|
|
1104
1104
|
}));
|
|
1105
1105
|
|
|
1106
1106
|
//#endregion
|
|
1107
1107
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
1108
1108
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1109
|
-
const SemVer = require_semver$1();
|
|
1110
|
-
const Range = require_range();
|
|
1111
|
-
const gt = require_gt();
|
|
1112
|
-
const minVersion = (range, loose) => {
|
|
1113
|
-
range = new Range(range, loose);
|
|
1114
|
-
let minver = new SemVer("0.0.0");
|
|
1109
|
+
const SemVer$2 = require_semver$1();
|
|
1110
|
+
const Range$5 = require_range();
|
|
1111
|
+
const gt$2 = require_gt();
|
|
1112
|
+
const minVersion$1 = (range, loose) => {
|
|
1113
|
+
range = new Range$5(range, loose);
|
|
1114
|
+
let minver = new SemVer$2("0.0.0");
|
|
1115
1115
|
if (range.test(minver)) return minver;
|
|
1116
|
-
minver = new SemVer("0.0.0-0");
|
|
1116
|
+
minver = new SemVer$2("0.0.0-0");
|
|
1117
1117
|
if (range.test(minver)) return minver;
|
|
1118
1118
|
minver = null;
|
|
1119
1119
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1120
1120
|
const comparators = range.set[i];
|
|
1121
1121
|
let setMin = null;
|
|
1122
1122
|
comparators.forEach((comparator) => {
|
|
1123
|
-
const compver = new SemVer(comparator.semver.version);
|
|
1123
|
+
const compver = new SemVer$2(comparator.semver.version);
|
|
1124
1124
|
switch (comparator.operator) {
|
|
1125
1125
|
case ">":
|
|
1126
1126
|
if (compver.prerelease.length === 0) compver.patch++;
|
|
@@ -1128,75 +1128,75 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1128
1128
|
compver.raw = compver.format();
|
|
1129
1129
|
case "":
|
|
1130
1130
|
case ">=":
|
|
1131
|
-
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
1131
|
+
if (!setMin || gt$2(compver, setMin)) setMin = compver;
|
|
1132
1132
|
break;
|
|
1133
1133
|
case "<":
|
|
1134
1134
|
case "<=": break;
|
|
1135
1135
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1136
1136
|
}
|
|
1137
1137
|
});
|
|
1138
|
-
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
1138
|
+
if (setMin && (!minver || gt$2(minver, setMin))) minver = setMin;
|
|
1139
1139
|
}
|
|
1140
1140
|
if (minver && range.test(minver)) return minver;
|
|
1141
1141
|
return null;
|
|
1142
1142
|
};
|
|
1143
|
-
module.exports = minVersion;
|
|
1143
|
+
module.exports = minVersion$1;
|
|
1144
1144
|
}));
|
|
1145
1145
|
|
|
1146
1146
|
//#endregion
|
|
1147
1147
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
1148
1148
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1149
|
-
const Range = require_range();
|
|
1150
|
-
const validRange = (range, options) => {
|
|
1149
|
+
const Range$4 = require_range();
|
|
1150
|
+
const validRange$1 = (range, options) => {
|
|
1151
1151
|
try {
|
|
1152
|
-
return new Range(range, options).range || "*";
|
|
1152
|
+
return new Range$4(range, options).range || "*";
|
|
1153
1153
|
} catch (er) {
|
|
1154
1154
|
return null;
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
module.exports = validRange;
|
|
1157
|
+
module.exports = validRange$1;
|
|
1158
1158
|
}));
|
|
1159
1159
|
|
|
1160
1160
|
//#endregion
|
|
1161
1161
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
1162
1162
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1163
|
-
const SemVer = require_semver$1();
|
|
1164
|
-
const Comparator = require_comparator();
|
|
1165
|
-
const { ANY } = Comparator;
|
|
1166
|
-
const Range = require_range();
|
|
1167
|
-
const satisfies = require_satisfies();
|
|
1168
|
-
const gt = require_gt();
|
|
1169
|
-
const lt = require_lt();
|
|
1170
|
-
const lte = require_lte();
|
|
1171
|
-
const gte = require_gte();
|
|
1172
|
-
const outside = (version, range, hilo, options) => {
|
|
1173
|
-
version = new SemVer(version, options);
|
|
1174
|
-
range = new Range(range, options);
|
|
1163
|
+
const SemVer$1 = require_semver$1();
|
|
1164
|
+
const Comparator$2 = require_comparator();
|
|
1165
|
+
const { ANY: ANY$1 } = Comparator$2;
|
|
1166
|
+
const Range$3 = require_range();
|
|
1167
|
+
const satisfies$3 = require_satisfies();
|
|
1168
|
+
const gt$1 = require_gt();
|
|
1169
|
+
const lt$1 = require_lt();
|
|
1170
|
+
const lte$1 = require_lte();
|
|
1171
|
+
const gte$1 = require_gte();
|
|
1172
|
+
const outside$3 = (version, range, hilo, options) => {
|
|
1173
|
+
version = new SemVer$1(version, options);
|
|
1174
|
+
range = new Range$3(range, options);
|
|
1175
1175
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1176
1176
|
switch (hilo) {
|
|
1177
1177
|
case ">":
|
|
1178
|
-
gtfn = gt;
|
|
1179
|
-
ltefn = lte;
|
|
1180
|
-
ltfn = lt;
|
|
1178
|
+
gtfn = gt$1;
|
|
1179
|
+
ltefn = lte$1;
|
|
1180
|
+
ltfn = lt$1;
|
|
1181
1181
|
comp = ">";
|
|
1182
1182
|
ecomp = ">=";
|
|
1183
1183
|
break;
|
|
1184
1184
|
case "<":
|
|
1185
|
-
gtfn = lt;
|
|
1186
|
-
ltefn = gte;
|
|
1187
|
-
ltfn = gt;
|
|
1185
|
+
gtfn = lt$1;
|
|
1186
|
+
ltefn = gte$1;
|
|
1187
|
+
ltfn = gt$1;
|
|
1188
1188
|
comp = "<";
|
|
1189
1189
|
ecomp = "<=";
|
|
1190
1190
|
break;
|
|
1191
1191
|
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
1192
1192
|
}
|
|
1193
|
-
if (satisfies(version, range, options)) return false;
|
|
1193
|
+
if (satisfies$3(version, range, options)) return false;
|
|
1194
1194
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1195
1195
|
const comparators = range.set[i];
|
|
1196
1196
|
let high = null;
|
|
1197
1197
|
let low = null;
|
|
1198
1198
|
comparators.forEach((comparator) => {
|
|
1199
|
-
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
1199
|
+
if (comparator.semver === ANY$1) comparator = new Comparator$2(">=0.0.0");
|
|
1200
1200
|
high = high || comparator;
|
|
1201
1201
|
low = low || comparator;
|
|
1202
1202
|
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
@@ -1208,48 +1208,48 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return true;
|
|
1210
1210
|
};
|
|
1211
|
-
module.exports = outside;
|
|
1211
|
+
module.exports = outside$3;
|
|
1212
1212
|
}));
|
|
1213
1213
|
|
|
1214
1214
|
//#endregion
|
|
1215
1215
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
1216
1216
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1217
|
-
const outside = require_outside();
|
|
1218
|
-
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1219
|
-
module.exports = gtr;
|
|
1217
|
+
const outside$2 = require_outside();
|
|
1218
|
+
const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
|
|
1219
|
+
module.exports = gtr$1;
|
|
1220
1220
|
}));
|
|
1221
1221
|
|
|
1222
1222
|
//#endregion
|
|
1223
1223
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
1224
1224
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1225
|
-
const outside = require_outside();
|
|
1226
|
-
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1227
|
-
module.exports = ltr;
|
|
1225
|
+
const outside$1 = require_outside();
|
|
1226
|
+
const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
|
|
1227
|
+
module.exports = ltr$1;
|
|
1228
1228
|
}));
|
|
1229
1229
|
|
|
1230
1230
|
//#endregion
|
|
1231
1231
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
1232
1232
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1233
|
-
const Range = require_range();
|
|
1234
|
-
const intersects = (r1, r2, options) => {
|
|
1235
|
-
r1 = new Range(r1, options);
|
|
1236
|
-
r2 = new Range(r2, options);
|
|
1233
|
+
const Range$2 = require_range();
|
|
1234
|
+
const intersects$1 = (r1, r2, options) => {
|
|
1235
|
+
r1 = new Range$2(r1, options);
|
|
1236
|
+
r2 = new Range$2(r2, options);
|
|
1237
1237
|
return r1.intersects(r2, options);
|
|
1238
1238
|
};
|
|
1239
|
-
module.exports = intersects;
|
|
1239
|
+
module.exports = intersects$1;
|
|
1240
1240
|
}));
|
|
1241
1241
|
|
|
1242
1242
|
//#endregion
|
|
1243
1243
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
1244
1244
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1245
|
-
const satisfies = require_satisfies();
|
|
1246
|
-
const compare = require_compare();
|
|
1245
|
+
const satisfies$2 = require_satisfies();
|
|
1246
|
+
const compare$2 = require_compare();
|
|
1247
1247
|
module.exports = (versions, range, options) => {
|
|
1248
1248
|
const set = [];
|
|
1249
1249
|
let first = null;
|
|
1250
1250
|
let prev = null;
|
|
1251
|
-
const v = versions.sort((a, b) => compare(a, b, options));
|
|
1252
|
-
for (const version of v) if (satisfies(version, range, options)) {
|
|
1251
|
+
const v = versions.sort((a, b) => compare$2(a, b, options));
|
|
1252
|
+
for (const version of v) if (satisfies$2(version, range, options)) {
|
|
1253
1253
|
prev = version;
|
|
1254
1254
|
if (!first) first = version;
|
|
1255
1255
|
} else {
|
|
@@ -1273,15 +1273,15 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1273
1273
|
//#endregion
|
|
1274
1274
|
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
1275
1275
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1276
|
-
const Range = require_range();
|
|
1277
|
-
const Comparator = require_comparator();
|
|
1278
|
-
const { ANY } = Comparator;
|
|
1279
|
-
const satisfies = require_satisfies();
|
|
1280
|
-
const compare = require_compare();
|
|
1281
|
-
const subset = (sub, dom, options = {}) => {
|
|
1276
|
+
const Range$1 = require_range();
|
|
1277
|
+
const Comparator$1 = require_comparator();
|
|
1278
|
+
const { ANY } = Comparator$1;
|
|
1279
|
+
const satisfies$1 = require_satisfies();
|
|
1280
|
+
const compare$1 = require_compare();
|
|
1281
|
+
const subset$1 = (sub, dom, options = {}) => {
|
|
1282
1282
|
if (sub === dom) return true;
|
|
1283
|
-
sub = new Range(sub, options);
|
|
1284
|
-
dom = new Range(dom, options);
|
|
1283
|
+
sub = new Range$1(sub, options);
|
|
1284
|
+
dom = new Range$1(dom, options);
|
|
1285
1285
|
let sawNonNull = false;
|
|
1286
1286
|
OUTER: for (const simpleSub of sub.set) {
|
|
1287
1287
|
for (const simpleDom of dom.set) {
|
|
@@ -1293,8 +1293,8 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
return true;
|
|
1295
1295
|
};
|
|
1296
|
-
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
1297
|
-
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
1296
|
+
const minimumVersionWithPreRelease = [new Comparator$1(">=0.0.0-0")];
|
|
1297
|
+
const minimumVersion = [new Comparator$1(">=0.0.0")];
|
|
1298
1298
|
const simpleSubset = (sub, dom, options) => {
|
|
1299
1299
|
if (sub === dom) return true;
|
|
1300
1300
|
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
@@ -1303,67 +1303,67 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1303
1303
|
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
1304
1304
|
else dom = minimumVersion;
|
|
1305
1305
|
const eqSet = /* @__PURE__ */ new Set();
|
|
1306
|
-
let gt, lt;
|
|
1307
|
-
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
1308
|
-
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
1306
|
+
let gt$5, lt$4;
|
|
1307
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt$5 = higherGT(gt$5, c, options);
|
|
1308
|
+
else if (c.operator === "<" || c.operator === "<=") lt$4 = lowerLT(lt$4, c, options);
|
|
1309
1309
|
else eqSet.add(c.semver);
|
|
1310
1310
|
if (eqSet.size > 1) return null;
|
|
1311
1311
|
let gtltComp;
|
|
1312
|
-
if (gt && lt) {
|
|
1313
|
-
gtltComp = compare(gt.semver, lt.semver, options);
|
|
1312
|
+
if (gt$5 && lt$4) {
|
|
1313
|
+
gtltComp = compare$1(gt$5.semver, lt$4.semver, options);
|
|
1314
1314
|
if (gtltComp > 0) return null;
|
|
1315
|
-
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
1315
|
+
else if (gtltComp === 0 && (gt$5.operator !== ">=" || lt$4.operator !== "<=")) return null;
|
|
1316
1316
|
}
|
|
1317
|
-
for (const eq of eqSet) {
|
|
1318
|
-
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
1319
|
-
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
1320
|
-
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
1317
|
+
for (const eq$3 of eqSet) {
|
|
1318
|
+
if (gt$5 && !satisfies$1(eq$3, String(gt$5), options)) return null;
|
|
1319
|
+
if (lt$4 && !satisfies$1(eq$3, String(lt$4), options)) return null;
|
|
1320
|
+
for (const c of dom) if (!satisfies$1(eq$3, String(c), options)) return false;
|
|
1321
1321
|
return true;
|
|
1322
1322
|
}
|
|
1323
1323
|
let higher, lower;
|
|
1324
1324
|
let hasDomLT, hasDomGT;
|
|
1325
|
-
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
1326
|
-
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
1327
|
-
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
1325
|
+
let needDomLTPre = lt$4 && !options.includePrerelease && lt$4.semver.prerelease.length ? lt$4.semver : false;
|
|
1326
|
+
let needDomGTPre = gt$5 && !options.includePrerelease && gt$5.semver.prerelease.length ? gt$5.semver : false;
|
|
1327
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt$4.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
1328
1328
|
for (const c of dom) {
|
|
1329
1329
|
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
1330
1330
|
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
1331
|
-
if (gt) {
|
|
1331
|
+
if (gt$5) {
|
|
1332
1332
|
if (needDomGTPre) {
|
|
1333
1333
|
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
1334
1334
|
}
|
|
1335
1335
|
if (c.operator === ">" || c.operator === ">=") {
|
|
1336
|
-
higher = higherGT(gt, c, options);
|
|
1337
|
-
if (higher === c && higher !== gt) return false;
|
|
1338
|
-
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
1336
|
+
higher = higherGT(gt$5, c, options);
|
|
1337
|
+
if (higher === c && higher !== gt$5) return false;
|
|
1338
|
+
} else if (gt$5.operator === ">=" && !satisfies$1(gt$5.semver, String(c), options)) return false;
|
|
1339
1339
|
}
|
|
1340
|
-
if (lt) {
|
|
1340
|
+
if (lt$4) {
|
|
1341
1341
|
if (needDomLTPre) {
|
|
1342
1342
|
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
1343
1343
|
}
|
|
1344
1344
|
if (c.operator === "<" || c.operator === "<=") {
|
|
1345
|
-
lower = lowerLT(lt, c, options);
|
|
1346
|
-
if (lower === c && lower !== lt) return false;
|
|
1347
|
-
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
1345
|
+
lower = lowerLT(lt$4, c, options);
|
|
1346
|
+
if (lower === c && lower !== lt$4) return false;
|
|
1347
|
+
} else if (lt$4.operator === "<=" && !satisfies$1(lt$4.semver, String(c), options)) return false;
|
|
1348
1348
|
}
|
|
1349
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1349
|
+
if (!c.operator && (lt$4 || gt$5) && gtltComp !== 0) return false;
|
|
1350
1350
|
}
|
|
1351
|
-
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
1352
|
-
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
1351
|
+
if (gt$5 && hasDomLT && !lt$4 && gtltComp !== 0) return false;
|
|
1352
|
+
if (lt$4 && hasDomGT && !gt$5 && gtltComp !== 0) return false;
|
|
1353
1353
|
if (needDomGTPre || needDomLTPre) return false;
|
|
1354
1354
|
return true;
|
|
1355
1355
|
};
|
|
1356
1356
|
const higherGT = (a, b, options) => {
|
|
1357
1357
|
if (!a) return b;
|
|
1358
|
-
const comp = compare(a.semver, b.semver, options);
|
|
1358
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
1359
1359
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1360
1360
|
};
|
|
1361
1361
|
const lowerLT = (a, b, options) => {
|
|
1362
1362
|
if (!a) return b;
|
|
1363
|
-
const comp = compare(a.semver, b.semver, options);
|
|
1363
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
1364
1364
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1365
1365
|
};
|
|
1366
|
-
module.exports = subset;
|
|
1366
|
+
module.exports = subset$1;
|
|
1367
1367
|
}));
|
|
1368
1368
|
|
|
1369
1369
|
//#endregion
|
|
@@ -1714,11 +1714,11 @@ const queryPackages = async (packages) => {
|
|
|
1714
1714
|
const message = "Path to run codemod on:";
|
|
1715
1715
|
const nonRootPackages = packages.filter((pkg) => pkg !== "." && pkg !== "./");
|
|
1716
1716
|
if (packages.length === 1 && (packages[0] === "." || packages[0] === "./")) {
|
|
1717
|
-
if (await (0,
|
|
1717
|
+
if (await (0, __inquirer_prompts.confirm)({
|
|
1718
1718
|
message: "Do you want to target a specific folder instead of the entire project?",
|
|
1719
1719
|
default: false
|
|
1720
1720
|
})) {
|
|
1721
|
-
const customPath = await (0,
|
|
1721
|
+
const customPath = await (0, __inquirer_prompts.search)({
|
|
1722
1722
|
message: "Enter the folder path (relative to project root):",
|
|
1723
1723
|
source: async (searchInput) => {
|
|
1724
1724
|
return getDirectoryChoices(process.cwd(), searchInput || "").map((choice) => ({
|
|
@@ -1741,7 +1741,7 @@ const queryPackages = async (packages) => {
|
|
|
1741
1741
|
logToInquirer(message, packages[0] === "./" ? "." : packages[0]);
|
|
1742
1742
|
return [packages[0] === "./" ? "." : packages[0]];
|
|
1743
1743
|
}
|
|
1744
|
-
if (nonRootPackages.length >= 1) return (0,
|
|
1744
|
+
if (nonRootPackages.length >= 1) return (0, __inquirer_prompts.checkbox)({
|
|
1745
1745
|
required: true,
|
|
1746
1746
|
message: "Select packages to transform:",
|
|
1747
1747
|
choices: nonRootPackages.map((file) => ({
|
|
@@ -1761,7 +1761,7 @@ const determineTransformer = async ({ candidate, transformFiles }) => {
|
|
|
1761
1761
|
logToInquirer(codemodMessage, candidate);
|
|
1762
1762
|
return candidate;
|
|
1763
1763
|
}
|
|
1764
|
-
return (0,
|
|
1764
|
+
return (0, __inquirer_prompts.select)({
|
|
1765
1765
|
message: codemodMessage,
|
|
1766
1766
|
choices: transformFiles.map((file) => ({
|
|
1767
1767
|
name: file,
|
|
@@ -1793,7 +1793,7 @@ const determineIsDryMode = async (args) => {
|
|
|
1793
1793
|
logToInquirer(message, "Yes");
|
|
1794
1794
|
return true;
|
|
1795
1795
|
}
|
|
1796
|
-
return (0,
|
|
1796
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1797
1797
|
message,
|
|
1798
1798
|
default: false
|
|
1799
1799
|
});
|
|
@@ -1807,7 +1807,7 @@ const determineIsPrint = async (args) => {
|
|
|
1807
1807
|
logToInquirer(message, "Yes");
|
|
1808
1808
|
return true;
|
|
1809
1809
|
}
|
|
1810
|
-
return (0,
|
|
1810
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1811
1811
|
message,
|
|
1812
1812
|
default: false
|
|
1813
1813
|
});
|
|
@@ -1825,7 +1825,7 @@ const determineIgnorePatterns = async (args) => {
|
|
|
1825
1825
|
if (ignorePattern) {
|
|
1826
1826
|
logToInquirer(message, ignorePattern);
|
|
1827
1827
|
userPatterns = ignorePattern;
|
|
1828
|
-
} else userPatterns = await (0,
|
|
1828
|
+
} else userPatterns = await (0, __inquirer_prompts.input)({
|
|
1829
1829
|
message,
|
|
1830
1830
|
validate: () => true
|
|
1831
1831
|
});
|
|
@@ -1846,7 +1846,7 @@ const determineGitIgnore = async (args) => {
|
|
|
1846
1846
|
logToInquirer(message, "No");
|
|
1847
1847
|
return false;
|
|
1848
1848
|
}
|
|
1849
|
-
return (0,
|
|
1849
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1850
1850
|
message,
|
|
1851
1851
|
default: true
|
|
1852
1852
|
});
|
|
@@ -1919,7 +1919,7 @@ var reportManualReview_default = reportManualReview;
|
|
|
1919
1919
|
//#region src/controller/helpers/runTransformPrompts.ts
|
|
1920
1920
|
async function askPrompt(p) {
|
|
1921
1921
|
switch (p.type) {
|
|
1922
|
-
case "select": return (0,
|
|
1922
|
+
case "select": return (0, __inquirer_prompts.select)({
|
|
1923
1923
|
message: p.message,
|
|
1924
1924
|
choices: (p.choices ?? []).map((c) => ({
|
|
1925
1925
|
name: c.name,
|
|
@@ -1927,12 +1927,12 @@ async function askPrompt(p) {
|
|
|
1927
1927
|
})),
|
|
1928
1928
|
default: p.default
|
|
1929
1929
|
});
|
|
1930
|
-
case "confirm": return (0,
|
|
1930
|
+
case "confirm": return (0, __inquirer_prompts.confirm)({
|
|
1931
1931
|
message: p.message,
|
|
1932
1932
|
default: typeof p.default === "boolean" ? p.default : false
|
|
1933
1933
|
});
|
|
1934
1934
|
case "input":
|
|
1935
|
-
default: return (0,
|
|
1935
|
+
default: return (0, __inquirer_prompts.input)({
|
|
1936
1936
|
message: p.message,
|
|
1937
1937
|
default: p.default ?? ""
|
|
1938
1938
|
});
|
|
@@ -2009,4 +2009,4 @@ Object.defineProperty(exports, 'runTransformPrompts', {
|
|
|
2009
2009
|
return runTransformPrompts;
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
|
-
//# sourceMappingURL=helpers-
|
|
2012
|
+
//# sourceMappingURL=helpers-BNLAPdMR.js.map
|