feat: add workdays endpoint

Added support for our new workdays endpoint that allows you to pull the
number of working days that occur between two dates.

In addition to the new endpoint:
* chore: upgraded dependencies.
* ci: dropped Node.js 10 because it past EOL.
* ci: swapped Node.js 15 for 16 now that it's out.
* docs: added example of new endpoint.
This commit is contained in:
Josh Sherman 2021-06-10 22:56:16 -05:00
parent fa2f709f82
commit bbda365fe7
7 changed files with 9755 additions and 3312 deletions

View file

@ -1,6 +1,6 @@
{
"name": "holidayapi",
"version": "4.2.0",
"version": "5.0.0",
"description": "Official Node.js library for Holiday API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@ -21,12 +21,12 @@
},
"homepage": "https://holidayapi.com",
"engines": {
"node": ">= 10.0.0"
"node": ">= 12.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.19",
"@types/nock": "^11.1.0",
"@types/node": "^14.14.16",
"@types/node": "^15.12.2",
"@types/node-fetch": "^2.5.7",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
@ -34,9 +34,9 @@
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"jest": "^26.6.3",
"jest": "^27.0.4",
"nock": "^13.0.5",
"ts-jest": "^26.4.4",
"ts-jest": "^27.0.3",
"typescript": "^4.1.3"
},
"dependencies": {