@slidev/cli 0.32.4 → 0.34.0
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/README.md +2 -3
- package/dist/build-GQNLL4B2.js +113 -0
- package/dist/build-Y3ZVSXFT.mjs +113 -0
- package/dist/{chunk-ERHEJGU7.js → chunk-5GSPMDNU.js} +162 -160
- package/dist/chunk-FROLEDLC.js +10916 -0
- package/dist/{chunk-ZWCVPYOA.mjs → chunk-IWKTUAXD.mjs} +2 -2
- package/dist/chunk-OGKTSZVU.mjs +10917 -0
- package/dist/{chunk-STSGOSM4.mjs → chunk-QE663OGO.mjs} +13 -11
- package/dist/{chunk-FFZLS6QK.js → chunk-SO7T6GEW.js} +7 -3
- package/dist/cli.js +29 -26
- package/dist/cli.mjs +10 -7
- package/dist/{export-LOKLMK66.js → export-URR4VZNO.js} +4 -4
- package/dist/{export-5R6FV775.mjs → export-Z44PM4CT.mjs} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +23 -20
- package/dist/build-O7J6JH7N.mjs +0 -742
- package/dist/build-SKQZLTIO.js +0 -742
- package/dist/chunk-CNNMHD67.mjs +0 -1556
- package/dist/chunk-KFVTOCED.js +0 -1555
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var _chunkKFVTOCEDjs = require('./chunk-KFVTOCED.js');
|
|
4
3
|
|
|
4
|
+
var _chunkFROLEDLCjs = require('./chunk-FROLEDLC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,12 +14,13 @@ var _chunkKFVTOCEDjs = require('./chunk-KFVTOCED.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
var _chunkSO7T6GEWjs = require('./chunk-SO7T6GEW.js');
|
|
18
19
|
|
|
19
20
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js
|
|
20
|
-
var require_constants =
|
|
21
|
+
var require_constants = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
21
22
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"(exports, module) {
|
|
22
|
-
|
|
23
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
23
24
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
24
25
|
var MAX_LENGTH = 256;
|
|
25
26
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -34,9 +35,9 @@ var require_constants = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
34
35
|
});
|
|
35
36
|
|
|
36
37
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js
|
|
37
|
-
var require_debug =
|
|
38
|
+
var require_debug = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
38
39
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"(exports, module) {
|
|
39
|
-
|
|
40
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
40
41
|
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
41
42
|
};
|
|
42
43
|
module.exports = debug2;
|
|
@@ -44,9 +45,9 @@ var require_debug = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
44
45
|
});
|
|
45
46
|
|
|
46
47
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js
|
|
47
|
-
var require_re =
|
|
48
|
+
var require_re = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
48
49
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"(exports, module) {
|
|
49
|
-
|
|
50
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
50
51
|
var { MAX_SAFE_COMPONENT_LENGTH } = require_constants();
|
|
51
52
|
var debug2 = require_debug();
|
|
52
53
|
exports = module.exports = {};
|
|
@@ -108,9 +109,9 @@ var require_re = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
108
109
|
});
|
|
109
110
|
|
|
110
111
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js
|
|
111
|
-
var require_parse_options =
|
|
112
|
+
var require_parse_options = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
112
113
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
113
|
-
|
|
114
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
114
115
|
var opts = ["includePrerelease", "loose", "rtl"];
|
|
115
116
|
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
|
|
116
117
|
o[k] = true;
|
|
@@ -121,9 +122,9 @@ var require_parse_options = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
121
122
|
});
|
|
122
123
|
|
|
123
124
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js
|
|
124
|
-
var require_identifiers =
|
|
125
|
+
var require_identifiers = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
125
126
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
126
|
-
|
|
127
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
127
128
|
var numeric = /^[0-9]+$/;
|
|
128
129
|
var compareIdentifiers = (a, b) => {
|
|
129
130
|
const anum = numeric.test(a);
|
|
@@ -143,9 +144,9 @@ var require_identifiers = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
143
144
|
});
|
|
144
145
|
|
|
145
146
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js
|
|
146
|
-
var require_semver =
|
|
147
|
+
var require_semver = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
147
148
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"(exports, module) {
|
|
148
|
-
|
|
149
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
149
150
|
var debug2 = require_debug();
|
|
150
151
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
151
152
|
var { re, t } = require_re();
|
|
@@ -368,9 +369,9 @@ var require_semver = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
368
369
|
});
|
|
369
370
|
|
|
370
371
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js
|
|
371
|
-
var require_parse =
|
|
372
|
+
var require_parse = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
372
373
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"(exports, module) {
|
|
373
|
-
|
|
374
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
374
375
|
var { MAX_LENGTH } = require_constants();
|
|
375
376
|
var { re, t } = require_re();
|
|
376
377
|
var SemVer = require_semver();
|
|
@@ -401,9 +402,9 @@ var require_parse = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
401
402
|
});
|
|
402
403
|
|
|
403
404
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js
|
|
404
|
-
var require_valid =
|
|
405
|
+
var require_valid = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
405
406
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js"(exports, module) {
|
|
406
|
-
|
|
407
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
407
408
|
var parse2 = require_parse();
|
|
408
409
|
var valid = (version3, options) => {
|
|
409
410
|
const v = parse2(version3, options);
|
|
@@ -414,9 +415,9 @@ var require_valid = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
414
415
|
});
|
|
415
416
|
|
|
416
417
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js
|
|
417
|
-
var require_clean =
|
|
418
|
+
var require_clean = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
418
419
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js"(exports, module) {
|
|
419
|
-
|
|
420
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
420
421
|
var parse2 = require_parse();
|
|
421
422
|
var clean = (version3, options) => {
|
|
422
423
|
const s = parse2(version3.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -427,9 +428,9 @@ var require_clean = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
427
428
|
});
|
|
428
429
|
|
|
429
430
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js
|
|
430
|
-
var require_inc =
|
|
431
|
+
var require_inc = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
431
432
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js"(exports, module) {
|
|
432
|
-
|
|
433
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
433
434
|
var SemVer = require_semver();
|
|
434
435
|
var inc = (version3, release, options, identifier) => {
|
|
435
436
|
if (typeof options === "string") {
|
|
@@ -447,9 +448,9 @@ var require_inc = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
447
448
|
});
|
|
448
449
|
|
|
449
450
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js
|
|
450
|
-
var require_compare =
|
|
451
|
+
var require_compare = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
451
452
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js"(exports, module) {
|
|
452
|
-
|
|
453
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
453
454
|
var SemVer = require_semver();
|
|
454
455
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
455
456
|
module.exports = compare;
|
|
@@ -457,9 +458,9 @@ var require_compare = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
457
458
|
});
|
|
458
459
|
|
|
459
460
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js
|
|
460
|
-
var require_eq =
|
|
461
|
+
var require_eq = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
461
462
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js"(exports, module) {
|
|
462
|
-
|
|
463
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
463
464
|
var compare = require_compare();
|
|
464
465
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
465
466
|
module.exports = eq;
|
|
@@ -467,9 +468,9 @@ var require_eq = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
467
468
|
});
|
|
468
469
|
|
|
469
470
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js
|
|
470
|
-
var require_diff =
|
|
471
|
+
var require_diff = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
471
472
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js"(exports, module) {
|
|
472
|
-
|
|
473
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
473
474
|
var parse2 = require_parse();
|
|
474
475
|
var eq = require_eq();
|
|
475
476
|
var diff = (version1, version22) => {
|
|
@@ -496,9 +497,9 @@ var require_diff = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
496
497
|
});
|
|
497
498
|
|
|
498
499
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js
|
|
499
|
-
var require_major =
|
|
500
|
+
var require_major = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
500
501
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js"(exports, module) {
|
|
501
|
-
|
|
502
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
502
503
|
var SemVer = require_semver();
|
|
503
504
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
504
505
|
module.exports = major;
|
|
@@ -506,9 +507,9 @@ var require_major = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
506
507
|
});
|
|
507
508
|
|
|
508
509
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js
|
|
509
|
-
var require_minor =
|
|
510
|
+
var require_minor = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
510
511
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js"(exports, module) {
|
|
511
|
-
|
|
512
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
512
513
|
var SemVer = require_semver();
|
|
513
514
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
514
515
|
module.exports = minor;
|
|
@@ -516,9 +517,9 @@ var require_minor = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
516
517
|
});
|
|
517
518
|
|
|
518
519
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js
|
|
519
|
-
var require_patch =
|
|
520
|
+
var require_patch = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
520
521
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js"(exports, module) {
|
|
521
|
-
|
|
522
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
522
523
|
var SemVer = require_semver();
|
|
523
524
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
524
525
|
module.exports = patch;
|
|
@@ -526,9 +527,9 @@ var require_patch = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
526
527
|
});
|
|
527
528
|
|
|
528
529
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js
|
|
529
|
-
var require_prerelease =
|
|
530
|
+
var require_prerelease = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
530
531
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
531
|
-
|
|
532
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
532
533
|
var parse2 = require_parse();
|
|
533
534
|
var prerelease = (version3, options) => {
|
|
534
535
|
const parsed = parse2(version3, options);
|
|
@@ -539,9 +540,9 @@ var require_prerelease = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
539
540
|
});
|
|
540
541
|
|
|
541
542
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js
|
|
542
|
-
var require_rcompare =
|
|
543
|
+
var require_rcompare = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
543
544
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
544
|
-
|
|
545
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
545
546
|
var compare = require_compare();
|
|
546
547
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
547
548
|
module.exports = rcompare;
|
|
@@ -549,9 +550,9 @@ var require_rcompare = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
549
550
|
});
|
|
550
551
|
|
|
551
552
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js
|
|
552
|
-
var require_compare_loose =
|
|
553
|
+
var require_compare_loose = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
553
554
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
554
|
-
|
|
555
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
555
556
|
var compare = require_compare();
|
|
556
557
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
557
558
|
module.exports = compareLoose;
|
|
@@ -559,9 +560,9 @@ var require_compare_loose = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
559
560
|
});
|
|
560
561
|
|
|
561
562
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js
|
|
562
|
-
var require_compare_build =
|
|
563
|
+
var require_compare_build = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
563
564
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
564
|
-
|
|
565
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
565
566
|
var SemVer = require_semver();
|
|
566
567
|
var compareBuild = (a, b, loose) => {
|
|
567
568
|
const versionA = new SemVer(a, loose);
|
|
@@ -573,9 +574,9 @@ var require_compare_build = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
573
574
|
});
|
|
574
575
|
|
|
575
576
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js
|
|
576
|
-
var require_sort =
|
|
577
|
+
var require_sort = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
577
578
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js"(exports, module) {
|
|
578
|
-
|
|
579
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
579
580
|
var compareBuild = require_compare_build();
|
|
580
581
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
581
582
|
module.exports = sort;
|
|
@@ -583,9 +584,9 @@ var require_sort = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
583
584
|
});
|
|
584
585
|
|
|
585
586
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js
|
|
586
|
-
var require_rsort =
|
|
587
|
+
var require_rsort = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
587
588
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
588
|
-
|
|
589
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
589
590
|
var compareBuild = require_compare_build();
|
|
590
591
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
591
592
|
module.exports = rsort;
|
|
@@ -593,9 +594,9 @@ var require_rsort = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
593
594
|
});
|
|
594
595
|
|
|
595
596
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js
|
|
596
|
-
var require_gt =
|
|
597
|
+
var require_gt = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
597
598
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"(exports, module) {
|
|
598
|
-
|
|
599
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
599
600
|
var compare = require_compare();
|
|
600
601
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
601
602
|
module.exports = gt;
|
|
@@ -603,9 +604,9 @@ var require_gt = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
603
604
|
});
|
|
604
605
|
|
|
605
606
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js
|
|
606
|
-
var require_lt =
|
|
607
|
+
var require_lt = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
607
608
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"(exports, module) {
|
|
608
|
-
|
|
609
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
609
610
|
var compare = require_compare();
|
|
610
611
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
611
612
|
module.exports = lt;
|
|
@@ -613,9 +614,9 @@ var require_lt = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
613
614
|
});
|
|
614
615
|
|
|
615
616
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js
|
|
616
|
-
var require_neq =
|
|
617
|
+
var require_neq = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
617
618
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js"(exports, module) {
|
|
618
|
-
|
|
619
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
619
620
|
var compare = require_compare();
|
|
620
621
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
621
622
|
module.exports = neq;
|
|
@@ -623,9 +624,9 @@ var require_neq = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
623
624
|
});
|
|
624
625
|
|
|
625
626
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js
|
|
626
|
-
var require_gte =
|
|
627
|
+
var require_gte = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
627
628
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js"(exports, module) {
|
|
628
|
-
|
|
629
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
629
630
|
var compare = require_compare();
|
|
630
631
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
631
632
|
module.exports = gte;
|
|
@@ -633,9 +634,9 @@ var require_gte = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
633
634
|
});
|
|
634
635
|
|
|
635
636
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js
|
|
636
|
-
var require_lte =
|
|
637
|
+
var require_lte = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
637
638
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js"(exports, module) {
|
|
638
|
-
|
|
639
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
639
640
|
var compare = require_compare();
|
|
640
641
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
641
642
|
module.exports = lte;
|
|
@@ -643,9 +644,9 @@ var require_lte = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
643
644
|
});
|
|
644
645
|
|
|
645
646
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js
|
|
646
|
-
var require_cmp =
|
|
647
|
+
var require_cmp = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
647
648
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
648
|
-
|
|
649
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
649
650
|
var eq = require_eq();
|
|
650
651
|
var neq = require_neq();
|
|
651
652
|
var gt = require_gt();
|
|
@@ -693,9 +694,9 @@ var require_cmp = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
693
694
|
});
|
|
694
695
|
|
|
695
696
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js
|
|
696
|
-
var require_coerce =
|
|
697
|
+
var require_coerce = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
697
698
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
698
|
-
|
|
699
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
699
700
|
var SemVer = require_semver();
|
|
700
701
|
var parse2 = require_parse();
|
|
701
702
|
var { re, t } = require_re();
|
|
@@ -733,10 +734,10 @@ var require_coerce = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
733
734
|
});
|
|
734
735
|
|
|
735
736
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js
|
|
736
|
-
var require_iterator =
|
|
737
|
+
var require_iterator = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
737
738
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js"(exports, module) {
|
|
738
739
|
"use strict";
|
|
739
|
-
|
|
740
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
740
741
|
module.exports = function(Yallist) {
|
|
741
742
|
Yallist.prototype[Symbol.iterator] = function* () {
|
|
742
743
|
for (let walker = this.head; walker; walker = walker.next) {
|
|
@@ -748,10 +749,10 @@ var require_iterator = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
748
749
|
});
|
|
749
750
|
|
|
750
751
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js
|
|
751
|
-
var require_yallist =
|
|
752
|
+
var require_yallist = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
752
753
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports, module) {
|
|
753
754
|
"use strict";
|
|
754
|
-
|
|
755
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
755
756
|
module.exports = Yallist;
|
|
756
757
|
Yallist.Node = Node2;
|
|
757
758
|
Yallist.create = Yallist;
|
|
@@ -1118,10 +1119,10 @@ var require_yallist = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1118
1119
|
});
|
|
1119
1120
|
|
|
1120
1121
|
// ../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js
|
|
1121
|
-
var require_lru_cache =
|
|
1122
|
+
var require_lru_cache = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1122
1123
|
"../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"(exports, module) {
|
|
1123
1124
|
"use strict";
|
|
1124
|
-
|
|
1125
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1125
1126
|
var Yallist = require_yallist();
|
|
1126
1127
|
var MAX = Symbol("max");
|
|
1127
1128
|
var LENGTH = Symbol("length");
|
|
@@ -1387,9 +1388,9 @@ var require_lru_cache = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1387
1388
|
});
|
|
1388
1389
|
|
|
1389
1390
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js
|
|
1390
|
-
var require_range =
|
|
1391
|
+
var require_range = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1391
1392
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"(exports, module) {
|
|
1392
|
-
|
|
1393
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1393
1394
|
var Range = class {
|
|
1394
1395
|
constructor(range, options) {
|
|
1395
1396
|
options = parseOptions(options);
|
|
@@ -1747,9 +1748,9 @@ var require_range = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1747
1748
|
});
|
|
1748
1749
|
|
|
1749
1750
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js
|
|
1750
|
-
var require_comparator =
|
|
1751
|
+
var require_comparator = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1751
1752
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
1752
|
-
|
|
1753
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1753
1754
|
var ANY = Symbol("SemVer ANY");
|
|
1754
1755
|
var Comparator = class {
|
|
1755
1756
|
static get ANY() {
|
|
@@ -1849,9 +1850,9 @@ var require_comparator = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1849
1850
|
});
|
|
1850
1851
|
|
|
1851
1852
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js
|
|
1852
|
-
var require_satisfies =
|
|
1853
|
+
var require_satisfies = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1853
1854
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
1854
|
-
|
|
1855
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1855
1856
|
var Range = require_range();
|
|
1856
1857
|
var satisfies3 = (version3, range, options) => {
|
|
1857
1858
|
try {
|
|
@@ -1866,9 +1867,9 @@ var require_satisfies = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1866
1867
|
});
|
|
1867
1868
|
|
|
1868
1869
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js
|
|
1869
|
-
var require_to_comparators =
|
|
1870
|
+
var require_to_comparators = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1870
1871
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
1871
|
-
|
|
1872
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1872
1873
|
var Range = require_range();
|
|
1873
1874
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
|
|
1874
1875
|
module.exports = toComparators;
|
|
@@ -1876,9 +1877,9 @@ var require_to_comparators = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1876
1877
|
});
|
|
1877
1878
|
|
|
1878
1879
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js
|
|
1879
|
-
var require_max_satisfying =
|
|
1880
|
+
var require_max_satisfying = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1880
1881
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
1881
|
-
|
|
1882
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1882
1883
|
var SemVer = require_semver();
|
|
1883
1884
|
var Range = require_range();
|
|
1884
1885
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -1905,9 +1906,9 @@ var require_max_satisfying = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1905
1906
|
});
|
|
1906
1907
|
|
|
1907
1908
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js
|
|
1908
|
-
var require_min_satisfying =
|
|
1909
|
+
var require_min_satisfying = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1909
1910
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
1910
|
-
|
|
1911
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1911
1912
|
var SemVer = require_semver();
|
|
1912
1913
|
var Range = require_range();
|
|
1913
1914
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -1934,9 +1935,9 @@ var require_min_satisfying = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1934
1935
|
});
|
|
1935
1936
|
|
|
1936
1937
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js
|
|
1937
|
-
var require_min_version =
|
|
1938
|
+
var require_min_version = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1938
1939
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
1939
|
-
|
|
1940
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1940
1941
|
var SemVer = require_semver();
|
|
1941
1942
|
var Range = require_range();
|
|
1942
1943
|
var gt = require_gt();
|
|
@@ -1991,9 +1992,9 @@ var require_min_version = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
1991
1992
|
});
|
|
1992
1993
|
|
|
1993
1994
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js
|
|
1994
|
-
var require_valid2 =
|
|
1995
|
+
var require_valid2 = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
1995
1996
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
1996
|
-
|
|
1997
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
1997
1998
|
var Range = require_range();
|
|
1998
1999
|
var validRange = (range, options) => {
|
|
1999
2000
|
try {
|
|
@@ -2007,9 +2008,9 @@ var require_valid2 = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2007
2008
|
});
|
|
2008
2009
|
|
|
2009
2010
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js
|
|
2010
|
-
var require_outside =
|
|
2011
|
+
var require_outside = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2011
2012
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
2012
|
-
|
|
2013
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2013
2014
|
var SemVer = require_semver();
|
|
2014
2015
|
var Comparator = require_comparator();
|
|
2015
2016
|
var { ANY } = Comparator;
|
|
@@ -2076,9 +2077,9 @@ var require_outside = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2076
2077
|
});
|
|
2077
2078
|
|
|
2078
2079
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js
|
|
2079
|
-
var require_gtr =
|
|
2080
|
+
var require_gtr = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2080
2081
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
2081
|
-
|
|
2082
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2082
2083
|
var outside = require_outside();
|
|
2083
2084
|
var gtr = (version3, range, options) => outside(version3, range, ">", options);
|
|
2084
2085
|
module.exports = gtr;
|
|
@@ -2086,9 +2087,9 @@ var require_gtr = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2086
2087
|
});
|
|
2087
2088
|
|
|
2088
2089
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js
|
|
2089
|
-
var require_ltr =
|
|
2090
|
+
var require_ltr = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2090
2091
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
2091
|
-
|
|
2092
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2092
2093
|
var outside = require_outside();
|
|
2093
2094
|
var ltr = (version3, range, options) => outside(version3, range, "<", options);
|
|
2094
2095
|
module.exports = ltr;
|
|
@@ -2096,9 +2097,9 @@ var require_ltr = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2096
2097
|
});
|
|
2097
2098
|
|
|
2098
2099
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js
|
|
2099
|
-
var require_intersects =
|
|
2100
|
+
var require_intersects = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2100
2101
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
2101
|
-
|
|
2102
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2102
2103
|
var Range = require_range();
|
|
2103
2104
|
var intersects = (r1, r2, options) => {
|
|
2104
2105
|
r1 = new Range(r1, options);
|
|
@@ -2110,9 +2111,9 @@ var require_intersects = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2110
2111
|
});
|
|
2111
2112
|
|
|
2112
2113
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js
|
|
2113
|
-
var require_simplify =
|
|
2114
|
+
var require_simplify = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2114
2115
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
2115
|
-
|
|
2116
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2116
2117
|
var satisfies3 = require_satisfies();
|
|
2117
2118
|
var compare = require_compare();
|
|
2118
2119
|
module.exports = (versions, range, options) => {
|
|
@@ -2160,9 +2161,9 @@ var require_simplify = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2160
2161
|
});
|
|
2161
2162
|
|
|
2162
2163
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js
|
|
2163
|
-
var require_subset =
|
|
2164
|
+
var require_subset = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2164
2165
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
2165
|
-
|
|
2166
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2166
2167
|
var Range = require_range();
|
|
2167
2168
|
var Comparator = require_comparator();
|
|
2168
2169
|
var { ANY } = Comparator;
|
|
@@ -2321,9 +2322,9 @@ var require_subset = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2321
2322
|
});
|
|
2322
2323
|
|
|
2323
2324
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js
|
|
2324
|
-
var require_semver2 =
|
|
2325
|
+
var require_semver2 = _chunkSO7T6GEWjs.__commonJS.call(void 0, {
|
|
2325
2326
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js"(exports, module) {
|
|
2326
|
-
|
|
2327
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2327
2328
|
var internalRe = require_re();
|
|
2328
2329
|
module.exports = {
|
|
2329
2330
|
re: internalRe.re,
|
|
@@ -2375,42 +2376,42 @@ var require_semver2 = _chunkFFZLS6QKjs.__commonJS.call(void 0, {
|
|
|
2375
2376
|
});
|
|
2376
2377
|
|
|
2377
2378
|
// node/server.ts
|
|
2378
|
-
|
|
2379
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2379
2380
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
2380
2381
|
var _vite = require('vite');
|
|
2381
2382
|
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
2382
2383
|
const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
|
|
2383
2384
|
const pluginOptions = rawConfig.slidev || {};
|
|
2384
2385
|
process.env.EDITOR = process.env.EDITOR || "code";
|
|
2385
|
-
const server = await _vite.createServer.call(void 0,
|
|
2386
|
+
const server = await _vite.createServer.call(void 0, await _chunkFROLEDLCjs.mergeViteConfigs.call(void 0, options, viteConfig, {
|
|
2386
2387
|
optimizeDeps: {
|
|
2387
2388
|
entries: [
|
|
2388
2389
|
_path.join.call(void 0, options.clientRoot, "main.ts")
|
|
2389
2390
|
]
|
|
2390
2391
|
},
|
|
2391
2392
|
plugins: [
|
|
2392
|
-
await
|
|
2393
|
+
await _chunkFROLEDLCjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
2393
2394
|
]
|
|
2394
|
-
}));
|
|
2395
|
+
}, "serve"));
|
|
2395
2396
|
return server;
|
|
2396
2397
|
}
|
|
2397
2398
|
|
|
2398
2399
|
// node/parser.ts
|
|
2399
|
-
|
|
2400
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2400
2401
|
var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
|
|
2401
2402
|
|
|
2402
2403
|
// package.json
|
|
2403
|
-
var version = "0.
|
|
2404
|
+
var version = "0.34.0";
|
|
2404
2405
|
|
|
2405
2406
|
// node/themes.ts
|
|
2406
|
-
|
|
2407
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2407
2408
|
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
|
|
2408
2409
|
|
|
2409
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
2410
|
-
|
|
2410
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/index.mjs
|
|
2411
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2411
2412
|
|
|
2412
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
2413
|
-
|
|
2413
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/chunks/runner.mjs
|
|
2414
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
2414
2415
|
|
|
2415
2416
|
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
2416
2417
|
var _events = require('events'); var _events2 = _interopRequireDefault(_events);
|
|
@@ -2429,7 +2430,7 @@ var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
|
|
|
2429
2430
|
var _util = require('util'); var _util2 = _interopRequireDefault(_util);
|
|
2430
2431
|
|
|
2431
2432
|
var _tty = require('tty'); var _tty2 = _interopRequireDefault(_tty);
|
|
2432
|
-
var version2 = "0.16.
|
|
2433
|
+
var version2 = "0.16.3";
|
|
2433
2434
|
var npmRun = (agent) => (args) => {
|
|
2434
2435
|
if (args.length > 1)
|
|
2435
2436
|
return `${agent} run ${args[0]} -- ${args.slice(1).join(" ")}`;
|
|
@@ -2477,7 +2478,7 @@ var AGENTS = {
|
|
|
2477
2478
|
"global_uninstall": "npm uninstall -g {0}"
|
|
2478
2479
|
},
|
|
2479
2480
|
"yarn": yarn,
|
|
2480
|
-
"yarn@berry":
|
|
2481
|
+
"yarn@berry": _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, yarn), {
|
|
2481
2482
|
"frozen": "yarn install --immutable",
|
|
2482
2483
|
"upgrade": "yarn up {0}",
|
|
2483
2484
|
"upgrade-interactive": "yarn up -i {0}",
|
|
@@ -2485,7 +2486,7 @@ var AGENTS = {
|
|
|
2485
2486
|
"global_uninstall": "npm uninstall -g {0}"
|
|
2486
2487
|
}),
|
|
2487
2488
|
"pnpm": pnpm,
|
|
2488
|
-
"pnpm@6":
|
|
2489
|
+
"pnpm@6": _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, pnpm), {
|
|
2489
2490
|
run: npmRun("pnpm")
|
|
2490
2491
|
})
|
|
2491
2492
|
};
|
|
@@ -2493,7 +2494,8 @@ var agents = Object.keys(AGENTS);
|
|
|
2493
2494
|
var LOCKS = {
|
|
2494
2495
|
"pnpm-lock.yaml": "pnpm",
|
|
2495
2496
|
"yarn.lock": "yarn",
|
|
2496
|
-
"package-lock.json": "npm"
|
|
2497
|
+
"package-lock.json": "npm",
|
|
2498
|
+
"npm-shrinkwrap.json": "npm"
|
|
2497
2499
|
};
|
|
2498
2500
|
var INSTALL_PAGE = {
|
|
2499
2501
|
"pnpm": "https://pnpm.js.org/en/installation",
|
|
@@ -2932,41 +2934,41 @@ var Node = class {
|
|
|
2932
2934
|
var _head, _tail, _size;
|
|
2933
2935
|
var Queue = class {
|
|
2934
2936
|
constructor() {
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2937
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _head, void 0);
|
|
2938
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _tail, void 0);
|
|
2939
|
+
_chunkSO7T6GEWjs.__privateAdd.call(void 0, this, _size, void 0);
|
|
2938
2940
|
this.clear();
|
|
2939
2941
|
}
|
|
2940
2942
|
enqueue(value) {
|
|
2941
2943
|
const node = new Node(value);
|
|
2942
|
-
if (
|
|
2943
|
-
|
|
2944
|
-
|
|
2944
|
+
if (_chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head)) {
|
|
2945
|
+
_chunkSO7T6GEWjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
2946
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, node);
|
|
2945
2947
|
} else {
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, node);
|
|
2949
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, node);
|
|
2948
2950
|
}
|
|
2949
|
-
|
|
2951
|
+
_chunkSO7T6GEWjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
2950
2952
|
}
|
|
2951
2953
|
dequeue() {
|
|
2952
|
-
const current =
|
|
2954
|
+
const current = _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head);
|
|
2953
2955
|
if (!current) {
|
|
2954
2956
|
return;
|
|
2955
2957
|
}
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head).next);
|
|
2959
|
+
_chunkSO7T6GEWjs.__privateWrapper.call(void 0, this, _size)._--;
|
|
2958
2960
|
return current.value;
|
|
2959
2961
|
}
|
|
2960
2962
|
clear() {
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2963
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _head, void 0);
|
|
2964
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
2965
|
+
_chunkSO7T6GEWjs.__privateSet.call(void 0, this, _size, 0);
|
|
2964
2966
|
}
|
|
2965
2967
|
get size() {
|
|
2966
|
-
return
|
|
2968
|
+
return _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _size);
|
|
2967
2969
|
}
|
|
2968
2970
|
*[Symbol.iterator]() {
|
|
2969
|
-
let current =
|
|
2971
|
+
let current = _chunkSO7T6GEWjs.__privateGet.call(void 0, this, _head);
|
|
2970
2972
|
while (current) {
|
|
2971
2973
|
yield current.value;
|
|
2972
2974
|
current = current.next;
|
|
@@ -3106,7 +3108,7 @@ async function findUpMultiple(name, options = {}) {
|
|
|
3106
3108
|
};
|
|
3107
3109
|
const matches = [];
|
|
3108
3110
|
while (true) {
|
|
3109
|
-
const foundPath = await runMatcher(
|
|
3111
|
+
const foundPath = await runMatcher(_chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { cwd: directory }));
|
|
3110
3112
|
if (foundPath === findUpStop) {
|
|
3111
3113
|
break;
|
|
3112
3114
|
}
|
|
@@ -3121,7 +3123,7 @@ async function findUpMultiple(name, options = {}) {
|
|
|
3121
3123
|
return matches;
|
|
3122
3124
|
}
|
|
3123
3125
|
async function findUp(name, options = {}) {
|
|
3124
|
-
const matches = await findUpMultiple(name,
|
|
3126
|
+
const matches = await findUpMultiple(name, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { limit: 1 }));
|
|
3125
3127
|
return matches[0];
|
|
3126
3128
|
}
|
|
3127
3129
|
var customRcPath = process.env.NI_CONFIG_FILE;
|
|
@@ -3414,8 +3416,8 @@ function npmRunPath(options = {}) {
|
|
|
3414
3416
|
return [...result, path_].join(_path2.default.delimiter);
|
|
3415
3417
|
}
|
|
3416
3418
|
function npmRunPathEnv(_a = {}) {
|
|
3417
|
-
var _b = _a, { env: env2 = _process2.default.env } = _b, options =
|
|
3418
|
-
env2 =
|
|
3419
|
+
var _b = _a, { env: env2 = _process2.default.env } = _b, options = _chunkSO7T6GEWjs.__objRest.call(void 0, _b, ["env"]);
|
|
3420
|
+
env2 = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, env2);
|
|
3419
3421
|
const path2 = pathKey({ env: env2 });
|
|
3420
3422
|
options.path = env2[path2];
|
|
3421
3423
|
env2[path2] = npmRunPath(options);
|
|
@@ -3453,7 +3455,7 @@ var changeToString = (to, from, name) => {
|
|
|
3453
3455
|
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
3454
3456
|
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
3455
3457
|
Object.defineProperty(newToString, "name", toStringName);
|
|
3456
|
-
Object.defineProperty(to, "toString",
|
|
3458
|
+
Object.defineProperty(to, "toString", _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, toStringDescriptor), { value: newToString }));
|
|
3457
3459
|
};
|
|
3458
3460
|
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
3459
3461
|
const { name } = to;
|
|
@@ -3803,7 +3805,7 @@ var getSignalsByName = function() {
|
|
|
3803
3805
|
return signals.reduce(getSignalByName, {});
|
|
3804
3806
|
};
|
|
3805
3807
|
var getSignalByName = function(signalByNameMemo, { name, number: number2, description, supported, action: action2, forced, standard }) {
|
|
3806
|
-
return
|
|
3808
|
+
return _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, signalByNameMemo), {
|
|
3807
3809
|
[name]: { name, number: number2, description, supported, action: action2, forced, standard }
|
|
3808
3810
|
});
|
|
3809
3811
|
};
|
|
@@ -4176,7 +4178,7 @@ function isStream(stream2) {
|
|
|
4176
4178
|
var getStream$2 = { exports: {} };
|
|
4177
4179
|
var { PassThrough: PassThroughStream } = _stream2.default;
|
|
4178
4180
|
var bufferStream$1 = (options) => {
|
|
4179
|
-
options =
|
|
4181
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options);
|
|
4180
4182
|
const { array } = options;
|
|
4181
4183
|
let { encoding } = options;
|
|
4182
4184
|
const isBuffer = encoding === "buffer";
|
|
@@ -4227,7 +4229,7 @@ async function getStream(inputStream, options) {
|
|
|
4227
4229
|
if (!inputStream) {
|
|
4228
4230
|
throw new Error("Expected a stream");
|
|
4229
4231
|
}
|
|
4230
|
-
options =
|
|
4232
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {
|
|
4231
4233
|
maxBuffer: Infinity
|
|
4232
4234
|
}, options);
|
|
4233
4235
|
const { maxBuffer } = options;
|
|
@@ -4256,8 +4258,8 @@ async function getStream(inputStream, options) {
|
|
|
4256
4258
|
return stream2.getBufferedValue();
|
|
4257
4259
|
}
|
|
4258
4260
|
getStream$2.exports = getStream;
|
|
4259
|
-
getStream$2.exports.buffer = (stream2, options) => getStream(stream2,
|
|
4260
|
-
getStream$2.exports.array = (stream2, options) => getStream(stream2,
|
|
4261
|
+
getStream$2.exports.buffer = (stream2, options) => getStream(stream2, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { encoding: "buffer" }));
|
|
4262
|
+
getStream$2.exports.array = (stream2, options) => getStream(stream2, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { array: true }));
|
|
4261
4263
|
getStream$2.exports.MaxBufferError = MaxBufferError;
|
|
4262
4264
|
var getStream$1 = getStream$2.exports;
|
|
4263
4265
|
var { PassThrough } = _stream2.default;
|
|
@@ -4360,7 +4362,7 @@ var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
|
4360
4362
|
var mergePromise = (spawned, promise) => {
|
|
4361
4363
|
for (const [property, descriptor] of descriptors) {
|
|
4362
4364
|
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
4363
|
-
Reflect.defineProperty(spawned, property,
|
|
4365
|
+
Reflect.defineProperty(spawned, property, _chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, descriptor), { value }));
|
|
4364
4366
|
}
|
|
4365
4367
|
return spawned;
|
|
4366
4368
|
};
|
|
@@ -4408,7 +4410,7 @@ var parseCommand = (command) => {
|
|
|
4408
4410
|
};
|
|
4409
4411
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
4410
4412
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
4411
|
-
const env2 = extendEnv ?
|
|
4413
|
+
const env2 = extendEnv ? _chunkSO7T6GEWjs.__spreadValues.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, _process2.default.env), envOption) : envOption;
|
|
4412
4414
|
if (preferLocal) {
|
|
4413
4415
|
return npmRunPathEnv({ env: env2, cwd: localDir, execPath });
|
|
4414
4416
|
}
|
|
@@ -4419,7 +4421,7 @@ var handleArguments = (file, args, options = {}) => {
|
|
|
4419
4421
|
file = parsed.command;
|
|
4420
4422
|
args = parsed.args;
|
|
4421
4423
|
options = parsed.options;
|
|
4422
|
-
options =
|
|
4424
|
+
options = _chunkSO7T6GEWjs.__spreadValues.call(void 0, {
|
|
4423
4425
|
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
4424
4426
|
buffer: true,
|
|
4425
4427
|
stripFinalNewline: true,
|
|
@@ -4812,7 +4814,7 @@ var supportsHyperlinks = {
|
|
|
4812
4814
|
stderr: supportsHyperlink(process.stderr)
|
|
4813
4815
|
};
|
|
4814
4816
|
function terminalLink(text2, url2, _a = {}) {
|
|
4815
|
-
var _b = _a, { target = "stdout" } = _b, options =
|
|
4817
|
+
var _b = _a, { target = "stdout" } = _b, options = _chunkSO7T6GEWjs.__objRest.call(void 0, _b, ["target"]);
|
|
4816
4818
|
if (!supportsHyperlinks[target]) {
|
|
4817
4819
|
if (options.fallback === false) {
|
|
4818
4820
|
return text2;
|
|
@@ -4822,7 +4824,7 @@ function terminalLink(text2, url2, _a = {}) {
|
|
|
4822
4824
|
return ansiEscapes.link(text2, url2);
|
|
4823
4825
|
}
|
|
4824
4826
|
terminalLink.isSupported = supportsHyperlinks.stdout;
|
|
4825
|
-
terminalLink.stderr = (text2, url2, options = {}) => terminalLink(text2, url2,
|
|
4827
|
+
terminalLink.stderr = (text2, url2, options = {}) => terminalLink(text2, url2, _chunkSO7T6GEWjs.__spreadValues.call(void 0, { target: "stderr" }, options));
|
|
4826
4828
|
terminalLink.stderr.isSupported = supportsHyperlinks.stderr;
|
|
4827
4829
|
var prompts$4 = {};
|
|
4828
4830
|
var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
|
|
@@ -9333,7 +9335,7 @@ async function prompt(questions = [], { onSubmit = noop, onCancel = noop } = {})
|
|
|
9333
9335
|
for (question of questions) {
|
|
9334
9336
|
({ name, type } = question);
|
|
9335
9337
|
if (typeof type === "function") {
|
|
9336
|
-
type = await type(answer,
|
|
9338
|
+
type = await type(answer, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, answers), question);
|
|
9337
9339
|
question["type"] = type;
|
|
9338
9340
|
}
|
|
9339
9341
|
if (!type)
|
|
@@ -9342,7 +9344,7 @@ async function prompt(questions = [], { onSubmit = noop, onCancel = noop } = {})
|
|
|
9342
9344
|
if (passOn.includes(key))
|
|
9343
9345
|
continue;
|
|
9344
9346
|
let value = question[key];
|
|
9345
|
-
question[key] = typeof value === "function" ? await value(answer,
|
|
9347
|
+
question[key] = typeof value === "function" ? await value(answer, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, answers), lastPrompt) : value;
|
|
9346
9348
|
}
|
|
9347
9349
|
lastPrompt = question;
|
|
9348
9350
|
if (typeof question.message !== "string") {
|
|
@@ -9458,7 +9460,7 @@ async function run(fn, args, options = {}) {
|
|
|
9458
9460
|
if (isGlobal) {
|
|
9459
9461
|
command = await fn(await getGlobalAgent(), args);
|
|
9460
9462
|
} else {
|
|
9461
|
-
let agent = await detect(
|
|
9463
|
+
let agent = await detect(_chunkSO7T6GEWjs.__spreadProps.call(void 0, _chunkSO7T6GEWjs.__spreadValues.call(void 0, {}, options), { cwd })) || await getDefaultAgent();
|
|
9462
9464
|
if (agent === "prompt") {
|
|
9463
9465
|
agent = (await prompts({
|
|
9464
9466
|
name: "agent",
|
|
@@ -9486,7 +9488,7 @@ async function run(fn, args, options = {}) {
|
|
|
9486
9488
|
await execaCommand(command, { stdio: "inherit", encoding: "utf-8", cwd });
|
|
9487
9489
|
}
|
|
9488
9490
|
|
|
9489
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.16.
|
|
9491
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.16.3/node_modules/@antfu/ni/dist/index.mjs
|
|
9490
9492
|
|
|
9491
9493
|
|
|
9492
9494
|
|
|
@@ -9496,23 +9498,23 @@ async function run(fn, args, options = {}) {
|
|
|
9496
9498
|
|
|
9497
9499
|
|
|
9498
9500
|
// node/themes.ts
|
|
9499
|
-
var import_semver2 =
|
|
9501
|
+
var import_semver2 = _chunkSO7T6GEWjs.__toESM.call(void 0, require_semver2());
|
|
9500
9502
|
var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
|
|
9501
9503
|
var _kolorist = require('kolorist');
|
|
9502
9504
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
9503
9505
|
|
|
9504
9506
|
// node/options.ts
|
|
9505
|
-
|
|
9507
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
9506
9508
|
|
|
9507
9509
|
var _utils = require('@antfu/utils');
|
|
9508
9510
|
var _debug2 = require('debug'); var _debug3 = _interopRequireDefault(_debug2);
|
|
9509
9511
|
|
|
9510
9512
|
// node/addons.ts
|
|
9511
|
-
|
|
9512
|
-
var import_semver =
|
|
9513
|
+
_chunkSO7T6GEWjs.init_cjs_shims.call(void 0, );
|
|
9514
|
+
var import_semver = _chunkSO7T6GEWjs.__toESM.call(void 0, require_semver2());
|
|
9513
9515
|
|
|
9514
9516
|
function getPackageJson(root) {
|
|
9515
|
-
const file =
|
|
9517
|
+
const file = _chunkSO7T6GEWjs.resolveImportPath.call(void 0, `${root}/package.json`, true);
|
|
9516
9518
|
if (file && _fsextra2.default.existsSync(file))
|
|
9517
9519
|
return _fsextra2.default.readJSON(file);
|
|
9518
9520
|
return {};
|
|
@@ -9544,7 +9546,7 @@ function resolvePluginName(name) {
|
|
|
9544
9546
|
return "";
|
|
9545
9547
|
if (isPath(name))
|
|
9546
9548
|
return name;
|
|
9547
|
-
if (
|
|
9549
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `slidev-addon-${name}`))
|
|
9548
9550
|
return `slidev-addon-${name}`;
|
|
9549
9551
|
return name;
|
|
9550
9552
|
}
|
|
@@ -9552,7 +9554,7 @@ function resolvePluginName(name) {
|
|
|
9552
9554
|
// node/options.ts
|
|
9553
9555
|
var debug = _debug3.default.call(void 0, "slidev:options");
|
|
9554
9556
|
function getClientRoot() {
|
|
9555
|
-
return _path.dirname.call(void 0,
|
|
9557
|
+
return _path.dirname.call(void 0, _chunkSO7T6GEWjs.resolveImportPath.call(void 0, "@slidev/client/package.json", true));
|
|
9556
9558
|
}
|
|
9557
9559
|
function getCLIRoot() {
|
|
9558
9560
|
return _path.resolve.call(void 0, __dirname, "..");
|
|
@@ -9573,7 +9575,7 @@ function getAddonRoots(addons, entry) {
|
|
|
9573
9575
|
function getRoot(name, entry) {
|
|
9574
9576
|
if (isPath(name))
|
|
9575
9577
|
return _path.resolve.call(void 0, _path.dirname.call(void 0, entry), name);
|
|
9576
|
-
return _path.dirname.call(void 0,
|
|
9578
|
+
return _path.dirname.call(void 0, _chunkSO7T6GEWjs.resolveImportPath.call(void 0, `${name}/package.json`, true));
|
|
9577
9579
|
}
|
|
9578
9580
|
function getUserRoot(options) {
|
|
9579
9581
|
const { entry: rawEntry = "slides.md", userRoot = process.cwd() } = options;
|
|
@@ -9592,7 +9594,7 @@ async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
|
9592
9594
|
if (await promptForThemeInstallation(theme) === false)
|
|
9593
9595
|
process.exit(1);
|
|
9594
9596
|
} else {
|
|
9595
|
-
if (!
|
|
9597
|
+
if (!_chunkSO7T6GEWjs.packageExists.call(void 0, theme)) {
|
|
9596
9598
|
console.error(`Theme "${theme}" not found, have you installed it?`);
|
|
9597
9599
|
process.exit(1);
|
|
9598
9600
|
}
|
|
@@ -9664,11 +9666,11 @@ function resolveThemeName(name) {
|
|
|
9664
9666
|
return name;
|
|
9665
9667
|
if (isPath(name))
|
|
9666
9668
|
return name;
|
|
9667
|
-
if (
|
|
9669
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `@slidev/theme-${name}`))
|
|
9668
9670
|
return `@slidev/theme-${name}`;
|
|
9669
|
-
if (
|
|
9671
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, `slidev-theme-${name}`))
|
|
9670
9672
|
return `slidev-theme-${name}`;
|
|
9671
|
-
if (
|
|
9673
|
+
if (_chunkSO7T6GEWjs.packageExists.call(void 0, name))
|
|
9672
9674
|
return name;
|
|
9673
9675
|
if (officialThemes[name] != null)
|
|
9674
9676
|
return officialThemes[name];
|
|
@@ -9680,7 +9682,7 @@ async function promptForThemeInstallation(name) {
|
|
|
9680
9682
|
name = resolveThemeName(name);
|
|
9681
9683
|
if (!name)
|
|
9682
9684
|
return name;
|
|
9683
|
-
if (isPath(name) ||
|
|
9685
|
+
if (isPath(name) || _chunkSO7T6GEWjs.packageExists.call(void 0, name))
|
|
9684
9686
|
return name;
|
|
9685
9687
|
const { confirm: confirm2 } = await _prompts2.default.call(void 0, {
|
|
9686
9688
|
name: "confirm",
|