Socket
Socket
Sign inDemoInstall

middy

Package Overview
Dependencies
Maintainers
8
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middy - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

2

package.json
{
"name": "middy",
"version": "0.6.4",
"version": "0.6.5",
"description": "The simple (but cool 😎) middleware engine for AWS lambda in Node.js",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,3 +15,3 @@ const middy = require('../../middy')

headers: {
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},

@@ -40,3 +40,3 @@ body: 'frappucino=muffin&goat%5B%5D=scone&pond=moose'

headers: {
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},

@@ -43,0 +43,0 @@ body: 'a[b][c][d]=i'

@@ -11,3 +11,3 @@ const defaults = {

if (handler.event.headers && handler.event.headers['Content-Type'] === 'application/x-www-form-urlencoded') {
if (handler.event.headers && handler.event.headers['Content-Type'].indexOf('application/x-www-form-urlencoded') === 0) {
handler.event.body = parserFn(handler.event.body)

@@ -14,0 +14,0 @@ }

Sorry, the diff of this file is too big to display

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