Skip to content

Commit

Permalink
Merge pull request #45 from Financial-Times/matth/fix-esm
Browse files Browse the repository at this point in the history
Use named exports as well as a default object
  • Loading branch information
i-like-robots authored Mar 5, 2019
2 parents 559fa00 + 60718c5 commit 1e9603c
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 1e9603c

Please sign in to comment.