@kiminix/tp-client 1.34.0 → 1.35.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.
@@ -20,8 +20,10 @@ var MenuUtils = /** @class */ (function () {
20
20
  // filter available discounts
21
21
  var result = Array.from(discounts.entries())
22
22
  .filter(function (entry) {
23
+ var _a;
23
24
  var dateAsString = entry[0], dailyDiscount = entry[1];
24
- return dailyDiscount.isAvailable;
25
+ var isDayExcluded = (_a = menu.excludedDays) === null || _a === void 0 ? void 0 : _a.includes(dateAsString);
26
+ return dailyDiscount.isAvailable && !isDayExcluded;
25
27
  });
26
28
  return new Map(result);
27
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiminix/tp-client",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [