@shopify/cli 3.86.1 → 3.87.1
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/README.md +2 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/index-0hw3R_TS.css +1 -0
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chunk-KCMYZRDH.js → chunk-23Q74MWH.js} +5 -5
- package/dist/{chunk-4WBTBFNC.js → chunk-2UUMQCBY.js} +4 -4
- package/dist/{chunk-GNW7DUJ5.js → chunk-4QID2NII.js} +2 -2
- package/dist/{chunk-SQNWVF3V.js → chunk-6AZR3EEJ.js} +2 -2
- package/dist/{chunk-UB7QY2VF.js → chunk-6LIAGQFX.js} +3 -3
- package/dist/{chunk-AAHIUMCI.js → chunk-76WLOUWP.js} +3 -3
- package/dist/{chunk-TDSRWKL2.js → chunk-7ZPVVRUW.js} +6 -6
- package/dist/{chunk-B7H344JI.js → chunk-CKTUCT5O.js} +115 -96
- package/dist/{chunk-HUR6MF6D.js → chunk-CXQE3TGJ.js} +8 -8
- package/dist/{chunk-A5RXDG36.js → chunk-EU2KBN47.js} +7 -7
- package/dist/chunk-EZQWZ57B.js +53 -0
- package/dist/{chunk-MZWHWEIR.js → chunk-F243634J.js} +2 -2
- package/dist/{chunk-4MSYMXAX.js → chunk-GPKHDSF5.js} +2 -2
- package/dist/{chunk-PBZI5MOK.js → chunk-GWTUHQYO.js} +60 -186
- package/dist/{chunk-YRJLM3MZ.js → chunk-H7NW53OX.js} +2 -2
- package/dist/{chunk-AM4QB5OM.js → chunk-HMDWNGIV.js} +100 -206
- package/dist/{chunk-K45JWD7H.js → chunk-ITSXRFLE.js} +24 -7
- package/dist/chunk-JDEWPBGH.js +80 -0
- package/dist/{chunk-NAPXIWWP.js → chunk-JOBZ2ZJ4.js} +6 -6
- package/dist/{chunk-J6JPAWCE.js → chunk-K4JH57B7.js} +2 -2
- package/dist/{chunk-IPWP4QG4.js → chunk-K6IFMHN3.js} +5 -5
- package/dist/{chunk-2WTSZOXI.js → chunk-KDVEMQGZ.js} +3 -3
- package/dist/{chunk-AXMPBUZL.js → chunk-KFQPNPET.js} +3 -3
- package/dist/{chunk-2LK4JXAI.js → chunk-KT66WYZX.js} +28 -16
- package/dist/{chunk-6FH6AJI5.js → chunk-KUJQ4AB6.js} +103 -2
- package/dist/{chunk-QZSPMSF2.js → chunk-LY3CTHXO.js} +18 -6
- package/dist/{chunk-6VIQUXXO.js → chunk-N77BK2FR.js} +2 -2
- package/dist/{chunk-RQD77XVF.js → chunk-NAE7XFUQ.js} +3 -3
- package/dist/{chunk-CZE7TCFI.js → chunk-NECMGZD4.js} +3 -3
- package/dist/{chunk-E7SRX5ME.js → chunk-O3BBUFCD.js} +4 -4
- package/dist/{chunk-PANEHHGV.js → chunk-OIHYAA4J.js} +21 -8
- package/dist/{chunk-52OB52S5.js → chunk-QDR4INV2.js} +5 -5
- package/dist/{chunk-PPM7JU6X.js → chunk-QTFNL7OD.js} +3 -3
- package/dist/{chunk-ZKG22PUU.js → chunk-R7WD7S7O.js} +4 -4
- package/dist/{chunk-VGDJLENI.js → chunk-SOTV4GZS.js} +3 -3
- package/dist/{chunk-X2YIODUW.js → chunk-VLBE545G.js} +15 -1237
- package/dist/{chunk-NOHJOQVR.js → chunk-W5QPQW34.js} +3 -3
- package/dist/{chunk-F2V6FX7R.js → chunk-WM77PTR2.js} +4 -4
- package/dist/{chunk-AU6C5SPW.js → chunk-YFIY3MUW.js} +8 -8
- package/dist/{chunk-J4HWHB57.js → chunk-YPKPNNA3.js} +3 -3
- package/dist/{chunk-YXTZTRRV.js → chunk-ZZV5YBHG.js} +4 -4
- package/dist/cli/commands/auth/login.js +15 -12
- package/dist/cli/commands/auth/login.test.js +17 -14
- package/dist/cli/commands/auth/logout.js +15 -12
- package/dist/cli/commands/auth/logout.test.js +17 -14
- package/dist/cli/commands/cache/clear.js +15 -12
- package/dist/cli/commands/debug/command-flags.js +15 -12
- package/dist/cli/commands/docs/generate.js +15 -12
- package/dist/cli/commands/docs/generate.test.js +16 -13
- package/dist/cli/commands/help.js +15 -12
- package/dist/cli/commands/kitchen-sink/async.js +16 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -14
- package/dist/cli/commands/kitchen-sink/index.js +18 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -16
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -14
- package/dist/cli/commands/kitchen-sink/static.js +16 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -14
- package/dist/cli/commands/notifications/generate.js +16 -13
- package/dist/cli/commands/notifications/list.js +16 -13
- package/dist/cli/commands/search.js +16 -13
- package/dist/cli/commands/upgrade.js +16 -13
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +16 -13
- package/dist/cli/commands/version.test.js +17 -14
- package/dist/cli/services/commands/notifications.js +11 -8
- package/dist/cli/services/commands/search.js +7 -4
- package/dist/cli/services/commands/search.test.js +8 -5
- package/dist/cli/services/commands/version.js +8 -5
- package/dist/cli/services/commands/version.test.js +10 -7
- package/dist/cli/services/kitchen-sink/async.js +7 -4
- package/dist/cli/services/kitchen-sink/prompts.js +7 -4
- package/dist/cli/services/kitchen-sink/static.js +7 -4
- package/dist/cli/services/upgrade.js +8 -5
- package/dist/cli/services/upgrade.test.js +10 -7
- package/dist/{custom-oclif-loader-IB5J422L.js → custom-oclif-loader-YCPEUXTV.js} +17 -10
- package/dist/{del-DIPVIUR3.js → del-E4LJOSMR.js} +6 -6
- package/dist/{error-handler-CU4DBAA4.js → error-handler-RCQ5H3D3.js} +13 -10
- package/dist/hooks/postrun.js +13 -71
- package/dist/hooks/prerun.js +12 -9
- package/dist/{http-proxy-node16-K5X7BUK5.js → http-proxy-node16-VGGP6PLA.js} +5 -5
- package/dist/index.js +2749 -1601
- package/dist/{lib-EMZRCLCJ.js → lib-G7Q5M6VX.js} +4 -3
- package/dist/{local-PYV7PNUD.js → local-7QIKYPL5.js} +7 -4
- package/dist/{magic-string.es-UZAAPNRE.js → magic-string.es-S5HKFBJX.js} +5 -6
- package/dist/{morph-EGK76SED.js → morph-37GC7LQM.js} +16 -20
- package/dist/{node-package-manager-BCGA26RH.js → node-package-manager-OLHLHWTL.js} +8 -5
- package/dist/{npa-LHT53SWR.js → npa-E675GQOI.js} +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-7POT36Q5.js → ui-GVWDQSOR.js} +7 -4
- package/dist/{workerd-UA5IB4IF.js → workerd-PYYL5AYY.js} +17 -16
- package/oclif.manifest.json +95 -127
- package/package.json +8 -8
- package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +0 -1
- package/dist/chunk-IWFYXDPH.js +0 -109
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cj8WCHlM.js → index-C12jKScn.js} +0 -0
|
@@ -3,17 +3,18 @@ import {
|
|
|
3
3
|
require_supports_color
|
|
4
4
|
} from "./chunk-UMUTXITN.js";
|
|
5
5
|
import {
|
|
6
|
+
require_semver
|
|
7
|
+
} from "./chunk-HMDWNGIV.js";
|
|
8
|
+
import {
|
|
9
|
+
require_brace_expansion,
|
|
6
10
|
require_source_map_support
|
|
7
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KUJQ4AB6.js";
|
|
8
12
|
import {
|
|
9
13
|
require_is_wsl
|
|
10
14
|
} from "./chunk-G2ZZKGSV.js";
|
|
11
15
|
import {
|
|
12
16
|
require_indent_string
|
|
13
17
|
} from "./chunk-UV5N2VL7.js";
|
|
14
|
-
import {
|
|
15
|
-
require_balanced_match
|
|
16
|
-
} from "./chunk-XE5EOEBL.js";
|
|
17
18
|
import {
|
|
18
19
|
__commonJS,
|
|
19
20
|
__require,
|
|
@@ -109,1130 +110,6 @@ var require_util = __commonJS({
|
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
|
|
112
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js
|
|
113
|
-
var require_constants = __commonJS({
|
|
114
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module) {
|
|
115
|
-
init_cjs_shims();
|
|
116
|
-
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
117
|
-
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
118
|
-
"major",
|
|
119
|
-
"premajor",
|
|
120
|
-
"minor",
|
|
121
|
-
"preminor",
|
|
122
|
-
"patch",
|
|
123
|
-
"prepatch",
|
|
124
|
-
"prerelease"
|
|
125
|
-
];
|
|
126
|
-
module.exports = {
|
|
127
|
-
MAX_LENGTH: 256,
|
|
128
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
129
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
130
|
-
MAX_SAFE_INTEGER,
|
|
131
|
-
RELEASE_TYPES,
|
|
132
|
-
SEMVER_SPEC_VERSION,
|
|
133
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
134
|
-
FLAG_LOOSE: 2
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
|
|
140
|
-
var require_debug = __commonJS({
|
|
141
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module) {
|
|
142
|
-
init_cjs_shims();
|
|
143
|
-
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
144
|
-
};
|
|
145
|
-
module.exports = debug;
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
|
150
|
-
var require_re = __commonJS({
|
|
151
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module) {
|
|
152
|
-
init_cjs_shims();
|
|
153
|
-
var {
|
|
154
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
155
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
156
|
-
MAX_LENGTH
|
|
157
|
-
} = require_constants(), debug = require_debug();
|
|
158
|
-
exports = module.exports = {};
|
|
159
|
-
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
160
|
-
["\\s", 1],
|
|
161
|
-
["\\d", MAX_LENGTH],
|
|
162
|
-
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
163
|
-
], makeSafeRegex = (value) => {
|
|
164
|
-
for (let [token, max] of safeRegexReplacements)
|
|
165
|
-
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
166
|
-
return value;
|
|
167
|
-
}, createToken = (name, value, isGlobal) => {
|
|
168
|
-
let safe = makeSafeRegex(value), index = R++;
|
|
169
|
-
debug(name, index, value), t[name] = index, src[index] = value, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
170
|
-
};
|
|
171
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
172
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
173
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
174
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
175
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
176
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
177
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
178
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
179
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
180
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
181
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
182
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
183
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
184
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
185
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
186
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
187
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
188
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
189
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
190
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
191
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
192
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
193
|
-
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
194
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
195
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
196
|
-
createToken("COERCERTL", src[t.COERCE], !0);
|
|
197
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
198
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
199
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
200
|
-
exports.tildeTrimReplace = "$1~";
|
|
201
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
202
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
203
|
-
createToken("LONECARET", "(?:\\^)");
|
|
204
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
205
|
-
exports.caretTrimReplace = "$1^";
|
|
206
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
207
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
208
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
209
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
210
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
211
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
212
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
213
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
214
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
215
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
216
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
|
221
|
-
var require_parse_options = __commonJS({
|
|
222
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
223
|
-
init_cjs_shims();
|
|
224
|
-
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
225
|
-
module.exports = parseOptions;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
|
230
|
-
var require_identifiers = __commonJS({
|
|
231
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
232
|
-
init_cjs_shims();
|
|
233
|
-
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
234
|
-
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
235
|
-
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
236
|
-
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
237
|
-
module.exports = {
|
|
238
|
-
compareIdentifiers,
|
|
239
|
-
rcompareIdentifiers
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
|
245
|
-
var require_semver = __commonJS({
|
|
246
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module) {
|
|
247
|
-
init_cjs_shims();
|
|
248
|
-
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
|
249
|
-
constructor(version, options) {
|
|
250
|
-
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
251
|
-
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
252
|
-
return version;
|
|
253
|
-
version = version.version;
|
|
254
|
-
} else if (typeof version != "string")
|
|
255
|
-
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
256
|
-
if (version.length > MAX_LENGTH)
|
|
257
|
-
throw new TypeError(
|
|
258
|
-
`version is longer than ${MAX_LENGTH} characters`
|
|
259
|
-
);
|
|
260
|
-
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
261
|
-
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
262
|
-
if (!m)
|
|
263
|
-
throw new TypeError(`Invalid Version: ${version}`);
|
|
264
|
-
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
265
|
-
throw new TypeError("Invalid major version");
|
|
266
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
267
|
-
throw new TypeError("Invalid minor version");
|
|
268
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
269
|
-
throw new TypeError("Invalid patch version");
|
|
270
|
-
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
271
|
-
if (/^[0-9]+$/.test(id)) {
|
|
272
|
-
let num = +id;
|
|
273
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
274
|
-
return num;
|
|
275
|
-
}
|
|
276
|
-
return id;
|
|
277
|
-
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
278
|
-
}
|
|
279
|
-
format() {
|
|
280
|
-
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
281
|
-
}
|
|
282
|
-
toString() {
|
|
283
|
-
return this.version;
|
|
284
|
-
}
|
|
285
|
-
compare(other) {
|
|
286
|
-
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
287
|
-
if (typeof other == "string" && other === this.version)
|
|
288
|
-
return 0;
|
|
289
|
-
other = new _SemVer(other, this.options);
|
|
290
|
-
}
|
|
291
|
-
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
292
|
-
}
|
|
293
|
-
compareMain(other) {
|
|
294
|
-
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
295
|
-
}
|
|
296
|
-
comparePre(other) {
|
|
297
|
-
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
298
|
-
return -1;
|
|
299
|
-
if (!this.prerelease.length && other.prerelease.length)
|
|
300
|
-
return 1;
|
|
301
|
-
if (!this.prerelease.length && !other.prerelease.length)
|
|
302
|
-
return 0;
|
|
303
|
-
let i = 0;
|
|
304
|
-
do {
|
|
305
|
-
let a = this.prerelease[i], b = other.prerelease[i];
|
|
306
|
-
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
307
|
-
return 0;
|
|
308
|
-
if (b === void 0)
|
|
309
|
-
return 1;
|
|
310
|
-
if (a === void 0)
|
|
311
|
-
return -1;
|
|
312
|
-
if (a === b)
|
|
313
|
-
continue;
|
|
314
|
-
return compareIdentifiers(a, b);
|
|
315
|
-
} while (++i);
|
|
316
|
-
}
|
|
317
|
-
compareBuild(other) {
|
|
318
|
-
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
319
|
-
let i = 0;
|
|
320
|
-
do {
|
|
321
|
-
let a = this.build[i], b = other.build[i];
|
|
322
|
-
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
323
|
-
return 0;
|
|
324
|
-
if (b === void 0)
|
|
325
|
-
return 1;
|
|
326
|
-
if (a === void 0)
|
|
327
|
-
return -1;
|
|
328
|
-
if (a === b)
|
|
329
|
-
continue;
|
|
330
|
-
return compareIdentifiers(a, b);
|
|
331
|
-
} while (++i);
|
|
332
|
-
}
|
|
333
|
-
// preminor will bump the version up to the next minor release, and immediately
|
|
334
|
-
// down to pre-release. premajor and prepatch work the same way.
|
|
335
|
-
inc(release, identifier, identifierBase) {
|
|
336
|
-
switch (release) {
|
|
337
|
-
case "premajor":
|
|
338
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
339
|
-
break;
|
|
340
|
-
case "preminor":
|
|
341
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
342
|
-
break;
|
|
343
|
-
case "prepatch":
|
|
344
|
-
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
345
|
-
break;
|
|
346
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
347
|
-
// prepatch.
|
|
348
|
-
case "prerelease":
|
|
349
|
-
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
350
|
-
break;
|
|
351
|
-
case "major":
|
|
352
|
-
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
353
|
-
break;
|
|
354
|
-
case "minor":
|
|
355
|
-
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
356
|
-
break;
|
|
357
|
-
case "patch":
|
|
358
|
-
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
359
|
-
break;
|
|
360
|
-
// This probably shouldn't be used publicly.
|
|
361
|
-
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
362
|
-
case "pre": {
|
|
363
|
-
let base = Number(identifierBase) ? 1 : 0;
|
|
364
|
-
if (!identifier && identifierBase === !1)
|
|
365
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
366
|
-
if (this.prerelease.length === 0)
|
|
367
|
-
this.prerelease = [base];
|
|
368
|
-
else {
|
|
369
|
-
let i = this.prerelease.length;
|
|
370
|
-
for (; --i >= 0; )
|
|
371
|
-
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
372
|
-
if (i === -1) {
|
|
373
|
-
if (identifier === this.prerelease.join(".") && identifierBase === !1)
|
|
374
|
-
throw new Error("invalid increment argument: identifier already exists");
|
|
375
|
-
this.prerelease.push(base);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (identifier) {
|
|
379
|
-
let prerelease = [identifier, base];
|
|
380
|
-
identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
381
|
-
}
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
default:
|
|
385
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
386
|
-
}
|
|
387
|
-
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
module.exports = SemVer;
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
|
|
394
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
|
395
|
-
var require_parse = __commonJS({
|
|
396
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module) {
|
|
397
|
-
init_cjs_shims();
|
|
398
|
-
var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
399
|
-
if (version instanceof SemVer)
|
|
400
|
-
return version;
|
|
401
|
-
try {
|
|
402
|
-
return new SemVer(version, options);
|
|
403
|
-
} catch (er) {
|
|
404
|
-
if (!throwErrors)
|
|
405
|
-
return null;
|
|
406
|
-
throw er;
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
module.exports = parse;
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
|
|
413
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
|
414
|
-
var require_valid = __commonJS({
|
|
415
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module) {
|
|
416
|
-
init_cjs_shims();
|
|
417
|
-
var parse = require_parse(), valid = (version, options) => {
|
|
418
|
-
let v = parse(version, options);
|
|
419
|
-
return v ? v.version : null;
|
|
420
|
-
};
|
|
421
|
-
module.exports = valid;
|
|
422
|
-
}
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
|
426
|
-
var require_clean = __commonJS({
|
|
427
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module) {
|
|
428
|
-
init_cjs_shims();
|
|
429
|
-
var parse = require_parse(), clean = (version, options) => {
|
|
430
|
-
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
431
|
-
return s ? s.version : null;
|
|
432
|
-
};
|
|
433
|
-
module.exports = clean;
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
|
438
|
-
var require_inc = __commonJS({
|
|
439
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports, module) {
|
|
440
|
-
init_cjs_shims();
|
|
441
|
-
var SemVer = require_semver(), inc = (version, release, options, identifier, identifierBase) => {
|
|
442
|
-
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
|
443
|
-
try {
|
|
444
|
-
return new SemVer(
|
|
445
|
-
version instanceof SemVer ? version.version : version,
|
|
446
|
-
options
|
|
447
|
-
).inc(release, identifier, identifierBase).version;
|
|
448
|
-
} catch {
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
module.exports = inc;
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
|
-
|
|
456
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
|
457
|
-
var require_diff = __commonJS({
|
|
458
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports, module) {
|
|
459
|
-
init_cjs_shims();
|
|
460
|
-
var parse = require_parse(), diff = (version1, version2) => {
|
|
461
|
-
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
462
|
-
if (comparison === 0)
|
|
463
|
-
return null;
|
|
464
|
-
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
465
|
-
if (!!lowVersion.prerelease.length && !highHasPre)
|
|
466
|
-
return !lowVersion.patch && !lowVersion.minor ? "major" : highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major";
|
|
467
|
-
let prefix = highHasPre ? "pre" : "";
|
|
468
|
-
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
469
|
-
};
|
|
470
|
-
module.exports = diff;
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
|
475
|
-
var require_major = __commonJS({
|
|
476
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports, module) {
|
|
477
|
-
init_cjs_shims();
|
|
478
|
-
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
|
479
|
-
module.exports = major;
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
|
484
|
-
var require_minor = __commonJS({
|
|
485
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports, module) {
|
|
486
|
-
init_cjs_shims();
|
|
487
|
-
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
488
|
-
module.exports = minor;
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
|
|
492
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
|
493
|
-
var require_patch = __commonJS({
|
|
494
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports, module) {
|
|
495
|
-
init_cjs_shims();
|
|
496
|
-
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
497
|
-
module.exports = patch;
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
|
502
|
-
var require_prerelease = __commonJS({
|
|
503
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
504
|
-
init_cjs_shims();
|
|
505
|
-
var parse = require_parse(), prerelease = (version, options) => {
|
|
506
|
-
let parsed = parse(version, options);
|
|
507
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
508
|
-
};
|
|
509
|
-
module.exports = prerelease;
|
|
510
|
-
}
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
|
514
|
-
var require_compare = __commonJS({
|
|
515
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports, module) {
|
|
516
|
-
init_cjs_shims();
|
|
517
|
-
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
518
|
-
module.exports = compare;
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
|
|
522
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
|
523
|
-
var require_rcompare = __commonJS({
|
|
524
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
525
|
-
init_cjs_shims();
|
|
526
|
-
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
527
|
-
module.exports = rcompare;
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
|
|
531
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
|
532
|
-
var require_compare_loose = __commonJS({
|
|
533
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
534
|
-
init_cjs_shims();
|
|
535
|
-
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
536
|
-
module.exports = compareLoose;
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
|
541
|
-
var require_compare_build = __commonJS({
|
|
542
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
543
|
-
init_cjs_shims();
|
|
544
|
-
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
|
545
|
-
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
546
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
547
|
-
};
|
|
548
|
-
module.exports = compareBuild;
|
|
549
|
-
}
|
|
550
|
-
});
|
|
551
|
-
|
|
552
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
|
553
|
-
var require_sort = __commonJS({
|
|
554
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports, module) {
|
|
555
|
-
init_cjs_shims();
|
|
556
|
-
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
557
|
-
module.exports = sort;
|
|
558
|
-
}
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
|
562
|
-
var require_rsort = __commonJS({
|
|
563
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
564
|
-
init_cjs_shims();
|
|
565
|
-
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
566
|
-
module.exports = rsort;
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
|
571
|
-
var require_gt = __commonJS({
|
|
572
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports, module) {
|
|
573
|
-
init_cjs_shims();
|
|
574
|
-
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
575
|
-
module.exports = gt;
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
|
|
579
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
|
580
|
-
var require_lt = __commonJS({
|
|
581
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports, module) {
|
|
582
|
-
init_cjs_shims();
|
|
583
|
-
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
584
|
-
module.exports = lt;
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
|
|
588
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
|
589
|
-
var require_eq = __commonJS({
|
|
590
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports, module) {
|
|
591
|
-
init_cjs_shims();
|
|
592
|
-
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
593
|
-
module.exports = eq;
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
|
|
597
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
|
598
|
-
var require_neq = __commonJS({
|
|
599
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports, module) {
|
|
600
|
-
init_cjs_shims();
|
|
601
|
-
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
602
|
-
module.exports = neq;
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
|
607
|
-
var require_gte = __commonJS({
|
|
608
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports, module) {
|
|
609
|
-
init_cjs_shims();
|
|
610
|
-
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
611
|
-
module.exports = gte;
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
|
|
615
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
|
616
|
-
var require_lte = __commonJS({
|
|
617
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports, module) {
|
|
618
|
-
init_cjs_shims();
|
|
619
|
-
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
620
|
-
module.exports = lte;
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
|
|
624
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
|
625
|
-
var require_cmp = __commonJS({
|
|
626
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
627
|
-
init_cjs_shims();
|
|
628
|
-
var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
629
|
-
switch (op) {
|
|
630
|
-
case "===":
|
|
631
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
632
|
-
case "!==":
|
|
633
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
634
|
-
case "":
|
|
635
|
-
case "=":
|
|
636
|
-
case "==":
|
|
637
|
-
return eq(a, b, loose);
|
|
638
|
-
case "!=":
|
|
639
|
-
return neq(a, b, loose);
|
|
640
|
-
case ">":
|
|
641
|
-
return gt(a, b, loose);
|
|
642
|
-
case ">=":
|
|
643
|
-
return gte(a, b, loose);
|
|
644
|
-
case "<":
|
|
645
|
-
return lt(a, b, loose);
|
|
646
|
-
case "<=":
|
|
647
|
-
return lte(a, b, loose);
|
|
648
|
-
default:
|
|
649
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
module.exports = cmp;
|
|
653
|
-
}
|
|
654
|
-
});
|
|
655
|
-
|
|
656
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
|
657
|
-
var require_coerce = __commonJS({
|
|
658
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
659
|
-
init_cjs_shims();
|
|
660
|
-
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
661
|
-
if (version instanceof SemVer)
|
|
662
|
-
return version;
|
|
663
|
-
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
664
|
-
return null;
|
|
665
|
-
options = options || {};
|
|
666
|
-
let match = null;
|
|
667
|
-
if (!options.rtl)
|
|
668
|
-
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
669
|
-
else {
|
|
670
|
-
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
671
|
-
for (; (next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length); )
|
|
672
|
-
(!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
673
|
-
coerceRtlRegex.lastIndex = -1;
|
|
674
|
-
}
|
|
675
|
-
if (match === null)
|
|
676
|
-
return null;
|
|
677
|
-
let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
678
|
-
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
679
|
-
};
|
|
680
|
-
module.exports = coerce;
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
|
|
684
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
|
685
|
-
var require_lrucache = __commonJS({
|
|
686
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
687
|
-
init_cjs_shims();
|
|
688
|
-
var LRUCache = class {
|
|
689
|
-
constructor() {
|
|
690
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
691
|
-
}
|
|
692
|
-
get(key) {
|
|
693
|
-
let value = this.map.get(key);
|
|
694
|
-
if (value !== void 0)
|
|
695
|
-
return this.map.delete(key), this.map.set(key, value), value;
|
|
696
|
-
}
|
|
697
|
-
delete(key) {
|
|
698
|
-
return this.map.delete(key);
|
|
699
|
-
}
|
|
700
|
-
set(key, value) {
|
|
701
|
-
if (!this.delete(key) && value !== void 0) {
|
|
702
|
-
if (this.map.size >= this.max) {
|
|
703
|
-
let firstKey = this.map.keys().next().value;
|
|
704
|
-
this.delete(firstKey);
|
|
705
|
-
}
|
|
706
|
-
this.map.set(key, value);
|
|
707
|
-
}
|
|
708
|
-
return this;
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
module.exports = LRUCache;
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
|
716
|
-
var require_range = __commonJS({
|
|
717
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports, module) {
|
|
718
|
-
init_cjs_shims();
|
|
719
|
-
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
720
|
-
constructor(range, options) {
|
|
721
|
-
if (options = parseOptions(options), range instanceof _Range)
|
|
722
|
-
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
723
|
-
if (range instanceof Comparator)
|
|
724
|
-
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
725
|
-
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length)
|
|
726
|
-
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
727
|
-
if (this.set.length > 1) {
|
|
728
|
-
let first = this.set[0];
|
|
729
|
-
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
730
|
-
this.set = [first];
|
|
731
|
-
else if (this.set.length > 1) {
|
|
732
|
-
for (let c of this.set)
|
|
733
|
-
if (c.length === 1 && isAny(c[0])) {
|
|
734
|
-
this.set = [c];
|
|
735
|
-
break;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
this.formatted = void 0;
|
|
740
|
-
}
|
|
741
|
-
get range() {
|
|
742
|
-
if (this.formatted === void 0) {
|
|
743
|
-
this.formatted = "";
|
|
744
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
745
|
-
i > 0 && (this.formatted += "||");
|
|
746
|
-
let comps = this.set[i];
|
|
747
|
-
for (let k = 0; k < comps.length; k++)
|
|
748
|
-
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return this.formatted;
|
|
752
|
-
}
|
|
753
|
-
format() {
|
|
754
|
-
return this.range;
|
|
755
|
-
}
|
|
756
|
-
toString() {
|
|
757
|
-
return this.range;
|
|
758
|
-
}
|
|
759
|
-
parseRange(range) {
|
|
760
|
-
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
|
|
761
|
-
if (cached)
|
|
762
|
-
return cached;
|
|
763
|
-
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
764
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
|
|
765
|
-
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
766
|
-
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
767
|
-
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
768
|
-
for (let comp of comparators) {
|
|
769
|
-
if (isNullSet(comp))
|
|
770
|
-
return [comp];
|
|
771
|
-
rangeMap.set(comp.value, comp);
|
|
772
|
-
}
|
|
773
|
-
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
774
|
-
let result = [...rangeMap.values()];
|
|
775
|
-
return cache.set(memoKey, result), result;
|
|
776
|
-
}
|
|
777
|
-
intersects(range, options) {
|
|
778
|
-
if (!(range instanceof _Range))
|
|
779
|
-
throw new TypeError("a Range is required");
|
|
780
|
-
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
781
|
-
}
|
|
782
|
-
// if ANY of the sets match ALL of its comparators, then pass
|
|
783
|
-
test(version) {
|
|
784
|
-
if (!version)
|
|
785
|
-
return !1;
|
|
786
|
-
if (typeof version == "string")
|
|
787
|
-
try {
|
|
788
|
-
version = new SemVer(version, this.options);
|
|
789
|
-
} catch {
|
|
790
|
-
return !1;
|
|
791
|
-
}
|
|
792
|
-
for (let i = 0; i < this.set.length; i++)
|
|
793
|
-
if (testSet(this.set[i], version, this.options))
|
|
794
|
-
return !0;
|
|
795
|
-
return !1;
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
module.exports = Range;
|
|
799
|
-
var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
|
|
800
|
-
safeRe: re,
|
|
801
|
-
t,
|
|
802
|
-
comparatorTrimReplace,
|
|
803
|
-
tildeTrimReplace,
|
|
804
|
-
caretTrimReplace
|
|
805
|
-
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
806
|
-
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
807
|
-
for (; result && remainingComparators.length; )
|
|
808
|
-
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
809
|
-
return result;
|
|
810
|
-
}, parseComparator = (comp, options) => (debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
811
|
-
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
812
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
813
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
814
|
-
let ret;
|
|
815
|
-
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
|
|
816
|
-
});
|
|
817
|
-
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
818
|
-
debug("caret", comp, options);
|
|
819
|
-
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
820
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
821
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
822
|
-
let ret;
|
|
823
|
-
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
|
|
824
|
-
});
|
|
825
|
-
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
826
|
-
comp = comp.trim();
|
|
827
|
-
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
828
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
829
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
830
|
-
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
831
|
-
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
|
|
832
|
-
});
|
|
833
|
-
}, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version, options) => {
|
|
834
|
-
for (let i = 0; i < set.length; i++)
|
|
835
|
-
if (!set[i].test(version))
|
|
836
|
-
return !1;
|
|
837
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
838
|
-
for (let i = 0; i < set.length; i++)
|
|
839
|
-
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
840
|
-
let allowed = set[i].semver;
|
|
841
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
842
|
-
return !0;
|
|
843
|
-
}
|
|
844
|
-
return !1;
|
|
845
|
-
}
|
|
846
|
-
return !0;
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
|
|
851
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
|
852
|
-
var require_comparator = __commonJS({
|
|
853
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
854
|
-
init_cjs_shims();
|
|
855
|
-
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
856
|
-
static get ANY() {
|
|
857
|
-
return ANY;
|
|
858
|
-
}
|
|
859
|
-
constructor(comp, options) {
|
|
860
|
-
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
861
|
-
if (comp.loose === !!options.loose)
|
|
862
|
-
return comp;
|
|
863
|
-
comp = comp.value;
|
|
864
|
-
}
|
|
865
|
-
comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
|
|
866
|
-
}
|
|
867
|
-
parse(comp) {
|
|
868
|
-
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
869
|
-
if (!m)
|
|
870
|
-
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
871
|
-
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
|
872
|
-
}
|
|
873
|
-
toString() {
|
|
874
|
-
return this.value;
|
|
875
|
-
}
|
|
876
|
-
test(version) {
|
|
877
|
-
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
878
|
-
return !0;
|
|
879
|
-
if (typeof version == "string")
|
|
880
|
-
try {
|
|
881
|
-
version = new SemVer(version, this.options);
|
|
882
|
-
} catch {
|
|
883
|
-
return !1;
|
|
884
|
-
}
|
|
885
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
886
|
-
}
|
|
887
|
-
intersects(comp, options) {
|
|
888
|
-
if (!(comp instanceof _Comparator))
|
|
889
|
-
throw new TypeError("a Comparator is required");
|
|
890
|
-
return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
module.exports = Comparator;
|
|
894
|
-
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
|
|
898
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
|
899
|
-
var require_satisfies = __commonJS({
|
|
900
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
901
|
-
init_cjs_shims();
|
|
902
|
-
var Range = require_range(), satisfies = (version, range, options) => {
|
|
903
|
-
try {
|
|
904
|
-
range = new Range(range, options);
|
|
905
|
-
} catch {
|
|
906
|
-
return !1;
|
|
907
|
-
}
|
|
908
|
-
return range.test(version);
|
|
909
|
-
};
|
|
910
|
-
module.exports = satisfies;
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
|
915
|
-
var require_to_comparators = __commonJS({
|
|
916
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
917
|
-
init_cjs_shims();
|
|
918
|
-
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
919
|
-
module.exports = toComparators;
|
|
920
|
-
}
|
|
921
|
-
});
|
|
922
|
-
|
|
923
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
|
924
|
-
var require_max_satisfying = __commonJS({
|
|
925
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
926
|
-
init_cjs_shims();
|
|
927
|
-
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
928
|
-
let max = null, maxSV = null, rangeObj = null;
|
|
929
|
-
try {
|
|
930
|
-
rangeObj = new Range(range, options);
|
|
931
|
-
} catch {
|
|
932
|
-
return null;
|
|
933
|
-
}
|
|
934
|
-
return versions.forEach((v) => {
|
|
935
|
-
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
936
|
-
}), max;
|
|
937
|
-
};
|
|
938
|
-
module.exports = maxSatisfying;
|
|
939
|
-
}
|
|
940
|
-
});
|
|
941
|
-
|
|
942
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
|
943
|
-
var require_min_satisfying = __commonJS({
|
|
944
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
945
|
-
init_cjs_shims();
|
|
946
|
-
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
947
|
-
let min = null, minSV = null, rangeObj = null;
|
|
948
|
-
try {
|
|
949
|
-
rangeObj = new Range(range, options);
|
|
950
|
-
} catch {
|
|
951
|
-
return null;
|
|
952
|
-
}
|
|
953
|
-
return versions.forEach((v) => {
|
|
954
|
-
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
955
|
-
}), min;
|
|
956
|
-
};
|
|
957
|
-
module.exports = minSatisfying;
|
|
958
|
-
}
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
|
962
|
-
var require_min_version = __commonJS({
|
|
963
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
964
|
-
init_cjs_shims();
|
|
965
|
-
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
966
|
-
range = new Range(range, loose);
|
|
967
|
-
let minver = new SemVer("0.0.0");
|
|
968
|
-
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
969
|
-
return minver;
|
|
970
|
-
minver = null;
|
|
971
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
972
|
-
let comparators = range.set[i], setMin = null;
|
|
973
|
-
comparators.forEach((comparator) => {
|
|
974
|
-
let compver = new SemVer(comparator.semver.version);
|
|
975
|
-
switch (comparator.operator) {
|
|
976
|
-
case ">":
|
|
977
|
-
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
978
|
-
/* fallthrough */
|
|
979
|
-
case "":
|
|
980
|
-
case ">=":
|
|
981
|
-
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
982
|
-
break;
|
|
983
|
-
case "<":
|
|
984
|
-
case "<=":
|
|
985
|
-
break;
|
|
986
|
-
/* istanbul ignore next */
|
|
987
|
-
default:
|
|
988
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
989
|
-
}
|
|
990
|
-
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
991
|
-
}
|
|
992
|
-
return minver && range.test(minver) ? minver : null;
|
|
993
|
-
};
|
|
994
|
-
module.exports = minVersion;
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
|
999
|
-
var require_valid2 = __commonJS({
|
|
1000
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
1001
|
-
init_cjs_shims();
|
|
1002
|
-
var Range = require_range(), validRange = (range, options) => {
|
|
1003
|
-
try {
|
|
1004
|
-
return new Range(range, options).range || "*";
|
|
1005
|
-
} catch {
|
|
1006
|
-
return null;
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
module.exports = validRange;
|
|
1010
|
-
}
|
|
1011
|
-
});
|
|
1012
|
-
|
|
1013
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
|
1014
|
-
var require_outside = __commonJS({
|
|
1015
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
1016
|
-
init_cjs_shims();
|
|
1017
|
-
var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
|
|
1018
|
-
version = new SemVer(version, options), range = new Range(range, options);
|
|
1019
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1020
|
-
switch (hilo) {
|
|
1021
|
-
case ">":
|
|
1022
|
-
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
1023
|
-
break;
|
|
1024
|
-
case "<":
|
|
1025
|
-
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
1026
|
-
break;
|
|
1027
|
-
default:
|
|
1028
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1029
|
-
}
|
|
1030
|
-
if (satisfies(version, range, options))
|
|
1031
|
-
return !1;
|
|
1032
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
1033
|
-
let comparators = range.set[i], high = null, low = null;
|
|
1034
|
-
if (comparators.forEach((comparator) => {
|
|
1035
|
-
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
1036
|
-
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
1037
|
-
return !1;
|
|
1038
|
-
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
1039
|
-
return !1;
|
|
1040
|
-
}
|
|
1041
|
-
return !0;
|
|
1042
|
-
};
|
|
1043
|
-
module.exports = outside;
|
|
1044
|
-
}
|
|
1045
|
-
});
|
|
1046
|
-
|
|
1047
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
|
1048
|
-
var require_gtr = __commonJS({
|
|
1049
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
1050
|
-
init_cjs_shims();
|
|
1051
|
-
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1052
|
-
module.exports = gtr;
|
|
1053
|
-
}
|
|
1054
|
-
});
|
|
1055
|
-
|
|
1056
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
|
1057
|
-
var require_ltr = __commonJS({
|
|
1058
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
1059
|
-
init_cjs_shims();
|
|
1060
|
-
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1061
|
-
module.exports = ltr;
|
|
1062
|
-
}
|
|
1063
|
-
});
|
|
1064
|
-
|
|
1065
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
|
1066
|
-
var require_intersects = __commonJS({
|
|
1067
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
1068
|
-
init_cjs_shims();
|
|
1069
|
-
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
1070
|
-
module.exports = intersects;
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
|
|
1074
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
|
1075
|
-
var require_simplify = __commonJS({
|
|
1076
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
1077
|
-
init_cjs_shims();
|
|
1078
|
-
var satisfies = require_satisfies(), compare = require_compare();
|
|
1079
|
-
module.exports = (versions, range, options) => {
|
|
1080
|
-
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
1081
|
-
for (let version of v)
|
|
1082
|
-
satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
1083
|
-
first && set.push([first, null]);
|
|
1084
|
-
let ranges = [];
|
|
1085
|
-
for (let [min, max] of set)
|
|
1086
|
-
min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
|
1087
|
-
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
1088
|
-
return simplified.length < original.length ? simplified : range;
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
});
|
|
1092
|
-
|
|
1093
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
|
1094
|
-
var require_subset = __commonJS({
|
|
1095
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
1096
|
-
init_cjs_shims();
|
|
1097
|
-
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
1098
|
-
if (sub === dom)
|
|
1099
|
-
return !0;
|
|
1100
|
-
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
1101
|
-
let sawNonNull = !1;
|
|
1102
|
-
OUTER: for (let simpleSub of sub.set) {
|
|
1103
|
-
for (let simpleDom of dom.set) {
|
|
1104
|
-
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1105
|
-
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
1106
|
-
continue OUTER;
|
|
1107
|
-
}
|
|
1108
|
-
if (sawNonNull)
|
|
1109
|
-
return !1;
|
|
1110
|
-
}
|
|
1111
|
-
return !0;
|
|
1112
|
-
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
1113
|
-
if (sub === dom)
|
|
1114
|
-
return !0;
|
|
1115
|
-
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
1116
|
-
if (dom.length === 1 && dom[0].semver === ANY)
|
|
1117
|
-
return !0;
|
|
1118
|
-
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
1119
|
-
}
|
|
1120
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
1121
|
-
if (options.includePrerelease)
|
|
1122
|
-
return !0;
|
|
1123
|
-
dom = minimumVersion;
|
|
1124
|
-
}
|
|
1125
|
-
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
1126
|
-
for (let c of sub)
|
|
1127
|
-
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
1128
|
-
if (eqSet.size > 1)
|
|
1129
|
-
return null;
|
|
1130
|
-
let gtltComp;
|
|
1131
|
-
if (gt && lt) {
|
|
1132
|
-
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
1133
|
-
return null;
|
|
1134
|
-
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
1135
|
-
return null;
|
|
1136
|
-
}
|
|
1137
|
-
for (let eq of eqSet) {
|
|
1138
|
-
if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options))
|
|
1139
|
-
return null;
|
|
1140
|
-
for (let c of dom)
|
|
1141
|
-
if (!satisfies(eq, String(c), options))
|
|
1142
|
-
return !1;
|
|
1143
|
-
return !0;
|
|
1144
|
-
}
|
|
1145
|
-
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
|
|
1146
|
-
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
1147
|
-
for (let c of dom) {
|
|
1148
|
-
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
1149
|
-
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
|
|
1150
|
-
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
1151
|
-
return !1;
|
|
1152
|
-
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
|
|
1153
|
-
return !1;
|
|
1154
|
-
}
|
|
1155
|
-
if (lt) {
|
|
1156
|
-
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
|
|
1157
|
-
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
1158
|
-
return !1;
|
|
1159
|
-
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
|
|
1160
|
-
return !1;
|
|
1161
|
-
}
|
|
1162
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
1163
|
-
return !1;
|
|
1164
|
-
}
|
|
1165
|
-
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
1166
|
-
}, higherGT = (a, b, options) => {
|
|
1167
|
-
if (!a)
|
|
1168
|
-
return b;
|
|
1169
|
-
let comp = compare(a.semver, b.semver, options);
|
|
1170
|
-
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1171
|
-
}, lowerLT = (a, b, options) => {
|
|
1172
|
-
if (!a)
|
|
1173
|
-
return b;
|
|
1174
|
-
let comp = compare(a.semver, b.semver, options);
|
|
1175
|
-
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1176
|
-
};
|
|
1177
|
-
module.exports = subset;
|
|
1178
|
-
}
|
|
1179
|
-
});
|
|
1180
|
-
|
|
1181
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
|
1182
|
-
var require_semver2 = __commonJS({
|
|
1183
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports, module) {
|
|
1184
|
-
init_cjs_shims();
|
|
1185
|
-
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
1186
|
-
module.exports = {
|
|
1187
|
-
parse,
|
|
1188
|
-
valid,
|
|
1189
|
-
clean,
|
|
1190
|
-
inc,
|
|
1191
|
-
diff,
|
|
1192
|
-
major,
|
|
1193
|
-
minor,
|
|
1194
|
-
patch,
|
|
1195
|
-
prerelease,
|
|
1196
|
-
compare,
|
|
1197
|
-
rcompare,
|
|
1198
|
-
compareLoose,
|
|
1199
|
-
compareBuild,
|
|
1200
|
-
sort,
|
|
1201
|
-
rsort,
|
|
1202
|
-
gt,
|
|
1203
|
-
lt,
|
|
1204
|
-
eq,
|
|
1205
|
-
neq,
|
|
1206
|
-
gte,
|
|
1207
|
-
lte,
|
|
1208
|
-
cmp,
|
|
1209
|
-
coerce,
|
|
1210
|
-
Comparator,
|
|
1211
|
-
Range,
|
|
1212
|
-
satisfies,
|
|
1213
|
-
toComparators,
|
|
1214
|
-
maxSatisfying,
|
|
1215
|
-
minSatisfying,
|
|
1216
|
-
minVersion,
|
|
1217
|
-
validRange,
|
|
1218
|
-
outside,
|
|
1219
|
-
gtr,
|
|
1220
|
-
ltr,
|
|
1221
|
-
intersects,
|
|
1222
|
-
simplifyRange,
|
|
1223
|
-
subset,
|
|
1224
|
-
SemVer,
|
|
1225
|
-
re: internalRe.re,
|
|
1226
|
-
src: internalRe.src,
|
|
1227
|
-
tokens: internalRe.t,
|
|
1228
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
1229
|
-
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
1230
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1231
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1234
|
-
});
|
|
1235
|
-
|
|
1236
113
|
// ../../node_modules/.pnpm/@oclif+core@4.5.3/node_modules/@oclif/core/lib/util/fs.js
|
|
1237
114
|
var require_fs = __commonJS({
|
|
1238
115
|
"../../node_modules/.pnpm/@oclif+core@4.5.3/node_modules/@oclif/core/lib/util/fs.js"(exports) {
|
|
@@ -165605,103 +164482,6 @@ var require_os = __commonJS({
|
|
|
165605
164482
|
}
|
|
165606
164483
|
});
|
|
165607
164484
|
|
|
165608
|
-
// ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
|
|
165609
|
-
var require_brace_expansion = __commonJS({
|
|
165610
|
-
"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
|
|
165611
|
-
init_cjs_shims();
|
|
165612
|
-
var balanced = require_balanced_match();
|
|
165613
|
-
module.exports = expandTop;
|
|
165614
|
-
var escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
165615
|
-
function numeric(str) {
|
|
165616
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
165617
|
-
}
|
|
165618
|
-
function escapeBraces(str) {
|
|
165619
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
165620
|
-
}
|
|
165621
|
-
function unescapeBraces(str) {
|
|
165622
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
165623
|
-
}
|
|
165624
|
-
function parseCommaParts(str) {
|
|
165625
|
-
if (!str)
|
|
165626
|
-
return [""];
|
|
165627
|
-
var parts = [], m = balanced("{", "}", str);
|
|
165628
|
-
if (!m)
|
|
165629
|
-
return str.split(",");
|
|
165630
|
-
var pre = m.pre, body = m.body, post = m.post, p = pre.split(",");
|
|
165631
|
-
p[p.length - 1] += "{" + body + "}";
|
|
165632
|
-
var postParts = parseCommaParts(post);
|
|
165633
|
-
return post.length && (p[p.length - 1] += postParts.shift(), p.push.apply(p, postParts)), parts.push.apply(parts, p), parts;
|
|
165634
|
-
}
|
|
165635
|
-
function expandTop(str) {
|
|
165636
|
-
return str ? (str.substr(0, 2) === "{}" && (str = "\\{\\}" + str.substr(2)), expand(escapeBraces(str), !0).map(unescapeBraces)) : [];
|
|
165637
|
-
}
|
|
165638
|
-
function embrace(str) {
|
|
165639
|
-
return "{" + str + "}";
|
|
165640
|
-
}
|
|
165641
|
-
function isPadded(el) {
|
|
165642
|
-
return /^-?0\d/.test(el);
|
|
165643
|
-
}
|
|
165644
|
-
function lte(i, y) {
|
|
165645
|
-
return i <= y;
|
|
165646
|
-
}
|
|
165647
|
-
function gte(i, y) {
|
|
165648
|
-
return i >= y;
|
|
165649
|
-
}
|
|
165650
|
-
function expand(str, isTop) {
|
|
165651
|
-
var expansions = [], m = balanced("{", "}", str);
|
|
165652
|
-
if (!m) return [str];
|
|
165653
|
-
var pre = m.pre, post = m.post.length ? expand(m.post, !1) : [""];
|
|
165654
|
-
if (/\$$/.test(m.pre))
|
|
165655
|
-
for (var k = 0; k < post.length; k++) {
|
|
165656
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
165657
|
-
expansions.push(expansion);
|
|
165658
|
-
}
|
|
165659
|
-
else {
|
|
165660
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
|
|
165661
|
-
if (!isSequence && !isOptions)
|
|
165662
|
-
return m.post.match(/,.*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand(str)) : [str];
|
|
165663
|
-
var n;
|
|
165664
|
-
if (isSequence)
|
|
165665
|
-
n = m.body.split(/\.\./);
|
|
165666
|
-
else if (n = parseCommaParts(m.body), n.length === 1 && (n = expand(n[0], !1).map(embrace), n.length === 1))
|
|
165667
|
-
return post.map(function(p) {
|
|
165668
|
-
return m.pre + n[0] + p;
|
|
165669
|
-
});
|
|
165670
|
-
var N;
|
|
165671
|
-
if (isSequence) {
|
|
165672
|
-
var x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1, test = lte, reverse = y < x;
|
|
165673
|
-
reverse && (incr *= -1, test = gte);
|
|
165674
|
-
var pad = n.some(isPadded);
|
|
165675
|
-
N = [];
|
|
165676
|
-
for (var i = x; test(i, y); i += incr) {
|
|
165677
|
-
var c;
|
|
165678
|
-
if (isAlphaSequence)
|
|
165679
|
-
c = String.fromCharCode(i), c === "\\" && (c = "");
|
|
165680
|
-
else if (c = String(i), pad) {
|
|
165681
|
-
var need = width - c.length;
|
|
165682
|
-
if (need > 0) {
|
|
165683
|
-
var z = new Array(need + 1).join("0");
|
|
165684
|
-
i < 0 ? c = "-" + z + c.slice(1) : c = z + c;
|
|
165685
|
-
}
|
|
165686
|
-
}
|
|
165687
|
-
N.push(c);
|
|
165688
|
-
}
|
|
165689
|
-
} else {
|
|
165690
|
-
N = [];
|
|
165691
|
-
for (var j = 0; j < n.length; j++)
|
|
165692
|
-
N.push.apply(N, expand(n[j], !1));
|
|
165693
|
-
}
|
|
165694
|
-
for (var j = 0; j < N.length; j++)
|
|
165695
|
-
for (var k = 0; k < post.length; k++) {
|
|
165696
|
-
var expansion = pre + N[j] + post[k];
|
|
165697
|
-
(!isTop || isSequence || expansion) && expansions.push(expansion);
|
|
165698
|
-
}
|
|
165699
|
-
}
|
|
165700
|
-
return expansions;
|
|
165701
|
-
}
|
|
165702
|
-
}
|
|
165703
|
-
});
|
|
165704
|
-
|
|
165705
164485
|
// ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
165706
164486
|
var require_assert_valid_pattern = __commonJS({
|
|
165707
164487
|
"../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports) {
|
|
@@ -166622,7 +165402,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
166622
165402
|
});
|
|
166623
165403
|
|
|
166624
165404
|
// ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
|
|
166625
|
-
var
|
|
165405
|
+
var require_constants = __commonJS({
|
|
166626
165406
|
"../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
166627
165407
|
"use strict";
|
|
166628
165408
|
init_cjs_shims();
|
|
@@ -166811,7 +165591,7 @@ var require_utils2 = __commonJS({
|
|
|
166811
165591
|
REGEX_REMOVE_BACKSLASH,
|
|
166812
165592
|
REGEX_SPECIAL_CHARS,
|
|
166813
165593
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
166814
|
-
} =
|
|
165594
|
+
} = require_constants();
|
|
166815
165595
|
exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
|
|
166816
165596
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
166817
165597
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
@@ -166880,7 +165660,7 @@ var require_scan = __commonJS({
|
|
|
166880
165660
|
/* ) */
|
|
166881
165661
|
CHAR_RIGHT_SQUARE_BRACKET
|
|
166882
165662
|
/* ] */
|
|
166883
|
-
} =
|
|
165663
|
+
} = require_constants(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
|
|
166884
165664
|
token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
|
|
166885
165665
|
}, scan = (input, options) => {
|
|
166886
165666
|
let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
|
|
@@ -167032,11 +165812,11 @@ var require_scan = __commonJS({
|
|
|
167032
165812
|
});
|
|
167033
165813
|
|
|
167034
165814
|
// ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
|
|
167035
|
-
var
|
|
165815
|
+
var require_parse = __commonJS({
|
|
167036
165816
|
"../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
167037
165817
|
"use strict";
|
|
167038
165818
|
init_cjs_shims();
|
|
167039
|
-
var constants =
|
|
165819
|
+
var constants = require_constants(), utils = require_utils2(), {
|
|
167040
165820
|
MAX_LENGTH,
|
|
167041
165821
|
POSIX_REGEX_SOURCE,
|
|
167042
165822
|
REGEX_NON_SPECIAL_CHARS,
|
|
@@ -167480,7 +166260,7 @@ var require_picomatch = __commonJS({
|
|
|
167480
166260
|
"../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
167481
166261
|
"use strict";
|
|
167482
166262
|
init_cjs_shims();
|
|
167483
|
-
var scan = require_scan(), parse =
|
|
166263
|
+
var scan = require_scan(), parse = require_parse(), utils = require_utils2(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
|
|
167484
166264
|
if (Array.isArray(glob)) {
|
|
167485
166265
|
let fns = glob.map((input) => picomatch(input, options, returnState));
|
|
167486
166266
|
return (str) => {
|
|
@@ -169942,7 +168722,7 @@ Alternatively, you can use "--" to signify the end of the flags and the beginnin
|
|
|
169942
168722
|
});
|
|
169943
168723
|
|
|
169944
168724
|
// ../../node_modules/.pnpm/@oclif+core@4.5.3/node_modules/@oclif/core/lib/parser/parse.js
|
|
169945
|
-
var
|
|
168725
|
+
var require_parse2 = __commonJS({
|
|
169946
168726
|
"../../node_modules/.pnpm/@oclif+core@4.5.3/node_modules/@oclif/core/lib/parser/parse.js"(exports) {
|
|
169947
168727
|
"use strict";
|
|
169948
168728
|
init_cjs_shims();
|
|
@@ -170418,7 +169198,7 @@ var require_parser = __commonJS({
|
|
|
170418
169198
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
170419
169199
|
exports.validate = exports.flagUsages = void 0;
|
|
170420
169200
|
exports.parse = parse;
|
|
170421
|
-
var parse_1 =
|
|
169201
|
+
var parse_1 = require_parse2(), validate_1 = require_validate(), help_1 = require_help2();
|
|
170422
169202
|
Object.defineProperty(exports, "flagUsages", { enumerable: !0, get: function() {
|
|
170423
169203
|
return help_1.flagUsages;
|
|
170424
169204
|
} });
|
|
@@ -170871,7 +169651,7 @@ var require_lib = __commonJS({
|
|
|
170871
169651
|
function checkNodeVersion() {
|
|
170872
169652
|
if (!(process.env.OCLIF_DISABLE_ENGINE_WARNING && (0, util_1.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))
|
|
170873
169653
|
try {
|
|
170874
|
-
let path = __require("node:path"), semver =
|
|
169654
|
+
let path = __require("node:path"), semver = require_semver(), root = path.join(__dirname, ".."), pjson = __require(path.join(root, "package.json"));
|
|
170875
169655
|
semver.satisfies(process.versions.node, pjson.engines.node) || process.emitWarning(`Node version must be ${pjson.engines.node} to use this CLI. Current node version: ${process.versions.node}`);
|
|
170876
169656
|
} catch {
|
|
170877
169657
|
}
|
|
@@ -170954,7 +169734,6 @@ export {
|
|
|
170954
169734
|
require_color_name,
|
|
170955
169735
|
require_color_convert,
|
|
170956
169736
|
require_ansi_styles,
|
|
170957
|
-
require_semver2 as require_semver,
|
|
170958
169737
|
require_ejs,
|
|
170959
169738
|
require_escape_string_regexp,
|
|
170960
169739
|
require_clean_stack,
|
|
@@ -170967,7 +169746,6 @@ export {
|
|
|
170967
169746
|
require_get_package_type,
|
|
170968
169747
|
require_ansi_escapes,
|
|
170969
169748
|
require_widest_line,
|
|
170970
|
-
require_brace_expansion,
|
|
170971
169749
|
require_commonjs,
|
|
170972
169750
|
require_wordwrap,
|
|
170973
169751
|
require_lib
|
|
@@ -170999,4 +169777,4 @@ typescript/lib/typescript.js:
|
|
|
170999
169777
|
and limitations under the License.
|
|
171000
169778
|
***************************************************************************** *)
|
|
171001
169779
|
*/
|
|
171002
|
-
//# sourceMappingURL=chunk-
|
|
169780
|
+
//# sourceMappingURL=chunk-VLBE545G.js.map
|