lambda-serverless-api
Advanced tools
Comparing version 9.0.0 to 9.1.0
@@ -18,3 +18,7 @@ "use strict"; | ||
this.relaxed = get(opts, 'relaxed', false); | ||
this.minLength = get(opts, 'minLength', null); | ||
this.maxLength = get(opts, 'maxLength', null); | ||
assert(typeof this.relaxed === 'boolean'); | ||
assert(this.minLength === null || Number.isInteger(this.minLength)); | ||
assert(this.maxLength === null || Number.isInteger(this.maxLength)); | ||
@@ -37,2 +41,10 @@ if (this.relaxed !== true) { | ||
if (valid && this.minLength !== null && value.length < this.minLength) { | ||
valid = false; | ||
} | ||
if (valid && this.maxLength !== null && value.length > this.maxLength) { | ||
valid = false; | ||
} | ||
return valid; | ||
@@ -39,0 +51,0 @@ } |
@@ -16,5 +16,5 @@ { | ||
"devDependencies": { | ||
"@babel/cli": "7.13.14", | ||
"@babel/core": "7.13.15", | ||
"@babel/register": "7.13.14", | ||
"@babel/cli": "7.13.16", | ||
"@babel/core": "7.13.16", | ||
"@babel/register": "7.13.16", | ||
"@blackflux/eslint-plugin-rules": "2.0.3", | ||
@@ -26,3 +26,3 @@ "@blackflux/robo-config-plugin": "5.0.3", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.24.0", | ||
"eslint": "7.25.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
@@ -44,3 +44,3 @@ "eslint-plugin-import": "2.22.1", | ||
}, | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"scripts": { | ||
@@ -97,3 +97,3 @@ "clean": "rm -rf lib", | ||
"object-hash-strict": "3.0.0", | ||
"object-scan": "14.0.0", | ||
"object-scan": "14.2.0", | ||
"painless-version": "2.0.0", | ||
@@ -100,0 +100,0 @@ "route-recognizer": "0.3.4", |
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
99049
2415
+ Addedobject-scan@14.2.0(transitive)
Updatedobject-scan@14.2.0