Socket
Socket
Sign inDemoInstall

path-to-regexp

Package Overview
Dependencies
0
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12456Next

2.2.0

Diff

Changelog

Source

2.2.0 / 2018-03-06

  • Pass token as second argument to encode option (e.g. encode(value, token))
blakeembrey
published 2.1.0 •

Changelog

Source

2.1.0 / 2017-10-20

  • Handle non-ending paths where the final character is a delimiter
    • E.g. /foo/ before required either /foo/ or /foo// to match in non-ending mode
blakeembrey
published 2.0.0 •

Changelog

Source

2.0.0 / 2017-08-23

  • New option! Ability to set endsWith to match paths like /test?query=string up to the query string
  • New option! Set delimiters for specific characters to be treated as parameter prefixes (e.g. /:test)
  • Remove isarray dependency
  • Explicitly handle trailing delimiters instead of trimming them (e.g. /test/ is now treated as /test/ instead of /test when matching)
  • Remove overloaded keys argument that accepted options
  • Remove keys list attached to the RegExp output
  • Remove asterisk functionality (it's a real pain to properly encode)
  • Change tokensToFunction (e.g. compile) to accept an encode function for pretty encoding (e.g. pass your own implementation)
blakeembrey
published 1.7.0 •

Changelog

Source

1.7.0 / 2016-11-08

  • Allow a delimiter option to be passed in with tokensToRegExp which will be used for "non-ending" token match situations
blakeembrey
published 1.6.0 •

Changelog

Source

1.6.0 / 2016-10-03

  • Populate RegExp.keys when using the tokensToRegExp method (making it consistent with the main export)
  • Allow a delimiter option to be passed in with parse
  • Updated TypeScript definition with Keys and Options updated
blakeembrey
published 1.5.3 •

Changelog

Source

1.5.3 / 2016-06-15

  • Add \\ to the ignore character group to avoid backtracking on mismatched parens
blakeembrey
published 1.5.2 •

Changelog

Source

1.5.2 / 2016-06-15

  • Escape \\ in string segments of regexp
blakeembrey
published 1.5.1 •

Changelog

Source

1.5.1 / 2016-06-08

  • Add index.d.ts to NPM package
blakeembrey
published 1.5.0 •

Changelog

Source

1.5.0 / 2016-05-20

  • Handle partial token segments (better)
  • Allow compile to handle asterisk token segments
blakeembrey
published 1.4.0 •

Changelog

Source

1.4.0 / 2016-05-18

  • Handle RegExp unions in path matching groups
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc