🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

path-match

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-match - npm Package Compare versions

Comparing version

to
1.1.0

@@ -17,7 +17,12 @@

for (var i = 1; i < m.length; i++) {
if (!m[i]) continue; // undefined from optionals
params[keys[i - 1].name] = decodeParam(m[i]);
var x, param;
for (var i = 0; i < keys.length; i++) {
param = m[x = i + 1];
if (!param) continue;
params[keys[i].name] = decodeParam(param);
}
var tail = m.slice(++x).join('/');
if (tail) params.tail = tail;
return params;

@@ -36,2 +41,2 @@ }

}
}
}
{
"name": "path-match",
"description": "wrapper around path-to-regexp for easy route parameters",
"version": "1.0.0",
"version": "1.1.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Jonathan Ong",