Skip to content

Commit

Permalink
increment version + move present env to dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zediah committed Jun 30, 2021
1 parent e3a60d2 commit cb656c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions compiled/currency/index.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions compiled/offer/flexiNights.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -19,14 +19,14 @@
"ci": "yarn test && yarn run lint && yarn build"
},
"dependencies": {
"@babel/preset-env": "^7.14.7"
},
"devDependencies": {
"@babel/cli": "7.14.5",
"@babel/core": "7.14.6",
"@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",
Expand Down

0 comments on commit cb656c3

Please sign in to comment.