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

@shikijs/types

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shikijs/types - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0

11

dist/index.d.ts

@@ -363,4 +363,9 @@ import { Element, Root } from 'hast';

* When specified, `color` and `fontStyle` will be ignored.
* Prefer use object style for merging with other styles.
*/
htmlStyle?: string;
htmlStyle?: string | Record<string, string>;
/**
* Extra HTML attributes for the token.
*/
htmlAttrs?: Record<string, string>;
}

@@ -517,3 +522,3 @@ interface ThemedTokenWithVariants extends TokenBase {

*/
span?: (this: ShikiTransformerContext, hast: Element, line: number, col: number, lineElement: Element) => Element | void;
span?: (this: ShikiTransformerContext, hast: Element, line: number, col: number, lineElement: Element, token: ThemedToken) => Element | void;
/**

@@ -551,2 +556,4 @@ * Transform the generated HTML string before returning.

* Load wasm file from a custom path or using a custom function.
*
* @deprecated Use `engine: createWasmOnigEngine(loadWasm)` instead.
*/

@@ -553,0 +560,0 @@ loadWasm?: Sync extends true ? never : LoadWasmOptions;

2

package.json
{
"name": "@shikijs/types",
"type": "module",
"version": "1.18.0",
"version": "1.19.0",
"description": "Type definitions for Shiki",

@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

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