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

@shikijs/twoslash

Package Overview
Dependencies
Maintainers
3
Versions
67
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.1.0 to 1.1.1

11

dist/core.d.ts

@@ -51,2 +51,13 @@ import { TwoslashReturn, TwoslashExecuteOptions, TwoslashGenericFunction, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash';

throws?: boolean;
/**
* Custom error handler for twoslash errors
* When specified, `throws` will be ignored
* Optionally return a string to replace the code
*/
onTwoslashError?: (error: unknown, code: string, lang: string, options: CodeToHastOptions) => string | void;
/**
* Custom error handler for Shiki errors
* When specified, `throws` will be ignored
*/
onShikiError?: (error: unknown) => void;
}

@@ -53,0 +64,0 @@ interface TwoslashRenderer {

6

package.json
{
"name": "@shikijs/twoslash",
"type": "module",
"version": "1.1.0",
"version": "1.1.1",
"description": "Shiki transformer for twoslash",

@@ -52,4 +52,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"dependencies": {
"twoslash": "^0.2.0",
"@shikijs/core": "1.1.0"
"twoslash": "^0.2.1",
"@shikijs/core": "1.1.1"
},

@@ -56,0 +56,0 @@ "devDependencies": {

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