Socket
Socket
Sign inDemoInstall

node-match-path

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.2 to 0.6.0

6

lib/cjs.js

@@ -19,6 +19,6 @@ 'use strict';

.replace(/\/+$/, '')
// Replace wildcard with any single character sequence
.replace(/\*+/g, '.+')
// Replace wildcard with any zero-to-any character sequence
.replace(/\*+/g, '.*')
// Replace parameters with named capturing groups
.replace(/:([^\d|^\/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g, (_, match) => `(?<${match}>[^\/]+?)`)
.replace(/:([^\d|^\/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g, (_, paramName) => `(?<${paramName}>[^\/]+?)`)
// Allow optional trailing slash

@@ -25,0 +25,0 @@ .concat('(\\/|$)');

@@ -15,6 +15,6 @@ /**

.replace(/\/+$/, '')
// Replace wildcard with any single character sequence
.replace(/\*+/g, '.+')
// Replace wildcard with any zero-to-any character sequence
.replace(/\*+/g, '.*')
// Replace parameters with named capturing groups
.replace(/:([^\d|^\/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g, (_, match) => `(?<${match}>[^\/]+?)`)
.replace(/:([^\d|^\/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g, (_, paramName) => `(?<${paramName}>[^\/]+?)`)
// Allow optional trailing slash

@@ -21,0 +21,0 @@ .concat('(\\/|$)');

{
"name": "node-match-path",
"version": "0.5.2",
"version": "0.6.0",
"description": "Dependency-free request URI matcher",

@@ -35,15 +35,15 @@ "esnext": "src/index.ts",

"devDependencies": {
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@types/jest": "^26.0.10",
"jest": "^26.4.2",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@types/jest": "^26.0.15",
"jest": "^26.6.3",
"rimraf": "^3.0.2",
"rollup": "^2.26.6",
"rollup": "^2.33.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-typescript2": "^0.27.2",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.29.0",
"ts-jest": "^26.4.3",
"typescript": "^4.0.5"
}
}
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