@bluelilo/search-utils
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.BOARD_BASIS_TYPES = exports.SORT_BY_TYPES = void 0; | ||
const SORT_BY_TYPES = ['PRICE_LOW_HIGH', 'PRICE_HIGH_LOW', 'TRIP_ADVISOR_HIGH_LOW', 'RECOMMENDED']; | ||
const SORT_BY_TYPES = ['PRICE_LOW_HIGH', 'PRICE_HIGH_LOW', 'TRIP_ADVISOR_HIGH_LOW', 'RECOMMENDED', 'STAR_RATING_HIGH_LOW', 'OUR_RATING_HIGH_LOW']; | ||
exports.SORT_BY_TYPES = SORT_BY_TYPES; | ||
const BOARD_BASIS_TYPES = ['ALL_INCLUSIVE', 'BED_AND_BREAKFAST', 'FULL_BOARD', 'HALF_BOARD', 'ROOM_ONLY', 'SELF_CATERING']; | ||
exports.BOARD_BASIS_TYPES = BOARD_BASIS_TYPES; |
@@ -102,2 +102,3 @@ "use strict"; | ||
starRating, | ||
ourRating, | ||
minPrice, | ||
@@ -155,2 +156,10 @@ maxPrice, | ||
if (ourRating) { | ||
ourRating = Number(ourRating); | ||
if (ourRating < 0 || ourRating > 5) { | ||
throw new ValidationError('ourRating must be an number from 0 to 5'); | ||
} | ||
} | ||
if (minPrice) { | ||
@@ -186,2 +195,3 @@ minPrice = Number(minPrice); | ||
starRating, | ||
ourRating, | ||
minPrice, | ||
@@ -188,0 +198,0 @@ maxPrice, |
{ | ||
"name": "@bluelilo/search-utils", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "", | ||
@@ -20,14 +20,14 @@ "scripts": { | ||
"devDependencies": { | ||
"@babel/cli": "7.5.5", | ||
"@babel/core": "7.5.5", | ||
"@babel/preset-env": "7.5.5", | ||
"@babel/register": "7.5.5", | ||
"babel-eslint": "10.0.2", | ||
"eslint": "5.16.0", | ||
"eslint-config-prettier": "6.0.0", | ||
"eslint-plugin-jest": "22.14.1", | ||
"jest": "24.8.0", | ||
"prettier": "1.18.2", | ||
"prettier-eslint": "9.0.0", | ||
"release-it": "12.3.5" | ||
"@babel/cli": "7.8.0", | ||
"@babel/core": "7.8.0", | ||
"@babel/preset-env": "7.8.0", | ||
"@babel/register": "7.8.0", | ||
"babel-eslint": "10.0.3", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "6.9.0", | ||
"eslint-plugin-jest": "23.6.0", | ||
"jest": "24.9.0", | ||
"prettier": "1.19.1", | ||
"prettier-eslint": "9.0.1", | ||
"release-it": "12.4.3" | ||
}, | ||
@@ -34,0 +34,0 @@ "dependencies": { |
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
6684
184