@shikijs/twoslash 3.12.1 → 3.12.3

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/core.mjs +1 -1
  2. package/package.json +5 -5
package/dist/core.mjs CHANGED
@@ -1156,7 +1156,7 @@ function createTransformerFactory(defaultTwoslasher, defaultRenderer) {
1156
1156
  } catch (error) {
1157
1157
  const result = onTwoslashError(error, code, lang, this.options);
1158
1158
  if (typeof result === "string")
1159
- return code;
1159
+ return result;
1160
1160
  }
1161
1161
  }
1162
1162
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/twoslash",
3
3
  "type": "module",
4
- "version": "3.12.1",
4
+ "version": "3.12.3",
5
5
  "description": "Shiki transformer for twoslash",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -36,15 +36,15 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "twoslash": "^0.3.4",
39
- "@shikijs/core": "3.12.1",
40
- "@shikijs/types": "3.12.1"
39
+ "@shikijs/types": "3.12.3",
40
+ "@shikijs/core": "3.12.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@iconify-json/carbon": "^1.2.13",
44
- "@iconify-json/codicon": "^1.2.27",
44
+ "@iconify-json/codicon": "^1.2.30",
45
45
  "hast-util-from-html": "^2.0.3",
46
46
  "typescript": "^5.9.2",
47
- "@shikijs/twoslash": "3.12.1"
47
+ "@shikijs/twoslash": "3.12.3"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "unbuild",