Skip to content

Commit

Permalink
Export named exports rather as well as a default object
Browse files Browse the repository at this point in the history
This is intended to mitigate any issues caused by differing usage enabled by non spec compliant bundling tools. Fixes #44
  • Loading branch information
i-like-robots authored Mar 4, 2019
1 parent 559fa00 commit 60718c5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,22 @@ 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,
validate,
cache,
cookie: getCookie,
sessionId: getSessionId
};
}

0 comments on commit 60718c5

Please sign in to comment.