@wise/wds-codemods 1.0.0-experimental-13187b1 → 1.0.0-experimental-509bb54
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-BMnoVgJM.js → helpers-Z1jZGLmt.js} +410 -418
- package/dist/helpers-Z1jZGLmt.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/dist/transforms/list-item/transformer.js +5 -5
- package/dist/transforms/list-item/transformer.js.map +1 -1
- package/package.json +4 -4
- package/dist/helpers-BMnoVgJM.js.map +0 -1
- /package/dist/transforms/button/{config.json/config.json → config.json} +0 -0
- /package/dist/transforms/list-item/{config.json/config.json → config.json} +0 -0
|
@@ -4,18 +4,18 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
4
4
|
node_fs_promises = require_constants$1.__toESM(node_fs_promises);
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_constants$1.__toESM(node_path);
|
|
7
|
-
let
|
|
7
|
+
let _inquirer_prompts = require("@inquirer/prompts");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_constants$1.__toESM(node_fs);
|
|
10
10
|
let node_util = require("node:util");
|
|
11
11
|
|
|
12
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
12
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
|
|
13
13
|
var require_constants = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
14
14
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
15
|
-
const MAX_LENGTH
|
|
16
|
-
const MAX_SAFE_INTEGER
|
|
17
|
-
const MAX_SAFE_COMPONENT_LENGTH
|
|
18
|
-
const MAX_SAFE_BUILD_LENGTH
|
|
15
|
+
const MAX_LENGTH = 256;
|
|
16
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
17
|
+
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
18
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
19
19
|
const RELEASE_TYPES = [
|
|
20
20
|
"major",
|
|
21
21
|
"premajor",
|
|
@@ -26,10 +26,10 @@ var require_constants = /* @__PURE__ */ require_constants$1.__commonJSMin(((expo
|
|
|
26
26
|
"prerelease"
|
|
27
27
|
];
|
|
28
28
|
module.exports = {
|
|
29
|
-
MAX_LENGTH
|
|
30
|
-
MAX_SAFE_COMPONENT_LENGTH
|
|
31
|
-
MAX_SAFE_BUILD_LENGTH
|
|
32
|
-
MAX_SAFE_INTEGER
|
|
29
|
+
MAX_LENGTH,
|
|
30
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
31
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
32
|
+
MAX_SAFE_INTEGER,
|
|
33
33
|
RELEASE_TYPES,
|
|
34
34
|
SEMVER_SPEC_VERSION,
|
|
35
35
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
@@ -38,28 +38,28 @@ var require_constants = /* @__PURE__ */ require_constants$1.__commonJSMin(((expo
|
|
|
38
38
|
}));
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
41
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
|
|
42
42
|
var require_debug = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
43
|
-
const debug
|
|
44
|
-
module.exports = debug
|
|
43
|
+
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
44
|
+
module.exports = debug;
|
|
45
45
|
}));
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
48
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
|
|
49
49
|
var require_re = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
50
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH
|
|
51
|
-
const debug
|
|
50
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
51
|
+
const debug = require_debug();
|
|
52
52
|
exports = module.exports = {};
|
|
53
|
-
const re
|
|
53
|
+
const re = exports.re = [];
|
|
54
54
|
const safeRe = exports.safeRe = [];
|
|
55
55
|
const src = exports.src = [];
|
|
56
56
|
const safeSrc = exports.safeSrc = [];
|
|
57
|
-
const t
|
|
57
|
+
const t = exports.t = {};
|
|
58
58
|
let R = 0;
|
|
59
59
|
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
60
60
|
const safeRegexReplacements = [
|
|
61
61
|
["\\s", 1],
|
|
62
|
-
["\\d", MAX_LENGTH
|
|
62
|
+
["\\d", MAX_LENGTH],
|
|
63
63
|
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
64
64
|
];
|
|
65
65
|
const makeSafeRegex = (value) => {
|
|
@@ -69,80 +69,79 @@ var require_re = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, mo
|
|
|
69
69
|
const createToken = (name, value, isGlobal) => {
|
|
70
70
|
const safe = makeSafeRegex(value);
|
|
71
71
|
const index = R++;
|
|
72
|
-
debug
|
|
73
|
-
t
|
|
72
|
+
debug(name, index, value);
|
|
73
|
+
t[name] = index;
|
|
74
74
|
src[index] = value;
|
|
75
75
|
safeSrc[index] = safe;
|
|
76
|
-
re
|
|
76
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
77
77
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
78
78
|
};
|
|
79
79
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
80
80
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
81
81
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
82
|
-
createToken("MAINVERSION", `(${src[t
|
|
83
|
-
createToken("MAINVERSIONLOOSE", `(${src[t
|
|
84
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t
|
|
85
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t
|
|
86
|
-
createToken("PRERELEASE", `(?:-(${src[t
|
|
87
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t
|
|
82
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
83
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
84
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
85
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
86
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
87
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
88
88
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89
|
-
createToken("BUILD", `(?:\\+(${src[t
|
|
90
|
-
createToken("FULLPLAIN", `v?${src[t
|
|
91
|
-
createToken("FULL", `^${src[t
|
|
92
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t
|
|
93
|
-
createToken("LOOSE", `^${src[t
|
|
89
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
90
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
91
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
92
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
93
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
94
94
|
createToken("GTLT", "((?:<|>)?=?)");
|
|
95
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t
|
|
96
|
-
createToken("XRANGEIDENTIFIER", `${src[t
|
|
97
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t
|
|
98
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t
|
|
99
|
-
createToken("XRANGE", `^${src[t
|
|
100
|
-
createToken("XRANGELOOSE", `^${src[t
|
|
95
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
96
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
97
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
98
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
99
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
100
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
101
101
|
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
102
|
-
createToken("COERCE", `${src[t
|
|
103
|
-
createToken("COERCEFULL", src[t
|
|
104
|
-
createToken("COERCERTL", src[t
|
|
105
|
-
createToken("COERCERTLFULL", src[t
|
|
102
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
103
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
104
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
105
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
106
106
|
createToken("LONETILDE", "(?:~>?)");
|
|
107
|
-
createToken("TILDETRIM", `(\\s*)${src[t
|
|
107
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
108
108
|
exports.tildeTrimReplace = "$1~";
|
|
109
|
-
createToken("TILDE", `^${src[t
|
|
110
|
-
createToken("TILDELOOSE", `^${src[t
|
|
109
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
110
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
111
111
|
createToken("LONECARET", "(?:\\^)");
|
|
112
|
-
createToken("CARETTRIM", `(\\s*)${src[t
|
|
112
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
113
113
|
exports.caretTrimReplace = "$1^";
|
|
114
|
-
createToken("CARET", `^${src[t
|
|
115
|
-
createToken("CARETLOOSE", `^${src[t
|
|
116
|
-
createToken("COMPARATORLOOSE", `^${src[t
|
|
117
|
-
createToken("COMPARATOR", `^${src[t
|
|
118
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t
|
|
114
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
115
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
116
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
117
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
118
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
119
119
|
exports.comparatorTrimReplace = "$1$2$3";
|
|
120
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t
|
|
121
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t
|
|
120
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
121
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
122
122
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
123
123
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
124
124
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
125
125
|
}));
|
|
126
126
|
|
|
127
127
|
//#endregion
|
|
128
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
128
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
|
|
129
129
|
var require_parse_options = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
130
130
|
const looseOption = Object.freeze({ loose: true });
|
|
131
131
|
const emptyOpts = Object.freeze({});
|
|
132
|
-
const parseOptions
|
|
132
|
+
const parseOptions = (options) => {
|
|
133
133
|
if (!options) return emptyOpts;
|
|
134
134
|
if (typeof options !== "object") return looseOption;
|
|
135
135
|
return options;
|
|
136
136
|
};
|
|
137
|
-
module.exports = parseOptions
|
|
137
|
+
module.exports = parseOptions;
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
140
|
//#endregion
|
|
141
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
141
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
|
|
142
142
|
var require_identifiers = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
143
143
|
const numeric = /^[0-9]+$/;
|
|
144
|
-
const compareIdentifiers
|
|
145
|
-
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
144
|
+
const compareIdentifiers = (a, b) => {
|
|
146
145
|
const anum = numeric.test(a);
|
|
147
146
|
const bnum = numeric.test(b);
|
|
148
147
|
if (anum && bnum) {
|
|
@@ -151,33 +150,33 @@ var require_identifiers = /* @__PURE__ */ require_constants$1.__commonJSMin(((ex
|
|
|
151
150
|
}
|
|
152
151
|
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
153
152
|
};
|
|
154
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers
|
|
153
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
155
154
|
module.exports = {
|
|
156
|
-
compareIdentifiers
|
|
155
|
+
compareIdentifiers,
|
|
157
156
|
rcompareIdentifiers
|
|
158
157
|
};
|
|
159
158
|
}));
|
|
160
159
|
|
|
161
160
|
//#endregion
|
|
162
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
161
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
|
|
163
162
|
var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
164
|
-
const debug
|
|
163
|
+
const debug = require_debug();
|
|
165
164
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
166
|
-
const { safeRe: re
|
|
167
|
-
const parseOptions
|
|
165
|
+
const { safeRe: re, t } = require_re();
|
|
166
|
+
const parseOptions = require_parse_options();
|
|
168
167
|
const { compareIdentifiers } = require_identifiers();
|
|
169
|
-
var SemVer
|
|
168
|
+
var SemVer = class SemVer {
|
|
170
169
|
constructor(version, options) {
|
|
171
|
-
options = parseOptions
|
|
172
|
-
if (version instanceof SemVer
|
|
170
|
+
options = parseOptions(options);
|
|
171
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
173
172
|
else version = version.version;
|
|
174
173
|
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
175
174
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
176
|
-
debug
|
|
175
|
+
debug("SemVer", version, options);
|
|
177
176
|
this.options = options;
|
|
178
177
|
this.loose = !!options.loose;
|
|
179
178
|
this.includePrerelease = !!options.includePrerelease;
|
|
180
|
-
const m = version.trim().match(options.loose ? re
|
|
179
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
181
180
|
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
182
181
|
this.raw = version;
|
|
183
182
|
this.major = +m[1];
|
|
@@ -206,26 +205,20 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
206
205
|
return this.version;
|
|
207
206
|
}
|
|
208
207
|
compare(other) {
|
|
209
|
-
debug
|
|
210
|
-
if (!(other instanceof SemVer
|
|
208
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
209
|
+
if (!(other instanceof SemVer)) {
|
|
211
210
|
if (typeof other === "string" && other === this.version) return 0;
|
|
212
|
-
other = new SemVer
|
|
211
|
+
other = new SemVer(other, this.options);
|
|
213
212
|
}
|
|
214
213
|
if (other.version === this.version) return 0;
|
|
215
214
|
return this.compareMain(other) || this.comparePre(other);
|
|
216
215
|
}
|
|
217
216
|
compareMain(other) {
|
|
218
|
-
if (!(other instanceof SemVer
|
|
219
|
-
|
|
220
|
-
if (this.major > other.major) return 1;
|
|
221
|
-
if (this.minor < other.minor) return -1;
|
|
222
|
-
if (this.minor > other.minor) return 1;
|
|
223
|
-
if (this.patch < other.patch) return -1;
|
|
224
|
-
if (this.patch > other.patch) return 1;
|
|
225
|
-
return 0;
|
|
217
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
218
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
226
219
|
}
|
|
227
220
|
comparePre(other) {
|
|
228
|
-
if (!(other instanceof SemVer
|
|
221
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
229
222
|
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
230
223
|
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
231
224
|
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
@@ -233,7 +226,7 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
233
226
|
do {
|
|
234
227
|
const a = this.prerelease[i];
|
|
235
228
|
const b = other.prerelease[i];
|
|
236
|
-
debug
|
|
229
|
+
debug("prerelease compare", i, a, b);
|
|
237
230
|
if (a === void 0 && b === void 0) return 0;
|
|
238
231
|
else if (b === void 0) return 1;
|
|
239
232
|
else if (a === void 0) return -1;
|
|
@@ -242,12 +235,12 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
242
235
|
} while (++i);
|
|
243
236
|
}
|
|
244
237
|
compareBuild(other) {
|
|
245
|
-
if (!(other instanceof SemVer
|
|
238
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
246
239
|
let i = 0;
|
|
247
240
|
do {
|
|
248
241
|
const a = this.build[i];
|
|
249
242
|
const b = other.build[i];
|
|
250
|
-
debug
|
|
243
|
+
debug("build compare", i, a, b);
|
|
251
244
|
if (a === void 0 && b === void 0) return 0;
|
|
252
245
|
else if (b === void 0) return 1;
|
|
253
246
|
else if (a === void 0) return -1;
|
|
@@ -259,7 +252,7 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
259
252
|
if (release.startsWith("pre")) {
|
|
260
253
|
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
261
254
|
if (identifier) {
|
|
262
|
-
const match = `-${identifier}`.match(this.options.loose ? re
|
|
255
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
263
256
|
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
264
257
|
}
|
|
265
258
|
}
|
|
@@ -320,11 +313,11 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
320
313
|
}
|
|
321
314
|
}
|
|
322
315
|
if (identifier) {
|
|
323
|
-
let prerelease
|
|
324
|
-
if (identifierBase === false) prerelease
|
|
316
|
+
let prerelease = [identifier, base];
|
|
317
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
325
318
|
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
326
|
-
if (isNaN(this.prerelease[1])) this.prerelease = prerelease
|
|
327
|
-
} else this.prerelease = prerelease
|
|
319
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
320
|
+
} else this.prerelease = prerelease;
|
|
328
321
|
}
|
|
329
322
|
break;
|
|
330
323
|
}
|
|
@@ -335,73 +328,73 @@ var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
335
328
|
return this;
|
|
336
329
|
}
|
|
337
330
|
};
|
|
338
|
-
module.exports = SemVer
|
|
331
|
+
module.exports = SemVer;
|
|
339
332
|
}));
|
|
340
333
|
|
|
341
334
|
//#endregion
|
|
342
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
335
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
|
|
343
336
|
var require_parse = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
344
|
-
const SemVer
|
|
345
|
-
const parse
|
|
346
|
-
if (version instanceof SemVer
|
|
337
|
+
const SemVer = require_semver$1();
|
|
338
|
+
const parse = (version, options, throwErrors = false) => {
|
|
339
|
+
if (version instanceof SemVer) return version;
|
|
347
340
|
try {
|
|
348
|
-
return new SemVer
|
|
341
|
+
return new SemVer(version, options);
|
|
349
342
|
} catch (er) {
|
|
350
343
|
if (!throwErrors) return null;
|
|
351
344
|
throw er;
|
|
352
345
|
}
|
|
353
346
|
};
|
|
354
|
-
module.exports = parse
|
|
347
|
+
module.exports = parse;
|
|
355
348
|
}));
|
|
356
349
|
|
|
357
350
|
//#endregion
|
|
358
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
351
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
|
|
359
352
|
var require_valid$1 = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
360
|
-
const parse
|
|
361
|
-
const valid
|
|
362
|
-
const v = parse
|
|
353
|
+
const parse = require_parse();
|
|
354
|
+
const valid = (version, options) => {
|
|
355
|
+
const v = parse(version, options);
|
|
363
356
|
return v ? v.version : null;
|
|
364
357
|
};
|
|
365
|
-
module.exports = valid
|
|
358
|
+
module.exports = valid;
|
|
366
359
|
}));
|
|
367
360
|
|
|
368
361
|
//#endregion
|
|
369
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
362
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
|
|
370
363
|
var require_clean = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
371
|
-
const parse
|
|
372
|
-
const clean
|
|
373
|
-
const s = parse
|
|
364
|
+
const parse = require_parse();
|
|
365
|
+
const clean = (version, options) => {
|
|
366
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
374
367
|
return s ? s.version : null;
|
|
375
368
|
};
|
|
376
|
-
module.exports = clean
|
|
369
|
+
module.exports = clean;
|
|
377
370
|
}));
|
|
378
371
|
|
|
379
372
|
//#endregion
|
|
380
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
373
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
|
|
381
374
|
var require_inc = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
382
|
-
const SemVer
|
|
383
|
-
const inc
|
|
375
|
+
const SemVer = require_semver$1();
|
|
376
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
384
377
|
if (typeof options === "string") {
|
|
385
378
|
identifierBase = identifier;
|
|
386
379
|
identifier = options;
|
|
387
380
|
options = void 0;
|
|
388
381
|
}
|
|
389
382
|
try {
|
|
390
|
-
return new SemVer
|
|
383
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
391
384
|
} catch (er) {
|
|
392
385
|
return null;
|
|
393
386
|
}
|
|
394
387
|
};
|
|
395
|
-
module.exports = inc
|
|
388
|
+
module.exports = inc;
|
|
396
389
|
}));
|
|
397
390
|
|
|
398
391
|
//#endregion
|
|
399
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
392
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
|
|
400
393
|
var require_diff = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
401
|
-
const parse
|
|
402
|
-
const diff
|
|
403
|
-
const v1 = parse
|
|
404
|
-
const v2 = parse
|
|
394
|
+
const parse = require_parse();
|
|
395
|
+
const diff = (version1, version2) => {
|
|
396
|
+
const v1 = parse(version1, null, true);
|
|
397
|
+
const v2 = parse(version2, null, true);
|
|
405
398
|
const comparison = v1.compare(v2);
|
|
406
399
|
if (comparison === 0) return null;
|
|
407
400
|
const v1Higher = comparison > 0;
|
|
@@ -421,154 +414,154 @@ var require_diff = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
421
414
|
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
422
415
|
return "prerelease";
|
|
423
416
|
};
|
|
424
|
-
module.exports = diff
|
|
417
|
+
module.exports = diff;
|
|
425
418
|
}));
|
|
426
419
|
|
|
427
420
|
//#endregion
|
|
428
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
421
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
|
|
429
422
|
var require_major = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
430
|
-
const SemVer
|
|
431
|
-
const major
|
|
432
|
-
module.exports = major
|
|
423
|
+
const SemVer = require_semver$1();
|
|
424
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
425
|
+
module.exports = major;
|
|
433
426
|
}));
|
|
434
427
|
|
|
435
428
|
//#endregion
|
|
436
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
429
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
|
|
437
430
|
var require_minor = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
438
|
-
const SemVer
|
|
439
|
-
const minor
|
|
440
|
-
module.exports = minor
|
|
431
|
+
const SemVer = require_semver$1();
|
|
432
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
433
|
+
module.exports = minor;
|
|
441
434
|
}));
|
|
442
435
|
|
|
443
436
|
//#endregion
|
|
444
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
437
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
|
|
445
438
|
var require_patch = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
446
|
-
const SemVer
|
|
447
|
-
const patch
|
|
448
|
-
module.exports = patch
|
|
439
|
+
const SemVer = require_semver$1();
|
|
440
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
441
|
+
module.exports = patch;
|
|
449
442
|
}));
|
|
450
443
|
|
|
451
444
|
//#endregion
|
|
452
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
445
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
|
|
453
446
|
var require_prerelease = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
454
|
-
const parse
|
|
455
|
-
const prerelease
|
|
456
|
-
const parsed = parse
|
|
447
|
+
const parse = require_parse();
|
|
448
|
+
const prerelease = (version, options) => {
|
|
449
|
+
const parsed = parse(version, options);
|
|
457
450
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
458
451
|
};
|
|
459
|
-
module.exports = prerelease
|
|
452
|
+
module.exports = prerelease;
|
|
460
453
|
}));
|
|
461
454
|
|
|
462
455
|
//#endregion
|
|
463
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
456
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
|
|
464
457
|
var require_compare = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
465
|
-
const SemVer
|
|
466
|
-
const compare
|
|
467
|
-
module.exports = compare
|
|
458
|
+
const SemVer = require_semver$1();
|
|
459
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
460
|
+
module.exports = compare;
|
|
468
461
|
}));
|
|
469
462
|
|
|
470
463
|
//#endregion
|
|
471
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
464
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
|
|
472
465
|
var require_rcompare = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
473
|
-
const compare
|
|
474
|
-
const rcompare
|
|
475
|
-
module.exports = rcompare
|
|
466
|
+
const compare = require_compare();
|
|
467
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
468
|
+
module.exports = rcompare;
|
|
476
469
|
}));
|
|
477
470
|
|
|
478
471
|
//#endregion
|
|
479
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
472
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
|
|
480
473
|
var require_compare_loose = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
481
|
-
const compare
|
|
482
|
-
const compareLoose
|
|
483
|
-
module.exports = compareLoose
|
|
474
|
+
const compare = require_compare();
|
|
475
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
476
|
+
module.exports = compareLoose;
|
|
484
477
|
}));
|
|
485
478
|
|
|
486
479
|
//#endregion
|
|
487
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
480
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
|
|
488
481
|
var require_compare_build = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
489
|
-
const SemVer
|
|
490
|
-
const compareBuild
|
|
491
|
-
const versionA = new SemVer
|
|
492
|
-
const versionB = new SemVer
|
|
482
|
+
const SemVer = require_semver$1();
|
|
483
|
+
const compareBuild = (a, b, loose) => {
|
|
484
|
+
const versionA = new SemVer(a, loose);
|
|
485
|
+
const versionB = new SemVer(b, loose);
|
|
493
486
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
494
487
|
};
|
|
495
|
-
module.exports = compareBuild
|
|
488
|
+
module.exports = compareBuild;
|
|
496
489
|
}));
|
|
497
490
|
|
|
498
491
|
//#endregion
|
|
499
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
492
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
|
|
500
493
|
var require_sort = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
501
|
-
const compareBuild
|
|
502
|
-
const sort
|
|
503
|
-
module.exports = sort
|
|
494
|
+
const compareBuild = require_compare_build();
|
|
495
|
+
const sort = (list$1, loose) => list$1.sort((a, b) => compareBuild(a, b, loose));
|
|
496
|
+
module.exports = sort;
|
|
504
497
|
}));
|
|
505
498
|
|
|
506
499
|
//#endregion
|
|
507
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
500
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
|
|
508
501
|
var require_rsort = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
509
|
-
const compareBuild
|
|
510
|
-
const rsort
|
|
511
|
-
module.exports = rsort
|
|
502
|
+
const compareBuild = require_compare_build();
|
|
503
|
+
const rsort = (list$1, loose) => list$1.sort((a, b) => compareBuild(b, a, loose));
|
|
504
|
+
module.exports = rsort;
|
|
512
505
|
}));
|
|
513
506
|
|
|
514
507
|
//#endregion
|
|
515
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
508
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
|
|
516
509
|
var require_gt = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
517
|
-
const compare
|
|
518
|
-
const gt
|
|
519
|
-
module.exports = gt
|
|
510
|
+
const compare = require_compare();
|
|
511
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
512
|
+
module.exports = gt;
|
|
520
513
|
}));
|
|
521
514
|
|
|
522
515
|
//#endregion
|
|
523
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
516
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
|
|
524
517
|
var require_lt = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
525
|
-
const compare
|
|
526
|
-
const lt
|
|
527
|
-
module.exports = lt
|
|
518
|
+
const compare = require_compare();
|
|
519
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
520
|
+
module.exports = lt;
|
|
528
521
|
}));
|
|
529
522
|
|
|
530
523
|
//#endregion
|
|
531
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
524
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
|
|
532
525
|
var require_eq = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
533
|
-
const compare
|
|
534
|
-
const eq
|
|
535
|
-
module.exports = eq
|
|
526
|
+
const compare = require_compare();
|
|
527
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
528
|
+
module.exports = eq;
|
|
536
529
|
}));
|
|
537
530
|
|
|
538
531
|
//#endregion
|
|
539
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
532
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
|
|
540
533
|
var require_neq = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
541
|
-
const compare
|
|
542
|
-
const neq
|
|
543
|
-
module.exports = neq
|
|
534
|
+
const compare = require_compare();
|
|
535
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
536
|
+
module.exports = neq;
|
|
544
537
|
}));
|
|
545
538
|
|
|
546
539
|
//#endregion
|
|
547
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
540
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
|
|
548
541
|
var require_gte = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
549
|
-
const compare
|
|
550
|
-
const gte
|
|
551
|
-
module.exports = gte
|
|
542
|
+
const compare = require_compare();
|
|
543
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
544
|
+
module.exports = gte;
|
|
552
545
|
}));
|
|
553
546
|
|
|
554
547
|
//#endregion
|
|
555
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
548
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
|
|
556
549
|
var require_lte = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
557
|
-
const compare
|
|
558
|
-
const lte
|
|
559
|
-
module.exports = lte
|
|
550
|
+
const compare = require_compare();
|
|
551
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
552
|
+
module.exports = lte;
|
|
560
553
|
}));
|
|
561
554
|
|
|
562
555
|
//#endregion
|
|
563
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
556
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
|
|
564
557
|
var require_cmp = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
565
|
-
const eq
|
|
566
|
-
const neq
|
|
567
|
-
const gt
|
|
568
|
-
const gte
|
|
569
|
-
const lt
|
|
570
|
-
const lte
|
|
571
|
-
const cmp
|
|
558
|
+
const eq = require_eq();
|
|
559
|
+
const neq = require_neq();
|
|
560
|
+
const gt = require_gt();
|
|
561
|
+
const gte = require_gte();
|
|
562
|
+
const lt = require_lt();
|
|
563
|
+
const lte = require_lte();
|
|
564
|
+
const cmp = (a, op, b, loose) => {
|
|
572
565
|
switch (op) {
|
|
573
566
|
case "===":
|
|
574
567
|
if (typeof a === "object") a = a.version;
|
|
@@ -580,33 +573,33 @@ var require_cmp = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, m
|
|
|
580
573
|
return a !== b;
|
|
581
574
|
case "":
|
|
582
575
|
case "=":
|
|
583
|
-
case "==": return eq
|
|
584
|
-
case "!=": return neq
|
|
585
|
-
case ">": return gt
|
|
586
|
-
case ">=": return gte
|
|
587
|
-
case "<": return lt
|
|
588
|
-
case "<=": return lte
|
|
576
|
+
case "==": return eq(a, b, loose);
|
|
577
|
+
case "!=": return neq(a, b, loose);
|
|
578
|
+
case ">": return gt(a, b, loose);
|
|
579
|
+
case ">=": return gte(a, b, loose);
|
|
580
|
+
case "<": return lt(a, b, loose);
|
|
581
|
+
case "<=": return lte(a, b, loose);
|
|
589
582
|
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
590
583
|
}
|
|
591
584
|
};
|
|
592
|
-
module.exports = cmp
|
|
585
|
+
module.exports = cmp;
|
|
593
586
|
}));
|
|
594
587
|
|
|
595
588
|
//#endregion
|
|
596
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
589
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
|
|
597
590
|
var require_coerce = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
598
|
-
const SemVer
|
|
599
|
-
const parse
|
|
600
|
-
const { safeRe: re
|
|
601
|
-
const coerce
|
|
602
|
-
if (version instanceof SemVer
|
|
591
|
+
const SemVer = require_semver$1();
|
|
592
|
+
const parse = require_parse();
|
|
593
|
+
const { safeRe: re, t } = require_re();
|
|
594
|
+
const coerce = (version, options) => {
|
|
595
|
+
if (version instanceof SemVer) return version;
|
|
603
596
|
if (typeof version === "number") version = String(version);
|
|
604
597
|
if (typeof version !== "string") return null;
|
|
605
598
|
options = options || {};
|
|
606
599
|
let match = null;
|
|
607
|
-
if (!options.rtl) match = version.match(options.includePrerelease ? re
|
|
600
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
608
601
|
else {
|
|
609
|
-
const coerceRtlRegex = options.includePrerelease ? re
|
|
602
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
610
603
|
let next;
|
|
611
604
|
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
612
605
|
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
@@ -615,14 +608,14 @@ var require_coerce = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports
|
|
|
615
608
|
coerceRtlRegex.lastIndex = -1;
|
|
616
609
|
}
|
|
617
610
|
if (match === null) return null;
|
|
618
|
-
const major
|
|
619
|
-
return parse
|
|
611
|
+
const major = match[2];
|
|
612
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
620
613
|
};
|
|
621
|
-
module.exports = coerce
|
|
614
|
+
module.exports = coerce;
|
|
622
615
|
}));
|
|
623
616
|
|
|
624
617
|
//#endregion
|
|
625
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
618
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
|
|
626
619
|
var require_lrucache = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
627
620
|
var LRUCache = class {
|
|
628
621
|
constructor() {
|
|
@@ -656,15 +649,15 @@ var require_lrucache = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
656
649
|
}));
|
|
657
650
|
|
|
658
651
|
//#endregion
|
|
659
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
652
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
|
|
660
653
|
var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
661
654
|
const SPACE_CHARACTERS = /\s+/g;
|
|
662
|
-
var Range
|
|
655
|
+
var Range = class Range {
|
|
663
656
|
constructor(range, options) {
|
|
664
|
-
options = parseOptions
|
|
665
|
-
if (range instanceof Range
|
|
666
|
-
else return new Range
|
|
667
|
-
if (range instanceof Comparator
|
|
657
|
+
options = parseOptions(options);
|
|
658
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
659
|
+
else return new Range(range.raw, options);
|
|
660
|
+
if (range instanceof Comparator) {
|
|
668
661
|
this.raw = range.value;
|
|
669
662
|
this.set = [[range]];
|
|
670
663
|
this.formatted = void 0;
|
|
@@ -714,23 +707,23 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
714
707
|
const cached = cache.get(memoKey);
|
|
715
708
|
if (cached) return cached;
|
|
716
709
|
const loose = this.options.loose;
|
|
717
|
-
const hr = loose ? re
|
|
710
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
718
711
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
719
|
-
debug
|
|
720
|
-
range = range.replace(re
|
|
721
|
-
debug
|
|
722
|
-
range = range.replace(re
|
|
723
|
-
debug
|
|
724
|
-
range = range.replace(re
|
|
725
|
-
debug
|
|
712
|
+
debug("hyphen replace", range);
|
|
713
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
714
|
+
debug("comparator trim", range);
|
|
715
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
716
|
+
debug("tilde trim", range);
|
|
717
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
718
|
+
debug("caret trim", range);
|
|
726
719
|
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
727
720
|
if (loose) rangeList = rangeList.filter((comp) => {
|
|
728
|
-
debug
|
|
729
|
-
return !!comp.match(re
|
|
721
|
+
debug("loose invalid filter", comp, this.options);
|
|
722
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
730
723
|
});
|
|
731
|
-
debug
|
|
724
|
+
debug("range list", rangeList);
|
|
732
725
|
const rangeMap = /* @__PURE__ */ new Map();
|
|
733
|
-
const comparators = rangeList.map((comp) => new Comparator
|
|
726
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
734
727
|
for (const comp of comparators) {
|
|
735
728
|
if (isNullSet(comp)) return [comp];
|
|
736
729
|
rangeMap.set(comp.value, comp);
|
|
@@ -741,7 +734,7 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
741
734
|
return result;
|
|
742
735
|
}
|
|
743
736
|
intersects(range, options) {
|
|
744
|
-
if (!(range instanceof Range
|
|
737
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
745
738
|
return this.set.some((thisComparators) => {
|
|
746
739
|
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
747
740
|
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
@@ -755,7 +748,7 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
755
748
|
test(version) {
|
|
756
749
|
if (!version) return false;
|
|
757
750
|
if (typeof version === "string") try {
|
|
758
|
-
version = new SemVer
|
|
751
|
+
version = new SemVer(version, this.options);
|
|
759
752
|
} catch (er) {
|
|
760
753
|
return false;
|
|
761
754
|
}
|
|
@@ -763,13 +756,13 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
763
756
|
return false;
|
|
764
757
|
}
|
|
765
758
|
};
|
|
766
|
-
module.exports = Range
|
|
759
|
+
module.exports = Range;
|
|
767
760
|
const cache = new (require_lrucache())();
|
|
768
|
-
const parseOptions
|
|
769
|
-
const Comparator
|
|
770
|
-
const debug
|
|
771
|
-
const SemVer
|
|
772
|
-
const { safeRe: re
|
|
761
|
+
const parseOptions = require_parse_options();
|
|
762
|
+
const Comparator = require_comparator();
|
|
763
|
+
const debug = require_debug();
|
|
764
|
+
const SemVer = require_semver$1();
|
|
765
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
773
766
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
774
767
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
775
768
|
const isAny = (c) => c.value === "";
|
|
@@ -786,16 +779,15 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
786
779
|
return result;
|
|
787
780
|
};
|
|
788
781
|
const parseComparator = (comp, options) => {
|
|
789
|
-
comp
|
|
790
|
-
debug$1("comp", comp, options);
|
|
782
|
+
debug("comp", comp, options);
|
|
791
783
|
comp = replaceCarets(comp, options);
|
|
792
|
-
debug
|
|
784
|
+
debug("caret", comp);
|
|
793
785
|
comp = replaceTildes(comp, options);
|
|
794
|
-
debug
|
|
786
|
+
debug("tildes", comp);
|
|
795
787
|
comp = replaceXRanges(comp, options);
|
|
796
|
-
debug
|
|
788
|
+
debug("xrange", comp);
|
|
797
789
|
comp = replaceStars(comp, options);
|
|
798
|
-
debug
|
|
790
|
+
debug("stars", comp);
|
|
799
791
|
return comp;
|
|
800
792
|
};
|
|
801
793
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
@@ -803,18 +795,18 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
803
795
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
804
796
|
};
|
|
805
797
|
const replaceTilde = (comp, options) => {
|
|
806
|
-
const r = options.loose ? re
|
|
798
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
807
799
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
808
|
-
debug
|
|
800
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
809
801
|
let ret;
|
|
810
802
|
if (isX(M)) ret = "";
|
|
811
803
|
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
812
804
|
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
813
805
|
else if (pr) {
|
|
814
|
-
debug
|
|
806
|
+
debug("replaceTilde pr", pr);
|
|
815
807
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
816
808
|
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
817
|
-
debug
|
|
809
|
+
debug("tilde return", ret);
|
|
818
810
|
return ret;
|
|
819
811
|
});
|
|
820
812
|
};
|
|
@@ -822,40 +814,40 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
822
814
|
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
823
815
|
};
|
|
824
816
|
const replaceCaret = (comp, options) => {
|
|
825
|
-
debug
|
|
826
|
-
const r = options.loose ? re
|
|
817
|
+
debug("caret", comp, options);
|
|
818
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
827
819
|
const z = options.includePrerelease ? "-0" : "";
|
|
828
820
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
829
|
-
debug
|
|
821
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
830
822
|
let ret;
|
|
831
823
|
if (isX(M)) ret = "";
|
|
832
824
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
833
825
|
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
834
826
|
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
835
827
|
else if (pr) {
|
|
836
|
-
debug
|
|
828
|
+
debug("replaceCaret pr", pr);
|
|
837
829
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
838
830
|
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
839
831
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
840
832
|
} else {
|
|
841
|
-
debug
|
|
833
|
+
debug("no pr");
|
|
842
834
|
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
843
835
|
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
844
836
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
845
837
|
}
|
|
846
|
-
debug
|
|
838
|
+
debug("caret return", ret);
|
|
847
839
|
return ret;
|
|
848
840
|
});
|
|
849
841
|
};
|
|
850
842
|
const replaceXRanges = (comp, options) => {
|
|
851
|
-
debug
|
|
843
|
+
debug("replaceXRanges", comp, options);
|
|
852
844
|
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
853
845
|
};
|
|
854
846
|
const replaceXRange = (comp, options) => {
|
|
855
847
|
comp = comp.trim();
|
|
856
|
-
const r = options.loose ? re
|
|
848
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
857
849
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
858
|
-
debug
|
|
850
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
859
851
|
const xM = isX(M);
|
|
860
852
|
const xm = xM || isX(m);
|
|
861
853
|
const xp = xm || isX(p);
|
|
@@ -886,17 +878,17 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
886
878
|
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
887
879
|
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
888
880
|
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
889
|
-
debug
|
|
881
|
+
debug("xRange return", ret);
|
|
890
882
|
return ret;
|
|
891
883
|
});
|
|
892
884
|
};
|
|
893
885
|
const replaceStars = (comp, options) => {
|
|
894
|
-
debug
|
|
895
|
-
return comp.trim().replace(re
|
|
886
|
+
debug("replaceStars", comp, options);
|
|
887
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
896
888
|
};
|
|
897
889
|
const replaceGTE0 = (comp, options) => {
|
|
898
|
-
debug
|
|
899
|
-
return comp.trim().replace(re
|
|
890
|
+
debug("replaceGTE0", comp, options);
|
|
891
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
900
892
|
};
|
|
901
893
|
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
902
894
|
if (isX(fM)) from = "";
|
|
@@ -916,8 +908,8 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
916
908
|
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
917
909
|
if (version.prerelease.length && !options.includePrerelease) {
|
|
918
910
|
for (let i = 0; i < set.length; i++) {
|
|
919
|
-
debug
|
|
920
|
-
if (set[i].semver === Comparator
|
|
911
|
+
debug(set[i].semver);
|
|
912
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
921
913
|
if (set[i].semver.prerelease.length > 0) {
|
|
922
914
|
const allowed = set[i].semver;
|
|
923
915
|
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
@@ -930,23 +922,23 @@ var require_range = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports,
|
|
|
930
922
|
}));
|
|
931
923
|
|
|
932
924
|
//#endregion
|
|
933
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
925
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
|
|
934
926
|
var require_comparator = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
935
|
-
const ANY
|
|
936
|
-
var Comparator
|
|
927
|
+
const ANY = Symbol("SemVer ANY");
|
|
928
|
+
var Comparator = class Comparator {
|
|
937
929
|
static get ANY() {
|
|
938
|
-
return ANY
|
|
930
|
+
return ANY;
|
|
939
931
|
}
|
|
940
932
|
constructor(comp, options) {
|
|
941
933
|
options = parseOptions(options);
|
|
942
|
-
if (comp instanceof Comparator
|
|
934
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
943
935
|
else comp = comp.value;
|
|
944
936
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
945
937
|
debug("comparator", comp, options);
|
|
946
938
|
this.options = options;
|
|
947
939
|
this.loose = !!options.loose;
|
|
948
940
|
this.parse(comp);
|
|
949
|
-
if (this.semver === ANY
|
|
941
|
+
if (this.semver === ANY) this.value = "";
|
|
950
942
|
else this.value = this.operator + this.semver.version;
|
|
951
943
|
debug("comp", this);
|
|
952
944
|
}
|
|
@@ -956,30 +948,30 @@ var require_comparator = /* @__PURE__ */ require_constants$1.__commonJSMin(((exp
|
|
|
956
948
|
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
957
949
|
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
958
950
|
if (this.operator === "=") this.operator = "";
|
|
959
|
-
if (!m[2]) this.semver = ANY
|
|
960
|
-
else this.semver = new SemVer
|
|
951
|
+
if (!m[2]) this.semver = ANY;
|
|
952
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
961
953
|
}
|
|
962
954
|
toString() {
|
|
963
955
|
return this.value;
|
|
964
956
|
}
|
|
965
957
|
test(version) {
|
|
966
958
|
debug("Comparator.test", version, this.options.loose);
|
|
967
|
-
if (this.semver === ANY
|
|
959
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
968
960
|
if (typeof version === "string") try {
|
|
969
|
-
version = new SemVer
|
|
961
|
+
version = new SemVer(version, this.options);
|
|
970
962
|
} catch (er) {
|
|
971
963
|
return false;
|
|
972
964
|
}
|
|
973
|
-
return cmp
|
|
965
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
974
966
|
}
|
|
975
967
|
intersects(comp, options) {
|
|
976
|
-
if (!(comp instanceof Comparator
|
|
968
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
977
969
|
if (this.operator === "") {
|
|
978
970
|
if (this.value === "") return true;
|
|
979
|
-
return new Range
|
|
971
|
+
return new Range(comp.value, options).test(this.value);
|
|
980
972
|
} else if (comp.operator === "") {
|
|
981
973
|
if (comp.value === "") return true;
|
|
982
|
-
return new Range
|
|
974
|
+
return new Range(this.value, options).test(comp.semver);
|
|
983
975
|
}
|
|
984
976
|
options = parseOptions(options);
|
|
985
977
|
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
@@ -987,54 +979,54 @@ var require_comparator = /* @__PURE__ */ require_constants$1.__commonJSMin(((exp
|
|
|
987
979
|
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
988
980
|
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
989
981
|
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
990
|
-
if (cmp
|
|
991
|
-
if (cmp
|
|
982
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
983
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
992
984
|
return false;
|
|
993
985
|
}
|
|
994
986
|
};
|
|
995
|
-
module.exports = Comparator
|
|
987
|
+
module.exports = Comparator;
|
|
996
988
|
const parseOptions = require_parse_options();
|
|
997
989
|
const { safeRe: re, t } = require_re();
|
|
998
|
-
const cmp
|
|
990
|
+
const cmp = require_cmp();
|
|
999
991
|
const debug = require_debug();
|
|
1000
|
-
const SemVer
|
|
1001
|
-
const Range
|
|
992
|
+
const SemVer = require_semver$1();
|
|
993
|
+
const Range = require_range();
|
|
1002
994
|
}));
|
|
1003
995
|
|
|
1004
996
|
//#endregion
|
|
1005
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
997
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
|
|
1006
998
|
var require_satisfies = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1007
|
-
const Range
|
|
1008
|
-
const satisfies
|
|
999
|
+
const Range = require_range();
|
|
1000
|
+
const satisfies = (version, range, options) => {
|
|
1009
1001
|
try {
|
|
1010
|
-
range = new Range
|
|
1002
|
+
range = new Range(range, options);
|
|
1011
1003
|
} catch (er) {
|
|
1012
1004
|
return false;
|
|
1013
1005
|
}
|
|
1014
1006
|
return range.test(version);
|
|
1015
1007
|
};
|
|
1016
|
-
module.exports = satisfies
|
|
1008
|
+
module.exports = satisfies;
|
|
1017
1009
|
}));
|
|
1018
1010
|
|
|
1019
1011
|
//#endregion
|
|
1020
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1012
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
|
|
1021
1013
|
var require_to_comparators = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1022
|
-
const Range
|
|
1023
|
-
const toComparators
|
|
1024
|
-
module.exports = toComparators
|
|
1014
|
+
const Range = require_range();
|
|
1015
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1016
|
+
module.exports = toComparators;
|
|
1025
1017
|
}));
|
|
1026
1018
|
|
|
1027
1019
|
//#endregion
|
|
1028
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1020
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
|
|
1029
1021
|
var require_max_satisfying = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1030
|
-
const SemVer
|
|
1031
|
-
const Range
|
|
1032
|
-
const maxSatisfying
|
|
1022
|
+
const SemVer = require_semver$1();
|
|
1023
|
+
const Range = require_range();
|
|
1024
|
+
const maxSatisfying = (versions, range, options) => {
|
|
1033
1025
|
let max = null;
|
|
1034
1026
|
let maxSV = null;
|
|
1035
1027
|
let rangeObj = null;
|
|
1036
1028
|
try {
|
|
1037
|
-
rangeObj = new Range
|
|
1029
|
+
rangeObj = new Range(range, options);
|
|
1038
1030
|
} catch (er) {
|
|
1039
1031
|
return null;
|
|
1040
1032
|
}
|
|
@@ -1042,26 +1034,26 @@ var require_max_satisfying = /* @__PURE__ */ require_constants$1.__commonJSMin((
|
|
|
1042
1034
|
if (rangeObj.test(v)) {
|
|
1043
1035
|
if (!max || maxSV.compare(v) === -1) {
|
|
1044
1036
|
max = v;
|
|
1045
|
-
maxSV = new SemVer
|
|
1037
|
+
maxSV = new SemVer(max, options);
|
|
1046
1038
|
}
|
|
1047
1039
|
}
|
|
1048
1040
|
});
|
|
1049
1041
|
return max;
|
|
1050
1042
|
};
|
|
1051
|
-
module.exports = maxSatisfying
|
|
1043
|
+
module.exports = maxSatisfying;
|
|
1052
1044
|
}));
|
|
1053
1045
|
|
|
1054
1046
|
//#endregion
|
|
1055
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1047
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
|
|
1056
1048
|
var require_min_satisfying = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1057
|
-
const SemVer
|
|
1058
|
-
const Range
|
|
1059
|
-
const minSatisfying
|
|
1049
|
+
const SemVer = require_semver$1();
|
|
1050
|
+
const Range = require_range();
|
|
1051
|
+
const minSatisfying = (versions, range, options) => {
|
|
1060
1052
|
let min = null;
|
|
1061
1053
|
let minSV = null;
|
|
1062
1054
|
let rangeObj = null;
|
|
1063
1055
|
try {
|
|
1064
|
-
rangeObj = new Range
|
|
1056
|
+
rangeObj = new Range(range, options);
|
|
1065
1057
|
} catch (er) {
|
|
1066
1058
|
return null;
|
|
1067
1059
|
}
|
|
@@ -1069,33 +1061,33 @@ var require_min_satisfying = /* @__PURE__ */ require_constants$1.__commonJSMin((
|
|
|
1069
1061
|
if (rangeObj.test(v)) {
|
|
1070
1062
|
if (!min || minSV.compare(v) === 1) {
|
|
1071
1063
|
min = v;
|
|
1072
|
-
minSV = new SemVer
|
|
1064
|
+
minSV = new SemVer(min, options);
|
|
1073
1065
|
}
|
|
1074
1066
|
}
|
|
1075
1067
|
});
|
|
1076
1068
|
return min;
|
|
1077
1069
|
};
|
|
1078
|
-
module.exports = minSatisfying
|
|
1070
|
+
module.exports = minSatisfying;
|
|
1079
1071
|
}));
|
|
1080
1072
|
|
|
1081
1073
|
//#endregion
|
|
1082
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1074
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
|
|
1083
1075
|
var require_min_version = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1084
|
-
const SemVer
|
|
1085
|
-
const Range
|
|
1086
|
-
const gt
|
|
1087
|
-
const minVersion
|
|
1088
|
-
range = new Range
|
|
1089
|
-
let minver = new SemVer
|
|
1076
|
+
const SemVer = require_semver$1();
|
|
1077
|
+
const Range = require_range();
|
|
1078
|
+
const gt = require_gt();
|
|
1079
|
+
const minVersion = (range, loose) => {
|
|
1080
|
+
range = new Range(range, loose);
|
|
1081
|
+
let minver = new SemVer("0.0.0");
|
|
1090
1082
|
if (range.test(minver)) return minver;
|
|
1091
|
-
minver = new SemVer
|
|
1083
|
+
minver = new SemVer("0.0.0-0");
|
|
1092
1084
|
if (range.test(minver)) return minver;
|
|
1093
1085
|
minver = null;
|
|
1094
1086
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1095
1087
|
const comparators = range.set[i];
|
|
1096
1088
|
let setMin = null;
|
|
1097
1089
|
comparators.forEach((comparator) => {
|
|
1098
|
-
const compver = new SemVer
|
|
1090
|
+
const compver = new SemVer(comparator.semver.version);
|
|
1099
1091
|
switch (comparator.operator) {
|
|
1100
1092
|
case ">":
|
|
1101
1093
|
if (compver.prerelease.length === 0) compver.patch++;
|
|
@@ -1103,75 +1095,75 @@ var require_min_version = /* @__PURE__ */ require_constants$1.__commonJSMin(((ex
|
|
|
1103
1095
|
compver.raw = compver.format();
|
|
1104
1096
|
case "":
|
|
1105
1097
|
case ">=":
|
|
1106
|
-
if (!setMin || gt
|
|
1098
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
1107
1099
|
break;
|
|
1108
1100
|
case "<":
|
|
1109
1101
|
case "<=": break;
|
|
1110
1102
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1111
1103
|
}
|
|
1112
1104
|
});
|
|
1113
|
-
if (setMin && (!minver || gt
|
|
1105
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
1114
1106
|
}
|
|
1115
1107
|
if (minver && range.test(minver)) return minver;
|
|
1116
1108
|
return null;
|
|
1117
1109
|
};
|
|
1118
|
-
module.exports = minVersion
|
|
1110
|
+
module.exports = minVersion;
|
|
1119
1111
|
}));
|
|
1120
1112
|
|
|
1121
1113
|
//#endregion
|
|
1122
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1114
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
|
|
1123
1115
|
var require_valid = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1124
|
-
const Range
|
|
1125
|
-
const validRange
|
|
1116
|
+
const Range = require_range();
|
|
1117
|
+
const validRange = (range, options) => {
|
|
1126
1118
|
try {
|
|
1127
|
-
return new Range
|
|
1119
|
+
return new Range(range, options).range || "*";
|
|
1128
1120
|
} catch (er) {
|
|
1129
1121
|
return null;
|
|
1130
1122
|
}
|
|
1131
1123
|
};
|
|
1132
|
-
module.exports = validRange
|
|
1124
|
+
module.exports = validRange;
|
|
1133
1125
|
}));
|
|
1134
1126
|
|
|
1135
1127
|
//#endregion
|
|
1136
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1128
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
|
|
1137
1129
|
var require_outside = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1138
|
-
const SemVer
|
|
1139
|
-
const Comparator
|
|
1140
|
-
const { ANY
|
|
1141
|
-
const Range
|
|
1142
|
-
const satisfies
|
|
1143
|
-
const gt
|
|
1144
|
-
const lt
|
|
1145
|
-
const lte
|
|
1146
|
-
const gte
|
|
1147
|
-
const outside
|
|
1148
|
-
version = new SemVer
|
|
1149
|
-
range = new Range
|
|
1130
|
+
const SemVer = require_semver$1();
|
|
1131
|
+
const Comparator = require_comparator();
|
|
1132
|
+
const { ANY } = Comparator;
|
|
1133
|
+
const Range = require_range();
|
|
1134
|
+
const satisfies = require_satisfies();
|
|
1135
|
+
const gt = require_gt();
|
|
1136
|
+
const lt = require_lt();
|
|
1137
|
+
const lte = require_lte();
|
|
1138
|
+
const gte = require_gte();
|
|
1139
|
+
const outside = (version, range, hilo, options) => {
|
|
1140
|
+
version = new SemVer(version, options);
|
|
1141
|
+
range = new Range(range, options);
|
|
1150
1142
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1151
1143
|
switch (hilo) {
|
|
1152
1144
|
case ">":
|
|
1153
|
-
gtfn = gt
|
|
1154
|
-
ltefn = lte
|
|
1155
|
-
ltfn = lt
|
|
1145
|
+
gtfn = gt;
|
|
1146
|
+
ltefn = lte;
|
|
1147
|
+
ltfn = lt;
|
|
1156
1148
|
comp = ">";
|
|
1157
1149
|
ecomp = ">=";
|
|
1158
1150
|
break;
|
|
1159
1151
|
case "<":
|
|
1160
|
-
gtfn = lt
|
|
1161
|
-
ltefn = gte
|
|
1162
|
-
ltfn = gt
|
|
1152
|
+
gtfn = lt;
|
|
1153
|
+
ltefn = gte;
|
|
1154
|
+
ltfn = gt;
|
|
1163
1155
|
comp = "<";
|
|
1164
1156
|
ecomp = "<=";
|
|
1165
1157
|
break;
|
|
1166
1158
|
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
1167
1159
|
}
|
|
1168
|
-
if (satisfies
|
|
1160
|
+
if (satisfies(version, range, options)) return false;
|
|
1169
1161
|
for (let i = 0; i < range.set.length; ++i) {
|
|
1170
1162
|
const comparators = range.set[i];
|
|
1171
1163
|
let high = null;
|
|
1172
1164
|
let low = null;
|
|
1173
1165
|
comparators.forEach((comparator) => {
|
|
1174
|
-
if (comparator.semver === ANY
|
|
1166
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
1175
1167
|
high = high || comparator;
|
|
1176
1168
|
low = low || comparator;
|
|
1177
1169
|
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
@@ -1183,48 +1175,48 @@ var require_outside = /* @__PURE__ */ require_constants$1.__commonJSMin(((export
|
|
|
1183
1175
|
}
|
|
1184
1176
|
return true;
|
|
1185
1177
|
};
|
|
1186
|
-
module.exports = outside
|
|
1178
|
+
module.exports = outside;
|
|
1187
1179
|
}));
|
|
1188
1180
|
|
|
1189
1181
|
//#endregion
|
|
1190
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1182
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
|
|
1191
1183
|
var require_gtr = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1192
|
-
const outside
|
|
1193
|
-
const gtr
|
|
1194
|
-
module.exports = gtr
|
|
1184
|
+
const outside = require_outside();
|
|
1185
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1186
|
+
module.exports = gtr;
|
|
1195
1187
|
}));
|
|
1196
1188
|
|
|
1197
1189
|
//#endregion
|
|
1198
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1190
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
|
|
1199
1191
|
var require_ltr = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1200
|
-
const outside
|
|
1201
|
-
const ltr
|
|
1202
|
-
module.exports = ltr
|
|
1192
|
+
const outside = require_outside();
|
|
1193
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1194
|
+
module.exports = ltr;
|
|
1203
1195
|
}));
|
|
1204
1196
|
|
|
1205
1197
|
//#endregion
|
|
1206
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1198
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
|
|
1207
1199
|
var require_intersects = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1208
|
-
const Range
|
|
1209
|
-
const intersects
|
|
1210
|
-
r1 = new Range
|
|
1211
|
-
r2 = new Range
|
|
1200
|
+
const Range = require_range();
|
|
1201
|
+
const intersects = (r1, r2, options) => {
|
|
1202
|
+
r1 = new Range(r1, options);
|
|
1203
|
+
r2 = new Range(r2, options);
|
|
1212
1204
|
return r1.intersects(r2, options);
|
|
1213
1205
|
};
|
|
1214
|
-
module.exports = intersects
|
|
1206
|
+
module.exports = intersects;
|
|
1215
1207
|
}));
|
|
1216
1208
|
|
|
1217
1209
|
//#endregion
|
|
1218
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1210
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
|
|
1219
1211
|
var require_simplify = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1220
|
-
const satisfies
|
|
1221
|
-
const compare
|
|
1212
|
+
const satisfies = require_satisfies();
|
|
1213
|
+
const compare = require_compare();
|
|
1222
1214
|
module.exports = (versions, range, options) => {
|
|
1223
1215
|
const set = [];
|
|
1224
1216
|
let first = null;
|
|
1225
1217
|
let prev = null;
|
|
1226
|
-
const v = versions.sort((a, b) => compare
|
|
1227
|
-
for (const version of v) if (satisfies
|
|
1218
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
1219
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
1228
1220
|
prev = version;
|
|
1229
1221
|
if (!first) first = version;
|
|
1230
1222
|
} else {
|
|
@@ -1246,17 +1238,17 @@ var require_simplify = /* @__PURE__ */ require_constants$1.__commonJSMin(((expor
|
|
|
1246
1238
|
}));
|
|
1247
1239
|
|
|
1248
1240
|
//#endregion
|
|
1249
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1241
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
|
|
1250
1242
|
var require_subset = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1251
|
-
const Range
|
|
1252
|
-
const Comparator
|
|
1253
|
-
const { ANY } = Comparator
|
|
1254
|
-
const satisfies
|
|
1255
|
-
const compare
|
|
1256
|
-
const subset
|
|
1243
|
+
const Range = require_range();
|
|
1244
|
+
const Comparator = require_comparator();
|
|
1245
|
+
const { ANY } = Comparator;
|
|
1246
|
+
const satisfies = require_satisfies();
|
|
1247
|
+
const compare = require_compare();
|
|
1248
|
+
const subset = (sub, dom, options = {}) => {
|
|
1257
1249
|
if (sub === dom) return true;
|
|
1258
|
-
sub = new Range
|
|
1259
|
-
dom = new Range
|
|
1250
|
+
sub = new Range(sub, options);
|
|
1251
|
+
dom = new Range(dom, options);
|
|
1260
1252
|
let sawNonNull = false;
|
|
1261
1253
|
OUTER: for (const simpleSub of sub.set) {
|
|
1262
1254
|
for (const simpleDom of dom.set) {
|
|
@@ -1268,8 +1260,8 @@ var require_subset = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports
|
|
|
1268
1260
|
}
|
|
1269
1261
|
return true;
|
|
1270
1262
|
};
|
|
1271
|
-
const minimumVersionWithPreRelease = [new Comparator
|
|
1272
|
-
const minimumVersion = [new Comparator
|
|
1263
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
1264
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
1273
1265
|
const simpleSubset = (sub, dom, options) => {
|
|
1274
1266
|
if (sub === dom) return true;
|
|
1275
1267
|
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
@@ -1278,71 +1270,71 @@ var require_subset = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports
|
|
|
1278
1270
|
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
1279
1271
|
else dom = minimumVersion;
|
|
1280
1272
|
const eqSet = /* @__PURE__ */ new Set();
|
|
1281
|
-
let gt
|
|
1282
|
-
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt
|
|
1283
|
-
else if (c.operator === "<" || c.operator === "<=") lt
|
|
1273
|
+
let gt, lt;
|
|
1274
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
1275
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
1284
1276
|
else eqSet.add(c.semver);
|
|
1285
1277
|
if (eqSet.size > 1) return null;
|
|
1286
1278
|
let gtltComp;
|
|
1287
|
-
if (gt
|
|
1288
|
-
gtltComp = compare
|
|
1279
|
+
if (gt && lt) {
|
|
1280
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
1289
1281
|
if (gtltComp > 0) return null;
|
|
1290
|
-
else if (gtltComp === 0 && (gt
|
|
1282
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
1291
1283
|
}
|
|
1292
|
-
for (const eq
|
|
1293
|
-
if (gt
|
|
1294
|
-
if (lt
|
|
1295
|
-
for (const c of dom) if (!satisfies
|
|
1284
|
+
for (const eq of eqSet) {
|
|
1285
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
1286
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
1287
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
1296
1288
|
return true;
|
|
1297
1289
|
}
|
|
1298
1290
|
let higher, lower;
|
|
1299
1291
|
let hasDomLT, hasDomGT;
|
|
1300
|
-
let needDomLTPre = lt
|
|
1301
|
-
let needDomGTPre = gt
|
|
1302
|
-
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt
|
|
1292
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
1293
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
1294
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
1303
1295
|
for (const c of dom) {
|
|
1304
1296
|
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
1305
1297
|
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
1306
|
-
if (gt
|
|
1298
|
+
if (gt) {
|
|
1307
1299
|
if (needDomGTPre) {
|
|
1308
1300
|
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;
|
|
1309
1301
|
}
|
|
1310
1302
|
if (c.operator === ">" || c.operator === ">=") {
|
|
1311
|
-
higher = higherGT(gt
|
|
1312
|
-
if (higher === c && higher !== gt
|
|
1313
|
-
} else if (gt
|
|
1303
|
+
higher = higherGT(gt, c, options);
|
|
1304
|
+
if (higher === c && higher !== gt) return false;
|
|
1305
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
1314
1306
|
}
|
|
1315
|
-
if (lt
|
|
1307
|
+
if (lt) {
|
|
1316
1308
|
if (needDomLTPre) {
|
|
1317
1309
|
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;
|
|
1318
1310
|
}
|
|
1319
1311
|
if (c.operator === "<" || c.operator === "<=") {
|
|
1320
|
-
lower = lowerLT(lt
|
|
1321
|
-
if (lower === c && lower !== lt
|
|
1322
|
-
} else if (lt
|
|
1312
|
+
lower = lowerLT(lt, c, options);
|
|
1313
|
+
if (lower === c && lower !== lt) return false;
|
|
1314
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
1323
1315
|
}
|
|
1324
|
-
if (!c.operator && (lt
|
|
1316
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1325
1317
|
}
|
|
1326
|
-
if (gt
|
|
1327
|
-
if (lt
|
|
1318
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
1319
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
1328
1320
|
if (needDomGTPre || needDomLTPre) return false;
|
|
1329
1321
|
return true;
|
|
1330
1322
|
};
|
|
1331
1323
|
const higherGT = (a, b, options) => {
|
|
1332
1324
|
if (!a) return b;
|
|
1333
|
-
const comp = compare
|
|
1325
|
+
const comp = compare(a.semver, b.semver, options);
|
|
1334
1326
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1335
1327
|
};
|
|
1336
1328
|
const lowerLT = (a, b, options) => {
|
|
1337
1329
|
if (!a) return b;
|
|
1338
|
-
const comp = compare
|
|
1330
|
+
const comp = compare(a.semver, b.semver, options);
|
|
1339
1331
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1340
1332
|
};
|
|
1341
|
-
module.exports = subset
|
|
1333
|
+
module.exports = subset;
|
|
1342
1334
|
}));
|
|
1343
1335
|
|
|
1344
1336
|
//#endregion
|
|
1345
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1337
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
|
|
1346
1338
|
var require_semver = /* @__PURE__ */ require_constants$1.__commonJSMin(((exports, module) => {
|
|
1347
1339
|
const internalRe = require_re();
|
|
1348
1340
|
const constants = require_constants();
|
|
@@ -1657,7 +1649,7 @@ const assessPrerequisitesBatch = (targetPaths, codemodPath, spinnies) => {
|
|
|
1657
1649
|
if (failedTargetsNoPackage.length || !passedCount) if (!passedCount) spinnies.fail("prerequisite-check", { text: "All targets failed prerequisite checks" });
|
|
1658
1650
|
else {
|
|
1659
1651
|
spinnies.fail("prerequisite-check", { text: `No package.json found for ${failedTargetsNoPackage.length} target${failedTargetsNoPackage.length !== 1 ? "s" : ""} (searching upwards to project root).` });
|
|
1660
|
-
failedTargetsNoPackage.forEach((t
|
|
1652
|
+
failedTargetsNoPackage.forEach((t) => console.error(`- ${t}`));
|
|
1661
1653
|
}
|
|
1662
1654
|
else {
|
|
1663
1655
|
const failedPart = failedCount > 0 ? `, \x1b[31m${failedCount} failed\x1b[0m` : "";
|
|
@@ -1735,11 +1727,11 @@ const queryPackages = async (packages) => {
|
|
|
1735
1727
|
const message = "Path to run codemod on:";
|
|
1736
1728
|
const nonRootPackages = packages.filter((pkg) => pkg !== "." && pkg !== "./");
|
|
1737
1729
|
if (packages.length === 1 && (packages[0] === "." || packages[0] === "./")) {
|
|
1738
|
-
if (await (0,
|
|
1730
|
+
if (await (0, _inquirer_prompts.confirm)({
|
|
1739
1731
|
message: "Do you want to target a specific folder instead of the entire project?",
|
|
1740
1732
|
default: false
|
|
1741
1733
|
})) {
|
|
1742
|
-
const customPath = await (0,
|
|
1734
|
+
const customPath = await (0, _inquirer_prompts.search)({
|
|
1743
1735
|
message: "Enter the folder path (relative to project root):",
|
|
1744
1736
|
source: async (searchInput) => {
|
|
1745
1737
|
return getDirectoryChoices(process.cwd(), searchInput || "").map((choice) => ({
|
|
@@ -1762,7 +1754,7 @@ const queryPackages = async (packages) => {
|
|
|
1762
1754
|
logToInquirer(message, packages[0] === "./" ? "." : packages[0]);
|
|
1763
1755
|
return [packages[0] === "./" ? "." : packages[0]];
|
|
1764
1756
|
}
|
|
1765
|
-
if (nonRootPackages.length >= 1) return (0,
|
|
1757
|
+
if (nonRootPackages.length >= 1) return (0, _inquirer_prompts.checkbox)({
|
|
1766
1758
|
required: true,
|
|
1767
1759
|
message: "Select packages to transform:",
|
|
1768
1760
|
choices: nonRootPackages.map((file) => ({
|
|
@@ -1782,7 +1774,7 @@ const determineTransformer = async ({ candidate, transformFiles }) => {
|
|
|
1782
1774
|
logToInquirer(codemodMessage, candidate);
|
|
1783
1775
|
return candidate;
|
|
1784
1776
|
}
|
|
1785
|
-
return (0,
|
|
1777
|
+
return (0, _inquirer_prompts.select)({
|
|
1786
1778
|
message: codemodMessage,
|
|
1787
1779
|
choices: transformFiles.map((file) => ({
|
|
1788
1780
|
name: file,
|
|
@@ -1814,7 +1806,7 @@ const determineIsDryMode = async (args) => {
|
|
|
1814
1806
|
logToInquirer(message, "Yes");
|
|
1815
1807
|
return true;
|
|
1816
1808
|
}
|
|
1817
|
-
return (0,
|
|
1809
|
+
return (0, _inquirer_prompts.confirm)({
|
|
1818
1810
|
message,
|
|
1819
1811
|
default: false
|
|
1820
1812
|
});
|
|
@@ -1828,7 +1820,7 @@ const determineIsPrint = async (args) => {
|
|
|
1828
1820
|
logToInquirer(message, "Yes");
|
|
1829
1821
|
return true;
|
|
1830
1822
|
}
|
|
1831
|
-
return (0,
|
|
1823
|
+
return (0, _inquirer_prompts.confirm)({
|
|
1832
1824
|
message,
|
|
1833
1825
|
default: false
|
|
1834
1826
|
});
|
|
@@ -1846,7 +1838,7 @@ const determineIgnorePatterns = async (args) => {
|
|
|
1846
1838
|
if (ignorePattern) {
|
|
1847
1839
|
logToInquirer(message, ignorePattern);
|
|
1848
1840
|
userPatterns = ignorePattern;
|
|
1849
|
-
} else userPatterns = await (0,
|
|
1841
|
+
} else userPatterns = await (0, _inquirer_prompts.input)({
|
|
1850
1842
|
message,
|
|
1851
1843
|
validate: () => true
|
|
1852
1844
|
});
|
|
@@ -1867,7 +1859,7 @@ const determineGitIgnore = async (args) => {
|
|
|
1867
1859
|
logToInquirer(message, "No");
|
|
1868
1860
|
return false;
|
|
1869
1861
|
}
|
|
1870
|
-
return (0,
|
|
1862
|
+
return (0, _inquirer_prompts.confirm)({
|
|
1871
1863
|
message,
|
|
1872
1864
|
default: true
|
|
1873
1865
|
});
|
|
@@ -1940,7 +1932,7 @@ var reportManualReview_default = reportManualReview;
|
|
|
1940
1932
|
//#region src/controller/helpers/runTransformPrompts.ts
|
|
1941
1933
|
async function askPrompt(p) {
|
|
1942
1934
|
switch (p.type) {
|
|
1943
|
-
case "select": return (0,
|
|
1935
|
+
case "select": return (0, _inquirer_prompts.select)({
|
|
1944
1936
|
message: p.message,
|
|
1945
1937
|
choices: (p.choices ?? []).map((c) => ({
|
|
1946
1938
|
name: c.name,
|
|
@@ -1948,12 +1940,12 @@ async function askPrompt(p) {
|
|
|
1948
1940
|
})),
|
|
1949
1941
|
default: p.default
|
|
1950
1942
|
});
|
|
1951
|
-
case "confirm": return (0,
|
|
1943
|
+
case "confirm": return (0, _inquirer_prompts.confirm)({
|
|
1952
1944
|
message: p.message,
|
|
1953
1945
|
default: typeof p.default === "boolean" ? p.default : false
|
|
1954
1946
|
});
|
|
1955
1947
|
case "input":
|
|
1956
|
-
default: return (0,
|
|
1948
|
+
default: return (0, _inquirer_prompts.input)({
|
|
1957
1949
|
message: p.message,
|
|
1958
1950
|
default: p.default ?? ""
|
|
1959
1951
|
});
|
|
@@ -2050,4 +2042,4 @@ Object.defineProperty(exports, 'validateClaudeConfig', {
|
|
|
2050
2042
|
return validateClaudeConfig;
|
|
2051
2043
|
}
|
|
2052
2044
|
});
|
|
2053
|
-
//# sourceMappingURL=helpers-
|
|
2045
|
+
//# sourceMappingURL=helpers-Z1jZGLmt.js.map
|