Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.17.2 to 0.17.3

2

package.json
{
"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
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc