Socket
Socket
Sign inDemoInstall

express-auto-sanitize

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

12

lib/express-auto-sanitize.js
const sanitizer = require('sanitizer')
module.exports = options => {
options = options || {
query: true,
body: true,
params: true,
cookies: true,
original: true
options = {
query: options.query || true,
body: options.body || true,
params: options.params || true,
cookies: options.cookies || true,
original: options.original || true
}

@@ -11,0 +11,0 @@

{
"name": "express-auto-sanitize",
"version": "1.0.2",
"version": "1.0.3",
"description": "Express middleware that automatically sanitize user inputs",

@@ -14,2 +14,3 @@ "main": "./index.js",

"auto",
"automatic",
"sanitize",

@@ -16,0 +17,0 @@ "sanitizer",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc