@wise/wds-codemods 1.3.1-experimental-9f69ea5 → 1.3.1-experimental-5a92690
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-CPf8C-KU.js → helpers-9lRR7FPz.js} +70 -59
- package/dist/helpers-9lRR7FPz.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/transforms/button/transformer.js +5 -2
- package/dist/transforms/button/transformer.js.map +1 -1
- package/package.json +3 -3
- package/dist/helpers-CPf8C-KU.js.map +0 -1
|
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
enumerable: true
|
|
29
29
|
}) : target, mod));
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
31
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
32
32
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33
33
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
34
34
|
const MAX_LENGTH = 256;
|
|
@@ -53,12 +53,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
53
53
|
};
|
|
54
54
|
}));
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
56
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
|
|
57
57
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58
58
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
59
59
|
}));
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
61
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
|
|
62
62
|
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63
63
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
64
64
|
const debug = require_debug();
|
|
@@ -137,7 +137,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
137
137
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
138
138
|
}));
|
|
139
139
|
//#endregion
|
|
140
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
140
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
|
|
141
141
|
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142
142
|
const looseOption = Object.freeze({ loose: true });
|
|
143
143
|
const emptyOpts = Object.freeze({});
|
|
@@ -149,7 +149,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
149
149
|
module.exports = parseOptions;
|
|
150
150
|
}));
|
|
151
151
|
//#endregion
|
|
152
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
152
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
|
|
153
153
|
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
154
154
|
const numeric = /^[0-9]+$/;
|
|
155
155
|
const compareIdentifiers = (a, b) => {
|
|
@@ -169,7 +169,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
169
169
|
};
|
|
170
170
|
}));
|
|
171
171
|
//#endregion
|
|
172
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
172
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
|
|
173
173
|
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
174
174
|
const debug = require_debug();
|
|
175
175
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -354,7 +354,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
354
354
|
};
|
|
355
355
|
}));
|
|
356
356
|
//#endregion
|
|
357
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
357
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
|
|
358
358
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
359
359
|
const SemVer = require_semver$1();
|
|
360
360
|
const parse = (version, options, throwErrors = false) => {
|
|
@@ -369,7 +369,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
369
369
|
module.exports = parse;
|
|
370
370
|
}));
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
372
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
|
|
373
373
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
374
374
|
const parse = require_parse();
|
|
375
375
|
const valid = (version, options) => {
|
|
@@ -379,7 +379,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
379
379
|
module.exports = valid;
|
|
380
380
|
}));
|
|
381
381
|
//#endregion
|
|
382
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
382
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
|
|
383
383
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
384
384
|
const parse = require_parse();
|
|
385
385
|
const clean = (version, options) => {
|
|
@@ -389,7 +389,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
389
389
|
module.exports = clean;
|
|
390
390
|
}));
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
392
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
|
|
393
393
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
394
394
|
const SemVer = require_semver$1();
|
|
395
395
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -407,7 +407,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
module.exports = inc;
|
|
408
408
|
}));
|
|
409
409
|
//#endregion
|
|
410
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
410
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
|
|
411
411
|
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
412
412
|
const parse = require_parse();
|
|
413
413
|
const diff = (version1, version2) => {
|
|
@@ -435,28 +435,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
435
435
|
module.exports = diff;
|
|
436
436
|
}));
|
|
437
437
|
//#endregion
|
|
438
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
438
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
|
|
439
439
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
440
440
|
const SemVer = require_semver$1();
|
|
441
441
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
442
442
|
module.exports = major;
|
|
443
443
|
}));
|
|
444
444
|
//#endregion
|
|
445
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
445
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
|
|
446
446
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
447
447
|
const SemVer = require_semver$1();
|
|
448
448
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
449
449
|
module.exports = minor;
|
|
450
450
|
}));
|
|
451
451
|
//#endregion
|
|
452
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
452
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
|
|
453
453
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
454
454
|
const SemVer = require_semver$1();
|
|
455
455
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
456
456
|
module.exports = patch;
|
|
457
457
|
}));
|
|
458
458
|
//#endregion
|
|
459
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
459
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
|
|
460
460
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
461
461
|
const parse = require_parse();
|
|
462
462
|
const prerelease = (version, options) => {
|
|
@@ -466,28 +466,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
466
466
|
module.exports = prerelease;
|
|
467
467
|
}));
|
|
468
468
|
//#endregion
|
|
469
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
469
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
|
|
470
470
|
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
471
471
|
const SemVer = require_semver$1();
|
|
472
472
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
473
473
|
module.exports = compare;
|
|
474
474
|
}));
|
|
475
475
|
//#endregion
|
|
476
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
476
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
|
|
477
477
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
478
478
|
const compare = require_compare();
|
|
479
479
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
480
480
|
module.exports = rcompare;
|
|
481
481
|
}));
|
|
482
482
|
//#endregion
|
|
483
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
483
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
|
|
484
484
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
485
485
|
const compare = require_compare();
|
|
486
486
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
487
487
|
module.exports = compareLoose;
|
|
488
488
|
}));
|
|
489
489
|
//#endregion
|
|
490
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
490
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
|
|
491
491
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
492
492
|
const SemVer = require_semver$1();
|
|
493
493
|
const compareBuild = (a, b, loose) => {
|
|
@@ -498,63 +498,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
498
498
|
module.exports = compareBuild;
|
|
499
499
|
}));
|
|
500
500
|
//#endregion
|
|
501
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
501
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
|
|
502
502
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
503
503
|
const compareBuild = require_compare_build();
|
|
504
504
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
505
505
|
module.exports = sort;
|
|
506
506
|
}));
|
|
507
507
|
//#endregion
|
|
508
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
508
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
|
|
509
509
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
510
510
|
const compareBuild = require_compare_build();
|
|
511
511
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
512
512
|
module.exports = rsort;
|
|
513
513
|
}));
|
|
514
514
|
//#endregion
|
|
515
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
515
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
|
|
516
516
|
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
517
517
|
const compare = require_compare();
|
|
518
518
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
519
519
|
module.exports = gt;
|
|
520
520
|
}));
|
|
521
521
|
//#endregion
|
|
522
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
522
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
|
|
523
523
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
524
524
|
const compare = require_compare();
|
|
525
525
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
526
526
|
module.exports = lt;
|
|
527
527
|
}));
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
529
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
|
|
530
530
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
531
531
|
const compare = require_compare();
|
|
532
532
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
533
533
|
module.exports = eq;
|
|
534
534
|
}));
|
|
535
535
|
//#endregion
|
|
536
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
536
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
|
|
537
537
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
538
538
|
const compare = require_compare();
|
|
539
539
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
540
540
|
module.exports = neq;
|
|
541
541
|
}));
|
|
542
542
|
//#endregion
|
|
543
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
543
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
|
|
544
544
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
545
545
|
const compare = require_compare();
|
|
546
546
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
547
547
|
module.exports = gte;
|
|
548
548
|
}));
|
|
549
549
|
//#endregion
|
|
550
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
550
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
|
|
551
551
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
552
552
|
const compare = require_compare();
|
|
553
553
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
554
554
|
module.exports = lte;
|
|
555
555
|
}));
|
|
556
556
|
//#endregion
|
|
557
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
557
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
|
|
558
558
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
559
559
|
const eq = require_eq();
|
|
560
560
|
const neq = require_neq();
|
|
@@ -586,7 +586,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
586
586
|
module.exports = cmp;
|
|
587
587
|
}));
|
|
588
588
|
//#endregion
|
|
589
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
589
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
|
|
590
590
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
591
591
|
const SemVer = require_semver$1();
|
|
592
592
|
const parse = require_parse();
|
|
@@ -609,12 +609,16 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
609
609
|
}
|
|
610
610
|
if (match === null) return null;
|
|
611
611
|
const major = match[2];
|
|
612
|
-
|
|
612
|
+
const minor = match[3] || "0";
|
|
613
|
+
const patch = match[4] || "0";
|
|
614
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
615
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
616
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
613
617
|
};
|
|
614
618
|
module.exports = coerce;
|
|
615
619
|
}));
|
|
616
620
|
//#endregion
|
|
617
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
621
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
|
|
618
622
|
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
619
623
|
const parse = require_parse();
|
|
620
624
|
const constants = require_constants();
|
|
@@ -625,7 +629,8 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
625
629
|
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
626
630
|
};
|
|
627
631
|
const cloneInputVersion = (version, options) => {
|
|
628
|
-
|
|
632
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
633
|
+
return parse(versionStringToParse, options);
|
|
629
634
|
};
|
|
630
635
|
const doTruncation = (version, truncation) => {
|
|
631
636
|
if (isPrerelease(truncation)) return version.version;
|
|
@@ -647,7 +652,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
647
652
|
module.exports = truncate;
|
|
648
653
|
}));
|
|
649
654
|
//#endregion
|
|
650
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
655
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
|
|
651
656
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
652
657
|
var LRUCache = class {
|
|
653
658
|
constructor() {
|
|
@@ -680,7 +685,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
680
685
|
module.exports = LRUCache;
|
|
681
686
|
}));
|
|
682
687
|
//#endregion
|
|
683
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
688
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
|
|
684
689
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
685
690
|
const SPACE_CHARACTERS = /\s+/g;
|
|
686
691
|
module.exports = class Range {
|
|
@@ -824,17 +829,19 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
824
829
|
return comp;
|
|
825
830
|
};
|
|
826
831
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
832
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
827
833
|
const replaceTildes = (comp, options) => {
|
|
828
834
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
829
835
|
};
|
|
830
836
|
const replaceTilde = (comp, options) => {
|
|
831
837
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
838
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
832
839
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
833
840
|
debug("tilde", comp, _, M, m, p, pr);
|
|
834
841
|
let ret;
|
|
835
842
|
if (isX(M)) ret = "";
|
|
836
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
837
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
843
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
844
|
+
else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
838
845
|
else if (pr) {
|
|
839
846
|
debug("replaceTilde pr", pr);
|
|
840
847
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -864,8 +871,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
864
871
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
865
872
|
} else {
|
|
866
873
|
debug("no pr");
|
|
867
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}
|
|
868
|
-
else ret = `>=${M}.${m}.${p}
|
|
874
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
875
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
869
876
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
870
877
|
}
|
|
871
878
|
debug("caret return", ret);
|
|
@@ -881,6 +888,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
881
888
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
882
889
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
883
890
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
891
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
884
892
|
const xM = isX(M);
|
|
885
893
|
const xm = xM || isX(m);
|
|
886
894
|
const xp = xm || isX(p);
|
|
@@ -954,7 +962,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
954
962
|
};
|
|
955
963
|
}));
|
|
956
964
|
//#endregion
|
|
957
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
965
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
|
|
958
966
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
959
967
|
const ANY = Symbol("SemVer ANY");
|
|
960
968
|
module.exports = class Comparator {
|
|
@@ -1024,7 +1032,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1024
1032
|
const Range = require_range();
|
|
1025
1033
|
}));
|
|
1026
1034
|
//#endregion
|
|
1027
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1035
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
|
|
1028
1036
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1029
1037
|
const Range = require_range();
|
|
1030
1038
|
const satisfies = (version, range, options) => {
|
|
@@ -1038,14 +1046,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1038
1046
|
module.exports = satisfies;
|
|
1039
1047
|
}));
|
|
1040
1048
|
//#endregion
|
|
1041
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1049
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
|
|
1042
1050
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1043
1051
|
const Range = require_range();
|
|
1044
1052
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1045
1053
|
module.exports = toComparators;
|
|
1046
1054
|
}));
|
|
1047
1055
|
//#endregion
|
|
1048
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1056
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
|
|
1049
1057
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1050
1058
|
const SemVer = require_semver$1();
|
|
1051
1059
|
const Range = require_range();
|
|
@@ -1071,7 +1079,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1071
1079
|
module.exports = maxSatisfying;
|
|
1072
1080
|
}));
|
|
1073
1081
|
//#endregion
|
|
1074
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1082
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
|
|
1075
1083
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1076
1084
|
const SemVer = require_semver$1();
|
|
1077
1085
|
const Range = require_range();
|
|
@@ -1097,7 +1105,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1097
1105
|
module.exports = minSatisfying;
|
|
1098
1106
|
}));
|
|
1099
1107
|
//#endregion
|
|
1100
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1108
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
|
|
1101
1109
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1102
1110
|
const SemVer = require_semver$1();
|
|
1103
1111
|
const Range = require_range();
|
|
@@ -1137,7 +1145,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1137
1145
|
module.exports = minVersion;
|
|
1138
1146
|
}));
|
|
1139
1147
|
//#endregion
|
|
1140
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1148
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
|
|
1141
1149
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1142
1150
|
const Range = require_range();
|
|
1143
1151
|
const validRange = (range, options) => {
|
|
@@ -1150,7 +1158,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1150
1158
|
module.exports = validRange;
|
|
1151
1159
|
}));
|
|
1152
1160
|
//#endregion
|
|
1153
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1161
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
|
|
1154
1162
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1155
1163
|
const SemVer = require_semver$1();
|
|
1156
1164
|
const Comparator = require_comparator();
|
|
@@ -1203,21 +1211,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1203
1211
|
module.exports = outside;
|
|
1204
1212
|
}));
|
|
1205
1213
|
//#endregion
|
|
1206
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1214
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
|
|
1207
1215
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1208
1216
|
const outside = require_outside();
|
|
1209
1217
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1210
1218
|
module.exports = gtr;
|
|
1211
1219
|
}));
|
|
1212
1220
|
//#endregion
|
|
1213
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1221
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
|
|
1214
1222
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1215
1223
|
const outside = require_outside();
|
|
1216
1224
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1217
1225
|
module.exports = ltr;
|
|
1218
1226
|
}));
|
|
1219
1227
|
//#endregion
|
|
1220
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1228
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
|
|
1221
1229
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1222
1230
|
const Range = require_range();
|
|
1223
1231
|
const intersects = (r1, r2, options) => {
|
|
@@ -1228,7 +1236,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1228
1236
|
module.exports = intersects;
|
|
1229
1237
|
}));
|
|
1230
1238
|
//#endregion
|
|
1231
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1239
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
|
|
1232
1240
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1233
1241
|
const satisfies = require_satisfies();
|
|
1234
1242
|
const compare = require_compare();
|
|
@@ -1258,7 +1266,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1258
1266
|
};
|
|
1259
1267
|
}));
|
|
1260
1268
|
//#endregion
|
|
1261
|
-
//#region node_modules/.pnpm/semver@7.8.
|
|
1269
|
+
//#region node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
|
|
1262
1270
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1263
1271
|
const Range = require_range();
|
|
1264
1272
|
const Comparator = require_comparator();
|
|
@@ -1658,7 +1666,7 @@ const logToInquirer = (label, value) => {
|
|
|
1658
1666
|
const getDirectoryChoices = (rootPath, currentInput = "", maxDepth = 3) => {
|
|
1659
1667
|
const MAX_FILTERED_CHOICES = 10;
|
|
1660
1668
|
const MAX_DEFAULT_CHOICES = 20;
|
|
1661
|
-
const SKIP_DIRS = new Set([
|
|
1669
|
+
const SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
1662
1670
|
"node_modules",
|
|
1663
1671
|
"dist",
|
|
1664
1672
|
"build",
|
|
@@ -1709,7 +1717,8 @@ const queryPackages = async (packages) => {
|
|
|
1709
1717
|
const customPath = await search({
|
|
1710
1718
|
message: "Enter the folder path (relative to project root):",
|
|
1711
1719
|
source: async (searchInput) => {
|
|
1712
|
-
|
|
1720
|
+
const rootPath = process.cwd();
|
|
1721
|
+
return getDirectoryChoices(rootPath, searchInput || "").map((choice) => ({
|
|
1713
1722
|
name: choice === "." ? ". (entire project)" : choice,
|
|
1714
1723
|
value: choice,
|
|
1715
1724
|
description: choice === "." ? "Target the entire project" : `Target ${choice} directory`
|
|
@@ -1842,13 +1851,15 @@ const determineGitIgnore = async (args) => {
|
|
|
1842
1851
|
async function getOptions({ transformFiles, transformerType, packages, root, preselectedTransformFile }) {
|
|
1843
1852
|
const args = process.argv.slice(2);
|
|
1844
1853
|
if (preselectedTransformFile && args[0] === preselectedTransformFile) args.shift();
|
|
1854
|
+
const transformFile = preselectedTransformFile || await determineTransformer({
|
|
1855
|
+
candidate: args[0] ?? "",
|
|
1856
|
+
transformFiles
|
|
1857
|
+
});
|
|
1858
|
+
const pathCandidate = preselectedTransformFile ? args[0] ?? "" : args[1] ?? "";
|
|
1845
1859
|
return {
|
|
1846
|
-
transformFile
|
|
1847
|
-
candidate: args[0] ?? "",
|
|
1848
|
-
transformFiles
|
|
1849
|
-
}),
|
|
1860
|
+
transformFile,
|
|
1850
1861
|
targetPaths: await determinePaths({
|
|
1851
|
-
candidate:
|
|
1862
|
+
candidate: pathCandidate,
|
|
1852
1863
|
root,
|
|
1853
1864
|
packages
|
|
1854
1865
|
}),
|
|
@@ -1944,4 +1955,4 @@ function validateClaudeConfig() {
|
|
|
1944
1955
|
//#endregion
|
|
1945
1956
|
export { getOptions as a, assessPrerequisitesBatch as c, getCodemodConfig as d, loadTransformModules as i, findPackages as l, runTransformPrompts as n, logToInquirer as o, reportManualReview as r, assessPrerequisites as s, validateClaudeConfig as t, findProjectRoot as u };
|
|
1946
1957
|
|
|
1947
|
-
//# sourceMappingURL=helpers-
|
|
1958
|
+
//# sourceMappingURL=helpers-9lRR7FPz.js.map
|