cleaner-node
Advanced tools
Comparing version 0.17.0 to 0.17.1
{ | ||
"name": "cleaner-node", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"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", |
@@ -15,5 +15,4 @@ const objects = require('./objects'); | ||
(isCaseSensitive && x === key)))); | ||
return (keys.length === 0) | ||
? obj[keys[0]] | ||
: obj[key]; | ||
const keyToUse = (keys.length === 0) ? keys[0] : key; | ||
return obj[keyToUse]; | ||
}; | ||
@@ -20,0 +19,0 @@ const getValueFromBody = (req, key, isCaseSensitive = 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
82129
2084