@slidev/cli 51.1.0 → 51.1.1
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.
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UNQ5DBLZ.js";
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "51.1.
|
|
12
|
+
var version = "51.1.1";
|
|
13
13
|
|
|
14
14
|
// node/integrations/themes.ts
|
|
15
15
|
import { join } from "node:path";
|
|
@@ -1415,7 +1415,7 @@ function createSlidesLoader(options, serverOptions) {
|
|
|
1415
1415
|
import MagicString from "magic-string-stack";
|
|
1416
1416
|
import Markdown from "unplugin-vue-markdown/vite";
|
|
1417
1417
|
|
|
1418
|
-
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=
|
|
1418
|
+
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=49e14003b6caa0b7d164cbe71da573809d375bab_d6f3113a192503d8f8553bee4b7feffb/node_modules/@hedgedoc/markdown-it-plugins/dist/esm/image-size/specialCharacters.js
|
|
1419
1419
|
var SpecialCharacters;
|
|
1420
1420
|
(function(SpecialCharacters2) {
|
|
1421
1421
|
SpecialCharacters2[SpecialCharacters2["EXCLAMATION_MARK"] = 33] = "EXCLAMATION_MARK";
|
|
@@ -1431,7 +1431,7 @@ var SpecialCharacters;
|
|
|
1431
1431
|
SpecialCharacters2[SpecialCharacters2["CLOSING_PARENTHESIS"] = 41] = "CLOSING_PARENTHESIS";
|
|
1432
1432
|
})(SpecialCharacters || (SpecialCharacters = {}));
|
|
1433
1433
|
|
|
1434
|
-
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=
|
|
1434
|
+
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=49e14003b6caa0b7d164cbe71da573809d375bab_d6f3113a192503d8f8553bee4b7feffb/node_modules/@hedgedoc/markdown-it-plugins/dist/esm/task-lists/index.js
|
|
1435
1435
|
import Token from "markdown-it/lib/token.mjs";
|
|
1436
1436
|
var checkboxRegex = /^ *\[([\sx])] /i;
|
|
1437
1437
|
function taskLists(md, options = { enabled: false, label: false, lineNumber: false }) {
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SPKCQ5GO.js";
|
|
4
4
|
import {
|
|
5
5
|
getThemeMeta,
|
|
6
6
|
loadSetups,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveTheme,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PHOU54SG.js";
|
|
13
13
|
import {
|
|
14
14
|
getRoots,
|
|
15
15
|
isInstalledGlobally,
|
|
@@ -337,7 +337,7 @@ cli.command(
|
|
|
337
337
|
}).strict().help(),
|
|
338
338
|
async (args) => {
|
|
339
339
|
const { entry, theme, base, download, out, inspect } = args;
|
|
340
|
-
const { build } = await import("./build-
|
|
340
|
+
const { build } = await import("./build-E6YSK3CS.js");
|
|
341
341
|
for (const entryFile of entry) {
|
|
342
342
|
const options = await resolveOptions({ entry: entryFile, theme, inspect, download, base }, "build");
|
|
343
343
|
printInfo(options);
|
|
@@ -558,7 +558,10 @@ function exportOptions(args) {
|
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
function printInfo(options, port, base, remote, tunnelUrl, publicIp) {
|
|
561
|
-
|
|
561
|
+
if (base && (!base.startsWith("/") || !base.endsWith("/"))) {
|
|
562
|
+
console.error('Base URL must start and end with a slash "/"');
|
|
563
|
+
process.exit(1);
|
|
564
|
+
}
|
|
562
565
|
console.log();
|
|
563
566
|
console.log();
|
|
564
567
|
console.log(` ${cyan("\u25CF") + blue("\u25A0") + yellow("\u25B2")}`);
|
|
@@ -568,7 +571,10 @@ function printInfo(options, port, base, remote, tunnelUrl, publicIp) {
|
|
|
568
571
|
console.log(dim(" theme ") + (options.theme ? green(options.theme) : gray("none")));
|
|
569
572
|
console.log(dim(" css engine ") + blue("unocss"));
|
|
570
573
|
console.log(dim(" entry ") + dim(path.normalize(path.dirname(options.entry)) + path.sep) + path.basename(options.entry));
|
|
571
|
-
if (
|
|
574
|
+
if (port) {
|
|
575
|
+
const baseText = base?.slice(0, -1) || "";
|
|
576
|
+
const portAndBase = port + baseText;
|
|
577
|
+
const baseUrl = `http://localhost:${bold(portAndBase)}`;
|
|
572
578
|
const query = remote ? `?password=${remote}` : "";
|
|
573
579
|
const presenterPath = `${options.data.config.routerMode === "hash" ? "/#/" : "/"}presenter/${query}`;
|
|
574
580
|
const entryPath = `${options.data.config.routerMode === "hash" ? "/#/" : "/"}entry${query}/`;
|
|
@@ -587,15 +593,15 @@ function printInfo(options, port, base, remote, tunnelUrl, publicIp) {
|
|
|
587
593
|
let lastRemoteUrl = "";
|
|
588
594
|
if (remote !== void 0) {
|
|
589
595
|
Object.values(os.networkInterfaces()).forEach((v) => (v || []).filter((details) => String(details.family).slice(-1) === "4" && !details.address.includes("127.0.0.1")).forEach(({ address }) => {
|
|
590
|
-
lastRemoteUrl = `http://${address}:${
|
|
596
|
+
lastRemoteUrl = `http://${address}:${portAndBase}${entryPath}`;
|
|
591
597
|
console.log(`${dim(" remote control ")} > ${blue(lastRemoteUrl)}`);
|
|
592
598
|
}));
|
|
593
599
|
if (publicIp) {
|
|
594
|
-
lastRemoteUrl = `http://${publicIp}:${
|
|
600
|
+
lastRemoteUrl = `http://${publicIp}:${portAndBase}${entryPath}`;
|
|
595
601
|
console.log(`${dim(" remote control ")} > ${blue(lastRemoteUrl)}`);
|
|
596
602
|
}
|
|
597
603
|
if (tunnelUrl) {
|
|
598
|
-
lastRemoteUrl = `${tunnelUrl}${entryPath}`;
|
|
604
|
+
lastRemoteUrl = `${tunnelUrl}${baseText}${entryPath}`;
|
|
599
605
|
console.log(`${dim(" remote via tunnel")} > ${yellow(lastRemoteUrl)}`);
|
|
600
606
|
}
|
|
601
607
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SPKCQ5GO.js";
|
|
4
4
|
import {
|
|
5
5
|
ViteSlidevPlugin,
|
|
6
6
|
createDataUtils,
|
|
7
7
|
parser,
|
|
8
8
|
resolveOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PHOU54SG.js";
|
|
10
10
|
import "./chunk-UNQ5DBLZ.js";
|
|
11
11
|
export {
|
|
12
12
|
ViteSlidevPlugin,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "51.1.
|
|
4
|
+
"version": "51.1.1",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@antfu/ni": "^23.3.
|
|
46
|
-
"@antfu/utils": "^
|
|
47
|
-
"@iconify-json/carbon": "^1.2.
|
|
45
|
+
"@antfu/ni": "^23.3.1",
|
|
46
|
+
"@antfu/utils": "^9.0.0",
|
|
47
|
+
"@iconify-json/carbon": "^1.2.7",
|
|
48
48
|
"@iconify-json/ph": "^1.2.2",
|
|
49
49
|
"@iconify-json/svg-spinners": "^1.2.2",
|
|
50
50
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
51
|
-
"@shikijs/markdown-it": "^2.
|
|
52
|
-
"@shikijs/twoslash": "^2.
|
|
53
|
-
"@shikijs/vitepress-twoslash": "^2.
|
|
54
|
-
"@unocss/extractor-mdc": "^65.
|
|
55
|
-
"@unocss/reset": "^65.
|
|
51
|
+
"@shikijs/markdown-it": "^2.3.2",
|
|
52
|
+
"@shikijs/twoslash": "^2.3.2",
|
|
53
|
+
"@shikijs/vitepress-twoslash": "^2.3.2",
|
|
54
|
+
"@unocss/extractor-mdc": "^65.5.0",
|
|
55
|
+
"@unocss/reset": "^65.5.0",
|
|
56
56
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
58
58
|
"chokidar": "^4.0.3",
|
|
@@ -88,20 +88,20 @@
|
|
|
88
88
|
"public-ip": "^7.0.1",
|
|
89
89
|
"resolve-from": "^5.0.0",
|
|
90
90
|
"resolve-global": "^2.0.0",
|
|
91
|
-
"semver": "^7.7.
|
|
92
|
-
"shiki": "^2.
|
|
91
|
+
"semver": "^7.7.1",
|
|
92
|
+
"shiki": "^2.3.2",
|
|
93
93
|
"shiki-magic-move": "^1.0.0",
|
|
94
94
|
"sirv": "^3.0.0",
|
|
95
95
|
"source-map-js": "^1.2.1",
|
|
96
96
|
"typescript": "^5.7.3",
|
|
97
|
-
"unocss": "^65.
|
|
97
|
+
"unocss": "^65.5.0",
|
|
98
98
|
"unplugin-icons": "^22.0.0",
|
|
99
|
-
"unplugin-vue-components": "^28.
|
|
100
|
-
"unplugin-vue-markdown": "^28.
|
|
99
|
+
"unplugin-vue-components": "^28.1.0",
|
|
100
|
+
"unplugin-vue-markdown": "^28.3.0",
|
|
101
101
|
"untun": "^0.1.3",
|
|
102
102
|
"uqr": "^0.1.2",
|
|
103
|
-
"vite": "^6.0
|
|
104
|
-
"vite-plugin-inspect": "^10.1
|
|
103
|
+
"vite": "^6.1.0",
|
|
104
|
+
"vite-plugin-inspect": "^10.2.1",
|
|
105
105
|
"vite-plugin-remote-assets": "^0.6.0",
|
|
106
106
|
"vite-plugin-static-copy": "^2.2.0",
|
|
107
107
|
"vite-plugin-vue-server-ref": "^0.4.2",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"vue": "^3.5.13",
|
|
110
110
|
"yaml": "^2.7.0",
|
|
111
111
|
"yargs": "^17.7.2",
|
|
112
|
-
"@slidev/client": "51.1.
|
|
113
|
-
"@slidev/
|
|
114
|
-
"@slidev/
|
|
112
|
+
"@slidev/client": "51.1.1",
|
|
113
|
+
"@slidev/types": "51.1.1",
|
|
114
|
+
"@slidev/parser": "51.1.1"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|