Socket
Socket
Sign inDemoInstall

@shikijs/engine-javascript

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shikijs/engine-javascript - npm Package Compare versions

Comparing version 1.17.4 to 1.17.5

17

dist/index.d.ts

@@ -6,8 +6,16 @@ import { PatternScanner, RegexEngineString, RegexEngine } from '@shikijs/types';

* Whether to allow invalid regex patterns.
*
* @default false
*/
forgiving?: boolean;
/**
* Use JavaScript to simulate some unsupported regex features.
*
* @default true
*/
simulation?: boolean;
/**
* Cache for regex patterns.
*/
cache?: Map<string, RegExp | Error>;
cache?: Map<string, RegExp | Error> | null;
/**

@@ -26,7 +34,6 @@ * Custom pattern to RegExp constructor.

patterns: string[];
cache: Map<string, RegExp | Error>;
forgiving: boolean;
regexConstructor: (pattern: string) => RegExp;
options: JavaScriptRegexEngineOptions;
regexps: (RegExp | null)[];
constructor(patterns: string[], cache: Map<string, RegExp | Error>, forgiving: boolean, regexConstructor?: (pattern: string) => RegExp);
contiguousAnchorSimulation: boolean[];
constructor(patterns: string[], options?: JavaScriptRegexEngineOptions);
findNextMatchSync(string: string | RegexEngineString, startPosition: number): {

@@ -33,0 +40,0 @@ index: number;

{
"name": "@shikijs/engine-javascript",
"type": "module",
"version": "1.17.4",
"version": "1.17.5",
"description": "Engine for Shiki using JavaScript's native RegExp",

@@ -34,3 +34,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"oniguruma-to-js": "0.4.0",
"@shikijs/types": "1.17.4"
"@shikijs/types": "1.17.5"
},

@@ -37,0 +37,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