Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shikijs/twoslash

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shikijs/twoslash - npm Package Compare versions

Comparing version 1.17.7 to 1.18.0

8

dist/core.d.ts

@@ -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;

10

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc