@wise/wds-codemods 1.0.0-experimental-969b484 → 1.0.0-experimental-541a93b
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-BneL7s1f.js → helpers-RWhTD5Is.js} +97 -102
- package/dist/helpers-RWhTD5Is.js.map +1 -0
- package/dist/index.js +24 -29
- package/dist/index.js.map +1 -1
- package/dist/transformer-BxHkGbvJ.js +344 -0
- package/dist/transformer-BxHkGbvJ.js.map +1 -0
- package/dist/transforms/button/transformer.js +1 -1
- package/dist/transforms/list-item/config.json +6 -0
- package/dist/transforms/list-item/transformer.js +4 -0
- package/package.json +4 -2
- package/dist/helpers-BneL7s1f.js.map +0 -1
|
@@ -32,8 +32,8 @@ node_path = __toESM(node_path);
|
|
|
32
32
|
let __inquirer_prompts = require("@inquirer/prompts");
|
|
33
33
|
let node_fs = require("node:fs");
|
|
34
34
|
|
|
35
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
36
|
-
var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
35
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
|
|
36
|
+
var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js": ((exports, module) => {
|
|
37
37
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
38
38
|
const MAX_LENGTH$2 = 256;
|
|
39
39
|
const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -61,15 +61,15 @@ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@
|
|
|
61
61
|
}) });
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
65
|
-
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
64
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
|
|
65
|
+
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js": ((exports, module) => {
|
|
66
66
|
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) : () => {};
|
|
67
67
|
module.exports = debug$4;
|
|
68
68
|
}) });
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
72
|
-
var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
71
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
|
|
72
|
+
var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js": ((exports, module) => {
|
|
73
73
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
|
|
74
74
|
const debug$3 = require_debug();
|
|
75
75
|
exports = module.exports = {};
|
|
@@ -148,8 +148,8 @@ var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/n
|
|
|
148
148
|
}) });
|
|
149
149
|
|
|
150
150
|
//#endregion
|
|
151
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
152
|
-
var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
151
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
|
|
152
|
+
var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js": ((exports, module) => {
|
|
153
153
|
const looseOption = Object.freeze({ loose: true });
|
|
154
154
|
const emptyOpts = Object.freeze({});
|
|
155
155
|
const parseOptions$3 = (options) => {
|
|
@@ -161,11 +161,10 @@ var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/sem
|
|
|
161
161
|
}) });
|
|
162
162
|
|
|
163
163
|
//#endregion
|
|
164
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
165
|
-
var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
164
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
|
|
165
|
+
var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js": ((exports, module) => {
|
|
166
166
|
const numeric = /^[0-9]+$/;
|
|
167
167
|
const compareIdentifiers$1 = (a, b) => {
|
|
168
|
-
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
169
168
|
const anum = numeric.test(a);
|
|
170
169
|
const bnum = numeric.test(b);
|
|
171
170
|
if (anum && bnum) {
|
|
@@ -182,8 +181,8 @@ var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semve
|
|
|
182
181
|
}) });
|
|
183
182
|
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
186
|
-
var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
184
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
|
|
185
|
+
var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js": ((exports, module) => {
|
|
187
186
|
const debug$2 = require_debug();
|
|
188
187
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
189
188
|
const { safeRe: re$3, t: t$3 } = require_re();
|
|
@@ -239,13 +238,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
239
238
|
}
|
|
240
239
|
compareMain(other) {
|
|
241
240
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
242
|
-
|
|
243
|
-
if (this.major > other.major) return 1;
|
|
244
|
-
if (this.minor < other.minor) return -1;
|
|
245
|
-
if (this.minor > other.minor) return 1;
|
|
246
|
-
if (this.patch < other.patch) return -1;
|
|
247
|
-
if (this.patch > other.patch) return 1;
|
|
248
|
-
return 0;
|
|
241
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
249
242
|
}
|
|
250
243
|
comparePre(other) {
|
|
251
244
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
@@ -362,8 +355,8 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
362
355
|
}) });
|
|
363
356
|
|
|
364
357
|
//#endregion
|
|
365
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
366
|
-
var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
358
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
|
|
359
|
+
var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js": ((exports, module) => {
|
|
367
360
|
const SemVer$14 = require_semver$1();
|
|
368
361
|
const parse$6 = (version, options, throwErrors = false) => {
|
|
369
362
|
if (version instanceof SemVer$14) return version;
|
|
@@ -378,8 +371,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
378
371
|
}) });
|
|
379
372
|
|
|
380
373
|
//#endregion
|
|
381
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
382
|
-
var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
374
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
|
|
375
|
+
var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js": ((exports, module) => {
|
|
383
376
|
const parse$5 = require_parse();
|
|
384
377
|
const valid$1 = (version, options) => {
|
|
385
378
|
const v = parse$5(version, options);
|
|
@@ -389,8 +382,8 @@ var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.
|
|
|
389
382
|
}) });
|
|
390
383
|
|
|
391
384
|
//#endregion
|
|
392
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
393
|
-
var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
385
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
|
|
386
|
+
var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js": ((exports, module) => {
|
|
394
387
|
const parse$4 = require_parse();
|
|
395
388
|
const clean$1 = (version, options) => {
|
|
396
389
|
const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -400,8 +393,8 @@ var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
400
393
|
}) });
|
|
401
394
|
|
|
402
395
|
//#endregion
|
|
403
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
404
|
-
var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
396
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
|
|
397
|
+
var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js": ((exports, module) => {
|
|
405
398
|
const SemVer$13 = require_semver$1();
|
|
406
399
|
const inc$1 = (version, release, options, identifier, identifierBase) => {
|
|
407
400
|
if (typeof options === "string") {
|
|
@@ -419,8 +412,8 @@ var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/
|
|
|
419
412
|
}) });
|
|
420
413
|
|
|
421
414
|
//#endregion
|
|
422
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
423
|
-
var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
415
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
|
|
416
|
+
var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js": ((exports, module) => {
|
|
424
417
|
const parse$3 = require_parse();
|
|
425
418
|
const diff$1 = (version1, version2) => {
|
|
426
419
|
const v1 = parse$3(version1, null, true);
|
|
@@ -448,32 +441,32 @@ var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3
|
|
|
448
441
|
}) });
|
|
449
442
|
|
|
450
443
|
//#endregion
|
|
451
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
452
|
-
var require_major = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
444
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
|
|
445
|
+
var require_major = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js": ((exports, module) => {
|
|
453
446
|
const SemVer$12 = require_semver$1();
|
|
454
447
|
const major$1 = (a, loose) => new SemVer$12(a, loose).major;
|
|
455
448
|
module.exports = major$1;
|
|
456
449
|
}) });
|
|
457
450
|
|
|
458
451
|
//#endregion
|
|
459
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
460
|
-
var require_minor = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
452
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
|
|
453
|
+
var require_minor = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js": ((exports, module) => {
|
|
461
454
|
const SemVer$11 = require_semver$1();
|
|
462
455
|
const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
|
|
463
456
|
module.exports = minor$1;
|
|
464
457
|
}) });
|
|
465
458
|
|
|
466
459
|
//#endregion
|
|
467
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
468
|
-
var require_patch = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
460
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
|
|
461
|
+
var require_patch = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js": ((exports, module) => {
|
|
469
462
|
const SemVer$10 = require_semver$1();
|
|
470
463
|
const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
|
|
471
464
|
module.exports = patch$1;
|
|
472
465
|
}) });
|
|
473
466
|
|
|
474
467
|
//#endregion
|
|
475
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
476
|
-
var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
468
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
|
|
469
|
+
var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js": ((exports, module) => {
|
|
477
470
|
const parse$2 = require_parse();
|
|
478
471
|
const prerelease$1 = (version, options) => {
|
|
479
472
|
const parsed = parse$2(version, options);
|
|
@@ -483,32 +476,32 @@ var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
483
476
|
}) });
|
|
484
477
|
|
|
485
478
|
//#endregion
|
|
486
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
487
|
-
var require_compare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
479
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
|
|
480
|
+
var require_compare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js": ((exports, module) => {
|
|
488
481
|
const SemVer$9 = require_semver$1();
|
|
489
482
|
const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
|
|
490
483
|
module.exports = compare$11;
|
|
491
484
|
}) });
|
|
492
485
|
|
|
493
486
|
//#endregion
|
|
494
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
495
|
-
var require_rcompare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
487
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
|
|
488
|
+
var require_rcompare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js": ((exports, module) => {
|
|
496
489
|
const compare$10 = require_compare();
|
|
497
490
|
const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
|
|
498
491
|
module.exports = rcompare$1;
|
|
499
492
|
}) });
|
|
500
493
|
|
|
501
494
|
//#endregion
|
|
502
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
503
|
-
var require_compare_loose = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
495
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
|
|
496
|
+
var require_compare_loose = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js": ((exports, module) => {
|
|
504
497
|
const compare$9 = require_compare();
|
|
505
498
|
const compareLoose$1 = (a, b) => compare$9(a, b, true);
|
|
506
499
|
module.exports = compareLoose$1;
|
|
507
500
|
}) });
|
|
508
501
|
|
|
509
502
|
//#endregion
|
|
510
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
511
|
-
var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
503
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
|
|
504
|
+
var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js": ((exports, module) => {
|
|
512
505
|
const SemVer$8 = require_semver$1();
|
|
513
506
|
const compareBuild$3 = (a, b, loose) => {
|
|
514
507
|
const versionA = new SemVer$8(a, loose);
|
|
@@ -519,72 +512,72 @@ var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/sem
|
|
|
519
512
|
}) });
|
|
520
513
|
|
|
521
514
|
//#endregion
|
|
522
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
523
|
-
var require_sort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
515
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
|
|
516
|
+
var require_sort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js": ((exports, module) => {
|
|
524
517
|
const compareBuild$2 = require_compare_build();
|
|
525
518
|
const sort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$2(a, b, loose));
|
|
526
519
|
module.exports = sort$1;
|
|
527
520
|
}) });
|
|
528
521
|
|
|
529
522
|
//#endregion
|
|
530
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
531
|
-
var require_rsort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
523
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
|
|
524
|
+
var require_rsort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js": ((exports, module) => {
|
|
532
525
|
const compareBuild$1 = require_compare_build();
|
|
533
526
|
const rsort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$1(b, a, loose));
|
|
534
527
|
module.exports = rsort$1;
|
|
535
528
|
}) });
|
|
536
529
|
|
|
537
530
|
//#endregion
|
|
538
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
539
|
-
var require_gt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
531
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
|
|
532
|
+
var require_gt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js": ((exports, module) => {
|
|
540
533
|
const compare$8 = require_compare();
|
|
541
534
|
const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
|
|
542
535
|
module.exports = gt$4;
|
|
543
536
|
}) });
|
|
544
537
|
|
|
545
538
|
//#endregion
|
|
546
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
547
|
-
var require_lt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
539
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
|
|
540
|
+
var require_lt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js": ((exports, module) => {
|
|
548
541
|
const compare$7 = require_compare();
|
|
549
542
|
const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
|
|
550
543
|
module.exports = lt$3;
|
|
551
544
|
}) });
|
|
552
545
|
|
|
553
546
|
//#endregion
|
|
554
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
555
|
-
var require_eq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
547
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
|
|
548
|
+
var require_eq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js": ((exports, module) => {
|
|
556
549
|
const compare$6 = require_compare();
|
|
557
550
|
const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
|
|
558
551
|
module.exports = eq$2;
|
|
559
552
|
}) });
|
|
560
553
|
|
|
561
554
|
//#endregion
|
|
562
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
563
|
-
var require_neq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
555
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
|
|
556
|
+
var require_neq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js": ((exports, module) => {
|
|
564
557
|
const compare$5 = require_compare();
|
|
565
558
|
const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
|
|
566
559
|
module.exports = neq$2;
|
|
567
560
|
}) });
|
|
568
561
|
|
|
569
562
|
//#endregion
|
|
570
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
571
|
-
var require_gte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
563
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
|
|
564
|
+
var require_gte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js": ((exports, module) => {
|
|
572
565
|
const compare$4 = require_compare();
|
|
573
566
|
const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
|
|
574
567
|
module.exports = gte$3;
|
|
575
568
|
}) });
|
|
576
569
|
|
|
577
570
|
//#endregion
|
|
578
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
579
|
-
var require_lte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
571
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
|
|
572
|
+
var require_lte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js": ((exports, module) => {
|
|
580
573
|
const compare$3 = require_compare();
|
|
581
574
|
const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
|
|
582
575
|
module.exports = lte$3;
|
|
583
576
|
}) });
|
|
584
577
|
|
|
585
578
|
//#endregion
|
|
586
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
587
|
-
var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
579
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
|
|
580
|
+
var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js": ((exports, module) => {
|
|
588
581
|
const eq$1 = require_eq();
|
|
589
582
|
const neq$1 = require_neq();
|
|
590
583
|
const gt$3 = require_gt();
|
|
@@ -616,8 +609,8 @@ var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/
|
|
|
616
609
|
}) });
|
|
617
610
|
|
|
618
611
|
//#endregion
|
|
619
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
620
|
-
var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
612
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
|
|
613
|
+
var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js": ((exports, module) => {
|
|
621
614
|
const SemVer$7 = require_semver$1();
|
|
622
615
|
const parse$1 = require_parse();
|
|
623
616
|
const { safeRe: re$2, t: t$2 } = require_re();
|
|
@@ -645,8 +638,8 @@ var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7
|
|
|
645
638
|
}) });
|
|
646
639
|
|
|
647
640
|
//#endregion
|
|
648
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
649
|
-
var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
641
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
|
|
642
|
+
var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js": ((exports, module) => {
|
|
650
643
|
var LRUCache = class {
|
|
651
644
|
constructor() {
|
|
652
645
|
this.max = 1e3;
|
|
@@ -679,8 +672,8 @@ var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
679
672
|
}) });
|
|
680
673
|
|
|
681
674
|
//#endregion
|
|
682
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
683
|
-
var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
675
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
|
|
676
|
+
var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js": ((exports, module) => {
|
|
684
677
|
const SPACE_CHARACTERS = /\s+/g;
|
|
685
678
|
var Range$11 = class Range$11 {
|
|
686
679
|
constructor(range, options) {
|
|
@@ -809,7 +802,6 @@ var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
809
802
|
return result;
|
|
810
803
|
};
|
|
811
804
|
const parseComparator = (comp, options) => {
|
|
812
|
-
comp = comp.replace(re$1[t$1.BUILD], "");
|
|
813
805
|
debug$1("comp", comp, options);
|
|
814
806
|
comp = replaceCarets(comp, options);
|
|
815
807
|
debug$1("caret", comp);
|
|
@@ -953,8 +945,8 @@ var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
953
945
|
}) });
|
|
954
946
|
|
|
955
947
|
//#endregion
|
|
956
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
957
|
-
var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
948
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
|
|
949
|
+
var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js": ((exports, module) => {
|
|
958
950
|
const ANY$2 = Symbol("SemVer ANY");
|
|
959
951
|
var Comparator$3 = class Comparator$3 {
|
|
960
952
|
static get ANY() {
|
|
@@ -1025,8 +1017,8 @@ var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
1025
1017
|
}) });
|
|
1026
1018
|
|
|
1027
1019
|
//#endregion
|
|
1028
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1029
|
-
var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1020
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
|
|
1021
|
+
var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js": ((exports, module) => {
|
|
1030
1022
|
const Range$9 = require_range();
|
|
1031
1023
|
const satisfies$4 = (version, range, options) => {
|
|
1032
1024
|
try {
|
|
@@ -1040,16 +1032,16 @@ var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@
|
|
|
1040
1032
|
}) });
|
|
1041
1033
|
|
|
1042
1034
|
//#endregion
|
|
1043
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1044
|
-
var require_to_comparators = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1035
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
|
|
1036
|
+
var require_to_comparators = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js": ((exports, module) => {
|
|
1045
1037
|
const Range$8 = require_range();
|
|
1046
1038
|
const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1047
1039
|
module.exports = toComparators$1;
|
|
1048
1040
|
}) });
|
|
1049
1041
|
|
|
1050
1042
|
//#endregion
|
|
1051
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1052
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1043
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
|
|
1044
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js": ((exports, module) => {
|
|
1053
1045
|
const SemVer$4 = require_semver$1();
|
|
1054
1046
|
const Range$7 = require_range();
|
|
1055
1047
|
const maxSatisfying$1 = (versions, range, options) => {
|
|
@@ -1075,8 +1067,8 @@ var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/se
|
|
|
1075
1067
|
}) });
|
|
1076
1068
|
|
|
1077
1069
|
//#endregion
|
|
1078
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1079
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1070
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
|
|
1071
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js": ((exports, module) => {
|
|
1080
1072
|
const SemVer$3 = require_semver$1();
|
|
1081
1073
|
const Range$6 = require_range();
|
|
1082
1074
|
const minSatisfying$1 = (versions, range, options) => {
|
|
@@ -1102,8 +1094,8 @@ var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/se
|
|
|
1102
1094
|
}) });
|
|
1103
1095
|
|
|
1104
1096
|
//#endregion
|
|
1105
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1106
|
-
var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1097
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
|
|
1098
|
+
var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js": ((exports, module) => {
|
|
1107
1099
|
const SemVer$2 = require_semver$1();
|
|
1108
1100
|
const Range$5 = require_range();
|
|
1109
1101
|
const gt$2 = require_gt();
|
|
@@ -1142,8 +1134,8 @@ var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semve
|
|
|
1142
1134
|
}) });
|
|
1143
1135
|
|
|
1144
1136
|
//#endregion
|
|
1145
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1146
|
-
var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1137
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
|
|
1138
|
+
var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js": ((exports, module) => {
|
|
1147
1139
|
const Range$4 = require_range();
|
|
1148
1140
|
const validRange$1 = (range, options) => {
|
|
1149
1141
|
try {
|
|
@@ -1156,8 +1148,8 @@ var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
1156
1148
|
}) });
|
|
1157
1149
|
|
|
1158
1150
|
//#endregion
|
|
1159
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1160
|
-
var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1151
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
|
|
1152
|
+
var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js": ((exports, module) => {
|
|
1161
1153
|
const SemVer$1 = require_semver$1();
|
|
1162
1154
|
const Comparator$2 = require_comparator();
|
|
1163
1155
|
const { ANY: ANY$1 } = Comparator$2;
|
|
@@ -1210,24 +1202,24 @@ var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.
|
|
|
1210
1202
|
}) });
|
|
1211
1203
|
|
|
1212
1204
|
//#endregion
|
|
1213
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1214
|
-
var require_gtr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1205
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
|
|
1206
|
+
var require_gtr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js": ((exports, module) => {
|
|
1215
1207
|
const outside$2 = require_outside();
|
|
1216
1208
|
const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
|
|
1217
1209
|
module.exports = gtr$1;
|
|
1218
1210
|
}) });
|
|
1219
1211
|
|
|
1220
1212
|
//#endregion
|
|
1221
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1222
|
-
var require_ltr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1213
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
|
|
1214
|
+
var require_ltr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js": ((exports, module) => {
|
|
1223
1215
|
const outside$1 = require_outside();
|
|
1224
1216
|
const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
|
|
1225
1217
|
module.exports = ltr$1;
|
|
1226
1218
|
}) });
|
|
1227
1219
|
|
|
1228
1220
|
//#endregion
|
|
1229
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1230
|
-
var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1221
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
|
|
1222
|
+
var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js": ((exports, module) => {
|
|
1231
1223
|
const Range$2 = require_range();
|
|
1232
1224
|
const intersects$1 = (r1, r2, options) => {
|
|
1233
1225
|
r1 = new Range$2(r1, options);
|
|
@@ -1238,8 +1230,8 @@ var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
1238
1230
|
}) });
|
|
1239
1231
|
|
|
1240
1232
|
//#endregion
|
|
1241
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1242
|
-
var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1233
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
|
|
1234
|
+
var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js": ((exports, module) => {
|
|
1243
1235
|
const satisfies$2 = require_satisfies();
|
|
1244
1236
|
const compare$2 = require_compare();
|
|
1245
1237
|
module.exports = (versions, range, options) => {
|
|
@@ -1269,8 +1261,8 @@ var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
1269
1261
|
}) });
|
|
1270
1262
|
|
|
1271
1263
|
//#endregion
|
|
1272
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1273
|
-
var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1264
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
|
|
1265
|
+
var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js": ((exports, module) => {
|
|
1274
1266
|
const Range$1 = require_range();
|
|
1275
1267
|
const Comparator$1 = require_comparator();
|
|
1276
1268
|
const { ANY } = Comparator$1;
|
|
@@ -1365,8 +1357,8 @@ var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7
|
|
|
1365
1357
|
}) });
|
|
1366
1358
|
|
|
1367
1359
|
//#endregion
|
|
1368
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1369
|
-
var require_semver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1360
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
|
|
1361
|
+
var require_semver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js": ((exports, module) => {
|
|
1370
1362
|
const internalRe = require_re();
|
|
1371
1363
|
const constants = require_constants();
|
|
1372
1364
|
const SemVer = require_semver$1();
|
|
@@ -1459,6 +1451,7 @@ var require_semver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7
|
|
|
1459
1451
|
|
|
1460
1452
|
//#endregion
|
|
1461
1453
|
//#region src/controller/helpers/getCodemodConfig.ts
|
|
1454
|
+
/** Retrieves a JSON object from a file path, returning null if the file does not exist */
|
|
1462
1455
|
const getJsonFromPath = (baseDir, fileName) => {
|
|
1463
1456
|
const jsonPath = (0, node_path.join)(baseDir, fileName);
|
|
1464
1457
|
try {
|
|
@@ -1620,10 +1613,12 @@ const assessPrerequisites = (packagePath, codemodPath) => {
|
|
|
1620
1613
|
return false;
|
|
1621
1614
|
}
|
|
1622
1615
|
if (actualPackagePath !== resolvedPackagePath) console.info(`Using package.json from ${actualPackagePath} for dependency checks`);
|
|
1623
|
-
const
|
|
1616
|
+
const packageJson = getJsonFromPath(actualPackagePath, "package.json");
|
|
1617
|
+
if (!packageJson) return false;
|
|
1618
|
+
const { dependencies = {}, peerDependencies = {} } = packageJson;
|
|
1624
1619
|
const comparisons = {};
|
|
1625
1620
|
let isCompliant = true;
|
|
1626
|
-
if (codemodConfig
|
|
1621
|
+
if (codemodConfig?.prerequisites) Object.entries(codemodConfig.prerequisites).forEach(([name, versionRequirement]) => {
|
|
1627
1622
|
const nodeModulesVersion = getVersionFromNodeModules(actualPackagePath, name);
|
|
1628
1623
|
const isDependencySatisfied = isVersionSatisfied(dependencies[name], versionRequirement);
|
|
1629
1624
|
const isPeerDependencySatisfied = isVersionSatisfied(peerDependencies[name], versionRequirement);
|
|
@@ -2007,4 +2002,4 @@ Object.defineProperty(exports, 'runTransformPrompts', {
|
|
|
2007
2002
|
return runTransformPrompts;
|
|
2008
2003
|
}
|
|
2009
2004
|
});
|
|
2010
|
-
//# sourceMappingURL=helpers-
|
|
2005
|
+
//# sourceMappingURL=helpers-RWhTD5Is.js.map
|