qcobjects-cli
Advanced tools
Comparing version 0.1.52 to 0.1.53
@@ -338,3 +338,3 @@ /** | ||
let routes = CONFIG.get('backend').routes; | ||
let selectedRoute = routes.filter(route=>{return (new RegExp(route.path,'g')).test(request.path)}); | ||
let selectedRoute = routes.filter(route=>{let standardRoutePath = route.path.replace(/{(.*?)}/g,'\(\?\<$1\>\.\*\)');return (new RegExp(standardRoutePath,'g')).test(request.path)}); | ||
if (selectedRoute.length>0){ | ||
@@ -341,0 +341,0 @@ selectedRoute.map(route=>{ |
@@ -339,3 +339,3 @@ /** | ||
let routes = CONFIG.get('backend').routes; | ||
let selectedRoute = routes.filter(route=>{return (new RegExp(route.path,'g')).test(request.path)}); | ||
let selectedRoute = routes.filter(route=>{let standardRoutePath = route.path.replace(/{(.*?)}/g,'\(\?\<$1\>\.\*\)');return (new RegExp(standardRoutePath,'g')).test(request.path)}); | ||
if (selectedRoute.length>0){ | ||
@@ -342,0 +342,0 @@ selectedRoute.map(route=>{ |
@@ -290,6 +290,7 @@ /** | ||
let routes = CONFIG.get('backend').routes; | ||
let selectedRoute = routes.filter(route=>{return (new RegExp(route.path,'g')).test(request.path)}); | ||
let selectedRoute = routes.filter(route=>{let standardRoutePath = route.path.replace(/{(.*?)}/g,'\(\?\<$1\>\.\*\)');return (new RegExp(standardRoutePath,'g')).test(request.path)}); | ||
if (selectedRoute.length>0){ | ||
selectedRoute.map(route=>{ | ||
let standardRoutePath = route.path.replace(/{(.*?)}/g,'\(\?\<$1\>\.\*\)'); //allowing {param} | ||
console.log(standardRoutePath); | ||
let selectedRouteParams = {...[...request.path.matchAll((new RegExp( standardRoutePath ,'g')))][0]['groups']}; | ||
@@ -296,0 +297,0 @@ ImportMicroservice (route.microservice); |
{ | ||
"name": "qcobjects-cli", | ||
"version": "0.1.52", | ||
"version": "0.1.53", | ||
"description": "qcobjects cli command line tool", | ||
@@ -5,0 +5,0 @@ "main": "qcobjects-cli.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102083
2465