mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 12:36:33 +00:00
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:
parent
0b58b614dc
commit
2478cb47c3
3 changed files with 35 additions and 9 deletions
17
dist/holidayapi.js
vendored
17
dist/holidayapi.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue