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

oniguruma-to-js

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oniguruma-to-js - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

dist/shared/oniguruma-to-js.401da75b.cjs

18

dist/index.d.ts

@@ -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 };

2

package.json
{
"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

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