@slidev/cli 0.35.6 → 0.36.2
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/{build-JJPJN7L3.mjs → build-363D63QG.mjs} +4 -4
- package/dist/{build-3OBKYP4E.js → build-SW7IIFF4.js} +13 -13
- package/dist/{chunk-AW7KQET4.js → chunk-74QPSS6T.js} +2 -2
- package/dist/{chunk-YUXTNPKA.js → chunk-DAM7DDLQ.js} +83 -82
- package/dist/{chunk-4UR3M5JD.js → chunk-F44MX6U6.js} +139 -138
- package/dist/{chunk-IY7QSYZ2.mjs → chunk-GVIE4JZ6.mjs} +39 -38
- package/dist/{chunk-57E5R3IA.mjs → chunk-IAMILGBS.mjs} +2 -2
- package/dist/{chunk-3VPTNK23.mjs → chunk-PUJ4PVRP.mjs} +8 -7
- package/dist/cli.js +36 -26
- package/dist/cli.mjs +19 -9
- package/dist/{export-I2KYMDHO.mjs → export-26FXNM7P.mjs} +1 -1
- package/dist/{export-3CTBMUMP.js → export-WKFHZNBT.js} +4 -4
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +16 -15
|
@@ -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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDAM7DDLQjs = require('./chunk-DAM7DDLQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,12 +12,12 @@ var _chunkYUXTNPKAjs = require('./chunk-YUXTNPKA.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk74QPSS6Tjs = require('./chunk-74QPSS6T.js');
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js
|
|
18
|
-
var require_constants =
|
|
18
|
+
var require_constants = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
19
19
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js"(exports, module) {
|
|
20
|
-
|
|
20
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
21
21
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
22
22
|
var MAX_LENGTH = 256;
|
|
23
23
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -32,9 +32,9 @@ var require_constants = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js
|
|
35
|
-
var require_debug =
|
|
35
|
+
var require_debug = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
36
36
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js"(exports, module) {
|
|
37
|
-
|
|
37
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
38
38
|
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
39
39
|
};
|
|
40
40
|
module.exports = debug2;
|
|
@@ -42,9 +42,9 @@ var require_debug = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js
|
|
45
|
-
var require_re =
|
|
45
|
+
var require_re = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
46
46
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js"(exports, module) {
|
|
47
|
-
|
|
47
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
48
48
|
var { MAX_SAFE_COMPONENT_LENGTH } = require_constants();
|
|
49
49
|
var debug2 = require_debug();
|
|
50
50
|
exports = module.exports = {};
|
|
@@ -106,9 +106,9 @@ var require_re = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js
|
|
109
|
-
var require_parse_options =
|
|
109
|
+
var require_parse_options = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
110
110
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
111
|
-
|
|
111
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
112
112
|
var opts = ["includePrerelease", "loose", "rtl"];
|
|
113
113
|
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
|
|
114
114
|
o[k] = true;
|
|
@@ -119,9 +119,9 @@ var require_parse_options = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js
|
|
122
|
-
var require_identifiers =
|
|
122
|
+
var require_identifiers = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
123
123
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
124
|
-
|
|
124
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
125
125
|
var numeric = /^[0-9]+$/;
|
|
126
126
|
var compareIdentifiers = (a, b) => {
|
|
127
127
|
const anum = numeric.test(a);
|
|
@@ -141,9 +141,9 @@ var require_identifiers = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js
|
|
144
|
-
var require_semver =
|
|
144
|
+
var require_semver = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
145
145
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js"(exports, module) {
|
|
146
|
-
|
|
146
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
147
147
|
var debug2 = require_debug();
|
|
148
148
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
149
149
|
var { re, t } = require_re();
|
|
@@ -368,9 +368,9 @@ var require_semver = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
368
368
|
});
|
|
369
369
|
|
|
370
370
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js
|
|
371
|
-
var require_parse =
|
|
371
|
+
var require_parse = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
372
372
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js"(exports, module) {
|
|
373
|
-
|
|
373
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
374
374
|
var { MAX_LENGTH } = require_constants();
|
|
375
375
|
var { re, t } = require_re();
|
|
376
376
|
var SemVer = require_semver();
|
|
@@ -401,9 +401,9 @@ var require_parse = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
401
401
|
});
|
|
402
402
|
|
|
403
403
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js
|
|
404
|
-
var require_valid =
|
|
404
|
+
var require_valid = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
405
405
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js"(exports, module) {
|
|
406
|
-
|
|
406
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
407
407
|
var parse2 = require_parse();
|
|
408
408
|
var valid = (version3, options) => {
|
|
409
409
|
const v = parse2(version3, options);
|
|
@@ -414,9 +414,9 @@ var require_valid = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
414
414
|
});
|
|
415
415
|
|
|
416
416
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js
|
|
417
|
-
var require_clean =
|
|
417
|
+
var require_clean = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
418
418
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js"(exports, module) {
|
|
419
|
-
|
|
419
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
420
420
|
var parse2 = require_parse();
|
|
421
421
|
var clean = (version3, options) => {
|
|
422
422
|
const s = parse2(version3.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -427,9 +427,9 @@ var require_clean = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
427
427
|
});
|
|
428
428
|
|
|
429
429
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js
|
|
430
|
-
var require_inc =
|
|
430
|
+
var require_inc = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
431
431
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js"(exports, module) {
|
|
432
|
-
|
|
432
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
433
433
|
var SemVer = require_semver();
|
|
434
434
|
var inc = (version3, release, options, identifier) => {
|
|
435
435
|
if (typeof options === "string") {
|
|
@@ -450,9 +450,9 @@ var require_inc = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
450
450
|
});
|
|
451
451
|
|
|
452
452
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js
|
|
453
|
-
var require_compare =
|
|
453
|
+
var require_compare = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
454
454
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js"(exports, module) {
|
|
455
|
-
|
|
455
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
456
456
|
var SemVer = require_semver();
|
|
457
457
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
458
458
|
module.exports = compare;
|
|
@@ -460,9 +460,9 @@ var require_compare = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
460
460
|
});
|
|
461
461
|
|
|
462
462
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js
|
|
463
|
-
var require_eq =
|
|
463
|
+
var require_eq = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
464
464
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js"(exports, module) {
|
|
465
|
-
|
|
465
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
466
466
|
var compare = require_compare();
|
|
467
467
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
468
468
|
module.exports = eq;
|
|
@@ -470,9 +470,9 @@ var require_eq = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
470
470
|
});
|
|
471
471
|
|
|
472
472
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js
|
|
473
|
-
var require_diff =
|
|
473
|
+
var require_diff = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
474
474
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js"(exports, module) {
|
|
475
|
-
|
|
475
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
476
476
|
var parse2 = require_parse();
|
|
477
477
|
var eq = require_eq();
|
|
478
478
|
var diff = (version1, version22) => {
|
|
@@ -499,9 +499,9 @@ var require_diff = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
499
499
|
});
|
|
500
500
|
|
|
501
501
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js
|
|
502
|
-
var require_major =
|
|
502
|
+
var require_major = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
503
503
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js"(exports, module) {
|
|
504
|
-
|
|
504
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
505
505
|
var SemVer = require_semver();
|
|
506
506
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
507
507
|
module.exports = major;
|
|
@@ -509,9 +509,9 @@ var require_major = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
509
509
|
});
|
|
510
510
|
|
|
511
511
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js
|
|
512
|
-
var require_minor =
|
|
512
|
+
var require_minor = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
513
513
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js"(exports, module) {
|
|
514
|
-
|
|
514
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
515
515
|
var SemVer = require_semver();
|
|
516
516
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
517
517
|
module.exports = minor;
|
|
@@ -519,9 +519,9 @@ var require_minor = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
519
519
|
});
|
|
520
520
|
|
|
521
521
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js
|
|
522
|
-
var require_patch =
|
|
522
|
+
var require_patch = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
523
523
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js"(exports, module) {
|
|
524
|
-
|
|
524
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
525
525
|
var SemVer = require_semver();
|
|
526
526
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
527
527
|
module.exports = patch;
|
|
@@ -529,9 +529,9 @@ var require_patch = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
529
529
|
});
|
|
530
530
|
|
|
531
531
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js
|
|
532
|
-
var require_prerelease =
|
|
532
|
+
var require_prerelease = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
533
533
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
534
|
-
|
|
534
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
535
535
|
var parse2 = require_parse();
|
|
536
536
|
var prerelease = (version3, options) => {
|
|
537
537
|
const parsed = parse2(version3, options);
|
|
@@ -542,9 +542,9 @@ var require_prerelease = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
542
542
|
});
|
|
543
543
|
|
|
544
544
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js
|
|
545
|
-
var require_rcompare =
|
|
545
|
+
var require_rcompare = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
546
546
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
547
|
-
|
|
547
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
548
548
|
var compare = require_compare();
|
|
549
549
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
550
550
|
module.exports = rcompare;
|
|
@@ -552,9 +552,9 @@ var require_rcompare = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
552
552
|
});
|
|
553
553
|
|
|
554
554
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js
|
|
555
|
-
var require_compare_loose =
|
|
555
|
+
var require_compare_loose = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
556
556
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
557
|
-
|
|
557
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
558
558
|
var compare = require_compare();
|
|
559
559
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
560
560
|
module.exports = compareLoose;
|
|
@@ -562,9 +562,9 @@ var require_compare_loose = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
562
562
|
});
|
|
563
563
|
|
|
564
564
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js
|
|
565
|
-
var require_compare_build =
|
|
565
|
+
var require_compare_build = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
566
566
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
567
|
-
|
|
567
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
568
568
|
var SemVer = require_semver();
|
|
569
569
|
var compareBuild = (a, b, loose) => {
|
|
570
570
|
const versionA = new SemVer(a, loose);
|
|
@@ -576,9 +576,9 @@ var require_compare_build = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
576
576
|
});
|
|
577
577
|
|
|
578
578
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js
|
|
579
|
-
var require_sort =
|
|
579
|
+
var require_sort = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
580
580
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js"(exports, module) {
|
|
581
|
-
|
|
581
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
582
582
|
var compareBuild = require_compare_build();
|
|
583
583
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
584
584
|
module.exports = sort;
|
|
@@ -586,9 +586,9 @@ var require_sort = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
586
586
|
});
|
|
587
587
|
|
|
588
588
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js
|
|
589
|
-
var require_rsort =
|
|
589
|
+
var require_rsort = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
590
590
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
591
|
-
|
|
591
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
592
592
|
var compareBuild = require_compare_build();
|
|
593
593
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
594
594
|
module.exports = rsort;
|
|
@@ -596,9 +596,9 @@ var require_rsort = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
596
596
|
});
|
|
597
597
|
|
|
598
598
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js
|
|
599
|
-
var require_gt =
|
|
599
|
+
var require_gt = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
600
600
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js"(exports, module) {
|
|
601
|
-
|
|
601
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
602
602
|
var compare = require_compare();
|
|
603
603
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
604
604
|
module.exports = gt;
|
|
@@ -606,9 +606,9 @@ var require_gt = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
606
606
|
});
|
|
607
607
|
|
|
608
608
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js
|
|
609
|
-
var require_lt =
|
|
609
|
+
var require_lt = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
610
610
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js"(exports, module) {
|
|
611
|
-
|
|
611
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
612
612
|
var compare = require_compare();
|
|
613
613
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
614
614
|
module.exports = lt;
|
|
@@ -616,9 +616,9 @@ var require_lt = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
616
616
|
});
|
|
617
617
|
|
|
618
618
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js
|
|
619
|
-
var require_neq =
|
|
619
|
+
var require_neq = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
620
620
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js"(exports, module) {
|
|
621
|
-
|
|
621
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
622
622
|
var compare = require_compare();
|
|
623
623
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
624
624
|
module.exports = neq;
|
|
@@ -626,9 +626,9 @@ var require_neq = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
626
626
|
});
|
|
627
627
|
|
|
628
628
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js
|
|
629
|
-
var require_gte =
|
|
629
|
+
var require_gte = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
630
630
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js"(exports, module) {
|
|
631
|
-
|
|
631
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
632
632
|
var compare = require_compare();
|
|
633
633
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
634
634
|
module.exports = gte;
|
|
@@ -636,9 +636,9 @@ var require_gte = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
636
636
|
});
|
|
637
637
|
|
|
638
638
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js
|
|
639
|
-
var require_lte =
|
|
639
|
+
var require_lte = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
640
640
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js"(exports, module) {
|
|
641
|
-
|
|
641
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
642
642
|
var compare = require_compare();
|
|
643
643
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
644
644
|
module.exports = lte;
|
|
@@ -646,9 +646,9 @@ var require_lte = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
646
646
|
});
|
|
647
647
|
|
|
648
648
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js
|
|
649
|
-
var require_cmp =
|
|
649
|
+
var require_cmp = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
650
650
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
651
|
-
|
|
651
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
652
652
|
var eq = require_eq();
|
|
653
653
|
var neq = require_neq();
|
|
654
654
|
var gt = require_gt();
|
|
@@ -696,9 +696,9 @@ var require_cmp = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
696
696
|
});
|
|
697
697
|
|
|
698
698
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js
|
|
699
|
-
var require_coerce =
|
|
699
|
+
var require_coerce = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
700
700
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
701
|
-
|
|
701
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
702
702
|
var SemVer = require_semver();
|
|
703
703
|
var parse2 = require_parse();
|
|
704
704
|
var { re, t } = require_re();
|
|
@@ -736,10 +736,10 @@ var require_coerce = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
736
736
|
});
|
|
737
737
|
|
|
738
738
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js
|
|
739
|
-
var require_iterator =
|
|
739
|
+
var require_iterator = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
740
740
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js"(exports, module) {
|
|
741
741
|
"use strict";
|
|
742
|
-
|
|
742
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
743
743
|
module.exports = function(Yallist) {
|
|
744
744
|
Yallist.prototype[Symbol.iterator] = function* () {
|
|
745
745
|
for (let walker = this.head; walker; walker = walker.next) {
|
|
@@ -751,10 +751,10 @@ var require_iterator = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
751
751
|
});
|
|
752
752
|
|
|
753
753
|
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js
|
|
754
|
-
var require_yallist =
|
|
754
|
+
var require_yallist = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
755
755
|
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports, module) {
|
|
756
756
|
"use strict";
|
|
757
|
-
|
|
757
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
758
758
|
module.exports = Yallist;
|
|
759
759
|
Yallist.Node = Node2;
|
|
760
760
|
Yallist.create = Yallist;
|
|
@@ -1121,10 +1121,10 @@ var require_yallist = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1121
1121
|
});
|
|
1122
1122
|
|
|
1123
1123
|
// ../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js
|
|
1124
|
-
var require_lru_cache =
|
|
1124
|
+
var require_lru_cache = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1125
1125
|
"../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"(exports, module) {
|
|
1126
1126
|
"use strict";
|
|
1127
|
-
|
|
1127
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1128
1128
|
var Yallist = require_yallist();
|
|
1129
1129
|
var MAX = Symbol("max");
|
|
1130
1130
|
var LENGTH = Symbol("length");
|
|
@@ -1390,9 +1390,9 @@ var require_lru_cache = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1390
1390
|
});
|
|
1391
1391
|
|
|
1392
1392
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js
|
|
1393
|
-
var require_range =
|
|
1393
|
+
var require_range = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1394
1394
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js"(exports, module) {
|
|
1395
|
-
|
|
1395
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1396
1396
|
var Range = class {
|
|
1397
1397
|
constructor(range, options) {
|
|
1398
1398
|
options = parseOptions(options);
|
|
@@ -1750,9 +1750,9 @@ var require_range = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1750
1750
|
});
|
|
1751
1751
|
|
|
1752
1752
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js
|
|
1753
|
-
var require_comparator =
|
|
1753
|
+
var require_comparator = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1754
1754
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
1755
|
-
|
|
1755
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1756
1756
|
var ANY = Symbol("SemVer ANY");
|
|
1757
1757
|
var Comparator = class {
|
|
1758
1758
|
static get ANY() {
|
|
@@ -1852,9 +1852,9 @@ var require_comparator = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1852
1852
|
});
|
|
1853
1853
|
|
|
1854
1854
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js
|
|
1855
|
-
var require_satisfies =
|
|
1855
|
+
var require_satisfies = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1856
1856
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
1857
|
-
|
|
1857
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1858
1858
|
var Range = require_range();
|
|
1859
1859
|
var satisfies3 = (version3, range, options) => {
|
|
1860
1860
|
try {
|
|
@@ -1869,9 +1869,9 @@ var require_satisfies = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1869
1869
|
});
|
|
1870
1870
|
|
|
1871
1871
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js
|
|
1872
|
-
var require_to_comparators =
|
|
1872
|
+
var require_to_comparators = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1873
1873
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
1874
|
-
|
|
1874
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1875
1875
|
var Range = require_range();
|
|
1876
1876
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
|
|
1877
1877
|
module.exports = toComparators;
|
|
@@ -1879,9 +1879,9 @@ var require_to_comparators = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1879
1879
|
});
|
|
1880
1880
|
|
|
1881
1881
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js
|
|
1882
|
-
var require_max_satisfying =
|
|
1882
|
+
var require_max_satisfying = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1883
1883
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
1884
|
-
|
|
1884
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1885
1885
|
var SemVer = require_semver();
|
|
1886
1886
|
var Range = require_range();
|
|
1887
1887
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -1908,9 +1908,9 @@ var require_max_satisfying = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1908
1908
|
});
|
|
1909
1909
|
|
|
1910
1910
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js
|
|
1911
|
-
var require_min_satisfying =
|
|
1911
|
+
var require_min_satisfying = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1912
1912
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
1913
|
-
|
|
1913
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1914
1914
|
var SemVer = require_semver();
|
|
1915
1915
|
var Range = require_range();
|
|
1916
1916
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -1937,9 +1937,9 @@ var require_min_satisfying = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1937
1937
|
});
|
|
1938
1938
|
|
|
1939
1939
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js
|
|
1940
|
-
var require_min_version =
|
|
1940
|
+
var require_min_version = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1941
1941
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
1942
|
-
|
|
1942
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
1943
1943
|
var SemVer = require_semver();
|
|
1944
1944
|
var Range = require_range();
|
|
1945
1945
|
var gt = require_gt();
|
|
@@ -1994,9 +1994,9 @@ var require_min_version = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
1994
1994
|
});
|
|
1995
1995
|
|
|
1996
1996
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js
|
|
1997
|
-
var require_valid2 =
|
|
1997
|
+
var require_valid2 = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
1998
1998
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
1999
|
-
|
|
1999
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2000
2000
|
var Range = require_range();
|
|
2001
2001
|
var validRange = (range, options) => {
|
|
2002
2002
|
try {
|
|
@@ -2010,9 +2010,9 @@ var require_valid2 = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2010
2010
|
});
|
|
2011
2011
|
|
|
2012
2012
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js
|
|
2013
|
-
var require_outside =
|
|
2013
|
+
var require_outside = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2014
2014
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
2015
|
-
|
|
2015
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2016
2016
|
var SemVer = require_semver();
|
|
2017
2017
|
var Comparator = require_comparator();
|
|
2018
2018
|
var { ANY } = Comparator;
|
|
@@ -2079,9 +2079,9 @@ var require_outside = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2079
2079
|
});
|
|
2080
2080
|
|
|
2081
2081
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js
|
|
2082
|
-
var require_gtr =
|
|
2082
|
+
var require_gtr = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2083
2083
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
2084
|
-
|
|
2084
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2085
2085
|
var outside = require_outside();
|
|
2086
2086
|
var gtr = (version3, range, options) => outside(version3, range, ">", options);
|
|
2087
2087
|
module.exports = gtr;
|
|
@@ -2089,9 +2089,9 @@ var require_gtr = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
|
|
2091
2091
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js
|
|
2092
|
-
var require_ltr =
|
|
2092
|
+
var require_ltr = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2093
2093
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
2094
|
-
|
|
2094
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2095
2095
|
var outside = require_outside();
|
|
2096
2096
|
var ltr = (version3, range, options) => outside(version3, range, "<", options);
|
|
2097
2097
|
module.exports = ltr;
|
|
@@ -2099,9 +2099,9 @@ var require_ltr = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2099
2099
|
});
|
|
2100
2100
|
|
|
2101
2101
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js
|
|
2102
|
-
var require_intersects =
|
|
2102
|
+
var require_intersects = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2103
2103
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
2104
|
-
|
|
2104
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2105
2105
|
var Range = require_range();
|
|
2106
2106
|
var intersects = (r1, r2, options) => {
|
|
2107
2107
|
r1 = new Range(r1, options);
|
|
@@ -2113,9 +2113,9 @@ var require_intersects = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2113
2113
|
});
|
|
2114
2114
|
|
|
2115
2115
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js
|
|
2116
|
-
var require_simplify =
|
|
2116
|
+
var require_simplify = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2117
2117
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
2118
|
-
|
|
2118
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2119
2119
|
var satisfies3 = require_satisfies();
|
|
2120
2120
|
var compare = require_compare();
|
|
2121
2121
|
module.exports = (versions, range, options) => {
|
|
@@ -2163,9 +2163,9 @@ var require_simplify = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2163
2163
|
});
|
|
2164
2164
|
|
|
2165
2165
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js
|
|
2166
|
-
var require_subset =
|
|
2166
|
+
var require_subset = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2167
2167
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
2168
|
-
|
|
2168
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2169
2169
|
var Range = require_range();
|
|
2170
2170
|
var Comparator = require_comparator();
|
|
2171
2171
|
var { ANY } = Comparator;
|
|
@@ -2324,9 +2324,9 @@ var require_subset = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2324
2324
|
});
|
|
2325
2325
|
|
|
2326
2326
|
// ../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js
|
|
2327
|
-
var require_semver2 =
|
|
2327
|
+
var require_semver2 = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
2328
2328
|
"../../node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js"(exports, module) {
|
|
2329
|
-
|
|
2329
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2330
2330
|
var internalRe = require_re();
|
|
2331
2331
|
module.exports = {
|
|
2332
2332
|
re: internalRe.re,
|
|
@@ -2378,15 +2378,15 @@ var require_semver2 = _chunkAW7KQET4js.__commonJS.call(void 0, {
|
|
|
2378
2378
|
});
|
|
2379
2379
|
|
|
2380
2380
|
// node/server.ts
|
|
2381
|
-
|
|
2381
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2382
2382
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
2383
2383
|
var _vite = require('vite');
|
|
2384
2384
|
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
2385
|
-
const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
|
|
2385
|
+
const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve", options.entry);
|
|
2386
2386
|
const pluginOptions = rawConfig.slidev || {};
|
|
2387
2387
|
process.env.EDITOR = process.env.EDITOR || "code";
|
|
2388
2388
|
const server = await _vite.createServer.call(void 0,
|
|
2389
|
-
await
|
|
2389
|
+
await _chunkDAM7DDLQjs.mergeViteConfigs.call(void 0,
|
|
2390
2390
|
options,
|
|
2391
2391
|
viteConfig,
|
|
2392
2392
|
{
|
|
@@ -2396,7 +2396,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2396
2396
|
]
|
|
2397
2397
|
},
|
|
2398
2398
|
plugins: [
|
|
2399
|
-
await
|
|
2399
|
+
await _chunkDAM7DDLQjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
2400
2400
|
]
|
|
2401
2401
|
},
|
|
2402
2402
|
"serve"
|
|
@@ -2406,21 +2406,21 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
2408
|
// node/parser.ts
|
|
2409
|
-
|
|
2409
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2410
2410
|
var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
|
|
2411
2411
|
|
|
2412
2412
|
// package.json
|
|
2413
|
-
var version = "0.
|
|
2413
|
+
var version = "0.36.2";
|
|
2414
2414
|
|
|
2415
2415
|
// node/themes.ts
|
|
2416
|
-
|
|
2416
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2417
2417
|
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
|
|
2418
2418
|
|
|
2419
2419
|
// ../../node_modules/.pnpm/@antfu+ni@0.18.0/node_modules/@antfu/ni/dist/index.mjs
|
|
2420
|
-
|
|
2420
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2421
2421
|
|
|
2422
2422
|
// ../../node_modules/.pnpm/@antfu+ni@0.18.0/node_modules/@antfu/ni/dist/chunks/runner.mjs
|
|
2423
|
-
|
|
2423
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
2424
2424
|
|
|
2425
2425
|
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
2426
2426
|
var _events = require('events'); var _events2 = _interopRequireDefault(_events);
|
|
@@ -2963,41 +2963,41 @@ var Node = class {
|
|
|
2963
2963
|
var _head, _tail, _size;
|
|
2964
2964
|
var Queue = class {
|
|
2965
2965
|
constructor() {
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2966
|
+
_chunk74QPSS6Tjs.__privateAdd.call(void 0, this, _head, void 0);
|
|
2967
|
+
_chunk74QPSS6Tjs.__privateAdd.call(void 0, this, _tail, void 0);
|
|
2968
|
+
_chunk74QPSS6Tjs.__privateAdd.call(void 0, this, _size, void 0);
|
|
2969
2969
|
this.clear();
|
|
2970
2970
|
}
|
|
2971
2971
|
enqueue(value) {
|
|
2972
2972
|
const node = new Node(value);
|
|
2973
|
-
if (
|
|
2974
|
-
|
|
2975
|
-
|
|
2973
|
+
if (_chunk74QPSS6Tjs.__privateGet.call(void 0, this, _head)) {
|
|
2974
|
+
_chunk74QPSS6Tjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
2975
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _tail, node);
|
|
2976
2976
|
} else {
|
|
2977
|
-
|
|
2978
|
-
|
|
2977
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _head, node);
|
|
2978
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _tail, node);
|
|
2979
2979
|
}
|
|
2980
|
-
|
|
2980
|
+
_chunk74QPSS6Tjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
2981
2981
|
}
|
|
2982
2982
|
dequeue() {
|
|
2983
|
-
const current =
|
|
2983
|
+
const current = _chunk74QPSS6Tjs.__privateGet.call(void 0, this, _head);
|
|
2984
2984
|
if (!current) {
|
|
2985
2985
|
return;
|
|
2986
2986
|
}
|
|
2987
|
-
|
|
2988
|
-
|
|
2987
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _head, _chunk74QPSS6Tjs.__privateGet.call(void 0, this, _head).next);
|
|
2988
|
+
_chunk74QPSS6Tjs.__privateWrapper.call(void 0, this, _size)._--;
|
|
2989
2989
|
return current.value;
|
|
2990
2990
|
}
|
|
2991
2991
|
clear() {
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2992
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _head, void 0);
|
|
2993
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
2994
|
+
_chunk74QPSS6Tjs.__privateSet.call(void 0, this, _size, 0);
|
|
2995
2995
|
}
|
|
2996
2996
|
get size() {
|
|
2997
|
-
return
|
|
2997
|
+
return _chunk74QPSS6Tjs.__privateGet.call(void 0, this, _size);
|
|
2998
2998
|
}
|
|
2999
2999
|
*[Symbol.iterator]() {
|
|
3000
|
-
let current =
|
|
3000
|
+
let current = _chunk74QPSS6Tjs.__privateGet.call(void 0, this, _head);
|
|
3001
3001
|
while (current) {
|
|
3002
3002
|
yield current.value;
|
|
3003
3003
|
current = current.next;
|
|
@@ -9553,24 +9553,24 @@ async function run(fn, args, options = {}) {
|
|
|
9553
9553
|
|
|
9554
9554
|
|
|
9555
9555
|
// node/themes.ts
|
|
9556
|
-
var import_semver2 =
|
|
9556
|
+
var import_semver2 = _chunk74QPSS6Tjs.__toESM.call(void 0, require_semver2());
|
|
9557
9557
|
var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
|
|
9558
9558
|
var _kolorist = require('kolorist');
|
|
9559
9559
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
9560
9560
|
|
|
9561
9561
|
// node/options.ts
|
|
9562
|
-
|
|
9562
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
9563
9563
|
|
|
9564
9564
|
var _utils = require('@antfu/utils');
|
|
9565
9565
|
var _debug2 = require('debug'); var _debug3 = _interopRequireDefault(_debug2);
|
|
9566
9566
|
|
|
9567
9567
|
// node/addons.ts
|
|
9568
|
-
|
|
9569
|
-
var import_semver =
|
|
9568
|
+
_chunk74QPSS6Tjs.init_cjs_shims.call(void 0, );
|
|
9569
|
+
var import_semver = _chunk74QPSS6Tjs.__toESM.call(void 0, require_semver2());
|
|
9570
9570
|
|
|
9571
9571
|
async function getPackageJson(root) {
|
|
9572
9572
|
try {
|
|
9573
|
-
const file =
|
|
9573
|
+
const file = _chunk74QPSS6Tjs.resolveImportPath.call(void 0, `${root}/package.json`, true);
|
|
9574
9574
|
if (file && _fsextra2.default.existsSync(file))
|
|
9575
9575
|
return await _fsextra2.default.readJSON(file);
|
|
9576
9576
|
return {};
|
|
@@ -9605,7 +9605,7 @@ function resolvePluginName(name) {
|
|
|
9605
9605
|
return "";
|
|
9606
9606
|
if (isPath(name))
|
|
9607
9607
|
return name;
|
|
9608
|
-
if (
|
|
9608
|
+
if (_chunk74QPSS6Tjs.packageExists.call(void 0, `slidev-addon-${name}`))
|
|
9609
9609
|
return `slidev-addon-${name}`;
|
|
9610
9610
|
return name;
|
|
9611
9611
|
}
|
|
@@ -9613,7 +9613,7 @@ function resolvePluginName(name) {
|
|
|
9613
9613
|
// node/options.ts
|
|
9614
9614
|
var debug = _debug3.default.call(void 0, "slidev:options");
|
|
9615
9615
|
function getClientRoot() {
|
|
9616
|
-
return _path.dirname.call(void 0,
|
|
9616
|
+
return _path.dirname.call(void 0, _chunk74QPSS6Tjs.resolveImportPath.call(void 0, "@slidev/client/package.json", true));
|
|
9617
9617
|
}
|
|
9618
9618
|
function getCLIRoot() {
|
|
9619
9619
|
return _path.resolve.call(void 0, __dirname, "..");
|
|
@@ -9634,7 +9634,7 @@ function getAddonRoots(addons, entry) {
|
|
|
9634
9634
|
function getRoot(name, entry) {
|
|
9635
9635
|
if (isPath(name))
|
|
9636
9636
|
return _path.resolve.call(void 0, _path.dirname.call(void 0, entry), name);
|
|
9637
|
-
return _path.dirname.call(void 0,
|
|
9637
|
+
return _path.dirname.call(void 0, _chunk74QPSS6Tjs.resolveImportPath.call(void 0, `${name}/package.json`, true));
|
|
9638
9638
|
}
|
|
9639
9639
|
function getUserRoot(options) {
|
|
9640
9640
|
const { entry: rawEntry = "slides.md", userRoot = process.cwd() } = options;
|
|
@@ -9642,7 +9642,7 @@ function getUserRoot(options) {
|
|
|
9642
9642
|
return { entry: fullEntry, userRoot: _path.dirname.call(void 0, fullEntry) };
|
|
9643
9643
|
}
|
|
9644
9644
|
async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
9645
|
-
const { remote } = options;
|
|
9645
|
+
const { remote, inspect } = options;
|
|
9646
9646
|
const {
|
|
9647
9647
|
entry,
|
|
9648
9648
|
userRoot
|
|
@@ -9653,7 +9653,7 @@ async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
|
9653
9653
|
if (await promptForThemeInstallation(theme) === false)
|
|
9654
9654
|
process.exit(1);
|
|
9655
9655
|
} else {
|
|
9656
|
-
if (!
|
|
9656
|
+
if (!_chunk74QPSS6Tjs.packageExists.call(void 0, theme)) {
|
|
9657
9657
|
console.error(`Theme "${theme}" not found, have you installed it?`);
|
|
9658
9658
|
process.exit(1);
|
|
9659
9659
|
}
|
|
@@ -9668,7 +9668,7 @@ async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
|
9668
9668
|
const themeMeta = await getThemeMeta(theme, _path.join.call(void 0, themeRoots[0], "package.json"));
|
|
9669
9669
|
data.themeMeta = themeMeta;
|
|
9670
9670
|
if (themeMeta)
|
|
9671
|
-
data.config = parser.resolveConfig(data.headmatter, themeMeta);
|
|
9671
|
+
data.config = parser.resolveConfig(data.headmatter, themeMeta, options.entry);
|
|
9672
9672
|
}
|
|
9673
9673
|
debug({
|
|
9674
9674
|
config: data.config,
|
|
@@ -9694,7 +9694,8 @@ async function resolveOptions(options, mode2, promptForInstallation = true) {
|
|
|
9694
9694
|
themeRoots,
|
|
9695
9695
|
addonRoots,
|
|
9696
9696
|
roots,
|
|
9697
|
-
remote
|
|
9697
|
+
remote,
|
|
9698
|
+
inspect
|
|
9698
9699
|
};
|
|
9699
9700
|
}
|
|
9700
9701
|
|
|
@@ -9725,11 +9726,11 @@ function resolveThemeName(name) {
|
|
|
9725
9726
|
return name;
|
|
9726
9727
|
if (isPath(name))
|
|
9727
9728
|
return name;
|
|
9728
|
-
if (
|
|
9729
|
+
if (_chunk74QPSS6Tjs.packageExists.call(void 0, `@slidev/theme-${name}`))
|
|
9729
9730
|
return `@slidev/theme-${name}`;
|
|
9730
|
-
if (
|
|
9731
|
+
if (_chunk74QPSS6Tjs.packageExists.call(void 0, `slidev-theme-${name}`))
|
|
9731
9732
|
return `slidev-theme-${name}`;
|
|
9732
|
-
if (
|
|
9733
|
+
if (_chunk74QPSS6Tjs.packageExists.call(void 0, name))
|
|
9733
9734
|
return name;
|
|
9734
9735
|
if (officialThemes[name] != null)
|
|
9735
9736
|
return officialThemes[name];
|
|
@@ -9741,7 +9742,7 @@ async function promptForThemeInstallation(name) {
|
|
|
9741
9742
|
name = resolveThemeName(name);
|
|
9742
9743
|
if (!name)
|
|
9743
9744
|
return name;
|
|
9744
|
-
if (isPath(name) ||
|
|
9745
|
+
if (isPath(name) || _chunk74QPSS6Tjs.packageExists.call(void 0, name))
|
|
9745
9746
|
return name;
|
|
9746
9747
|
const { confirm: confirm2 } = await _prompts2.default.call(void 0, {
|
|
9747
9748
|
name: "confirm",
|