@slidev/cli 0.31.1 → 0.31.4

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.
@@ -1,16 +1,16 @@
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 _chunkW64GQHIHjs = require('./chunk-W64GQHIH.js');
4
+ var _chunkRQ7QDWD6js = require('./chunk-RQ7QDWD6.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkOVW2G2MHjs = require('./chunk-OVW2G2MH.js');
10
+ var _chunkOYCSUJS7js = require('./chunk-OYCSUJS7.js');
11
11
 
12
12
  // node/build.ts
13
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
13
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
14
14
  var _path = require('path');
15
15
  var _http = require('http'); var _http2 = _interopRequireDefault(_http);
16
16
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
@@ -18,12 +18,12 @@ var _vite = require('vite');
18
18
  var _connect = require('connect'); var _connect2 = _interopRequireDefault(_connect);
19
19
 
20
20
  // ../../node_modules/.pnpm/sirv@2.0.2/node_modules/sirv/build.mjs
21
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
21
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
22
22
  var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
23
23
 
24
24
 
25
25
  // ../../node_modules/.pnpm/totalist@3.0.0/node_modules/totalist/sync/index.mjs
26
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
26
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
27
27
 
28
28
 
29
29
  function totalist(dir, callback, pre = "") {
@@ -38,7 +38,7 @@ function totalist(dir, callback, pre = "") {
38
38
  }
39
39
 
40
40
  // ../../node_modules/.pnpm/@polka+url@1.0.0-next.21/node_modules/@polka/url/build.mjs
41
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
41
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
42
42
  var _querystring = require('querystring'); var qs = _interopRequireWildcard(_querystring);
43
43
  function parse2(req) {
44
44
  let raw = req.url;
@@ -62,7 +62,7 @@ function parse2(req) {
62
62
  }
63
63
 
64
64
  // ../../node_modules/.pnpm/mrmime@1.0.0/node_modules/mrmime/index.mjs
65
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
65
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
66
66
  var mimes = {
67
67
  "ez": "application/andrew-inset",
68
68
  "aw": "application/applixware",
@@ -527,7 +527,7 @@ function is404(req, res) {
527
527
  }
528
528
  function send(req, res, file, stats, headers) {
529
529
  let code = 200, tmp, opts = {};
530
- headers = _chunkOVW2G2MHjs.__spreadValues.call(void 0, {}, headers);
530
+ headers = _chunkOYCSUJS7js.__spreadValues.call(void 0, {}, headers);
531
531
  for (let key in headers) {
532
532
  tmp = res.getHeader(key);
533
533
  if (tmp)
@@ -655,13 +655,13 @@ async function build(options, viteConfig = {}) {
655
655
  let originalIndexHTML;
656
656
  if (_fsextra2.default.existsSync(indexPath))
657
657
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
658
- await _fsextra2.default.writeFile(indexPath, await _chunkW64GQHIHjs.getIndexHtml.call(void 0, options), "utf-8");
658
+ await _fsextra2.default.writeFile(indexPath, await _chunkRQ7QDWD6js.getIndexHtml.call(void 0, options), "utf-8");
659
659
  let config = void 0;
660
660
  try {
661
661
  const inlineConfig = _vite.mergeConfig.call(void 0, viteConfig, {
662
662
  root: options.userRoot,
663
663
  plugins: [
664
- await _chunkW64GQHIHjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
664
+ await _chunkRQ7QDWD6js.ViteSlidevPlugin.call(void 0, options, pluginOptions),
665
665
  {
666
666
  name: "resolve-config",
667
667
  configResolved(_config) {
@@ -713,7 +713,7 @@ async function build(options, viteConfig = {}) {
713
713
  await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
714
714
  `, "utf-8");
715
715
  if ([true, "true", "auto"].includes(options.data.config.download)) {
716
- const { exportSlides } = await Promise.resolve().then(() => _chunkOVW2G2MHjs.__toESM.call(void 0, _chunkOVW2G2MHjs.__require.call(void 0, "./export-HDUCFTTI.js")));
716
+ const { exportSlides } = await Promise.resolve().then(() => _chunkOYCSUJS7js.__toESM.call(void 0, _chunkOYCSUJS7js.__require.call(void 0, "./export-W52T2VBO.js")));
717
717
  const port = 12445;
718
718
  const app = _connect2.default.call(void 0, );
719
719
  const server = _http2.default.createServer(app);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml
4
- } from "./chunk-SJH4ZSSX.mjs";
4
+ } from "./chunk-NKDK3BW7.mjs";
5
5
  import {
6
6
  __require,
7
7
  __spreadValues,
8
8
  __toESM,
9
9
  init_esm_shims
10
- } from "./chunk-D6ZT4BYV.mjs";
10
+ } from "./chunk-25USV2L5.mjs";
11
11
 
12
12
  // node/build.ts
13
13
  init_esm_shims();
@@ -713,7 +713,7 @@ async function build(options, viteConfig = {}) {
713
713
  await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
714
714
  `, "utf-8");
715
715
  if ([true, "true", "auto"].includes(options.data.config.download)) {
716
- const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-7O4RPYTW.mjs")));
716
+ const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-RFA6N32W.mjs")));
717
717
  const port = 12445;
718
718
  const app = connect();
719
719
  const server = http.createServer(app);
@@ -46,10 +46,6 @@ var __esm = (fn, res) => function __init() {
46
46
  var __commonJS = (cb, mod) => function __require2() {
47
47
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
48
48
  };
49
- var __export = (target, all) => {
50
- for (var name in all)
51
- __defProp(target, name, { get: all[name], enumerable: true });
52
- };
53
49
  var __copyProps = (to, from, except, desc) => {
54
50
  if (from && typeof from === "object" || typeof from === "function") {
55
51
  for (let key of __getOwnPropNames(from))
@@ -165,7 +161,6 @@ export {
165
161
  __require,
166
162
  __objRest,
167
163
  __commonJS,
168
- __export,
169
164
  __toESM,
170
165
  __privateGet,
171
166
  __privateAdd,
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkW64GQHIHjs = require('./chunk-W64GQHIH.js');
3
+ var _chunkRQ7QDWD6js = require('./chunk-RQ7QDWD6.js');
4
4
 
5
5
 
6
- var _chunkOVW2G2MHjs = require('./chunk-OVW2G2MH.js');
6
+ var _chunkOYCSUJS7js = require('./chunk-OYCSUJS7.js');
7
7
 
8
8
  // node/server.ts
9
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
9
+ _chunkOYCSUJS7js.init_cjs_shims.call(void 0, );
10
10
  var _path = require('path');
11
11
  var _vite = require('vite');
12
12
  async function createServer(options, viteConfig = {}, serverOptions = {}) {
@@ -20,7 +20,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
20
20
  ]
21
21
  },
22
22
  plugins: [
23
- await _chunkW64GQHIHjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
23
+ await _chunkRQ7QDWD6js.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
24
24
  ]
25
25
  }));
26
26
  return server;