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.
- package/lib/Utils/Helpers.js +2 -0
- package/package.json +1 -1
package/lib/Utils/Helpers.js
CHANGED
|
@@ -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
|