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.16 to 0.6.17

8

change-log.md

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

26

compose-regexp.d.ts
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",

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