tripstorekrabi-shared 1.21.8 → 1.22.0
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.
- package/booking.js +1 -1
- package/ota.js +2 -2
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function isCommissionable(operatorId, booking, otas
|
|
1
|
+
export function isCommissionable(operatorId, booking, otas) {
|
|
2
2
|
let ota = otas.find((item) => booking.referenceNumber.startsWith(item.bookingPrefix));
|
|
3
3
|
|
|
4
4
|
// stop checking if it's not an OTA booking
|
|
@@ -20,5 +20,5 @@ export function isCommissionable(operatorId, booking, otas, defaultValue = true)
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
return account?.commissionable ??
|
|
23
|
+
return account?.commissionable ?? true;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tripstorekrabi-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
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.
|
|
20
|
-
"libphonenumber-js": "^1.12.
|
|
21
|
-
"nanoid": "^5.1.
|
|
19
|
+
"dayjs": "^1.11.18",
|
|
20
|
+
"libphonenumber-js": "^1.12.24",
|
|
21
|
+
"nanoid": "^5.1.6"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"deploy": "npm publish"
|