feat: filter out countries without public holidays

Mostly just a type update to allow for the new flag to be passed in.
Also updated the dependencies to the latest and greatest.
This commit is contained in:
Josh Sherman 2020-03-03 22:31:32 -06:00
parent 319d67d84b
commit d64908041a
6 changed files with 116 additions and 67 deletions

View file

@ -103,6 +103,14 @@ holidayApi.holidays({ country: 'US', year: 2019 })
holidayApi.countries();
```
#### Fetch only countries with public holidays
```javascript
holidayApi.countries({
public: true,
});
```
#### Fetch a supported country by code
```javascript