@shikijs/engine-javascript
Advanced tools
Comparing version 1.17.4 to 1.17.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9753
184
+ Added@shikijs/types@1.17.5(transitive)
- Removed@shikijs/types@1.17.4(transitive)
Updated@shikijs/types@1.17.5