From 95a5e45c8dd690b29fc7080ca1269ae30237b798 Mon Sep 17 00:00:00 2001 From: Almog Tavor Date: Mon, 31 May 2021 20:02:23 +0300 Subject: [PATCH 1/2] Adding an export line for npm package --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 5fee672..33ec229 100644 --- a/src/index.js +++ b/src/index.js @@ -4,6 +4,8 @@ import "./index.css" import DateRangePicker from "./App" import * as serviceWorker from "./serviceWorker" +export { DateRangePicker } + function callbackFunction(dates) { console.log(`The range of dates that got picked is: ${dates.text}`) console.log(`The min date that got picked is: ${dates.minDate}`) From 85afee06f09da7dc49dacbc4df8e8eb186ba3615 Mon Sep 17 00:00:00 2001 From: Almog Tavor Date: Mon, 31 May 2021 20:06:28 +0300 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 390ce28..f28279d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dates-picker", - "version": "1.0.3", + "version": "1.0.4", "description": "⚛️📆 Flexible React date range picker calendar with no dependencies.", "private": false, "homepage": "https://almogtavor.github.io/date-range-picker/",