@bluelilo/search-utils
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -31,2 +31,3 @@ "use strict"; | ||
departureDate, | ||
flexibleDate, | ||
duration, | ||
@@ -77,5 +78,7 @@ adults, | ||
flexibleDate = flexibleDate === 'true' ? true : false; | ||
return { | ||
departureAirport, | ||
departureDate, | ||
flexibleDate, | ||
duration: Number(duration), | ||
@@ -166,10 +169,2 @@ adults: Number(adults), | ||
if (maxPrice) { | ||
maxPrice = Number(maxPrice); | ||
if (!Number.isInteger(maxPrice) || maxPrice < 0) { | ||
throw new ValidationError('maxPrice must be zero or a positive integer'); | ||
} | ||
} | ||
if (providers) { | ||
@@ -176,0 +171,0 @@ providers = [].concat(providers).map(String); |
{ | ||
"name": "@bluelilo/search-utils", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
6294
174