oniguruma-to-js
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -34,7 +34,21 @@ interface ConstructOptions { | ||
interface SyntaxLoweringOptions { | ||
/** | ||
* Preserve flags like `x` in `(?i)` or `(?i:...)`. | ||
* | ||
* When set to `true`, meaning the result might not be directly usable in JavaScript. | ||
* | ||
* @default false | ||
*/ | ||
preserveFlags?: boolean; | ||
} | ||
interface SyntaxLoweringResult { | ||
pattern: string; | ||
flags: string; | ||
} | ||
/** | ||
* Read the Oniguruma regex, lower syntaxes and return a more JavaScript-friendly regex. | ||
*/ | ||
declare function syntaxLowering(input: string): string; | ||
declare function syntaxLowering(input: string, options?: SyntaxLoweringOptions): SyntaxLoweringResult; | ||
export { type ConstructOptions, type OnigurumaToRegexpOptions, RegExpConversionError, construct, onigurumaToRegexp, syntaxLowering }; | ||
export { type ConstructOptions, type OnigurumaToRegexpOptions, RegExpConversionError, type SyntaxLoweringOptions, type SyntaxLoweringResult, construct, onigurumaToRegexp, syntaxLowering }; |
{ | ||
"name": "oniguruma-to-js", | ||
"type": "module", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"packageManager": "pnpm@9.9.0", | ||
@@ -6,0 +6,0 @@ "description": "Covert Oniguruma-flavor Regexp to JavaScript native RegExp", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30431
677