Skip to content

Commit

Permalink
use named exports (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday authored Sep 19, 2023
1 parent 290e559 commit 56f77be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,9 @@ const fastifyCookie = fp(plugin, {
* - `import { fastifyCookie } from 'fastify-cookie'`
* - `import fastifyCookie from 'fastify-cookie'`
*/
fastifyCookie.signerFactory = Signer
fastifyCookie.fastifyCookie = fastifyCookie
fastifyCookie.default = fastifyCookie
module.exports = fastifyCookie

fastifyCookie.fastifyCookie.signerFactory = Signer
fastifyCookie.fastifyCookie.Signer = Signer
fastifyCookie.fastifyCookie.sign = sign
fastifyCookie.fastifyCookie.unsign = unsign
module.exports.default = fastifyCookie // supersedes fastifyCookie.default = fastifyCookie
module.exports.fastifyCookie = fastifyCookie // supersedes fastifyCookie.fastifyCookie = fastifyCookie

module.exports.signerFactory = Signer
module.exports.Signer = Signer
Expand Down

0 comments on commit 56f77be

Please sign in to comment.