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.0.0 to 1.1.0

16

dist/core.d.ts

@@ -1,2 +0,2 @@

import { TwoslashReturn, TwoslashExecuteOptions, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash';
import { TwoslashReturn, TwoslashExecuteOptions, TwoslashGenericFunction, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash';
import { CodeToHastOptions, ShikiTransformerContext, ShikiTransformerContextCommon, ShikiTransformer } from '@shikijs/core';

@@ -37,3 +37,3 @@ import { ElementContent, Element, Text } from 'hast';

*/
twoslasher?: TwoslashShikiFunction;
twoslasher?: TwoslashShikiFunction | TwoslashGenericFunction;
/**

@@ -66,6 +66,2 @@ * Options to pass to twoslash

type CompletionItem = NonNullable<NodeCompletion['completions']>[number];
declare const defaultCompletionIcons: Record<CompletionItem['kind'], Element | undefined>;
declare const defaultCustomTagIcons: Record<string, Element | undefined>;
interface RendererRichOptions {

@@ -85,3 +81,3 @@ /**

*/
completionIcons?: Partial<Record<CompletionItem['kind'], ElementContent>> | false;
completionIcons?: Partial<Record<string, ElementContent>> | false;
/**

@@ -251,2 +247,6 @@ * Custom icons for custom tags lines.

type CompletionItem = NonNullable<NodeCompletion['completions']>[number];
declare const defaultCompletionIcons: Record<string, Element | undefined>;
declare const defaultCustomTagIcons: Record<string, Element | undefined>;
declare class ShikiTwoslashError extends Error {

@@ -262,4 +262,4 @@ constructor(message: string);

declare function defaultTwoslashOptions(): TwoslashExecuteOptions;
declare function createTransformerFactory(defaultTwoslasher: TwoslashShikiFunction, defaultRenderer?: TwoslashRenderer): (options?: TransformerTwoslashOptions) => ShikiTransformer;
declare function createTransformerFactory(defaultTwoslasher: TwoslashShikiFunction | TwoslashGenericFunction, defaultRenderer?: TwoslashRenderer): (options?: TransformerTwoslashOptions) => ShikiTransformer;
export { type CompletionItem, type HastExtension, type RendererRichOptions, ShikiTwoslashError, type TransformerTwoslashOptions, type TwoslashRenderer, type TwoslashShikiFunction, type TwoslashShikiReturn, createTransformerFactory, defaultCompletionIcons, defaultCustomTagIcons, defaultHoverInfoProcessor, defaultTwoslashOptions, rendererClassic, rendererRich };
{
"name": "@shikijs/twoslash",
"type": "module",
"version": "1.0.0",
"version": "1.1.0",
"description": "Shiki transformer for twoslash",

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

"dependencies": {
"twoslash": "^0.1.2",
"@shikijs/core": "1.0.0"
"twoslash": "^0.2.0",
"@shikijs/core": "1.1.0"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/carbon": "^1.1.29",
"@iconify-json/codicon": "^1.1.41",

@@ -59,0 +59,0 @@ "@shikijs/twoslash": "^3.1.2",

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