@shikijs/vitepress-twoslash 3.12.0 → 3.12.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/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ ${code.split(/\n/g).slice(0, 15).join("\n").trim()}
|
|
|
188
188
|
throw error;
|
|
189
189
|
else
|
|
190
190
|
console.error(error);
|
|
191
|
-
removeTwoslashNotations(code);
|
|
191
|
+
return removeTwoslashNotations(code);
|
|
192
192
|
};
|
|
193
193
|
const twoslash = createTransformerFactory(
|
|
194
194
|
createTwoslasher(options.twoslashOptions)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/vitepress-twoslash",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.12.
|
|
4
|
+
"version": "3.12.2",
|
|
5
5
|
"description": "Enable Twoslash support in VitePress",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@shikijs/twoslash": "",
|
|
38
38
|
"floating-vue": "^5.2.2",
|
|
39
39
|
"lz-string": "^1.5.0",
|
|
40
|
-
"magic-string": "^0.30.
|
|
40
|
+
"magic-string": "^0.30.18",
|
|
41
41
|
"markdown-it": "^14.1.0",
|
|
42
42
|
"mdast-util-from-markdown": "^2.0.2",
|
|
43
43
|
"mdast-util-gfm": "^3.1.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ohash": "^2.0.11",
|
|
46
46
|
"twoslash": "^0.3.4",
|
|
47
47
|
"twoslash-vue": "^0.3.4",
|
|
48
|
-
"vue": "^3.5.
|
|
49
|
-
"shiki": "3.12.
|
|
48
|
+
"vue": "^3.5.21",
|
|
49
|
+
"shiki": "3.12.2"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "unbuild",
|