Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambda-serverless-api

Package Overview
Dependencies
Maintainers
1
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-serverless-api - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

12

lib/param/str.js

@@ -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 @@ }

12

package.json

@@ -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",

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