chore: updated dist files

Just realized that we don't have Husky or something similar in the mix
to ensure that the dist files are being created automatically.
This commit is contained in:
Josh Sherman 2022-02-17 20:50:30 -06:00
parent 0b58b614dc
commit 2478cb47c3
3 changed files with 35 additions and 9 deletions

17
dist/holidayapi.js vendored
View file

@ -152,6 +152,23 @@ var HolidayAPI = (function () {
});
});
};
HolidayAPI.prototype.workdays = function (request) {
if (request === void 0) { request = {}; }
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
if (!request.country) {
throw new Error('Missing country');
}
else if (!request.start) {
throw new Error('Missing start date');
}
else if (!request.end) {
throw new Error('Missing end date');
}
return [2, this.request('workdays', request)];
});
});
};
return HolidayAPI;
}());
exports.HolidayAPI = HolidayAPI;