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