@bluelilo/search-utils
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -31,3 +31,3 @@ "use strict"; | ||
departureDate, | ||
flexibleDate, | ||
flexibleDays, | ||
duration, | ||
@@ -56,2 +56,6 @@ adults, | ||
if (!Number.isInteger(Number(flexibleDays)) || Number(flexibleDays) < 0) { | ||
throw new ValidationError('flexibleDays must be a zero or a positive integer'); | ||
} | ||
if (!Number.isInteger(Number(duration)) || Number(duration) <= 0) { | ||
@@ -79,7 +83,6 @@ throw new ValidationError('duration must be a positive integer'); | ||
flexibleDate = flexibleDate === 'true' ? true : false; | ||
return { | ||
departureAirport, | ||
departureDate, | ||
flexibleDate, | ||
flexibleDays: Number(flexibleDays), | ||
duration: Number(duration), | ||
@@ -86,0 +89,0 @@ adults: Number(adults), |
{ | ||
"name": "@bluelilo/search-utils", | ||
"version": "3.2.0", | ||
"version": "3.3.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
6425
176