@bluelilo/search-utils
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -143,7 +143,8 @@ "use strict"; | ||
if (starRating) { | ||
starRating = Number(starRating); | ||
if (!Number.isInteger(starRating) || starRating < 1 || starRating > 5) { | ||
throw new ValidationError('starRating must be an integer from 1 to 5'); | ||
} | ||
starRating = [].concat(starRating).map(Number); | ||
starRating.forEach(starRating => { | ||
if (!Number.isInteger(starRating) || starRating < 1 || starRating > 5) { | ||
throw new ValidationError('starRating must be an integer from 1 to 5'); | ||
} | ||
}); | ||
} | ||
@@ -150,0 +151,0 @@ |
{ | ||
"name": "@bluelilo/search-utils", | ||
"version": "1.0.1", | ||
"version": "1.1.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
8379
234