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