diff --git a/compiled/currency/index.js b/compiled/currency/index.js index 53239c9..2232031 100644 --- a/compiled/currency/index.js +++ b/compiled/currency/index.js @@ -1,14 +1,14 @@ "use strict"; var dollarPrefixes = { - 'AUD': 'A', - 'CAD': 'CA', - 'HKD': 'HK', - 'MOP': 'MOP', - 'NZD': 'NZ', - 'SGD': 'S', - 'TWD': 'NT', - 'USD': 'US' + AUD: 'A', + CAD: 'CA', + HKD: 'HK', + MOP: 'MOP', + NZD: 'NZ', + SGD: 'S', + TWD: 'NT', + USD: 'US' }; function addDollarType(formattedAmount, currencyCode) { diff --git a/compiled/offer/flexiNights.js b/compiled/offer/flexiNights.js index 092f9d5..d314561 100644 --- a/compiled/offer/flexiNights.js +++ b/compiled/offer/flexiNights.js @@ -38,7 +38,7 @@ function calculatePackagePrices(offerPackagePrices) { }); } /** - * Generates a single option for combination of package/package option/extra nights given + * Generates a single option for combination of package/package option/extra nights given * * @param {*} offerPackage a package of an offer * @param {*} packageOption a package option of a package in an offer, optional @@ -60,7 +60,7 @@ function generateOption(offerPackage, packageOption) { }; } /** - * Generates a list of all the options a user can purchase for a package, + * Generates a list of all the options a user can purchase for a package, * including all options available from the flexible nights configuration * * @param {*} pkg a package of an offer @@ -73,7 +73,7 @@ function generateAllOptions(pkg) { var extraNightsCount = pkg.flexible_nights && pkg.max_extra_nights || 0; // package options are optionally setup, so fallback to base package if no options - var packageOptions = !!((_pkg$package_options = pkg.package_options) !== null && _pkg$package_options !== void 0 && _pkg$package_options.length) ? pkg.package_options : [{ + var packageOptions = (_pkg$package_options = pkg.package_options) !== null && _pkg$package_options !== void 0 && _pkg$package_options.length ? pkg.package_options : [{ fk_room_rate_id: pkg.fk_room_rate_id }]; return packageOptions.flatMap(function (packageOption) { diff --git a/package.json b/package.json index e23e52f..050c870 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@luxuryescapes/lib-global", - "version": "2.2.9", + "version": "2.2.10", "description": "Lib for expanding functionality and deduplicating code between services", "main": "compiled/index.js", "homepage": "https://github.com/brandsExclusive/lib-global#readme", @@ -19,7 +19,6 @@ "ci": "yarn test && yarn run lint && yarn build" }, "dependencies": { - "@babel/preset-env": "^7.14.7" }, "devDependencies": { "@babel/cli": "7.14.5", @@ -27,6 +26,7 @@ "@babel/eslint-parser": "7.14.7", "@babel/plugin-proposal-nullish-coalescing-operator": "7.14.5", "@babel/plugin-proposal-optional-chaining": "7.14.5", + "@babel/preset-env": "^7.14.7", "chai": "^4.2.0", "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0",