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

compose-regexp

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compose-regexp - npm Package Compare versions

Comparing version 0.6.17 to 0.6.18

10

change-log.md

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

24

compose-regexp.d.ts

@@ -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",

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