@slidev/parser 0.47.0 → 0.47.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.
@@ -40,56 +40,6 @@ function objectMap(obj, fn) {
40
40
  Object.entries(obj).map(([k, v]) => fn(k, v)).filter(notNullish)
41
41
  );
42
42
  }
43
- var Node = class {
44
- value;
45
- next;
46
- constructor(value) {
47
- this.value = value;
48
- }
49
- };
50
- var Queue = class {
51
- #head;
52
- #tail;
53
- #size;
54
- constructor() {
55
- this.clear();
56
- }
57
- enqueue(value) {
58
- const node = new Node(value);
59
- if (this.#head) {
60
- this.#tail.next = node;
61
- this.#tail = node;
62
- } else {
63
- this.#head = node;
64
- this.#tail = node;
65
- }
66
- this.#size++;
67
- }
68
- dequeue() {
69
- const current = this.#head;
70
- if (!current) {
71
- return;
72
- }
73
- this.#head = this.#head.next;
74
- this.#size--;
75
- return current.value;
76
- }
77
- clear() {
78
- this.#head = void 0;
79
- this.#tail = void 0;
80
- this.#size = 0;
81
- }
82
- get size() {
83
- return this.#size;
84
- }
85
- *[Symbol.iterator]() {
86
- let current = this.#head;
87
- while (current) {
88
- yield current.value;
89
- current = current.next;
90
- }
91
- }
92
- };
93
43
  var VOID = Symbol("p-void");
94
44
 
95
45
  // src/utils.ts
@@ -134,7 +84,7 @@ function getDefaultConfig() {
134
84
  download: false,
135
85
  export: {},
136
86
  info: false,
137
- highlighter: "prism",
87
+ highlighter: "shiki",
138
88
  lineNumbers: false,
139
89
  colorSchema: "auto",
140
90
  routerMode: "history",
package/dist/core.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-VVGYI2Z3.mjs";
18
+ } from "./chunk-3PHEOYPJ.mjs";
19
19
  export {
20
20
  detectFeatures,
21
21
  filterDisabled,
package/dist/fs.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-VVGYI2Z3.mjs";
18
+ } from "./chunk-3PHEOYPJ.mjs";
19
19
 
20
20
  // src/fs.ts
21
21
  import { promises as fs } from "node:fs";
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-VVGYI2Z3.mjs";
18
+ } from "./chunk-3PHEOYPJ.mjs";
19
19
  export {
20
20
  detectFeatures,
21
21
  filterDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/parser",
3
- "version": "0.47.0",
3
+ "version": "0.47.1",
4
4
  "description": "Markdown parser for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "js-yaml": "^4.1.0",
43
- "@slidev/types": "0.47.0"
43
+ "@slidev/types": "0.47.1"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts",