compose-regexp
Advanced tools
Comparing version 0.6.16 to 0.6.17
@@ -9,2 +9,10 @@ # Change Log | ||
### Bug fixes | ||
- Correctly handle variadic params in TS | ||
## v0.6.16 | ||
*2022-05-07* | ||
### New features | ||
@@ -11,0 +19,0 @@ |
type NonNegInteger<N extends number, S extends string> = `${N}` extends Subtract<S, NotInInteger> ? N : never | ||
export type Param = string | RegExp | [Param] | (() => Param) | ||
export type Param = string | RegExp | Param[] | (() => Param) | ||
export declare function either(...x: [Param]) : RegExp | ||
export declare function sequence(...x: [Param]) : RegExp | ||
export declare function maybe(...x: [Param]) : RegExp | ||
export declare function either(...x: Param[]) : RegExp | ||
export declare function sequence(...x: Param[]) : RegExp | ||
export declare function maybe(...x: Param[]) : RegExp | ||
@@ -37,3 +37,3 @@ | ||
s: SimpleQuantifier | HackyQuantifier | Subtract<BQ, NotInInteger>, | ||
...x: [Param] | ||
...x: Param[] | ||
) : RegExp | ||
@@ -109,8 +109,8 @@ | ||
flags: Subtract<CheckType<Flags, Str>, TwoFlags>, | ||
...x: [Param] | ||
...x: Param[] | ||
) : RegExp | ||
} | ||
export declare function capture(...x: [Param]) : RegExp | ||
export declare function namedCapture(label: string, ...x: [Param]) : RegExp | ||
export declare function capture(...x: Param[]) : RegExp | ||
export declare function namedCapture(label: string, ...x: Param[]) : RegExp | ||
export declare function ref(n:number): RegExp | ||
@@ -121,8 +121,8 @@ export declare function ref(n:number, depth:number): RegExp | ||
export declare function lookAhead(...x: [Param]) : RegExp | ||
export declare function notAhead(...x: [Param]) : RegExp | ||
export declare function lookBehind(...x: [Param]) : RegExp | ||
export declare function notBehind(...x: [Param]) : RegExp | ||
export declare function lookAhead(...x: Param[]) : RegExp | ||
export declare function notAhead(...x: Param[]) : RegExp | ||
export declare function lookBehind(...x: Param[]) : RegExp | ||
export declare function notBehind(...x: Param[]) : RegExp | ||
export declare function atomic(...x: [Param]) : RegExp | ||
export declare function atomic(...x: Param[]) : RegExp | ||
@@ -129,0 +129,0 @@ export declare function bound(x: Param) : RegExp |
{ | ||
"name": "compose-regexp", | ||
"version": "0.6.16", | ||
"version": "0.6.17", | ||
"description": "A set of functions to build and compose complex regular expressions", | ||
@@ -47,3 +47,3 @@ "type": "module", | ||
"devDependencies": { | ||
"compose-regexp": "0.6.15", | ||
"compose-regexp": "0.6.16", | ||
"gosub": "1.1.0", | ||
@@ -50,0 +50,0 @@ "ospec": "^4.1.1", |
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
157840
937