awing-library 2.1.128-beta → 2.1.129-beta

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.
@@ -549,6 +549,8 @@ function fillMissingDates(data, startDate, endDate, format) {
549
549
  // Parse the start and end dates
550
550
  var start = (0, moment_1.default)(isNaN(Number(startDate)) ? startDate : String(startDate));
551
551
  var end = (0, moment_1.default)(isNaN(Number(endDate)) ? endDate : String(endDate));
552
+ if (start.isAfter(end))
553
+ throw new Error('Start date must be before end date');
552
554
  // Array to hold the complete range of dates
553
555
  var dates = [];
554
556
  // Iterate through the date range
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.128-beta",
3
+ "version": "2.1.129-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",