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

path-to-regex

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-regex - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

5

index.js

@@ -169,3 +169,5 @@ module.exports = Regex;

// console.log("Regex.match 03", result);
if(result.groups)
return result.groups;
const data = {};

@@ -211,2 +213,3 @@ this.keys.forEach(item=>{

});
return data;

@@ -213,0 +216,0 @@

2

package.json
{
"name": "path-to-regex",
"version": "1.2.1",
"version": "1.2.2",
"description": "Turn a path string such as /user/:id or /user/:id(\\d+) into a regular expression",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,3 +22,3 @@ # path-to-regex

var matcher = new pathToRegex(path_template, options?);
var parser = new pathToRegex(path_template, options?);
```

@@ -81,2 +81,3 @@

#### But it does not capture parts of the path that are clearly indicated.
```javascript

@@ -282,3 +283,10 @@ let parser = new pathToRegex('/:path(.*)');

## Participation in development
```
https://github.com/lastuniverse/path-to-regex/issues
```
## License
MIT
[![NPM](https://nodei.co/npm/path-to-regex.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/path-to-regex/)

@@ -285,0 +293,0 @@

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