@tinypudding/puddy-lib
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -10,5 +10,16 @@ module.exports = function (req, cfg) { | ||
// Path | ||
req.urlPath = req.url.split('/'); | ||
req.urlPath.shift(); | ||
var prepareUrlPath = req.url.split('/'); | ||
req.urlPath = []; | ||
for (const item in prepareUrlPath) { | ||
if(item !== 0) { | ||
// Insert URL Path | ||
req.urlPath.push(prepareUrlPath[item].split(/[?#]/)[0]); | ||
} | ||
} | ||
// Delete Prepare | ||
delete prepareUrlPath; | ||
// Is Obj | ||
@@ -15,0 +26,0 @@ const objType = require('../get/objType'); |
{ | ||
"name": "@tinypudding/puddy-lib", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.", | ||
@@ -5,0 +5,0 @@ "main": "index.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
59987
817