@wise/wds-codemods 1.0.0-experimental-56e60a2 → 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-C6KebpWf.js → helpers-BNLAPdMR.js} +417 -409
- 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 +3 -3
- package/dist/helpers-C6KebpWf.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
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
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,
|
|
@@ -63,28 +63,28 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63
63
|
}));
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
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
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
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,79 +94,80 @@ 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*$");
|
|
150
150
|
}));
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
153
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
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
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
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
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
170
171
|
const anum = numeric.test(a);
|
|
171
172
|
const bnum = numeric.test(b);
|
|
172
173
|
if (anum && bnum) {
|
|
@@ -175,33 +176,33 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
176
|
}
|
|
176
177
|
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
177
178
|
};
|
|
178
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
179
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a);
|
|
179
180
|
module.exports = {
|
|
180
|
-
compareIdentifiers,
|
|
181
|
+
compareIdentifiers: compareIdentifiers$1,
|
|
181
182
|
rcompareIdentifiers
|
|
182
183
|
};
|
|
183
184
|
}));
|
|
184
185
|
|
|
185
186
|
//#endregion
|
|
186
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
187
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
187
188
|
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
188
|
-
const debug = require_debug();
|
|
189
|
+
const debug$2 = require_debug();
|
|
189
190
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
190
|
-
const { safeRe: re, t } = require_re();
|
|
191
|
-
const parseOptions = require_parse_options();
|
|
191
|
+
const { safeRe: re$3, t: t$3 } = require_re();
|
|
192
|
+
const parseOptions$2 = require_parse_options();
|
|
192
193
|
const { compareIdentifiers } = require_identifiers();
|
|
193
|
-
var SemVer = class SemVer {
|
|
194
|
+
var SemVer$15 = class SemVer$15 {
|
|
194
195
|
constructor(version, options) {
|
|
195
|
-
options = parseOptions(options);
|
|
196
|
-
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;
|
|
197
198
|
else version = version.version;
|
|
198
199
|
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
199
200
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
200
|
-
debug("SemVer", version, options);
|
|
201
|
+
debug$2("SemVer", version, options);
|
|
201
202
|
this.options = options;
|
|
202
203
|
this.loose = !!options.loose;
|
|
203
204
|
this.includePrerelease = !!options.includePrerelease;
|
|
204
|
-
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]);
|
|
205
206
|
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
206
207
|
this.raw = version;
|
|
207
208
|
this.major = +m[1];
|
|
@@ -230,20 +231,26 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
230
231
|
return this.version;
|
|
231
232
|
}
|
|
232
233
|
compare(other) {
|
|
233
|
-
debug("SemVer.compare", this.version, this.options, other);
|
|
234
|
-
if (!(other instanceof SemVer)) {
|
|
234
|
+
debug$2("SemVer.compare", this.version, this.options, other);
|
|
235
|
+
if (!(other instanceof SemVer$15)) {
|
|
235
236
|
if (typeof other === "string" && other === this.version) return 0;
|
|
236
|
-
other = new SemVer(other, this.options);
|
|
237
|
+
other = new SemVer$15(other, this.options);
|
|
237
238
|
}
|
|
238
239
|
if (other.version === this.version) return 0;
|
|
239
240
|
return this.compareMain(other) || this.comparePre(other);
|
|
240
241
|
}
|
|
241
242
|
compareMain(other) {
|
|
242
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
243
|
-
|
|
243
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
244
|
+
if (this.major < other.major) return -1;
|
|
245
|
+
if (this.major > other.major) return 1;
|
|
246
|
+
if (this.minor < other.minor) return -1;
|
|
247
|
+
if (this.minor > other.minor) return 1;
|
|
248
|
+
if (this.patch < other.patch) return -1;
|
|
249
|
+
if (this.patch > other.patch) return 1;
|
|
250
|
+
return 0;
|
|
244
251
|
}
|
|
245
252
|
comparePre(other) {
|
|
246
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
253
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
247
254
|
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
248
255
|
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
249
256
|
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
@@ -251,7 +258,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
251
258
|
do {
|
|
252
259
|
const a = this.prerelease[i];
|
|
253
260
|
const b = other.prerelease[i];
|
|
254
|
-
debug("prerelease compare", i, a, b);
|
|
261
|
+
debug$2("prerelease compare", i, a, b);
|
|
255
262
|
if (a === void 0 && b === void 0) return 0;
|
|
256
263
|
else if (b === void 0) return 1;
|
|
257
264
|
else if (a === void 0) return -1;
|
|
@@ -260,12 +267,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
260
267
|
} while (++i);
|
|
261
268
|
}
|
|
262
269
|
compareBuild(other) {
|
|
263
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
270
|
+
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
264
271
|
let i = 0;
|
|
265
272
|
do {
|
|
266
273
|
const a = this.build[i];
|
|
267
274
|
const b = other.build[i];
|
|
268
|
-
debug("build compare", i, a, b);
|
|
275
|
+
debug$2("build compare", i, a, b);
|
|
269
276
|
if (a === void 0 && b === void 0) return 0;
|
|
270
277
|
else if (b === void 0) return 1;
|
|
271
278
|
else if (a === void 0) return -1;
|
|
@@ -277,7 +284,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
277
284
|
if (release.startsWith("pre")) {
|
|
278
285
|
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
279
286
|
if (identifier) {
|
|
280
|
-
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]);
|
|
281
288
|
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
282
289
|
}
|
|
283
290
|
}
|
|
@@ -338,11 +345,11 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
338
345
|
}
|
|
339
346
|
}
|
|
340
347
|
if (identifier) {
|
|
341
|
-
let prerelease = [identifier, base];
|
|
342
|
-
if (identifierBase === false) prerelease = [identifier];
|
|
348
|
+
let prerelease$2 = [identifier, base];
|
|
349
|
+
if (identifierBase === false) prerelease$2 = [identifier];
|
|
343
350
|
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
344
|
-
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
345
|
-
} else this.prerelease = prerelease;
|
|
351
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease$2;
|
|
352
|
+
} else this.prerelease = prerelease$2;
|
|
346
353
|
}
|
|
347
354
|
break;
|
|
348
355
|
}
|
|
@@ -353,73 +360,73 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
353
360
|
return this;
|
|
354
361
|
}
|
|
355
362
|
};
|
|
356
|
-
module.exports = SemVer;
|
|
363
|
+
module.exports = SemVer$15;
|
|
357
364
|
}));
|
|
358
365
|
|
|
359
366
|
//#endregion
|
|
360
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
367
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
361
368
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
362
|
-
const SemVer = require_semver$1();
|
|
363
|
-
const parse = (version, options, throwErrors = false) => {
|
|
364
|
-
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;
|
|
365
372
|
try {
|
|
366
|
-
return new SemVer(version, options);
|
|
373
|
+
return new SemVer$14(version, options);
|
|
367
374
|
} catch (er) {
|
|
368
375
|
if (!throwErrors) return null;
|
|
369
376
|
throw er;
|
|
370
377
|
}
|
|
371
378
|
};
|
|
372
|
-
module.exports = parse;
|
|
379
|
+
module.exports = parse$6;
|
|
373
380
|
}));
|
|
374
381
|
|
|
375
382
|
//#endregion
|
|
376
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
383
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
377
384
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
378
|
-
const parse = require_parse();
|
|
379
|
-
const valid = (version, options) => {
|
|
380
|
-
const v = parse(version, options);
|
|
385
|
+
const parse$5 = require_parse();
|
|
386
|
+
const valid$1 = (version, options) => {
|
|
387
|
+
const v = parse$5(version, options);
|
|
381
388
|
return v ? v.version : null;
|
|
382
389
|
};
|
|
383
|
-
module.exports = valid;
|
|
390
|
+
module.exports = valid$1;
|
|
384
391
|
}));
|
|
385
392
|
|
|
386
393
|
//#endregion
|
|
387
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
394
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
388
395
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
389
|
-
const parse = require_parse();
|
|
390
|
-
const clean = (version, options) => {
|
|
391
|
-
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);
|
|
392
399
|
return s ? s.version : null;
|
|
393
400
|
};
|
|
394
|
-
module.exports = clean;
|
|
401
|
+
module.exports = clean$1;
|
|
395
402
|
}));
|
|
396
403
|
|
|
397
404
|
//#endregion
|
|
398
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
405
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
399
406
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
400
|
-
const SemVer = require_semver$1();
|
|
401
|
-
const inc = (version, release, options, identifier, identifierBase) => {
|
|
407
|
+
const SemVer$13 = require_semver$1();
|
|
408
|
+
const inc$1 = (version, release, options, identifier, identifierBase) => {
|
|
402
409
|
if (typeof options === "string") {
|
|
403
410
|
identifierBase = identifier;
|
|
404
411
|
identifier = options;
|
|
405
412
|
options = void 0;
|
|
406
413
|
}
|
|
407
414
|
try {
|
|
408
|
-
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;
|
|
409
416
|
} catch (er) {
|
|
410
417
|
return null;
|
|
411
418
|
}
|
|
412
419
|
};
|
|
413
|
-
module.exports = inc;
|
|
420
|
+
module.exports = inc$1;
|
|
414
421
|
}));
|
|
415
422
|
|
|
416
423
|
//#endregion
|
|
417
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
424
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
418
425
|
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
419
|
-
const parse = require_parse();
|
|
420
|
-
const diff = (version1, version2) => {
|
|
421
|
-
const v1 = parse(version1, null, true);
|
|
422
|
-
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);
|
|
423
430
|
const comparison = v1.compare(v2);
|
|
424
431
|
if (comparison === 0) return null;
|
|
425
432
|
const v1Higher = comparison > 0;
|
|
@@ -439,154 +446,154 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
439
446
|
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
440
447
|
return "prerelease";
|
|
441
448
|
};
|
|
442
|
-
module.exports = diff;
|
|
449
|
+
module.exports = diff$1;
|
|
443
450
|
}));
|
|
444
451
|
|
|
445
452
|
//#endregion
|
|
446
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
453
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
|
|
447
454
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
-
const SemVer = require_semver$1();
|
|
449
|
-
const major = (a, loose) => new SemVer(a, loose).major;
|
|
450
|
-
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;
|
|
451
458
|
}));
|
|
452
459
|
|
|
453
460
|
//#endregion
|
|
454
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
461
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
455
462
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
456
|
-
const SemVer = require_semver$1();
|
|
457
|
-
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
458
|
-
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;
|
|
459
466
|
}));
|
|
460
467
|
|
|
461
468
|
//#endregion
|
|
462
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
469
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
463
470
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
464
|
-
const SemVer = require_semver$1();
|
|
465
|
-
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
466
|
-
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;
|
|
467
474
|
}));
|
|
468
475
|
|
|
469
476
|
//#endregion
|
|
470
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
477
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
471
478
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
-
const parse = require_parse();
|
|
473
|
-
const prerelease = (version, options) => {
|
|
474
|
-
const parsed = parse(version, options);
|
|
479
|
+
const parse$2 = require_parse();
|
|
480
|
+
const prerelease$1 = (version, options) => {
|
|
481
|
+
const parsed = parse$2(version, options);
|
|
475
482
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
476
483
|
};
|
|
477
|
-
module.exports = prerelease;
|
|
484
|
+
module.exports = prerelease$1;
|
|
478
485
|
}));
|
|
479
486
|
|
|
480
487
|
//#endregion
|
|
481
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
488
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
482
489
|
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
483
|
-
const SemVer = require_semver$1();
|
|
484
|
-
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
485
|
-
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;
|
|
486
493
|
}));
|
|
487
494
|
|
|
488
495
|
//#endregion
|
|
489
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
496
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
490
497
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
491
|
-
const compare = require_compare();
|
|
492
|
-
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
493
|
-
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;
|
|
494
501
|
}));
|
|
495
502
|
|
|
496
503
|
//#endregion
|
|
497
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
504
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
498
505
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
499
|
-
const compare = require_compare();
|
|
500
|
-
const compareLoose = (a, b) => compare(a, b, true);
|
|
501
|
-
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;
|
|
502
509
|
}));
|
|
503
510
|
|
|
504
511
|
//#endregion
|
|
505
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
512
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
506
513
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
507
|
-
const SemVer = require_semver$1();
|
|
508
|
-
const compareBuild = (a, b, loose) => {
|
|
509
|
-
const versionA = new SemVer(a, loose);
|
|
510
|
-
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);
|
|
511
518
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
512
519
|
};
|
|
513
|
-
module.exports = compareBuild;
|
|
520
|
+
module.exports = compareBuild$3;
|
|
514
521
|
}));
|
|
515
522
|
|
|
516
523
|
//#endregion
|
|
517
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
524
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
518
525
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
|
-
const compareBuild = require_compare_build();
|
|
520
|
-
const sort = (list$1, loose) => list$1.sort((a, b) => compareBuild(a, b, loose));
|
|
521
|
-
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;
|
|
522
529
|
}));
|
|
523
530
|
|
|
524
531
|
//#endregion
|
|
525
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
532
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
526
533
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
527
|
-
const compareBuild = require_compare_build();
|
|
528
|
-
const rsort = (list$1, loose) => list$1.sort((a, b) => compareBuild(b, a, loose));
|
|
529
|
-
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;
|
|
530
537
|
}));
|
|
531
538
|
|
|
532
539
|
//#endregion
|
|
533
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
540
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
534
541
|
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
535
|
-
const compare = require_compare();
|
|
536
|
-
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
537
|
-
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;
|
|
538
545
|
}));
|
|
539
546
|
|
|
540
547
|
//#endregion
|
|
541
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
548
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
542
549
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
543
|
-
const compare = require_compare();
|
|
544
|
-
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
545
|
-
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;
|
|
546
553
|
}));
|
|
547
554
|
|
|
548
555
|
//#endregion
|
|
549
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
556
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
550
557
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
551
|
-
const compare = require_compare();
|
|
552
|
-
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
553
|
-
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;
|
|
554
561
|
}));
|
|
555
562
|
|
|
556
563
|
//#endregion
|
|
557
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
564
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
558
565
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
559
|
-
const compare = require_compare();
|
|
560
|
-
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
561
|
-
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;
|
|
562
569
|
}));
|
|
563
570
|
|
|
564
571
|
//#endregion
|
|
565
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
572
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
566
573
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
567
|
-
const compare = require_compare();
|
|
568
|
-
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
569
|
-
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;
|
|
570
577
|
}));
|
|
571
578
|
|
|
572
579
|
//#endregion
|
|
573
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
580
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
574
581
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
575
|
-
const compare = require_compare();
|
|
576
|
-
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
577
|
-
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;
|
|
578
585
|
}));
|
|
579
586
|
|
|
580
587
|
//#endregion
|
|
581
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
588
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
582
589
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
583
|
-
const eq = require_eq();
|
|
584
|
-
const neq = require_neq();
|
|
585
|
-
const gt = require_gt();
|
|
586
|
-
const gte = require_gte();
|
|
587
|
-
const lt = require_lt();
|
|
588
|
-
const lte = require_lte();
|
|
589
|
-
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) => {
|
|
590
597
|
switch (op) {
|
|
591
598
|
case "===":
|
|
592
599
|
if (typeof a === "object") a = a.version;
|
|
@@ -598,33 +605,33 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
598
605
|
return a !== b;
|
|
599
606
|
case "":
|
|
600
607
|
case "=":
|
|
601
|
-
case "==": return eq(a, b, loose);
|
|
602
|
-
case "!=": return neq(a, b, loose);
|
|
603
|
-
case ">": return gt(a, b, loose);
|
|
604
|
-
case ">=": return gte(a, b, loose);
|
|
605
|
-
case "<": return lt(a, b, loose);
|
|
606
|
-
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);
|
|
607
614
|
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
608
615
|
}
|
|
609
616
|
};
|
|
610
|
-
module.exports = cmp;
|
|
617
|
+
module.exports = cmp$2;
|
|
611
618
|
}));
|
|
612
619
|
|
|
613
620
|
//#endregion
|
|
614
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
621
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
615
622
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
616
|
-
const SemVer = require_semver$1();
|
|
617
|
-
const parse = require_parse();
|
|
618
|
-
const { safeRe: re, t } = require_re();
|
|
619
|
-
const coerce = (version, options) => {
|
|
620
|
-
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;
|
|
621
628
|
if (typeof version === "number") version = String(version);
|
|
622
629
|
if (typeof version !== "string") return null;
|
|
623
630
|
options = options || {};
|
|
624
631
|
let match = null;
|
|
625
|
-
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]);
|
|
626
633
|
else {
|
|
627
|
-
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];
|
|
628
635
|
let next;
|
|
629
636
|
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
630
637
|
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
@@ -633,14 +640,14 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
633
640
|
coerceRtlRegex.lastIndex = -1;
|
|
634
641
|
}
|
|
635
642
|
if (match === null) return null;
|
|
636
|
-
const major = match[2];
|
|
637
|
-
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);
|
|
638
645
|
};
|
|
639
|
-
module.exports = coerce;
|
|
646
|
+
module.exports = coerce$1;
|
|
640
647
|
}));
|
|
641
648
|
|
|
642
649
|
//#endregion
|
|
643
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
650
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js
|
|
644
651
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
645
652
|
var LRUCache = class {
|
|
646
653
|
constructor() {
|
|
@@ -674,15 +681,15 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
674
681
|
}));
|
|
675
682
|
|
|
676
683
|
//#endregion
|
|
677
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
684
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
|
|
678
685
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
679
686
|
const SPACE_CHARACTERS = /\s+/g;
|
|
680
|
-
var Range = class Range {
|
|
687
|
+
var Range$11 = class Range$11 {
|
|
681
688
|
constructor(range, options) {
|
|
682
|
-
options = parseOptions(options);
|
|
683
|
-
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
684
|
-
else return new Range(range.raw, options);
|
|
685
|
-
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) {
|
|
686
693
|
this.raw = range.value;
|
|
687
694
|
this.set = [[range]];
|
|
688
695
|
this.formatted = void 0;
|
|
@@ -732,23 +739,23 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
732
739
|
const cached = cache.get(memoKey);
|
|
733
740
|
if (cached) return cached;
|
|
734
741
|
const loose = this.options.loose;
|
|
735
|
-
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
742
|
+
const hr = loose ? re$1[t$1.HYPHENRANGELOOSE] : re$1[t$1.HYPHENRANGE];
|
|
736
743
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
737
|
-
debug("hyphen replace", range);
|
|
738
|
-
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
739
|
-
debug("comparator trim", range);
|
|
740
|
-
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
741
|
-
debug("tilde trim", range);
|
|
742
|
-
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
743
|
-
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);
|
|
744
751
|
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
745
752
|
if (loose) rangeList = rangeList.filter((comp) => {
|
|
746
|
-
debug("loose invalid filter", comp, this.options);
|
|
747
|
-
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
753
|
+
debug$1("loose invalid filter", comp, this.options);
|
|
754
|
+
return !!comp.match(re$1[t$1.COMPARATORLOOSE]);
|
|
748
755
|
});
|
|
749
|
-
debug("range list", rangeList);
|
|
756
|
+
debug$1("range list", rangeList);
|
|
750
757
|
const rangeMap = /* @__PURE__ */ new Map();
|
|
751
|
-
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
758
|
+
const comparators = rangeList.map((comp) => new Comparator$4(comp, this.options));
|
|
752
759
|
for (const comp of comparators) {
|
|
753
760
|
if (isNullSet(comp)) return [comp];
|
|
754
761
|
rangeMap.set(comp.value, comp);
|
|
@@ -759,7 +766,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
759
766
|
return result;
|
|
760
767
|
}
|
|
761
768
|
intersects(range, options) {
|
|
762
|
-
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
769
|
+
if (!(range instanceof Range$11)) throw new TypeError("a Range is required");
|
|
763
770
|
return this.set.some((thisComparators) => {
|
|
764
771
|
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
765
772
|
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
@@ -773,7 +780,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
773
780
|
test(version) {
|
|
774
781
|
if (!version) return false;
|
|
775
782
|
if (typeof version === "string") try {
|
|
776
|
-
version = new SemVer(version, this.options);
|
|
783
|
+
version = new SemVer$6(version, this.options);
|
|
777
784
|
} catch (er) {
|
|
778
785
|
return false;
|
|
779
786
|
}
|
|
@@ -781,13 +788,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
781
788
|
return false;
|
|
782
789
|
}
|
|
783
790
|
};
|
|
784
|
-
module.exports = Range;
|
|
791
|
+
module.exports = Range$11;
|
|
785
792
|
const cache = new (require_lrucache())();
|
|
786
|
-
const parseOptions = require_parse_options();
|
|
787
|
-
const Comparator = require_comparator();
|
|
788
|
-
const debug = require_debug();
|
|
789
|
-
const SemVer = require_semver$1();
|
|
790
|
-
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();
|
|
791
798
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
792
799
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
793
800
|
const isAny = (c) => c.value === "";
|
|
@@ -804,15 +811,16 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
804
811
|
return result;
|
|
805
812
|
};
|
|
806
813
|
const parseComparator = (comp, options) => {
|
|
807
|
-
|
|
814
|
+
comp = comp.replace(re$1[t$1.BUILD], "");
|
|
815
|
+
debug$1("comp", comp, options);
|
|
808
816
|
comp = replaceCarets(comp, options);
|
|
809
|
-
debug("caret", comp);
|
|
817
|
+
debug$1("caret", comp);
|
|
810
818
|
comp = replaceTildes(comp, options);
|
|
811
|
-
debug("tildes", comp);
|
|
819
|
+
debug$1("tildes", comp);
|
|
812
820
|
comp = replaceXRanges(comp, options);
|
|
813
|
-
debug("xrange", comp);
|
|
821
|
+
debug$1("xrange", comp);
|
|
814
822
|
comp = replaceStars(comp, options);
|
|
815
|
-
debug("stars", comp);
|
|
823
|
+
debug$1("stars", comp);
|
|
816
824
|
return comp;
|
|
817
825
|
};
|
|
818
826
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
@@ -820,18 +828,18 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
820
828
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
821
829
|
};
|
|
822
830
|
const replaceTilde = (comp, options) => {
|
|
823
|
-
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];
|
|
824
832
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
825
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
833
|
+
debug$1("tilde", comp, _, M, m, p, pr);
|
|
826
834
|
let ret;
|
|
827
835
|
if (isX(M)) ret = "";
|
|
828
836
|
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
829
837
|
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
830
838
|
else if (pr) {
|
|
831
|
-
debug("replaceTilde pr", pr);
|
|
839
|
+
debug$1("replaceTilde pr", pr);
|
|
832
840
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
833
841
|
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
834
|
-
debug("tilde return", ret);
|
|
842
|
+
debug$1("tilde return", ret);
|
|
835
843
|
return ret;
|
|
836
844
|
});
|
|
837
845
|
};
|
|
@@ -839,40 +847,40 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
839
847
|
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
840
848
|
};
|
|
841
849
|
const replaceCaret = (comp, options) => {
|
|
842
|
-
debug("caret", comp, options);
|
|
843
|
-
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];
|
|
844
852
|
const z = options.includePrerelease ? "-0" : "";
|
|
845
853
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
846
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
854
|
+
debug$1("caret", comp, _, M, m, p, pr);
|
|
847
855
|
let ret;
|
|
848
856
|
if (isX(M)) ret = "";
|
|
849
857
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
850
858
|
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
851
859
|
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
852
860
|
else if (pr) {
|
|
853
|
-
debug("replaceCaret pr", pr);
|
|
861
|
+
debug$1("replaceCaret pr", pr);
|
|
854
862
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
855
863
|
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
856
864
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
857
865
|
} else {
|
|
858
|
-
debug("no pr");
|
|
866
|
+
debug$1("no pr");
|
|
859
867
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
860
868
|
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
861
869
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
862
870
|
}
|
|
863
|
-
debug("caret return", ret);
|
|
871
|
+
debug$1("caret return", ret);
|
|
864
872
|
return ret;
|
|
865
873
|
});
|
|
866
874
|
};
|
|
867
875
|
const replaceXRanges = (comp, options) => {
|
|
868
|
-
debug("replaceXRanges", comp, options);
|
|
876
|
+
debug$1("replaceXRanges", comp, options);
|
|
869
877
|
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
870
878
|
};
|
|
871
879
|
const replaceXRange = (comp, options) => {
|
|
872
880
|
comp = comp.trim();
|
|
873
|
-
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];
|
|
874
882
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
875
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
883
|
+
debug$1("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
876
884
|
const xM = isX(M);
|
|
877
885
|
const xm = xM || isX(m);
|
|
878
886
|
const xp = xm || isX(p);
|
|
@@ -903,17 +911,17 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
903
911
|
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
904
912
|
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
905
913
|
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
906
|
-
debug("xRange return", ret);
|
|
914
|
+
debug$1("xRange return", ret);
|
|
907
915
|
return ret;
|
|
908
916
|
});
|
|
909
917
|
};
|
|
910
918
|
const replaceStars = (comp, options) => {
|
|
911
|
-
debug("replaceStars", comp, options);
|
|
912
|
-
return comp.trim().replace(re[t.STAR], "");
|
|
919
|
+
debug$1("replaceStars", comp, options);
|
|
920
|
+
return comp.trim().replace(re$1[t$1.STAR], "");
|
|
913
921
|
};
|
|
914
922
|
const replaceGTE0 = (comp, options) => {
|
|
915
|
-
debug("replaceGTE0", comp, options);
|
|
916
|
-
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], "");
|
|
917
925
|
};
|
|
918
926
|
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
919
927
|
if (isX(fM)) from = "";
|
|
@@ -933,8 +941,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
933
941
|
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
934
942
|
if (version.prerelease.length && !options.includePrerelease) {
|
|
935
943
|
for (let i = 0; i < set.length; i++) {
|
|
936
|
-
debug(set[i].semver);
|
|
937
|
-
if (set[i].semver === Comparator.ANY) continue;
|
|
944
|
+
debug$1(set[i].semver);
|
|
945
|
+
if (set[i].semver === Comparator$4.ANY) continue;
|
|
938
946
|
if (set[i].semver.prerelease.length > 0) {
|
|
939
947
|
const allowed = set[i].semver;
|
|
940
948
|
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
@@ -947,23 +955,23 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
947
955
|
}));
|
|
948
956
|
|
|
949
957
|
//#endregion
|
|
950
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
958
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
951
959
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
952
|
-
const ANY = Symbol("SemVer ANY");
|
|
953
|
-
var Comparator = class Comparator {
|
|
960
|
+
const ANY$2 = Symbol("SemVer ANY");
|
|
961
|
+
var Comparator$3 = class Comparator$3 {
|
|
954
962
|
static get ANY() {
|
|
955
|
-
return ANY;
|
|
963
|
+
return ANY$2;
|
|
956
964
|
}
|
|
957
965
|
constructor(comp, options) {
|
|
958
966
|
options = parseOptions(options);
|
|
959
|
-
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
967
|
+
if (comp instanceof Comparator$3) if (comp.loose === !!options.loose) return comp;
|
|
960
968
|
else comp = comp.value;
|
|
961
969
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
962
970
|
debug("comparator", comp, options);
|
|
963
971
|
this.options = options;
|
|
964
972
|
this.loose = !!options.loose;
|
|
965
973
|
this.parse(comp);
|
|
966
|
-
if (this.semver === ANY) this.value = "";
|
|
974
|
+
if (this.semver === ANY$2) this.value = "";
|
|
967
975
|
else this.value = this.operator + this.semver.version;
|
|
968
976
|
debug("comp", this);
|
|
969
977
|
}
|
|
@@ -973,30 +981,30 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
973
981
|
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
974
982
|
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
975
983
|
if (this.operator === "=") this.operator = "";
|
|
976
|
-
if (!m[2]) this.semver = ANY;
|
|
977
|
-
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);
|
|
978
986
|
}
|
|
979
987
|
toString() {
|
|
980
988
|
return this.value;
|
|
981
989
|
}
|
|
982
990
|
test(version) {
|
|
983
991
|
debug("Comparator.test", version, this.options.loose);
|
|
984
|
-
if (this.semver === ANY || version === ANY) return true;
|
|
992
|
+
if (this.semver === ANY$2 || version === ANY$2) return true;
|
|
985
993
|
if (typeof version === "string") try {
|
|
986
|
-
version = new SemVer(version, this.options);
|
|
994
|
+
version = new SemVer$5(version, this.options);
|
|
987
995
|
} catch (er) {
|
|
988
996
|
return false;
|
|
989
997
|
}
|
|
990
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
998
|
+
return cmp$1(version, this.operator, this.semver, this.options);
|
|
991
999
|
}
|
|
992
1000
|
intersects(comp, options) {
|
|
993
|
-
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
1001
|
+
if (!(comp instanceof Comparator$3)) throw new TypeError("a Comparator is required");
|
|
994
1002
|
if (this.operator === "") {
|
|
995
1003
|
if (this.value === "") return true;
|
|
996
|
-
return new Range(comp.value, options).test(this.value);
|
|
1004
|
+
return new Range$10(comp.value, options).test(this.value);
|
|
997
1005
|
} else if (comp.operator === "") {
|
|
998
1006
|
if (comp.value === "") return true;
|
|
999
|
-
return new Range(this.value, options).test(comp.semver);
|
|
1007
|
+
return new Range$10(this.value, options).test(comp.semver);
|
|
1000
1008
|
}
|
|
1001
1009
|
options = parseOptions(options);
|
|
1002
1010
|
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
@@ -1004,54 +1012,54 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1004
1012
|
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
1005
1013
|
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
1006
1014
|
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
1007
|
-
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
1008
|
-
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;
|
|
1009
1017
|
return false;
|
|
1010
1018
|
}
|
|
1011
1019
|
};
|
|
1012
|
-
module.exports = Comparator;
|
|
1020
|
+
module.exports = Comparator$3;
|
|
1013
1021
|
const parseOptions = require_parse_options();
|
|
1014
1022
|
const { safeRe: re, t } = require_re();
|
|
1015
|
-
const cmp = require_cmp();
|
|
1023
|
+
const cmp$1 = require_cmp();
|
|
1016
1024
|
const debug = require_debug();
|
|
1017
|
-
const SemVer = require_semver$1();
|
|
1018
|
-
const Range = require_range();
|
|
1025
|
+
const SemVer$5 = require_semver$1();
|
|
1026
|
+
const Range$10 = require_range();
|
|
1019
1027
|
}));
|
|
1020
1028
|
|
|
1021
1029
|
//#endregion
|
|
1022
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1030
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
1023
1031
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1024
|
-
const Range = require_range();
|
|
1025
|
-
const satisfies = (version, range, options) => {
|
|
1032
|
+
const Range$9 = require_range();
|
|
1033
|
+
const satisfies$4 = (version, range, options) => {
|
|
1026
1034
|
try {
|
|
1027
|
-
range = new Range(range, options);
|
|
1035
|
+
range = new Range$9(range, options);
|
|
1028
1036
|
} catch (er) {
|
|
1029
1037
|
return false;
|
|
1030
1038
|
}
|
|
1031
1039
|
return range.test(version);
|
|
1032
1040
|
};
|
|
1033
|
-
module.exports = satisfies;
|
|
1041
|
+
module.exports = satisfies$4;
|
|
1034
1042
|
}));
|
|
1035
1043
|
|
|
1036
1044
|
//#endregion
|
|
1037
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1045
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
1038
1046
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1039
|
-
const Range = require_range();
|
|
1040
|
-
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1041
|
-
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;
|
|
1042
1050
|
}));
|
|
1043
1051
|
|
|
1044
1052
|
//#endregion
|
|
1045
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1053
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
1046
1054
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1047
|
-
const SemVer = require_semver$1();
|
|
1048
|
-
const Range = require_range();
|
|
1049
|
-
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) => {
|
|
1050
1058
|
let max = null;
|
|
1051
1059
|
let maxSV = null;
|
|
1052
1060
|
let rangeObj = null;
|
|
1053
1061
|
try {
|
|
1054
|
-
rangeObj = new Range(range, options);
|
|
1062
|
+
rangeObj = new Range$7(range, options);
|
|
1055
1063
|
} catch (er) {
|
|
1056
1064
|
return null;
|
|
1057
1065
|
}
|
|
@@ -1059,26 +1067,26 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1059
1067
|
if (rangeObj.test(v)) {
|
|
1060
1068
|
if (!max || maxSV.compare(v) === -1) {
|
|
1061
1069
|
max = v;
|
|
1062
|
-
maxSV = new SemVer(max, options);
|
|
1070
|
+
maxSV = new SemVer$4(max, options);
|
|
1063
1071
|
}
|
|
1064
1072
|
}
|
|
1065
1073
|
});
|
|
1066
1074
|
return max;
|
|
1067
1075
|
};
|
|
1068
|
-
module.exports = maxSatisfying;
|
|
1076
|
+
module.exports = maxSatisfying$1;
|
|
1069
1077
|
}));
|
|
1070
1078
|
|
|
1071
1079
|
//#endregion
|
|
1072
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1080
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
1073
1081
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1074
|
-
const SemVer = require_semver$1();
|
|
1075
|
-
const Range = require_range();
|
|
1076
|
-
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) => {
|
|
1077
1085
|
let min = null;
|
|
1078
1086
|
let minSV = null;
|
|
1079
1087
|
let rangeObj = null;
|
|
1080
1088
|
try {
|
|
1081
|
-
rangeObj = new Range(range, options);
|
|
1089
|
+
rangeObj = new Range$6(range, options);
|
|
1082
1090
|
} catch (er) {
|
|
1083
1091
|
return null;
|
|
1084
1092
|
}
|
|
@@ -1086,33 +1094,33 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1086
1094
|
if (rangeObj.test(v)) {
|
|
1087
1095
|
if (!min || minSV.compare(v) === 1) {
|
|
1088
1096
|
min = v;
|
|
1089
|
-
minSV = new SemVer(min, options);
|
|
1097
|
+
minSV = new SemVer$3(min, options);
|
|
1090
1098
|
}
|
|
1091
1099
|
}
|
|
1092
1100
|
});
|
|
1093
1101
|
return min;
|
|
1094
1102
|
};
|
|
1095
|
-
module.exports = minSatisfying;
|
|
1103
|
+
module.exports = minSatisfying$1;
|
|
1096
1104
|
}));
|
|
1097
1105
|
|
|
1098
1106
|
//#endregion
|
|
1099
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1107
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
1100
1108
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1101
|
-
const SemVer = require_semver$1();
|
|
1102
|
-
const Range = require_range();
|
|
1103
|
-
const gt = require_gt();
|
|
1104
|
-
const minVersion = (range, loose) => {
|
|
1105
|
-
range = new Range(range, loose);
|
|
1106
|
-
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");
|
|
1107
1115
|
if (range.test(minver)) return minver;
|
|
1108
|
-
minver = new SemVer("0.0.0-0");
|
|
1116
|
+
minver = new SemVer$2("0.0.0-0");
|
|
1109
1117
|
if (range.test(minver)) return minver;
|
|
1110
1118
|
minver = null;
|
|
1111
1119
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1112
1120
|
const comparators = range.set[i];
|
|
1113
1121
|
let setMin = null;
|
|
1114
1122
|
comparators.forEach((comparator) => {
|
|
1115
|
-
const compver = new SemVer(comparator.semver.version);
|
|
1123
|
+
const compver = new SemVer$2(comparator.semver.version);
|
|
1116
1124
|
switch (comparator.operator) {
|
|
1117
1125
|
case ">":
|
|
1118
1126
|
if (compver.prerelease.length === 0) compver.patch++;
|
|
@@ -1120,75 +1128,75 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1120
1128
|
compver.raw = compver.format();
|
|
1121
1129
|
case "":
|
|
1122
1130
|
case ">=":
|
|
1123
|
-
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
1131
|
+
if (!setMin || gt$2(compver, setMin)) setMin = compver;
|
|
1124
1132
|
break;
|
|
1125
1133
|
case "<":
|
|
1126
1134
|
case "<=": break;
|
|
1127
1135
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1128
1136
|
}
|
|
1129
1137
|
});
|
|
1130
|
-
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
1138
|
+
if (setMin && (!minver || gt$2(minver, setMin))) minver = setMin;
|
|
1131
1139
|
}
|
|
1132
1140
|
if (minver && range.test(minver)) return minver;
|
|
1133
1141
|
return null;
|
|
1134
1142
|
};
|
|
1135
|
-
module.exports = minVersion;
|
|
1143
|
+
module.exports = minVersion$1;
|
|
1136
1144
|
}));
|
|
1137
1145
|
|
|
1138
1146
|
//#endregion
|
|
1139
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1147
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
1140
1148
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1141
|
-
const Range = require_range();
|
|
1142
|
-
const validRange = (range, options) => {
|
|
1149
|
+
const Range$4 = require_range();
|
|
1150
|
+
const validRange$1 = (range, options) => {
|
|
1143
1151
|
try {
|
|
1144
|
-
return new Range(range, options).range || "*";
|
|
1152
|
+
return new Range$4(range, options).range || "*";
|
|
1145
1153
|
} catch (er) {
|
|
1146
1154
|
return null;
|
|
1147
1155
|
}
|
|
1148
1156
|
};
|
|
1149
|
-
module.exports = validRange;
|
|
1157
|
+
module.exports = validRange$1;
|
|
1150
1158
|
}));
|
|
1151
1159
|
|
|
1152
1160
|
//#endregion
|
|
1153
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1161
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
1154
1162
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1155
|
-
const SemVer = require_semver$1();
|
|
1156
|
-
const Comparator = require_comparator();
|
|
1157
|
-
const { ANY } = Comparator;
|
|
1158
|
-
const Range = require_range();
|
|
1159
|
-
const satisfies = require_satisfies();
|
|
1160
|
-
const gt = require_gt();
|
|
1161
|
-
const lt = require_lt();
|
|
1162
|
-
const lte = require_lte();
|
|
1163
|
-
const gte = require_gte();
|
|
1164
|
-
const outside = (version, range, hilo, options) => {
|
|
1165
|
-
version = new SemVer(version, options);
|
|
1166
|
-
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);
|
|
1167
1175
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1168
1176
|
switch (hilo) {
|
|
1169
1177
|
case ">":
|
|
1170
|
-
gtfn = gt;
|
|
1171
|
-
ltefn = lte;
|
|
1172
|
-
ltfn = lt;
|
|
1178
|
+
gtfn = gt$1;
|
|
1179
|
+
ltefn = lte$1;
|
|
1180
|
+
ltfn = lt$1;
|
|
1173
1181
|
comp = ">";
|
|
1174
1182
|
ecomp = ">=";
|
|
1175
1183
|
break;
|
|
1176
1184
|
case "<":
|
|
1177
|
-
gtfn = lt;
|
|
1178
|
-
ltefn = gte;
|
|
1179
|
-
ltfn = gt;
|
|
1185
|
+
gtfn = lt$1;
|
|
1186
|
+
ltefn = gte$1;
|
|
1187
|
+
ltfn = gt$1;
|
|
1180
1188
|
comp = "<";
|
|
1181
1189
|
ecomp = "<=";
|
|
1182
1190
|
break;
|
|
1183
1191
|
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
1184
1192
|
}
|
|
1185
|
-
if (satisfies(version, range, options)) return false;
|
|
1193
|
+
if (satisfies$3(version, range, options)) return false;
|
|
1186
1194
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1187
1195
|
const comparators = range.set[i];
|
|
1188
1196
|
let high = null;
|
|
1189
1197
|
let low = null;
|
|
1190
1198
|
comparators.forEach((comparator) => {
|
|
1191
|
-
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
1199
|
+
if (comparator.semver === ANY$1) comparator = new Comparator$2(">=0.0.0");
|
|
1192
1200
|
high = high || comparator;
|
|
1193
1201
|
low = low || comparator;
|
|
1194
1202
|
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
@@ -1200,48 +1208,48 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1200
1208
|
}
|
|
1201
1209
|
return true;
|
|
1202
1210
|
};
|
|
1203
|
-
module.exports = outside;
|
|
1211
|
+
module.exports = outside$3;
|
|
1204
1212
|
}));
|
|
1205
1213
|
|
|
1206
1214
|
//#endregion
|
|
1207
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1215
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
1208
1216
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1209
|
-
const outside = require_outside();
|
|
1210
|
-
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1211
|
-
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;
|
|
1212
1220
|
}));
|
|
1213
1221
|
|
|
1214
1222
|
//#endregion
|
|
1215
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1223
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
1216
1224
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1217
|
-
const outside = require_outside();
|
|
1218
|
-
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1219
|
-
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;
|
|
1220
1228
|
}));
|
|
1221
1229
|
|
|
1222
1230
|
//#endregion
|
|
1223
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1231
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
1224
1232
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1225
|
-
const Range = require_range();
|
|
1226
|
-
const intersects = (r1, r2, options) => {
|
|
1227
|
-
r1 = new Range(r1, options);
|
|
1228
|
-
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);
|
|
1229
1237
|
return r1.intersects(r2, options);
|
|
1230
1238
|
};
|
|
1231
|
-
module.exports = intersects;
|
|
1239
|
+
module.exports = intersects$1;
|
|
1232
1240
|
}));
|
|
1233
1241
|
|
|
1234
1242
|
//#endregion
|
|
1235
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1243
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
1236
1244
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1237
|
-
const satisfies = require_satisfies();
|
|
1238
|
-
const compare = require_compare();
|
|
1245
|
+
const satisfies$2 = require_satisfies();
|
|
1246
|
+
const compare$2 = require_compare();
|
|
1239
1247
|
module.exports = (versions, range, options) => {
|
|
1240
1248
|
const set = [];
|
|
1241
1249
|
let first = null;
|
|
1242
1250
|
let prev = null;
|
|
1243
|
-
const v = versions.sort((a, b) => compare(a, b, options));
|
|
1244
|
-
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)) {
|
|
1245
1253
|
prev = version;
|
|
1246
1254
|
if (!first) first = version;
|
|
1247
1255
|
} else {
|
|
@@ -1263,17 +1271,17 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1263
1271
|
}));
|
|
1264
1272
|
|
|
1265
1273
|
//#endregion
|
|
1266
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1274
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
1267
1275
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1268
|
-
const Range = require_range();
|
|
1269
|
-
const Comparator = require_comparator();
|
|
1270
|
-
const { ANY } = Comparator;
|
|
1271
|
-
const satisfies = require_satisfies();
|
|
1272
|
-
const compare = require_compare();
|
|
1273
|
-
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 = {}) => {
|
|
1274
1282
|
if (sub === dom) return true;
|
|
1275
|
-
sub = new Range(sub, options);
|
|
1276
|
-
dom = new Range(dom, options);
|
|
1283
|
+
sub = new Range$1(sub, options);
|
|
1284
|
+
dom = new Range$1(dom, options);
|
|
1277
1285
|
let sawNonNull = false;
|
|
1278
1286
|
OUTER: for (const simpleSub of sub.set) {
|
|
1279
1287
|
for (const simpleDom of dom.set) {
|
|
@@ -1285,8 +1293,8 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1285
1293
|
}
|
|
1286
1294
|
return true;
|
|
1287
1295
|
};
|
|
1288
|
-
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
1289
|
-
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")];
|
|
1290
1298
|
const simpleSubset = (sub, dom, options) => {
|
|
1291
1299
|
if (sub === dom) return true;
|
|
1292
1300
|
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
@@ -1295,71 +1303,71 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1295
1303
|
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
1296
1304
|
else dom = minimumVersion;
|
|
1297
1305
|
const eqSet = /* @__PURE__ */ new Set();
|
|
1298
|
-
let gt, lt;
|
|
1299
|
-
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
1300
|
-
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);
|
|
1301
1309
|
else eqSet.add(c.semver);
|
|
1302
1310
|
if (eqSet.size > 1) return null;
|
|
1303
1311
|
let gtltComp;
|
|
1304
|
-
if (gt && lt) {
|
|
1305
|
-
gtltComp = compare(gt.semver, lt.semver, options);
|
|
1312
|
+
if (gt$5 && lt$4) {
|
|
1313
|
+
gtltComp = compare$1(gt$5.semver, lt$4.semver, options);
|
|
1306
1314
|
if (gtltComp > 0) return null;
|
|
1307
|
-
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
1315
|
+
else if (gtltComp === 0 && (gt$5.operator !== ">=" || lt$4.operator !== "<=")) return null;
|
|
1308
1316
|
}
|
|
1309
|
-
for (const eq of eqSet) {
|
|
1310
|
-
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
1311
|
-
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
1312
|
-
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;
|
|
1313
1321
|
return true;
|
|
1314
1322
|
}
|
|
1315
1323
|
let higher, lower;
|
|
1316
1324
|
let hasDomLT, hasDomGT;
|
|
1317
|
-
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
1318
|
-
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
1319
|
-
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;
|
|
1320
1328
|
for (const c of dom) {
|
|
1321
1329
|
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
1322
1330
|
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
1323
|
-
if (gt) {
|
|
1331
|
+
if (gt$5) {
|
|
1324
1332
|
if (needDomGTPre) {
|
|
1325
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;
|
|
1326
1334
|
}
|
|
1327
1335
|
if (c.operator === ">" || c.operator === ">=") {
|
|
1328
|
-
higher = higherGT(gt, c, options);
|
|
1329
|
-
if (higher === c && higher !== gt) return false;
|
|
1330
|
-
} 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;
|
|
1331
1339
|
}
|
|
1332
|
-
if (lt) {
|
|
1340
|
+
if (lt$4) {
|
|
1333
1341
|
if (needDomLTPre) {
|
|
1334
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;
|
|
1335
1343
|
}
|
|
1336
1344
|
if (c.operator === "<" || c.operator === "<=") {
|
|
1337
|
-
lower = lowerLT(lt, c, options);
|
|
1338
|
-
if (lower === c && lower !== lt) return false;
|
|
1339
|
-
} 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;
|
|
1340
1348
|
}
|
|
1341
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1349
|
+
if (!c.operator && (lt$4 || gt$5) && gtltComp !== 0) return false;
|
|
1342
1350
|
}
|
|
1343
|
-
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
1344
|
-
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;
|
|
1345
1353
|
if (needDomGTPre || needDomLTPre) return false;
|
|
1346
1354
|
return true;
|
|
1347
1355
|
};
|
|
1348
1356
|
const higherGT = (a, b, options) => {
|
|
1349
1357
|
if (!a) return b;
|
|
1350
|
-
const comp = compare(a.semver, b.semver, options);
|
|
1358
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
1351
1359
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1352
1360
|
};
|
|
1353
1361
|
const lowerLT = (a, b, options) => {
|
|
1354
1362
|
if (!a) return b;
|
|
1355
|
-
const comp = compare(a.semver, b.semver, options);
|
|
1363
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
1356
1364
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1357
1365
|
};
|
|
1358
|
-
module.exports = subset;
|
|
1366
|
+
module.exports = subset$1;
|
|
1359
1367
|
}));
|
|
1360
1368
|
|
|
1361
1369
|
//#endregion
|
|
1362
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1370
|
+
//#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js
|
|
1363
1371
|
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1364
1372
|
const internalRe = require_re();
|
|
1365
1373
|
const constants = require_constants();
|
|
@@ -1706,11 +1714,11 @@ const queryPackages = async (packages) => {
|
|
|
1706
1714
|
const message = "Path to run codemod on:";
|
|
1707
1715
|
const nonRootPackages = packages.filter((pkg) => pkg !== "." && pkg !== "./");
|
|
1708
1716
|
if (packages.length === 1 && (packages[0] === "." || packages[0] === "./")) {
|
|
1709
|
-
if (await (0,
|
|
1717
|
+
if (await (0, __inquirer_prompts.confirm)({
|
|
1710
1718
|
message: "Do you want to target a specific folder instead of the entire project?",
|
|
1711
1719
|
default: false
|
|
1712
1720
|
})) {
|
|
1713
|
-
const customPath = await (0,
|
|
1721
|
+
const customPath = await (0, __inquirer_prompts.search)({
|
|
1714
1722
|
message: "Enter the folder path (relative to project root):",
|
|
1715
1723
|
source: async (searchInput) => {
|
|
1716
1724
|
return getDirectoryChoices(process.cwd(), searchInput || "").map((choice) => ({
|
|
@@ -1733,7 +1741,7 @@ const queryPackages = async (packages) => {
|
|
|
1733
1741
|
logToInquirer(message, packages[0] === "./" ? "." : packages[0]);
|
|
1734
1742
|
return [packages[0] === "./" ? "." : packages[0]];
|
|
1735
1743
|
}
|
|
1736
|
-
if (nonRootPackages.length >= 1) return (0,
|
|
1744
|
+
if (nonRootPackages.length >= 1) return (0, __inquirer_prompts.checkbox)({
|
|
1737
1745
|
required: true,
|
|
1738
1746
|
message: "Select packages to transform:",
|
|
1739
1747
|
choices: nonRootPackages.map((file) => ({
|
|
@@ -1753,7 +1761,7 @@ const determineTransformer = async ({ candidate, transformFiles }) => {
|
|
|
1753
1761
|
logToInquirer(codemodMessage, candidate);
|
|
1754
1762
|
return candidate;
|
|
1755
1763
|
}
|
|
1756
|
-
return (0,
|
|
1764
|
+
return (0, __inquirer_prompts.select)({
|
|
1757
1765
|
message: codemodMessage,
|
|
1758
1766
|
choices: transformFiles.map((file) => ({
|
|
1759
1767
|
name: file,
|
|
@@ -1785,7 +1793,7 @@ const determineIsDryMode = async (args) => {
|
|
|
1785
1793
|
logToInquirer(message, "Yes");
|
|
1786
1794
|
return true;
|
|
1787
1795
|
}
|
|
1788
|
-
return (0,
|
|
1796
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1789
1797
|
message,
|
|
1790
1798
|
default: false
|
|
1791
1799
|
});
|
|
@@ -1799,7 +1807,7 @@ const determineIsPrint = async (args) => {
|
|
|
1799
1807
|
logToInquirer(message, "Yes");
|
|
1800
1808
|
return true;
|
|
1801
1809
|
}
|
|
1802
|
-
return (0,
|
|
1810
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1803
1811
|
message,
|
|
1804
1812
|
default: false
|
|
1805
1813
|
});
|
|
@@ -1817,7 +1825,7 @@ const determineIgnorePatterns = async (args) => {
|
|
|
1817
1825
|
if (ignorePattern) {
|
|
1818
1826
|
logToInquirer(message, ignorePattern);
|
|
1819
1827
|
userPatterns = ignorePattern;
|
|
1820
|
-
} else userPatterns = await (0,
|
|
1828
|
+
} else userPatterns = await (0, __inquirer_prompts.input)({
|
|
1821
1829
|
message,
|
|
1822
1830
|
validate: () => true
|
|
1823
1831
|
});
|
|
@@ -1838,7 +1846,7 @@ const determineGitIgnore = async (args) => {
|
|
|
1838
1846
|
logToInquirer(message, "No");
|
|
1839
1847
|
return false;
|
|
1840
1848
|
}
|
|
1841
|
-
return (0,
|
|
1849
|
+
return (0, __inquirer_prompts.confirm)({
|
|
1842
1850
|
message,
|
|
1843
1851
|
default: true
|
|
1844
1852
|
});
|
|
@@ -1911,7 +1919,7 @@ var reportManualReview_default = reportManualReview;
|
|
|
1911
1919
|
//#region src/controller/helpers/runTransformPrompts.ts
|
|
1912
1920
|
async function askPrompt(p) {
|
|
1913
1921
|
switch (p.type) {
|
|
1914
|
-
case "select": return (0,
|
|
1922
|
+
case "select": return (0, __inquirer_prompts.select)({
|
|
1915
1923
|
message: p.message,
|
|
1916
1924
|
choices: (p.choices ?? []).map((c) => ({
|
|
1917
1925
|
name: c.name,
|
|
@@ -1919,12 +1927,12 @@ async function askPrompt(p) {
|
|
|
1919
1927
|
})),
|
|
1920
1928
|
default: p.default
|
|
1921
1929
|
});
|
|
1922
|
-
case "confirm": return (0,
|
|
1930
|
+
case "confirm": return (0, __inquirer_prompts.confirm)({
|
|
1923
1931
|
message: p.message,
|
|
1924
1932
|
default: typeof p.default === "boolean" ? p.default : false
|
|
1925
1933
|
});
|
|
1926
1934
|
case "input":
|
|
1927
|
-
default: return (0,
|
|
1935
|
+
default: return (0, __inquirer_prompts.input)({
|
|
1928
1936
|
message: p.message,
|
|
1929
1937
|
default: p.default ?? ""
|
|
1930
1938
|
});
|
|
@@ -2001,4 +2009,4 @@ Object.defineProperty(exports, 'runTransformPrompts', {
|
|
|
2001
2009
|
return runTransformPrompts;
|
|
2002
2010
|
}
|
|
2003
2011
|
});
|
|
2004
|
-
//# sourceMappingURL=helpers-
|
|
2012
|
+
//# sourceMappingURL=helpers-BNLAPdMR.js.map
|