pathfinder-ui
Advanced tools
Comparing version 0.1.11112 to 0.1.11113
@@ -28,3 +28,3 @@ module.exports = require('./lib/pathfinder-ui.js'); | ||
//But if you dont', I will look for you. | ||
//But if you don't, I will look for you. | ||
@@ -31,0 +31,0 @@ //I will find you. |
@@ -10,2 +10,4 @@ var example = require('./example'); | ||
generateRouteTree(app); | ||
function generateRouteTree(app) { | ||
@@ -38,5 +40,10 @@ var topLevelRouteStack = app._router.stack; | ||
// test/api | ||
var parentName = e.regexp.toString().slice(0, -1).match(/\w+/ig).join("/"); | ||
var parentPath = pPath + "/" + e.regexp.toString().slice(0, -1).match(/\w+/ig).join("/"); | ||
var parentName = ''; | ||
if (e.regexp.test('/')){ | ||
parentName = '/'; | ||
} | ||
else { | ||
parentName = e.regexp.toString().slice(0, -1).match(/\w+/ig).join("/"); | ||
} | ||
var parentPath = pPath + parentName; | ||
console.log("pName", parentName); | ||
@@ -60,3 +67,3 @@ var route = {}; | ||
}); | ||
console.log(allRoutes); | ||
return allRoutes | ||
@@ -63,0 +70,0 @@ } |
{ | ||
"name": "pathfinder-ui", | ||
"version": "0.1.11112", | ||
"version": "0.1.11113", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "preferGlobal": false, |
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
4918
9
72