@shikijs/vitepress-twoslash 3.9.2 → 3.11.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -194,14 +194,14 @@ ${code.split(/\n/g).slice(0, 15).join("\n").trim()}
194
194
  const defaultTwoslasher = createTwoslasher(options.twoslashOptions);
195
195
  let twoslasher = defaultTwoslasher;
196
196
  if (typesCache) {
197
- twoslasher = (code, extension, options2) => {
197
+ twoslasher = ((code, extension, options2) => {
198
198
  const cached = typesCache.read(code);
199
199
  if (cached)
200
200
  return cached;
201
201
  const twoslashResult = defaultTwoslasher(code, extension, options2);
202
202
  typesCache.write(code, twoslashResult);
203
203
  return twoslashResult;
204
- };
204
+ });
205
205
  twoslasher.getCacheMap = defaultTwoslasher.getCacheMap;
206
206
  }
207
207
  const twoslash = createTransformerFactory(twoslasher)({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/vitepress-twoslash",
3
3
  "type": "module",
4
- "version": "3.9.2",
4
+ "version": "3.11.0",
5
5
  "description": "Enable Twoslash support in VitePress",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  "mdast-util-from-markdown": "^2.0.2",
39
39
  "mdast-util-gfm": "^3.1.0",
40
40
  "mdast-util-to-hast": "^13.2.0",
41
- "twoslash": "^0.3.3",
42
- "twoslash-vue": "^0.3.3",
41
+ "twoslash": "^0.3.4",
42
+ "twoslash-vue": "^0.3.4",
43
43
  "vue": "^3.5.18",
44
- "shiki": "3.9.2"
44
+ "shiki": "3.11.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",