From ee3a8e983e0a400e797e493e9bae165b7d7e199a Mon Sep 17 00:00:00 2001 From: Isabelle Wedin Date: Tue, 2 Jul 2019 11:55:02 -0400 Subject: [PATCH] Make package importable as a module --- package.json | 2 +- src/ajaxinate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 460f0c1..78d563d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "url": "https://github.com/Elkfox/Ajaxinate/issues" }, "homepage": "https://github.com/Elkfox/Ajaxinate#readme", - "main": "ajaxinate.js", + "main": "src/ajaxinate.js", "directories": { "doc": "docs" }, diff --git a/src/ajaxinate.js b/src/ajaxinate.js index 3b30462..5fcec24 100644 --- a/src/ajaxinate.js +++ b/src/ajaxinate.js @@ -14,7 +14,7 @@ https://elkfox.com MIT License ================================================================================================= */ -const Ajaxinate = function ajaxinateConstructor(config) { +export const Ajaxinate = function ajaxinateConstructor(config) { const settings = config || {}; /* pagination: Selector of pagination container