@shikijs/twoslash
Advanced tools
Comparing version 1.17.7 to 1.18.0
@@ -26,2 +26,8 @@ import { CodeToHastOptions, ShikiTransformerContext, ShikiTransformerContextCommon, ShikiTransformer } from '@shikijs/types'; | ||
/** | ||
* Triggers that skip Twoslash transformation on the code block meta | ||
* | ||
* @default ['notwoslash', 'no-twoslash'] | ||
*/ | ||
disableTriggers?: (string | RegExp)[]; | ||
/** | ||
* Mapping from language alias to language name | ||
@@ -32,3 +38,3 @@ */ | ||
* Custom filter function to apply this transformer to | ||
* When specified, `langs` and `explicitTrigger` will be ignored | ||
* When specified, `langs`, `explicitTrigger`, and `disableTriggers` will be ignored | ||
*/ | ||
@@ -35,0 +41,0 @@ filter?: (lang: string, code: string, options: CodeToHastOptions) => boolean; |
{ | ||
"name": "@shikijs/twoslash", | ||
"type": "module", | ||
"version": "1.17.7", | ||
"version": "1.18.0", | ||
"description": "Shiki transformer for twoslash", | ||
@@ -53,4 +53,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"twoslash": "^0.2.11", | ||
"@shikijs/core": "1.17.7", | ||
"@shikijs/types": "1.17.7" | ||
"@shikijs/core": "1.18.0", | ||
"@shikijs/types": "1.18.0" | ||
}, | ||
@@ -60,5 +60,5 @@ "devDependencies": { | ||
"@iconify-json/codicon": "^1.2.0", | ||
"hast-util-from-html": "^2.0.2", | ||
"hast-util-from-html": "^2.0.3", | ||
"typescript": "^5.6.2", | ||
"@shikijs/twoslash": "1.17.7" | ||
"@shikijs/twoslash": "1.18.0" | ||
}, | ||
@@ -65,0 +65,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78539
2132
+ Added@shikijs/core@1.18.0(transitive)
+ Added@shikijs/engine-javascript@1.18.0(transitive)
+ Added@shikijs/engine-oniguruma@1.18.0(transitive)
+ Added@shikijs/types@1.18.0(transitive)
- Removed@shikijs/core@1.17.7(transitive)
- Removed@shikijs/engine-javascript@1.17.7(transitive)
- Removed@shikijs/engine-oniguruma@1.17.7(transitive)
- Removed@shikijs/types@1.17.7(transitive)
Updated@shikijs/core@1.18.0
Updated@shikijs/types@1.18.0