You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

reregexp

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reregexp - npm Package Compare versions

Comparing version

to
1.3.0

13

lib/index.d.ts

@@ -15,2 +15,3 @@ export interface NormalObject<T = unknown> {

namedGroupConf?: NamedGroupConf<NamedGroupConf<string[] | boolean>>;
extractSetAverage?: boolean;
}

@@ -50,2 +51,3 @@ export interface BuildConfData extends ParserConf {

private hasFlag;
getFlagsHash(): FlagsHash;
}

@@ -77,2 +79,3 @@ export declare type CharsetType = 'd' | 'w' | 's';

abstract readonly type: string;
protected parserInstance: Parser;
protected min: number;

@@ -86,2 +89,5 @@ protected max: number;

constructor(input?: string);
get parser(): Parser;
set parser(parser: Parser);
get count(): number;
get parent(): RegexpPart;

@@ -105,2 +111,3 @@ set parent(value: RegexpPart);

protected prebuild(conf: BuildConfData): string | never;
protected getCodePointCount(): number;
}

@@ -160,2 +167,3 @@ export declare abstract class RegexpEmpty extends RegexpPart {

protected prebuild(conf: BuildConfData): string;
protected getCodePointCount(): number;
}

@@ -218,2 +226,4 @@ export declare class RegexpPrint extends RegexpPart {

constructor();
set parser(parser: Parser);
get parser(): Parser;
get isComplete(): boolean;

@@ -224,2 +234,4 @@ set isComplete(value: boolean);

protected prebuild(conf: BuildConfData): string;
protected getCodePointCount(): number;
protected makeCodePointResult(): void;
}

@@ -232,2 +244,3 @@ export declare class RegexpRange extends RegexpPart {

protected prebuild(): string;
protected getCodePointCount(): number;
}

@@ -234,0 +247,0 @@ export declare abstract class RegexpHexCode extends RegexpOrigin {

2

package.json
{
"name": "reregexp",
"version": "1.2.0",
"version": "1.3.0",
"description": "Generate a string match the given regular expression, and also parse the regexp to AST segments.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -46,2 +46,6 @@ # reregexp

});
// extractSetAverage
const r9 = new RegexpParser(/[\Wa-z]/, {
extractSetAverage: true, // \W will extract as all the characters match \W, a-z now doesn't have the same chance as \W
});
```

@@ -48,0 +52,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet