From 60718c5654dcd47e387227cd31195865757e2276 Mon Sep 17 00:00:00 2001 From: Matt Hinchliffe Date: Mon, 4 Mar 2019 17:27:02 +0000 Subject: [PATCH] Export named exports rather as well as a default object This is intended to mitigate any issues caused by differing usage enabled by non spec compliant bundling tools. Fixes #44 --- main.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 0011d57..d788e6a 100644 --- a/main.js +++ b/main.js @@ -77,6 +77,17 @@ const validate = () => { .then(({ uuid }) => uuid ? true : false); }; + + +export { + getUuid as uuid, + getProducts as products, + validate, + cache, + getCookie as cookie, + getSessionId as sessionId +} + export default { uuid: getUuid, products: getProducts, @@ -84,4 +95,4 @@ export default { cache, cookie: getCookie, sessionId: getSessionId -}; +}