compose-regexp
Advanced tools
Comparing version 0.6.17 to 0.6.18
@@ -5,3 +5,3 @@ # Change Log | ||
## v0.6.16 | ||
## v0.6.18 | ||
@@ -12,2 +12,10 @@ *2022-05-07* | ||
- Fix the `flags.add` typings | ||
## v0.6.17 | ||
*2022-05-07* | ||
### Bug fixes | ||
- Correctly handle variadic params in TS | ||
@@ -14,0 +22,0 @@ |
@@ -94,16 +94,18 @@ | ||
type TwoFlags = | ||
| `${string}d${string}d${string}` | ||
| `${string}g${string}g${string}` | ||
| `${string}i${string}i${string}` | ||
| `${string}m${string}m${string}` | ||
| `${string}s${string}s${string}` | ||
| `${string}u${string}u${string}` | ||
| `${string}y${string}y${string}` | ||
type TwoFlags<Letter extends string> = `${string}${Letter}${string}${Letter}${string}` | ||
type FlagPairs = | ||
| TwoFlags<'d'> | ||
| TwoFlags<'g'> | ||
| TwoFlags<'i'> | ||
| TwoFlags<'m'> | ||
| TwoFlags<'s'> | ||
| TwoFlags<'u'> | ||
| TwoFlags<'y'> | ||
| `${string}g${string}y${string}` | ||
| `${string}y${string}g${string}` | ||
export interface flags<Str extends string>{ | ||
add( | ||
flags: Subtract<CheckType<Flags, Str>, TwoFlags>, | ||
export const flags: { | ||
add<Str extends string>( | ||
flags: Subtract<CheckType<Flags, Str>, FlagPairs>, | ||
...x: Param[] | ||
@@ -110,0 +112,0 @@ ) : RegExp |
{ | ||
"name": "compose-regexp", | ||
"version": "0.6.17", | ||
"version": "0.6.18", | ||
"description": "A set of functions to build and compose complex regular expressions", | ||
@@ -47,3 +47,3 @@ "type": "module", | ||
"devDependencies": { | ||
"compose-regexp": "0.6.16", | ||
"compose-regexp": "0.6.17", | ||
"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
157874
2884