cleaner-node
Advanced tools
Comparing version 0.17.2 to 0.17.3
{ | ||
"name": "cleaner-node", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,5 @@ const objects = require('./objects'); | ||
}; | ||
const getValueFromQuery = (req, key, isCaseSensitive = false) => { | ||
return getProperty(req.query, key, isCaseSensitive); | ||
}; | ||
const getValueFromBody = (req, key, isCaseSensitive = false) => { | ||
@@ -26,3 +29,5 @@ return getProperty(req.body, key, isCaseSensitive); | ||
const getValue = (req, key, isCaseSensitive = false) => { | ||
return getValueFromBody(req, key, isCaseSensitive) || getValueFromParams(req, key, isCaseSensitive); | ||
return getValueFromBody(req, key, isCaseSensitive) || | ||
getValueFromParams(req, key, isCaseSensitive) || | ||
getValueFromQuery(req, key, isCaseSensitive); | ||
}; | ||
@@ -37,3 +42,4 @@ | ||
getValueFromBody, | ||
getValueFromParams | ||
getValueFromParams, | ||
getValueFromQuery | ||
}; |
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
82332
2090