@daryasidorovich/modsen-datepicker 1.0.21 → 1.0.22

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/dist/index.cjs CHANGED
@@ -570,8 +570,8 @@ function withMinMax(calendar, minDate, maxDate) {
570
570
  return calendar;
571
571
  }
572
572
 
573
- const HOLIDAY_API_URL = undefined.STORYBOOK_HOLIDAY_API_URL;
574
- const API_KEY = undefined.STORYBOOK_HOLIDAY_API_KEY;
573
+ const HOLIDAY_API_URL = 'https://holidayapi.com/v1';
574
+ const API_KEY = 'f36f54be-e335-4957-9c64-fde814074428';
575
575
  const getHolidays = async (year = new Date().getFullYear(), signal) => {
576
576
  try {
577
577
  let holidayDates;
@@ -580,9 +580,7 @@ const getHolidays = async (year = new Date().getFullYear(), signal) => {
580
580
  if (!countryCode) {
581
581
  throw new Error('Cannot get your country code');
582
582
  }
583
- if (!API_KEY) {
584
- throw new Error('API key is not defined');
585
- }
583
+ if (!API_KEY) ;
586
584
  const url = `${HOLIDAY_API_URL}?key=${API_KEY}&country=${countryCode}&year=${year}`;
587
585
  const response = await fetch(url, { signal });
588
586
  if (!response.ok) {