aws-lambda-middleware
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "aws-lambda-middleware", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8.3.0" |
@@ -264,3 +264,3 @@ # aws-lambda-middleware | ||
#### 0.7.0 | ||
#### 0.7.1 | ||
- Add PropTypes.*.default method | ||
@@ -267,0 +267,0 @@ - Add PropTypes.object |
@@ -128,7 +128,6 @@ const querystring = require('querystring') | ||
const hasProp = event[groupKey].hasOwnProperty(propName) | ||
const propValue = event[groupKey][propName] | ||
if (common.isEmpty(propValue) && !common.isEmpty(rule._default, true)) { | ||
if (common.isEmpty(val) && !common.isEmpty(rule._default, true)) { | ||
event[groupKey][propName] = common.clone(rule._default) | ||
} else if (hasProp && propValue && typeof rule._convert === 'function') { | ||
} else if (hasProp && !common.isEmpty(val) && typeof rule._convert === 'function') { | ||
event[groupKey][propName] = rule._convert(val) | ||
@@ -135,0 +134,0 @@ } |
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
22766
568