Socket
Socket
Sign inDemoInstall

aws-lambda-middleware

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-middleware - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

2

package.json
{
"name": "aws-lambda-middleware",
"version": "0.8.0",
"version": "0.8.1",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=8.3.0"

@@ -275,5 +275,6 @@ # aws-lambda-middleware

#### 0.8.0
#### 0.8.1
- PropTypes.*.default, Added ability to set the value returned from a function as a default value.
- body parser improvements
- PropTypes.addRules bug fix

@@ -280,0 +281,0 @@ #### 0.7.1

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

addRules (obj) {
Object.setPrototypeOf(PropTypes, obj)
// Object.setPrototypeOf(PropTypes, obj)
for (const key in obj) {
PropTypes[key] = obj[key]
}
},

@@ -18,0 +21,0 @@

@@ -10,2 +10,14 @@ const { Middleware, PropTypes } = require('../index')

PropTypes.addRules({
get date () {
return PropTypes.makeRule({
validType: (value) => {
return !!(typeof value === 'string')
},
validRequired: (value) => {
return !!value
}
})
}
})

@@ -186,2 +198,5 @@

handler1(palyload1, {

@@ -188,0 +203,0 @@

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