@wise/wds-codemods 1.0.0-experimental-581e474 → 1.0.0-experimental-f0b8d38
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/constants-BhVbK_XZ.js +61 -0
- package/dist/constants-BhVbK_XZ.js.map +1 -0
- package/dist/{helpers-BNLAPdMR.js → helpers-BvNeqqYU.js} +228 -199
- package/dist/helpers-BvNeqqYU.js.map +1 -0
- package/dist/index.js +65 -51
- package/dist/index.js.map +1 -1
- package/dist/transformer-CZXBO1GJ.js +475 -0
- package/dist/transformer-CZXBO1GJ.js.map +1 -0
- package/dist/transforms/button/transformer.js +2 -1
- package/dist/transforms/button/transformer.js.map +1 -1
- package/dist/transforms/list-item/config.json +6 -0
- package/dist/transforms/list-item/transformer.js +4 -0
- package/package.json +22 -18
- package/dist/helpers-BNLAPdMR.js.map +0 -1
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
-
__defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
-
value: mod,
|
|
25
|
-
enumerable: true
|
|
26
|
-
}) : target, mod));
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
1
|
+
const require_constants$1 = require('./constants-BhVbK_XZ.js');
|
|
29
2
|
let node_child_process = require("node:child_process");
|
|
30
3
|
let node_fs_promises = require("node:fs/promises");
|
|
31
|
-
node_fs_promises = __toESM(node_fs_promises);
|
|
4
|
+
node_fs_promises = require_constants$1.__toESM(node_fs_promises);
|
|
32
5
|
let node_path = require("node:path");
|
|
33
|
-
node_path = __toESM(node_path);
|
|
6
|
+
node_path = require_constants$1.__toESM(node_path);
|
|
34
7
|
let __inquirer_prompts = require("@inquirer/prompts");
|
|
8
|
+
let ora = require("ora");
|
|
9
|
+
ora = require_constants$1.__toESM(ora);
|
|
35
10
|
let node_fs = require("node:fs");
|
|
11
|
+
node_fs = require_constants$1.__toESM(node_fs);
|
|
12
|
+
let node_util = require("node:util");
|
|
36
13
|
|
|
37
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
38
|
-
var require_constants = /* @__PURE__ */
|
|
14
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
|
|
15
|
+
var require_constants = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js": ((exports, module) => {
|
|
39
16
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
40
17
|
const MAX_LENGTH$2 = 256;
|
|
41
18
|
const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -60,18 +37,18 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60
37
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
61
38
|
FLAG_LOOSE: 2
|
|
62
39
|
};
|
|
63
|
-
}));
|
|
40
|
+
}) });
|
|
64
41
|
|
|
65
42
|
//#endregion
|
|
66
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
67
|
-
var require_debug = /* @__PURE__ */
|
|
43
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
|
|
44
|
+
var require_debug = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js": ((exports, module) => {
|
|
68
45
|
const debug$4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
69
46
|
module.exports = debug$4;
|
|
70
|
-
}));
|
|
47
|
+
}) });
|
|
71
48
|
|
|
72
49
|
//#endregion
|
|
73
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
74
|
-
var require_re = /* @__PURE__ */
|
|
50
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
|
|
51
|
+
var require_re = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js": ((exports, module) => {
|
|
75
52
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
|
|
76
53
|
const debug$3 = require_debug();
|
|
77
54
|
exports = module.exports = {};
|
|
@@ -147,11 +124,11 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
147
124
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
148
125
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
149
126
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
150
|
-
}));
|
|
127
|
+
}) });
|
|
151
128
|
|
|
152
129
|
//#endregion
|
|
153
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
154
|
-
var require_parse_options = /* @__PURE__ */
|
|
130
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
|
|
131
|
+
var require_parse_options = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js": ((exports, module) => {
|
|
155
132
|
const looseOption = Object.freeze({ loose: true });
|
|
156
133
|
const emptyOpts = Object.freeze({});
|
|
157
134
|
const parseOptions$3 = (options) => {
|
|
@@ -160,14 +137,13 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
160
137
|
return options;
|
|
161
138
|
};
|
|
162
139
|
module.exports = parseOptions$3;
|
|
163
|
-
}));
|
|
140
|
+
}) });
|
|
164
141
|
|
|
165
142
|
//#endregion
|
|
166
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
167
|
-
var require_identifiers = /* @__PURE__ */
|
|
143
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
|
|
144
|
+
var require_identifiers = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js": ((exports, module) => {
|
|
168
145
|
const numeric = /^[0-9]+$/;
|
|
169
146
|
const compareIdentifiers$1 = (a, b) => {
|
|
170
|
-
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
171
147
|
const anum = numeric.test(a);
|
|
172
148
|
const bnum = numeric.test(b);
|
|
173
149
|
if (anum && bnum) {
|
|
@@ -181,11 +157,11 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
181
157
|
compareIdentifiers: compareIdentifiers$1,
|
|
182
158
|
rcompareIdentifiers
|
|
183
159
|
};
|
|
184
|
-
}));
|
|
160
|
+
}) });
|
|
185
161
|
|
|
186
162
|
//#endregion
|
|
187
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
188
|
-
var require_semver$1 = /* @__PURE__ */
|
|
163
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
|
|
164
|
+
var require_semver$1 = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js": ((exports, module) => {
|
|
189
165
|
const debug$2 = require_debug();
|
|
190
166
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
191
167
|
const { safeRe: re$3, t: t$3 } = require_re();
|
|
@@ -241,13 +217,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
241
217
|
}
|
|
242
218
|
compareMain(other) {
|
|
243
219
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
244
|
-
|
|
245
|
-
if (this.major > other.major) return 1;
|
|
246
|
-
if (this.minor < other.minor) return -1;
|
|
247
|
-
if (this.minor > other.minor) return 1;
|
|
248
|
-
if (this.patch < other.patch) return -1;
|
|
249
|
-
if (this.patch > other.patch) return 1;
|
|
250
|
-
return 0;
|
|
220
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
251
221
|
}
|
|
252
222
|
comparePre(other) {
|
|
253
223
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
@@ -361,11 +331,11 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
361
331
|
}
|
|
362
332
|
};
|
|
363
333
|
module.exports = SemVer$15;
|
|
364
|
-
}));
|
|
334
|
+
}) });
|
|
365
335
|
|
|
366
336
|
//#endregion
|
|
367
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
368
|
-
var require_parse = /* @__PURE__ */
|
|
337
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
|
|
338
|
+
var require_parse = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js": ((exports, module) => {
|
|
369
339
|
const SemVer$14 = require_semver$1();
|
|
370
340
|
const parse$6 = (version, options, throwErrors = false) => {
|
|
371
341
|
if (version instanceof SemVer$14) return version;
|
|
@@ -377,33 +347,33 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
377
347
|
}
|
|
378
348
|
};
|
|
379
349
|
module.exports = parse$6;
|
|
380
|
-
}));
|
|
350
|
+
}) });
|
|
381
351
|
|
|
382
352
|
//#endregion
|
|
383
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
384
|
-
var require_valid$1 = /* @__PURE__ */
|
|
353
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
|
|
354
|
+
var require_valid$1 = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js": ((exports, module) => {
|
|
385
355
|
const parse$5 = require_parse();
|
|
386
356
|
const valid$1 = (version, options) => {
|
|
387
357
|
const v = parse$5(version, options);
|
|
388
358
|
return v ? v.version : null;
|
|
389
359
|
};
|
|
390
360
|
module.exports = valid$1;
|
|
391
|
-
}));
|
|
361
|
+
}) });
|
|
392
362
|
|
|
393
363
|
//#endregion
|
|
394
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
395
|
-
var require_clean = /* @__PURE__ */
|
|
364
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
|
|
365
|
+
var require_clean = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js": ((exports, module) => {
|
|
396
366
|
const parse$4 = require_parse();
|
|
397
367
|
const clean$1 = (version, options) => {
|
|
398
368
|
const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
|
|
399
369
|
return s ? s.version : null;
|
|
400
370
|
};
|
|
401
371
|
module.exports = clean$1;
|
|
402
|
-
}));
|
|
372
|
+
}) });
|
|
403
373
|
|
|
404
374
|
//#endregion
|
|
405
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
406
|
-
var require_inc = /* @__PURE__ */
|
|
375
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
|
|
376
|
+
var require_inc = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js": ((exports, module) => {
|
|
407
377
|
const SemVer$13 = require_semver$1();
|
|
408
378
|
const inc$1 = (version, release, options, identifier, identifierBase) => {
|
|
409
379
|
if (typeof options === "string") {
|
|
@@ -418,11 +388,11 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
418
388
|
}
|
|
419
389
|
};
|
|
420
390
|
module.exports = inc$1;
|
|
421
|
-
}));
|
|
391
|
+
}) });
|
|
422
392
|
|
|
423
393
|
//#endregion
|
|
424
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
425
|
-
var require_diff = /* @__PURE__ */
|
|
394
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
|
|
395
|
+
var require_diff = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js": ((exports, module) => {
|
|
426
396
|
const parse$3 = require_parse();
|
|
427
397
|
const diff$1 = (version1, version2) => {
|
|
428
398
|
const v1 = parse$3(version1, null, true);
|
|
@@ -447,70 +417,70 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
417
|
return "prerelease";
|
|
448
418
|
};
|
|
449
419
|
module.exports = diff$1;
|
|
450
|
-
}));
|
|
420
|
+
}) });
|
|
451
421
|
|
|
452
422
|
//#endregion
|
|
453
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
454
|
-
var require_major = /* @__PURE__ */
|
|
423
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
|
|
424
|
+
var require_major = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js": ((exports, module) => {
|
|
455
425
|
const SemVer$12 = require_semver$1();
|
|
456
426
|
const major$1 = (a, loose) => new SemVer$12(a, loose).major;
|
|
457
427
|
module.exports = major$1;
|
|
458
|
-
}));
|
|
428
|
+
}) });
|
|
459
429
|
|
|
460
430
|
//#endregion
|
|
461
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
462
|
-
var require_minor = /* @__PURE__ */
|
|
431
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
|
|
432
|
+
var require_minor = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js": ((exports, module) => {
|
|
463
433
|
const SemVer$11 = require_semver$1();
|
|
464
434
|
const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
|
|
465
435
|
module.exports = minor$1;
|
|
466
|
-
}));
|
|
436
|
+
}) });
|
|
467
437
|
|
|
468
438
|
//#endregion
|
|
469
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
470
|
-
var require_patch = /* @__PURE__ */
|
|
439
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
|
|
440
|
+
var require_patch = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js": ((exports, module) => {
|
|
471
441
|
const SemVer$10 = require_semver$1();
|
|
472
442
|
const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
|
|
473
443
|
module.exports = patch$1;
|
|
474
|
-
}));
|
|
444
|
+
}) });
|
|
475
445
|
|
|
476
446
|
//#endregion
|
|
477
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
478
|
-
var require_prerelease = /* @__PURE__ */
|
|
447
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
|
|
448
|
+
var require_prerelease = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js": ((exports, module) => {
|
|
479
449
|
const parse$2 = require_parse();
|
|
480
450
|
const prerelease$1 = (version, options) => {
|
|
481
451
|
const parsed = parse$2(version, options);
|
|
482
452
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
483
453
|
};
|
|
484
454
|
module.exports = prerelease$1;
|
|
485
|
-
}));
|
|
455
|
+
}) });
|
|
486
456
|
|
|
487
457
|
//#endregion
|
|
488
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
489
|
-
var require_compare = /* @__PURE__ */
|
|
458
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
|
|
459
|
+
var require_compare = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js": ((exports, module) => {
|
|
490
460
|
const SemVer$9 = require_semver$1();
|
|
491
461
|
const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
|
|
492
462
|
module.exports = compare$11;
|
|
493
|
-
}));
|
|
463
|
+
}) });
|
|
494
464
|
|
|
495
465
|
//#endregion
|
|
496
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
497
|
-
var require_rcompare = /* @__PURE__ */
|
|
466
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
|
|
467
|
+
var require_rcompare = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js": ((exports, module) => {
|
|
498
468
|
const compare$10 = require_compare();
|
|
499
469
|
const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
|
|
500
470
|
module.exports = rcompare$1;
|
|
501
|
-
}));
|
|
471
|
+
}) });
|
|
502
472
|
|
|
503
473
|
//#endregion
|
|
504
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
505
|
-
var require_compare_loose = /* @__PURE__ */
|
|
474
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
|
|
475
|
+
var require_compare_loose = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js": ((exports, module) => {
|
|
506
476
|
const compare$9 = require_compare();
|
|
507
477
|
const compareLoose$1 = (a, b) => compare$9(a, b, true);
|
|
508
478
|
module.exports = compareLoose$1;
|
|
509
|
-
}));
|
|
479
|
+
}) });
|
|
510
480
|
|
|
511
481
|
//#endregion
|
|
512
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
513
|
-
var require_compare_build = /* @__PURE__ */
|
|
482
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
|
|
483
|
+
var require_compare_build = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js": ((exports, module) => {
|
|
514
484
|
const SemVer$8 = require_semver$1();
|
|
515
485
|
const compareBuild$3 = (a, b, loose) => {
|
|
516
486
|
const versionA = new SemVer$8(a, loose);
|
|
@@ -518,75 +488,75 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
518
488
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
519
489
|
};
|
|
520
490
|
module.exports = compareBuild$3;
|
|
521
|
-
}));
|
|
491
|
+
}) });
|
|
522
492
|
|
|
523
493
|
//#endregion
|
|
524
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
525
|
-
var require_sort = /* @__PURE__ */
|
|
494
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
|
|
495
|
+
var require_sort = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js": ((exports, module) => {
|
|
526
496
|
const compareBuild$2 = require_compare_build();
|
|
527
497
|
const sort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$2(a, b, loose));
|
|
528
498
|
module.exports = sort$1;
|
|
529
|
-
}));
|
|
499
|
+
}) });
|
|
530
500
|
|
|
531
501
|
//#endregion
|
|
532
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
533
|
-
var require_rsort = /* @__PURE__ */
|
|
502
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
|
|
503
|
+
var require_rsort = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js": ((exports, module) => {
|
|
534
504
|
const compareBuild$1 = require_compare_build();
|
|
535
505
|
const rsort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$1(b, a, loose));
|
|
536
506
|
module.exports = rsort$1;
|
|
537
|
-
}));
|
|
507
|
+
}) });
|
|
538
508
|
|
|
539
509
|
//#endregion
|
|
540
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
541
|
-
var require_gt = /* @__PURE__ */
|
|
510
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
|
|
511
|
+
var require_gt = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js": ((exports, module) => {
|
|
542
512
|
const compare$8 = require_compare();
|
|
543
513
|
const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
|
|
544
514
|
module.exports = gt$4;
|
|
545
|
-
}));
|
|
515
|
+
}) });
|
|
546
516
|
|
|
547
517
|
//#endregion
|
|
548
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
549
|
-
var require_lt = /* @__PURE__ */
|
|
518
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
|
|
519
|
+
var require_lt = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js": ((exports, module) => {
|
|
550
520
|
const compare$7 = require_compare();
|
|
551
521
|
const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
|
|
552
522
|
module.exports = lt$3;
|
|
553
|
-
}));
|
|
523
|
+
}) });
|
|
554
524
|
|
|
555
525
|
//#endregion
|
|
556
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
557
|
-
var require_eq = /* @__PURE__ */
|
|
526
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
|
|
527
|
+
var require_eq = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js": ((exports, module) => {
|
|
558
528
|
const compare$6 = require_compare();
|
|
559
529
|
const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
|
|
560
530
|
module.exports = eq$2;
|
|
561
|
-
}));
|
|
531
|
+
}) });
|
|
562
532
|
|
|
563
533
|
//#endregion
|
|
564
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
565
|
-
var require_neq = /* @__PURE__ */
|
|
534
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
|
|
535
|
+
var require_neq = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js": ((exports, module) => {
|
|
566
536
|
const compare$5 = require_compare();
|
|
567
537
|
const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
|
|
568
538
|
module.exports = neq$2;
|
|
569
|
-
}));
|
|
539
|
+
}) });
|
|
570
540
|
|
|
571
541
|
//#endregion
|
|
572
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
573
|
-
var require_gte = /* @__PURE__ */
|
|
542
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
|
|
543
|
+
var require_gte = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js": ((exports, module) => {
|
|
574
544
|
const compare$4 = require_compare();
|
|
575
545
|
const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
|
|
576
546
|
module.exports = gte$3;
|
|
577
|
-
}));
|
|
547
|
+
}) });
|
|
578
548
|
|
|
579
549
|
//#endregion
|
|
580
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
581
|
-
var require_lte = /* @__PURE__ */
|
|
550
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
|
|
551
|
+
var require_lte = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js": ((exports, module) => {
|
|
582
552
|
const compare$3 = require_compare();
|
|
583
553
|
const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
|
|
584
554
|
module.exports = lte$3;
|
|
585
|
-
}));
|
|
555
|
+
}) });
|
|
586
556
|
|
|
587
557
|
//#endregion
|
|
588
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
589
|
-
var require_cmp = /* @__PURE__ */
|
|
558
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
|
|
559
|
+
var require_cmp = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js": ((exports, module) => {
|
|
590
560
|
const eq$1 = require_eq();
|
|
591
561
|
const neq$1 = require_neq();
|
|
592
562
|
const gt$3 = require_gt();
|
|
@@ -615,11 +585,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
615
585
|
}
|
|
616
586
|
};
|
|
617
587
|
module.exports = cmp$2;
|
|
618
|
-
}));
|
|
588
|
+
}) });
|
|
619
589
|
|
|
620
590
|
//#endregion
|
|
621
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
622
|
-
var require_coerce = /* @__PURE__ */
|
|
591
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
|
|
592
|
+
var require_coerce = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js": ((exports, module) => {
|
|
623
593
|
const SemVer$7 = require_semver$1();
|
|
624
594
|
const parse$1 = require_parse();
|
|
625
595
|
const { safeRe: re$2, t: t$2 } = require_re();
|
|
@@ -644,11 +614,11 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
644
614
|
return parse$1(`${major$2}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
645
615
|
};
|
|
646
616
|
module.exports = coerce$1;
|
|
647
|
-
}));
|
|
617
|
+
}) });
|
|
648
618
|
|
|
649
619
|
//#endregion
|
|
650
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
651
|
-
var require_lrucache = /* @__PURE__ */
|
|
620
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
|
|
621
|
+
var require_lrucache = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js": ((exports, module) => {
|
|
652
622
|
var LRUCache = class {
|
|
653
623
|
constructor() {
|
|
654
624
|
this.max = 1e3;
|
|
@@ -678,11 +648,11 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
678
648
|
}
|
|
679
649
|
};
|
|
680
650
|
module.exports = LRUCache;
|
|
681
|
-
}));
|
|
651
|
+
}) });
|
|
682
652
|
|
|
683
653
|
//#endregion
|
|
684
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
685
|
-
var require_range = /* @__PURE__ */
|
|
654
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
|
|
655
|
+
var require_range = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js": ((exports, module) => {
|
|
686
656
|
const SPACE_CHARACTERS = /\s+/g;
|
|
687
657
|
var Range$11 = class Range$11 {
|
|
688
658
|
constructor(range, options) {
|
|
@@ -811,7 +781,6 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
811
781
|
return result;
|
|
812
782
|
};
|
|
813
783
|
const parseComparator = (comp, options) => {
|
|
814
|
-
comp = comp.replace(re$1[t$1.BUILD], "");
|
|
815
784
|
debug$1("comp", comp, options);
|
|
816
785
|
comp = replaceCarets(comp, options);
|
|
817
786
|
debug$1("caret", comp);
|
|
@@ -952,11 +921,11 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
952
921
|
}
|
|
953
922
|
return true;
|
|
954
923
|
};
|
|
955
|
-
}));
|
|
924
|
+
}) });
|
|
956
925
|
|
|
957
926
|
//#endregion
|
|
958
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
959
|
-
var require_comparator = /* @__PURE__ */
|
|
927
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
|
|
928
|
+
var require_comparator = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js": ((exports, module) => {
|
|
960
929
|
const ANY$2 = Symbol("SemVer ANY");
|
|
961
930
|
var Comparator$3 = class Comparator$3 {
|
|
962
931
|
static get ANY() {
|
|
@@ -1024,11 +993,11 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1024
993
|
const debug = require_debug();
|
|
1025
994
|
const SemVer$5 = require_semver$1();
|
|
1026
995
|
const Range$10 = require_range();
|
|
1027
|
-
}));
|
|
996
|
+
}) });
|
|
1028
997
|
|
|
1029
998
|
//#endregion
|
|
1030
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1031
|
-
var require_satisfies = /* @__PURE__ */
|
|
999
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
|
|
1000
|
+
var require_satisfies = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js": ((exports, module) => {
|
|
1032
1001
|
const Range$9 = require_range();
|
|
1033
1002
|
const satisfies$4 = (version, range, options) => {
|
|
1034
1003
|
try {
|
|
@@ -1039,19 +1008,19 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1039
1008
|
return range.test(version);
|
|
1040
1009
|
};
|
|
1041
1010
|
module.exports = satisfies$4;
|
|
1042
|
-
}));
|
|
1011
|
+
}) });
|
|
1043
1012
|
|
|
1044
1013
|
//#endregion
|
|
1045
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1046
|
-
var require_to_comparators = /* @__PURE__ */
|
|
1014
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
|
|
1015
|
+
var require_to_comparators = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js": ((exports, module) => {
|
|
1047
1016
|
const Range$8 = require_range();
|
|
1048
1017
|
const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1049
1018
|
module.exports = toComparators$1;
|
|
1050
|
-
}));
|
|
1019
|
+
}) });
|
|
1051
1020
|
|
|
1052
1021
|
//#endregion
|
|
1053
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1054
|
-
var require_max_satisfying = /* @__PURE__ */
|
|
1022
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
|
|
1023
|
+
var require_max_satisfying = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js": ((exports, module) => {
|
|
1055
1024
|
const SemVer$4 = require_semver$1();
|
|
1056
1025
|
const Range$7 = require_range();
|
|
1057
1026
|
const maxSatisfying$1 = (versions, range, options) => {
|
|
@@ -1074,11 +1043,11 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1074
1043
|
return max;
|
|
1075
1044
|
};
|
|
1076
1045
|
module.exports = maxSatisfying$1;
|
|
1077
|
-
}));
|
|
1046
|
+
}) });
|
|
1078
1047
|
|
|
1079
1048
|
//#endregion
|
|
1080
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1081
|
-
var require_min_satisfying = /* @__PURE__ */
|
|
1049
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
|
|
1050
|
+
var require_min_satisfying = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js": ((exports, module) => {
|
|
1082
1051
|
const SemVer$3 = require_semver$1();
|
|
1083
1052
|
const Range$6 = require_range();
|
|
1084
1053
|
const minSatisfying$1 = (versions, range, options) => {
|
|
@@ -1101,11 +1070,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1101
1070
|
return min;
|
|
1102
1071
|
};
|
|
1103
1072
|
module.exports = minSatisfying$1;
|
|
1104
|
-
}));
|
|
1073
|
+
}) });
|
|
1105
1074
|
|
|
1106
1075
|
//#endregion
|
|
1107
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1108
|
-
var require_min_version = /* @__PURE__ */
|
|
1076
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
|
|
1077
|
+
var require_min_version = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js": ((exports, module) => {
|
|
1109
1078
|
const SemVer$2 = require_semver$1();
|
|
1110
1079
|
const Range$5 = require_range();
|
|
1111
1080
|
const gt$2 = require_gt();
|
|
@@ -1141,11 +1110,11 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1141
1110
|
return null;
|
|
1142
1111
|
};
|
|
1143
1112
|
module.exports = minVersion$1;
|
|
1144
|
-
}));
|
|
1113
|
+
}) });
|
|
1145
1114
|
|
|
1146
1115
|
//#endregion
|
|
1147
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1148
|
-
var require_valid = /* @__PURE__ */
|
|
1116
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
|
|
1117
|
+
var require_valid = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js": ((exports, module) => {
|
|
1149
1118
|
const Range$4 = require_range();
|
|
1150
1119
|
const validRange$1 = (range, options) => {
|
|
1151
1120
|
try {
|
|
@@ -1155,11 +1124,11 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1155
1124
|
}
|
|
1156
1125
|
};
|
|
1157
1126
|
module.exports = validRange$1;
|
|
1158
|
-
}));
|
|
1127
|
+
}) });
|
|
1159
1128
|
|
|
1160
1129
|
//#endregion
|
|
1161
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1162
|
-
var require_outside = /* @__PURE__ */
|
|
1130
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
|
|
1131
|
+
var require_outside = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js": ((exports, module) => {
|
|
1163
1132
|
const SemVer$1 = require_semver$1();
|
|
1164
1133
|
const Comparator$2 = require_comparator();
|
|
1165
1134
|
const { ANY: ANY$1 } = Comparator$2;
|
|
@@ -1209,27 +1178,27 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1209
1178
|
return true;
|
|
1210
1179
|
};
|
|
1211
1180
|
module.exports = outside$3;
|
|
1212
|
-
}));
|
|
1181
|
+
}) });
|
|
1213
1182
|
|
|
1214
1183
|
//#endregion
|
|
1215
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1216
|
-
var require_gtr = /* @__PURE__ */
|
|
1184
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
|
|
1185
|
+
var require_gtr = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js": ((exports, module) => {
|
|
1217
1186
|
const outside$2 = require_outside();
|
|
1218
1187
|
const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
|
|
1219
1188
|
module.exports = gtr$1;
|
|
1220
|
-
}));
|
|
1189
|
+
}) });
|
|
1221
1190
|
|
|
1222
1191
|
//#endregion
|
|
1223
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1224
|
-
var require_ltr = /* @__PURE__ */
|
|
1192
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
|
|
1193
|
+
var require_ltr = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js": ((exports, module) => {
|
|
1225
1194
|
const outside$1 = require_outside();
|
|
1226
1195
|
const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
|
|
1227
1196
|
module.exports = ltr$1;
|
|
1228
|
-
}));
|
|
1197
|
+
}) });
|
|
1229
1198
|
|
|
1230
1199
|
//#endregion
|
|
1231
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1232
|
-
var require_intersects = /* @__PURE__ */
|
|
1200
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
|
|
1201
|
+
var require_intersects = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js": ((exports, module) => {
|
|
1233
1202
|
const Range$2 = require_range();
|
|
1234
1203
|
const intersects$1 = (r1, r2, options) => {
|
|
1235
1204
|
r1 = new Range$2(r1, options);
|
|
@@ -1237,11 +1206,11 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1237
1206
|
return r1.intersects(r2, options);
|
|
1238
1207
|
};
|
|
1239
1208
|
module.exports = intersects$1;
|
|
1240
|
-
}));
|
|
1209
|
+
}) });
|
|
1241
1210
|
|
|
1242
1211
|
//#endregion
|
|
1243
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1244
|
-
var require_simplify = /* @__PURE__ */
|
|
1212
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
|
|
1213
|
+
var require_simplify = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js": ((exports, module) => {
|
|
1245
1214
|
const satisfies$2 = require_satisfies();
|
|
1246
1215
|
const compare$2 = require_compare();
|
|
1247
1216
|
module.exports = (versions, range, options) => {
|
|
@@ -1268,11 +1237,11 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1268
1237
|
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
1269
1238
|
return simplified.length < original.length ? simplified : range;
|
|
1270
1239
|
};
|
|
1271
|
-
}));
|
|
1240
|
+
}) });
|
|
1272
1241
|
|
|
1273
1242
|
//#endregion
|
|
1274
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1275
|
-
var require_subset = /* @__PURE__ */
|
|
1243
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
|
|
1244
|
+
var require_subset = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js": ((exports, module) => {
|
|
1276
1245
|
const Range$1 = require_range();
|
|
1277
1246
|
const Comparator$1 = require_comparator();
|
|
1278
1247
|
const { ANY } = Comparator$1;
|
|
@@ -1364,11 +1333,11 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1364
1333
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1365
1334
|
};
|
|
1366
1335
|
module.exports = subset$1;
|
|
1367
|
-
}));
|
|
1336
|
+
}) });
|
|
1368
1337
|
|
|
1369
1338
|
//#endregion
|
|
1370
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1371
|
-
var require_semver = /* @__PURE__ */
|
|
1339
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
|
|
1340
|
+
var require_semver = /* @__PURE__ */ require_constants$1.__commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js": ((exports, module) => {
|
|
1372
1341
|
const internalRe = require_re();
|
|
1373
1342
|
const constants = require_constants();
|
|
1374
1343
|
const SemVer = require_semver$1();
|
|
@@ -1457,10 +1426,11 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1457
1426
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1458
1427
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1459
1428
|
};
|
|
1460
|
-
}));
|
|
1429
|
+
}) });
|
|
1461
1430
|
|
|
1462
1431
|
//#endregion
|
|
1463
1432
|
//#region src/controller/helpers/getCodemodConfig.ts
|
|
1433
|
+
/** Retrieves a JSON object from a file path, returning null if the file does not exist */
|
|
1464
1434
|
const getJsonFromPath = (baseDir, fileName) => {
|
|
1465
1435
|
const jsonPath = (0, node_path.join)(baseDir, fileName);
|
|
1466
1436
|
try {
|
|
@@ -1482,6 +1452,7 @@ function getCodemodConfig(codemodPath, options = {}) {
|
|
|
1482
1452
|
|
|
1483
1453
|
//#endregion
|
|
1484
1454
|
//#region src/controller/helpers/repository.ts
|
|
1455
|
+
const execAsync = (0, node_util.promisify)(node_child_process.exec);
|
|
1485
1456
|
/**
|
|
1486
1457
|
* Finds the root of the project by looking for the `.git` directory.
|
|
1487
1458
|
*/
|
|
@@ -1506,9 +1477,9 @@ function findProjectRoot() {
|
|
|
1506
1477
|
* the presence of `package.json` files and them optimistically
|
|
1507
1478
|
* containing a `@transferwise/components` string.
|
|
1508
1479
|
* */
|
|
1509
|
-
function findPackages() {
|
|
1480
|
+
async function findPackages() {
|
|
1510
1481
|
try {
|
|
1511
|
-
const
|
|
1482
|
+
const { stdout } = await execAsync([
|
|
1512
1483
|
"find ./",
|
|
1513
1484
|
"-type f",
|
|
1514
1485
|
"-name \"package.json\"",
|
|
@@ -1518,7 +1489,8 @@ function findPackages() {
|
|
|
1518
1489
|
].join(" "), {
|
|
1519
1490
|
cwd: findProjectRoot(),
|
|
1520
1491
|
encoding: "utf8"
|
|
1521
|
-
})
|
|
1492
|
+
});
|
|
1493
|
+
const packages = stdout.trim().split("\n").filter(Boolean).map(node_path.default.dirname);
|
|
1522
1494
|
if (packages.length === 0) throw new Error();
|
|
1523
1495
|
return packages;
|
|
1524
1496
|
} catch {
|
|
@@ -1553,7 +1525,7 @@ const renderTable = (data, indexHeading = "index") => {
|
|
|
1553
1525
|
const remainingLines = columnWidths.slice(1).map((width) => "─".repeat(width + 2));
|
|
1554
1526
|
const topSeparator = `┌${firstCellLine}┬${remainingLines.join("┬")}┐`;
|
|
1555
1527
|
const midSeparator = `├${firstCellLine}┼${remainingLines.join("┼")}┤`;
|
|
1556
|
-
const endSeparator = `└${firstCellLine}┴${remainingLines.join("┴")}
|
|
1528
|
+
const endSeparator = `└${firstCellLine}┴${remainingLines.join("┴")}┘\n`;
|
|
1557
1529
|
const formatRow = (cells) => {
|
|
1558
1530
|
return `│${cells.map((cell, index) => {
|
|
1559
1531
|
const padding = columnWidths[index] - getDisplayWidth(cell);
|
|
@@ -1571,7 +1543,7 @@ const renderTable = (data, indexHeading = "index") => {
|
|
|
1571
1543
|
|
|
1572
1544
|
//#endregion
|
|
1573
1545
|
//#region src/controller/helpers/dependencyChecks.ts
|
|
1574
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver());
|
|
1546
|
+
var import_semver = /* @__PURE__ */ require_constants$1.__toESM(require_semver());
|
|
1575
1547
|
/**
|
|
1576
1548
|
* Checks if the installed version satisfies the given version requirement.
|
|
1577
1549
|
*/
|
|
@@ -1610,22 +1582,20 @@ function findClosestPackageJson(currentPath) {
|
|
|
1610
1582
|
*/
|
|
1611
1583
|
const assessPrerequisites = (packagePath, codemodPath) => {
|
|
1612
1584
|
try {
|
|
1613
|
-
const SYMBOL = {
|
|
1614
|
-
OK: "\x1B[32m✔\x1B[0m",
|
|
1615
|
-
FAIL: "\x1B[31m✗\x1B[0m"
|
|
1616
|
-
};
|
|
1617
1585
|
const codemodConfig = getJsonFromPath((0, node_path.dirname)(codemodPath), "config.json");
|
|
1618
1586
|
const resolvedPackagePath = (0, node_path.resolve)(process.cwd(), packagePath);
|
|
1619
1587
|
const actualPackagePath = (0, node_fs.existsSync)((0, node_path.join)(resolvedPackagePath, "package.json")) ? resolvedPackagePath : findClosestPackageJson(resolvedPackagePath);
|
|
1620
1588
|
if (!actualPackagePath) {
|
|
1621
|
-
console.error(`${
|
|
1589
|
+
console.error(`${require_constants$1.CONSOLE_ICONS.error} \x1b[1mCould not find a package.json in or above ${packagePath}\x1b[0m`);
|
|
1622
1590
|
return false;
|
|
1623
1591
|
}
|
|
1624
|
-
if (actualPackagePath !== resolvedPackagePath) console.info(
|
|
1625
|
-
const
|
|
1592
|
+
if (actualPackagePath !== resolvedPackagePath) console.info(`${require_constants$1.CONSOLE_ICONS.info} Using package.json from ${actualPackagePath} for dependency checks`);
|
|
1593
|
+
const packageJson = getJsonFromPath(actualPackagePath, "package.json");
|
|
1594
|
+
if (!packageJson) return false;
|
|
1595
|
+
const { dependencies = {}, peerDependencies = {} } = packageJson;
|
|
1626
1596
|
const comparisons = {};
|
|
1627
1597
|
let isCompliant = true;
|
|
1628
|
-
if (codemodConfig
|
|
1598
|
+
if (codemodConfig?.prerequisites) Object.entries(codemodConfig.prerequisites).forEach(([name, versionRequirement]) => {
|
|
1629
1599
|
const nodeModulesVersion = getVersionFromNodeModules(actualPackagePath, name);
|
|
1630
1600
|
const isDependencySatisfied = isVersionSatisfied(dependencies[name], versionRequirement);
|
|
1631
1601
|
const isPeerDependencySatisfied = isVersionSatisfied(peerDependencies[name], versionRequirement);
|
|
@@ -1634,14 +1604,14 @@ const assessPrerequisites = (packagePath, codemodPath) => {
|
|
|
1634
1604
|
isCompliant = false;
|
|
1635
1605
|
comparisons[name] = {
|
|
1636
1606
|
required: versionRequirement,
|
|
1637
|
-
dependencies: isDependencySatisfied ?
|
|
1638
|
-
peerDependencies: isPeerDependencySatisfied ?
|
|
1639
|
-
node_modules: isInstalledSatisfied ?
|
|
1607
|
+
dependencies: isDependencySatisfied ? require_constants$1.CONSOLE_ICONS.success : `${require_constants$1.CONSOLE_ICONS.error} ${dependencies[name] || "N/A"}`,
|
|
1608
|
+
peerDependencies: isPeerDependencySatisfied ? require_constants$1.CONSOLE_ICONS.success : `${require_constants$1.CONSOLE_ICONS.error} ${peerDependencies[name] || "N/A"}`,
|
|
1609
|
+
node_modules: isInstalledSatisfied ? require_constants$1.CONSOLE_ICONS.success : `${require_constants$1.CONSOLE_ICONS.error} ${nodeModulesVersion || "N/A"}`
|
|
1640
1610
|
};
|
|
1641
1611
|
}
|
|
1642
1612
|
});
|
|
1643
1613
|
if (!isCompliant) {
|
|
1644
|
-
console.info(`${
|
|
1614
|
+
console.info(`${require_constants$1.CONSOLE_ICONS.error} \x1b[1mPrerequisite check failed\x1b[0m`);
|
|
1645
1615
|
renderTable(comparisons, "package");
|
|
1646
1616
|
return false;
|
|
1647
1617
|
}
|
|
@@ -1651,6 +1621,51 @@ const assessPrerequisites = (packagePath, codemodPath) => {
|
|
|
1651
1621
|
return false;
|
|
1652
1622
|
}
|
|
1653
1623
|
};
|
|
1624
|
+
/**
|
|
1625
|
+
* Batch prerequisite assessment across multiple target paths.
|
|
1626
|
+
* - Resolves each target to its effective package root (closest package.json)
|
|
1627
|
+
* - Deduplicates by package root and checks each unique root once
|
|
1628
|
+
* - Logs a concise summary; detailed table is logged by assessPrerequisites on failure
|
|
1629
|
+
*/
|
|
1630
|
+
const assessPrerequisitesBatch = (targetPaths, codemodPath) => {
|
|
1631
|
+
const prereqSpinner = (0, ora.default)("Checking prerequisites...\n").start();
|
|
1632
|
+
const packageRootToTargets = /* @__PURE__ */ new Map();
|
|
1633
|
+
const failedTargetsNoPackage = [];
|
|
1634
|
+
for (const target of targetPaths) {
|
|
1635
|
+
const resolved = (0, node_path.resolve)(process.cwd(), target);
|
|
1636
|
+
const actual = (0, node_fs.existsSync)((0, node_path.join)(resolved, "package.json")) ? resolved : findClosestPackageJson(resolved);
|
|
1637
|
+
if (actual) {
|
|
1638
|
+
const list$1 = packageRootToTargets.get(actual) ?? [];
|
|
1639
|
+
list$1.push(target);
|
|
1640
|
+
packageRootToTargets.set(target, list$1);
|
|
1641
|
+
} else failedTargetsNoPackage.push(target);
|
|
1642
|
+
}
|
|
1643
|
+
let allPassed = true;
|
|
1644
|
+
const results = /* @__PURE__ */ new Map();
|
|
1645
|
+
for (const [pkgRoot] of packageRootToTargets.entries()) {
|
|
1646
|
+
const passed = assessPrerequisites(pkgRoot, codemodPath);
|
|
1647
|
+
results.set(pkgRoot, passed);
|
|
1648
|
+
if (!passed) allPassed = false;
|
|
1649
|
+
}
|
|
1650
|
+
const totalTargets = targetPaths.length;
|
|
1651
|
+
const uniquePackages = packageRootToTargets.size;
|
|
1652
|
+
const passedCount = Array.from(results.values()).filter(Boolean).length;
|
|
1653
|
+
const failedCount = uniquePackages - passedCount;
|
|
1654
|
+
if (failedTargetsNoPackage.length || !passedCount) if (!passedCount) prereqSpinner.fail(`All targets failed prerequisite checks`);
|
|
1655
|
+
else {
|
|
1656
|
+
prereqSpinner.fail(`No package.json found for ${failedTargetsNoPackage.length} target${failedTargetsNoPackage.length !== 1 ? "s" : ""} (searching upwards to project root).`);
|
|
1657
|
+
failedTargetsNoPackage.forEach((t$5) => console.error(`- ${t$5}`));
|
|
1658
|
+
}
|
|
1659
|
+
else prereqSpinner.succeed(`Checked ${totalTargets} target${totalTargets !== 1 ? "s" : ""} across ${uniquePackages} package${uniquePackages !== 1 ? "s" : ""}: ${passedCount} passed, ${failedCount} failed.`);
|
|
1660
|
+
const failedPackageRoots = Array.from(results.entries()).filter(([, ok]) => !ok).map(([root]) => root);
|
|
1661
|
+
return {
|
|
1662
|
+
allPassed,
|
|
1663
|
+
results,
|
|
1664
|
+
packageRootToTargets,
|
|
1665
|
+
failedPackageRoots,
|
|
1666
|
+
failedTargetsNoPackage
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1654
1669
|
|
|
1655
1670
|
//#endregion
|
|
1656
1671
|
//#region src/controller/helpers/getOptions.ts
|
|
@@ -1727,9 +1742,9 @@ const queryPackages = async (packages) => {
|
|
|
1727
1742
|
description: choice === "." ? "Target the entire project" : `Target ${choice} directory`
|
|
1728
1743
|
}));
|
|
1729
1744
|
},
|
|
1730
|
-
validate: (path$
|
|
1731
|
-
if (!path$
|
|
1732
|
-
const fullPath = (0, node_path.join)(process.cwd(), path$
|
|
1745
|
+
validate: (path$4) => {
|
|
1746
|
+
if (!path$4?.trim()) return "Path cannot be empty";
|
|
1747
|
+
const fullPath = (0, node_path.join)(process.cwd(), path$4);
|
|
1733
1748
|
if (!(0, node_fs.existsSync)(fullPath)) return "Folder does not exist";
|
|
1734
1749
|
if (!(0, node_fs.statSync)(fullPath).isDirectory()) return "Path must be a directory";
|
|
1735
1750
|
return true;
|
|
@@ -1955,16 +1970,24 @@ async function runTransformPrompts(codemodPath) {
|
|
|
1955
1970
|
}
|
|
1956
1971
|
|
|
1957
1972
|
//#endregion
|
|
1958
|
-
|
|
1973
|
+
//#region src/controller/helpers/validateClaudeConfig.ts
|
|
1974
|
+
const CLAUDE_SETTINGS_FILE = ".claude/settings.json";
|
|
1975
|
+
function validateClaudeConfig() {
|
|
1976
|
+
const claudeSettingsPath = node_path.default.resolve(process.env.HOME || "", CLAUDE_SETTINGS_FILE);
|
|
1977
|
+
if (!node_fs.default.existsSync(claudeSettingsPath)) throw new Error(`${require_constants$1.CONSOLE_ICONS.error} Claude Code is not configured. Expected settings file at: ${claudeSettingsPath}. Please follow the setup instructions:\n https://transferwise.atlassian.net/wiki/spaces/GenAIP/pages/3709765113/Configuring+Claude+Code\n`);
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
//#endregion
|
|
1981
|
+
Object.defineProperty(exports, 'assessPrerequisites', {
|
|
1959
1982
|
enumerable: true,
|
|
1960
1983
|
get: function () {
|
|
1961
|
-
return
|
|
1984
|
+
return assessPrerequisites;
|
|
1962
1985
|
}
|
|
1963
1986
|
});
|
|
1964
|
-
Object.defineProperty(exports, '
|
|
1987
|
+
Object.defineProperty(exports, 'assessPrerequisitesBatch', {
|
|
1965
1988
|
enumerable: true,
|
|
1966
1989
|
get: function () {
|
|
1967
|
-
return
|
|
1990
|
+
return assessPrerequisitesBatch;
|
|
1968
1991
|
}
|
|
1969
1992
|
});
|
|
1970
1993
|
Object.defineProperty(exports, 'findPackages', {
|
|
@@ -2009,4 +2032,10 @@ Object.defineProperty(exports, 'runTransformPrompts', {
|
|
|
2009
2032
|
return runTransformPrompts;
|
|
2010
2033
|
}
|
|
2011
2034
|
});
|
|
2012
|
-
|
|
2035
|
+
Object.defineProperty(exports, 'validateClaudeConfig', {
|
|
2036
|
+
enumerable: true,
|
|
2037
|
+
get: function () {
|
|
2038
|
+
return validateClaudeConfig;
|
|
2039
|
+
}
|
|
2040
|
+
});
|
|
2041
|
+
//# sourceMappingURL=helpers-BvNeqqYU.js.map
|