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

oniguruma-to-js

Package Overview
Dependencies
Maintainers
1
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.2.1 to 0.2.2

dist/shared/oniguruma-to-js.57747081.mjs

48

dist/index.d.ts

@@ -18,18 +18,2 @@ interface ConstructOptions {

interface OnigurumaToRegexpOptions extends Omit<ConstructOptions, 'original'> {
}
declare function onigurumaToRegexp(pattern: string, options?: OnigurumaToRegexpOptions): RegExp;
declare class RegExpConversionError extends SyntaxError {
patternOriginal: string;
patternConverted?: string;
cursorPosition?: number;
constructor(message: string, options: {
pattern: string;
converted?: string;
cursor?: number;
cause?: unknown;
});
}
interface SyntaxLoweringOptions {

@@ -44,2 +28,18 @@ /**

preserveFlags?: boolean;
/**
* Remove possessive quantifiers like `*+`, `?+`, `++`, `{1,2}+`.
*
* This might alter the meaning of the regex.
*
* @default false
*/
removePossessiveQuantifier?: boolean;
/**
* Remove atomic group like `(?>...)` to non-capturing group `(?:...)`.
*
* This might alter the meaning of the regex.
*
* @default false
*/
removeAtomicGroup?: boolean;
}

@@ -55,2 +55,18 @@ interface SyntaxLoweringResult {

interface OnigurumaToRegexpOptions extends Omit<ConstructOptions, 'original'>, SyntaxLoweringOptions {
}
declare function onigurumaToRegexp(pattern: string, options?: OnigurumaToRegexpOptions): RegExp;
declare class RegExpConversionError extends SyntaxError {
patternOriginal: string;
patternConverted?: string;
cursorPosition?: number;
constructor(message: string, options: {
pattern: string;
converted?: string;
cursor?: number;
cause?: unknown;
});
}
export { type ConstructOptions, type OnigurumaToRegexpOptions, RegExpConversionError, type SyntaxLoweringOptions, type SyntaxLoweringResult, construct, onigurumaToRegexp, syntaxLowering };
{
"name": "oniguruma-to-js",
"type": "module",
"version": "0.2.1",
"version": "0.2.2",
"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