tripstorekrabi-shared 1.21.9 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/booking.js +1 -1
  2. package/ota.js +2 -1
  3. package/package.json +4 -4
package/booking.js CHANGED
@@ -365,7 +365,7 @@ export function getStartingPointMessage(booking, product, options = { compact: f
365
365
  export function hasFood(product) {
366
366
  return (product.includes ?? []).find((item) => {
367
367
  item = item.toLowerCase();
368
- return item.includes('breakfast') || item.includes('lunch') || item.includes('brunch') || item.includes('dinner');
368
+ return item.includes('breakfast') || item.includes('lunch') || item.includes('brunch') || item.includes('dinner') || item.includes('snacks');
369
369
  }) != null;
370
370
  }
371
371
 
package/ota.js CHANGED
@@ -10,7 +10,8 @@ export function isCommissionable(operatorId, booking, otas) {
10
10
  let account = (ota.accounts ?? []).find(
11
11
  (account) =>
12
12
  account.operators.find((item) => item.id === operatorId) &&
13
- (!booking.gygSupplierId || booking.gygSupplierId === account.gygSupplierId)
13
+ (!booking.gygSupplierId || booking.gygSupplierId === account.gygSupplierId) &&
14
+ (!booking.musementAccountEmail || booking.musementAccountEmail === account.loginEmail)
14
15
  );
15
16
 
16
17
  // find the default account where all operators apply
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.21.9",
3
+ "version": "1.22.1",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
@@ -16,9 +16,9 @@
16
16
  "./ota": "./ota.js"
17
17
  },
18
18
  "dependencies": {
19
- "dayjs": "^1.11.13",
20
- "libphonenumber-js": "^1.12.13",
21
- "nanoid": "^5.1.5"
19
+ "dayjs": "^1.11.18",
20
+ "libphonenumber-js": "^1.12.25",
21
+ "nanoid": "^5.1.6"
22
22
  },
23
23
  "scripts": {
24
24
  "deploy": "npm publish"