{"_id":"@autotelic/fastify-mail","_rev":"7-c4d2bc63a0a0380a52dba86e38f9fff9","name":"@autotelic/fastify-mail","dist-tags":{"latest":"0.8.0"},"versions":{"0.1.0":{"name":"@autotelic/fastify-mail","version":"0.1.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"test":"tap -R classic","example":"fastify start example/index.js -l info -w","lint":"standard","fix":"standard --fix","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-plugin-template.git"},"keywords":[],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-plugin-template/issues"},"homepage":"https://github.com/autotelic/fastify-plugin-template#readme","dependencies":{"fastify-plugin":"^3.0.0"},"peerDependencies":{"fastify-nodemailer":"^5.0.0","point-of-view":"^4.8.0"},"devDependencies":{"ejs":"^3.1.5","fastify":"^3.0.0","fastify-cli":"^2.5.1","fastify-nodemailer":"^5.0.0","husky":"^4.3.6","lint-staged":"^10.2.11","nodemailer-mailgun-transport":"^2.0.2","point-of-view":"^4.7.0","sinon":"^9.2.2","standard":"^14.3.4","tap":"^14.11.0"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"gitHead":"d9fe4b599ccf8ea04901a059c3ca9ae5f41c4246","_id":"@autotelic/fastify-mail@0.1.0","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8oL0PUmIcaRIp8TOJ+ySA7shWYzxuC3DqQC3bWIPjGhEkL3v356f9K+kYeDlTaVYLoO+S+IxYHvCwIwtKzLmeg==","shasum":"27dc7c99247d2a82c7a9c159459959098ad3aa0a","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.1.0.tgz","fileCount":14,"unpackedSize":12446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf90kyCRA9TVsSAnZWagAAiDsP/0TE6d3QENXZWUCdEjDq\nNpBoyzlffRYY8HX4IUnwU9b3Ced0YxvmU5Xt6vcOB7voMtA+vUYsYTjyF7EE\nSpWHwmXua0WkvO9BuG+JWXb4SmAzmllBoecT6rAeZ9LU8bekWmqChiycqJR6\nTV19qzYhME4eZXCvwDIYpIdCr6yzSZV8VsObUmA0ZWlYKVsIiA8BzTQrJt/I\nYPg3vLjL2/Ih/AKo6iECiU6L8kjLva9jQPIDi57D5HB6A4uPHesaEMQ4BB32\n0RpM5ARG7oD1cdl8N8MgIGsoZcYYhl2p8vfoDW58BTXfg75RPXcT6vM1EeYw\ndychWzgIw7K82BEqzuW5aquRRXrfBnY0McX0ArhjnsZ7vc6UGyIsa2j1iPCs\nl3ZT12G6ePJftVkkbBet0Ggk/RVGHPzHVUZN0GK4TeB+GgK7XeaCUBTbmrj4\nsrHh7JApojmDBQK1mjtsfqg999md45EX9KfC4kYbH7cOVhQ0MNn5gTZM/fVD\nnOIuDHj5CUQK2a6DUi6/85/cTgR7poSUMKBbYa4ged2ySspA/PsAk/ErmkTg\nFovNuIxnRT+hnzk6hbYVDvhX5fygp+wpIWEucQW7lOP3ZMJvqIVGdh22Bdor\n7u97z3/hutH5c1SfCxl/iG1ICwK4mXujkR4bI+hHdzgowBYb0JIXwNuSzS1C\nIpbn\r\n=wZKk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBg9uZtdFKKP6hr8RnuAO5aWJDkenixz0UEc0NhJlzJ5AiBNk8zBQ/s2mjNbWIwNoVR08/475ROM749sE7mBTgIErw=="}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.1.0_1610041644146_0.16472104109175856"},"_hasShrinkwrap":false},"0.2.0":{"name":"@autotelic/fastify-mail","version":"0.2.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"test":"tap -R classic","lint":"standard","fix":"standard --fix","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"fastify-plugin":"^3.0.0"},"peerDependencies":{"fastify-nodemailer":"^5.0.0","point-of-view":"^4.8.0"},"devDependencies":{"ejs":"^3.1.5","fastify":"^3.0.0","fastify-cli":"^2.5.1","fastify-nodemailer":"^5.0.0","husky":"^4.3.6","lint-staged":"^10.2.11","nodemailer-mailgun-transport":"^2.0.2","point-of-view":"^4.7.0","sinon":"^9.2.2","standard":"^14.3.4","tap":"^14.11.0"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"gitHead":"94aed75bd26673f4aef93cb442777913c7d3714f","_id":"@autotelic/fastify-mail@0.2.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FaS8OWbhQkF1dLd83DNCBcpMGA2rKiaDYNQO0GBOe3rmgB2aheuhqRf7++d8PWT/G97Vkm5h7HAcW+I/EyH2ww==","shasum":"499711c2b59a0aad79ef6169718a1d7ba6ee5f2c","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.2.0.tgz","fileCount":13,"unpackedSize":11857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEcrBCRA9TVsSAnZWagAA6usQAIkCPQ9uhCqsWPFvIWBD\ngpJZM7BdYcZLLzmJDVygEjUvnoQVVN26Mr+/hsNDtWrzujADVaDpa0QDE/DO\nBdE1SVBk88Gc5WC0o+8H3+F5nZlaqAKK+f5oQ5jZdk1ZM3MO38HBHpgSCFOZ\nCMbeBMPK9dga38Z1M5HporxZfG5zdhb9bcm4ME0Q7jYWbfPaqclc0orAc7iF\nCl7ygrKjsIuwx6Zi5JIvZW59AOrxw+m7/PlV5dXskuxUTNWGtXGCxnFgy3HL\nsuio4F2mPD26tcta1D2BOLPyl/u+2FOyrZG06HRPRbGNQsKPzLJBj+senkLU\nUtCIMSgimT/2V8z30/lS13NTwC7vpbRj9Roi6ebeYDXaOuFQGN1owfZramPi\nnPri0CyVxZDkjOMzV5I3L2GH2lGpHLp/5uBjxwbpDBRWjjdlPR11EvOMSPKe\nZja7Qr8MMWLqMx4TweeIRLWWUHiJwzo1pur9I09PMG7+4+Nt6d3ivgmDzaNz\nMzUiGgklLvBd/fGDoZYqii+N1knYR+ozrWlwXas24FA3j6ktL/VduJ7I67yA\nJ+J21Yub/ry/06coeNm6K1yBUwUCro55Zq2lJcp5MW7DieaC7QMyf9g0I4+u\nIjMimEPlP8LFNjq2TCkI5Zzf8Bfrl+SGlE9xSuqF3cPm9PejUVQsjJT+6ovd\nvrJW\r\n=NUMA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQMf8xkHwb+JNEmip8BTg1iTkNhGQDXR2pjKgfiIX2bQIhAJWZzxAtLW31jKI+mE96OYLzxgqIlr3LLaptQJgiyUnO"}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.2.0_1611778752974_0.21143198683421072"},"_hasShrinkwrap":false},"0.3.0":{"name":"@autotelic/fastify-mail","version":"0.3.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"lint":"standard","fix":"standard --fix","test":"tap -R classic","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"fastify-plugin":"^3.0.0","nodemailer":"^6.4.17","nunjucks":"^3.2.2","point-of-view":"^4.7.0"},"devDependencies":{"fastify":"^3.0.0","fastify-cli":"^2.5.1","husky":"^4.3.6","lint-staged":"^10.2.11","sinon":"^9.2.2","standard":"^14.3.4","tap":"^14.11.0"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"gitHead":"491fb92e61053d377f3a4d224062698db1982b3b","_id":"@autotelic/fastify-mail@0.3.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-uobsSbfryuDMNfH1nl80rPm5Qp7qOt6is+mgJmx6mACzjVoaNauhCjuJZUn5bNsBb1psOrko1OrlQXCvhbPqQQ==","shasum":"f5a44eeaa5aa920b23067fe6be7e20ba637fa7bf","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.3.0.tgz","fileCount":4,"unpackedSize":8652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHYEKCRA9TVsSAnZWagAA63cP/AgvaHXJCL9sGGelfeSJ\nhSYB95MxpCzj/M6mOf8vlN4uK6lz4w3pQR8PE2fj5J4hDC1cMMNIwownGz1l\nsvMXkzT2tM1sfD2P6SWZnB0RlY3Ld11JuNeIf/agbvXf3z6oCSve+M9Q11eP\niU6f+OYTwxvhLk1Yy3RX3yjXBvkjIcYtHtXwWcth3dvCGUPcihW93ehAVrhM\n8qk0BDrL2AXyBywbQDs8c0KmfT9SP2e8aYJju03L5t/ID1Y+KiXrFHz/12Uf\nN7yabvc0D39Ux+43cA9HnDxMHoogDcd2FcCFWllj0NZAoOEZCiWyCuwXU77Z\nOwt/x1cRqm6HzDwCi6QXK8Gxvgb4iXynmmd+AOmlIDujCQRHB3RZPw8gNnoR\nT23sn4+ajb7tq9mULNbznpm6mX4WnprnVRY27zKZ4X/PyEdvW6ePbVHuHnXr\nyDoyTbzVLcQ1lGlUN/EgUX+dRjX7wXuPT0f6DnYmE5ZosyMIrXSKlnbx+X7r\n8aWrm1Wc7NpQxKjq7Qr0ctSkwSBOhOV4473HU3V0s9VgwyC3nQN00ozkVTA5\nSobP8Nby15oteXdp2VMJ1YeQENZ+w9kEw7G6CbrGAETyf5mD3phAuayqSh5J\nwnbFI/VP8BRUIlIXbf4jtUWo4R3zrx5T9laBpLkTyt7SAa9rBAVtChJ0r84D\nXSzP\r\n=fJr/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUgC0jxA615yLN6s9/UDpc/M1IgbX2pa6mtgVbtROEZAIhAI7+J3apciJvPnH+epinwoP6pQz7PowjEGk1/NuJqzs0"}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.3.0_1612546314235_0.4788141623975981"},"_hasShrinkwrap":false},"0.5.0":{"name":"@autotelic/fastify-mail","version":"0.5.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"lint":"standard","fix":"standard --fix","test":"tap -R classic","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"fastify-plugin":"^3.0.0","nodemailer":"^6.4.17","nunjucks":"^3.2.2","point-of-view":"^4.7.0"},"devDependencies":{"fastify":"^3.0.0","fastify-cli":"^2.5.1","husky":"^4.3.6","lint-staged":"^10.2.11","sinon":"^9.2.2","standard":"^14.3.4","tap":"^14.11.0"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"gitHead":"cb67ed0c56fa7b642d1973a2d070e9e954a8edac","_id":"@autotelic/fastify-mail@0.5.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-wPOBUC8egUK9U80pyD5XOUkUPdGovI2Lxen8v9YNqQFhA0/mW06cC7Ax4mXqpf1xtIR+MLhnOzXiBzHrjsh0ww==","shasum":"11ed87421f4d6994061edd77acce188d0fee0a6a","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.5.0.tgz","fileCount":4,"unpackedSize":11530,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8j2Pyqf3R7ZU+eFf/t8Sn+ThCYiXeRhyRsaX9+4ZQVgIhAJuddfgELfW98HU6OmQ9L6neALy26sq14+5b6Y8qxWuY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJio9cJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRmQ//cInrInmRmFLkfWZHset5Frp2aPD55QwQyBoE3fH49gw6JwQP\r\nraAxA4KWj8AtFqPIfOa9vTAqUNnLVDCCUWv54IFQ0Ioqndp/PHLlgM/XP3ea\r\nIwLWARpl4hJ9y0MHptVg3HqmzXeEl8dAUSGVCYlUIvGl4HduaERV/BHwVyHi\r\nxhuP1gQTofDzMCHSOO4Wz8rq30hzAB73oQDie7Vpy0Abwua+Iu3za3FBHBlx\r\nnaWpLzEIRQon51kxyF3R+4YPJ2fZ6JSkZTrZlPhqlm1Ng6Jxl/hle+S1rFbs\r\nYtKgPQPw6tXHxRwnI0FHp3nTCQz7eLlOTe6PTQIV93/bwKs09rO3EdzmWd8B\r\nyXiP9GXjhDTtH0BrgmzfVpkXSVggftEAfm+r2H60NnmIuyaoy06YLtCfgOGb\r\nXU7SVdFCPz8N6TA9UwZlFWcnBCfonJiyvoGlKZYD4nh41n3HM15M9ZK7mEHn\r\nqwxPmL3/DO+lF+7brLomG+xr3GJ6sqKzpqNF6hBPTzf13A80ybrD6LBTBwCD\r\nHkTsYhyWT523udPYXbL9QaPGbiM5/puRySU4wfj6Ix+kJvtCyyyIhfkxiVtC\r\n9L6WJKtyBnLJlUMTjbtADEpptGypqY5fluxNj/vaukfvFg8wi0UCtywc2U4J\r\nuTAwV9pNd3Ze8PObHPIMxBsR0YVegcRlLyw=\r\n=mw34\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.5.0_1654904584819_0.9658779926282641"},"_hasShrinkwrap":false},"0.6.0":{"name":"@autotelic/fastify-mail","version":"0.6.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"lint":"standard","fix":"standard --fix","test":"tap -R classic","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"@fastify/view":"^7.1.0","fastify-plugin":"^3.0.0","nodemailer":"^6.4.17","nunjucks":"^3.2.2"},"devDependencies":{"fastify":"^4.6.0","fastify-cli":"^5.4.2","husky":"^4.3.6","lint-staged":"^10.2.11","sinon":"^9.2.2","standard":"^14.3.4","tap":"^14.11.0"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"gitHead":"789f82b29ad935285df2fe6a446731eb3139d7d6","_id":"@autotelic/fastify-mail@0.6.0","_nodeVersion":"18.9.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-de1c+p3000IgtIg942eormiYdI1bp/K5DS2xam/WWYVXo2W4VBS8kQu4ha89AJyc7wqfSpM10M/G9hpacWqMvQ==","shasum":"fd3d7e2f258a348d17dac7ee0263a2233741ef96","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.6.0.tgz","fileCount":4,"unpackedSize":11530,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8/EHsTn7JVzxLdTMuH4wb30bIh74bS1U25VymYrl5awIhAN2z4GVOeRDLYHhVUo6rgA0nixf0mGmRyrcPtZQuOM4H"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK4QUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrcdw//fybK7FC57uOd6sdlX/f+KhXpnjo58HlhDmx76C6r8SJssNg3\r\nZEEq92kl+RL3ryt5vpQPNd3ge4NQue36d1Nro9AnnxhIpZS0AAQLJEIfj9u+\r\n/jfYRTjeyf4Eh0q+oLzLy+xBuEyRrgVGXqaJJ7BE/exNPO4HpD5kDqAS3/Dc\r\nO6pjPDr4pwwfbep9V/WQ6lWdnWirfom5lkrjfrFLJb9muVtoEbAxVNLFv/9/\r\nMBkbhkgGMfvogNAig9kAZ7VDw4OigLbcWabQQOL1zXEQhL9L8wch+aapXuDm\r\n3gRf5iFNQZ4IjQSFS/0yg9J8VSMVBfXs/gL5JJ2Hjn4oNZqlWQphYdRiZtbw\r\n+Nw38fLvUGdFBlDEiZYgYNK7SCjJ/w8GzsxdkkbXC4dQVyGn+V/2UQDXXDwS\r\nWsR67lBdMzKlhgeoC26BXvqAq7Nlu+5CNcY1EGdaknnA2v6Aw7VVNuv2X7fm\r\n1AYjXYsnBwwQGUvhEEdBiKXYjSDz7Lj4ZhTAkadn6G4CzfIZ6PvoxUYVJq1P\r\nOFncYCHxtb4Pugz1rnRfJPIoHIEyFOnHPL0LNfTh5eyseAFUJu8u/m86HXdW\r\n5Kv+NlesZOhXHRS4UDAtbPZgTeTuY6M9fofBDqO3b1E/A5G9nAkL7GjgzFZT\r\ndfJjI86UL47z0KGNBq91QzbiqJ5JaerAyhk=\r\n=JAcG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.6.0_1663796244185_0.17243287997406864"},"_hasShrinkwrap":false},"0.7.0":{"name":"@autotelic/fastify-mail","version":"0.7.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"lint":"standard","fix":"standard --fix","test":"tap --show-full-coverage","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"@fastify/view":"^7.1.0","fastify-plugin":"^3.0.0","nodemailer":"^6.4.17","nunjucks":"^3.2.2"},"devDependencies":{"fastify":"^4.6.0","fastify-cli":"^5.4.2","husky":"^4.3.6","lint-staged":"^10.2.11","sinon":"^9.2.2","standard":"^14.3.4","tap":"^18.4.3"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"_id":"@autotelic/fastify-mail@0.7.0","gitHead":"2ad1e408e46df8b1791b80adff0483f03181830f","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-QIZgyakfITstik/EkXs289yP5JnzG+xCLJ6OXIh7aBK88DwUivhowowHw0JyHvz+jqkQnDg9mnLtukndlJRhaw==","shasum":"e0c571369888ef75aadc0f979fd73baf44a3b484","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.7.0.tgz","fileCount":4,"unpackedSize":11606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbzT5tzaEK3IYhZ6/GuXwTP0QgjRnPbaOqFzE8DpKq0AiEA661t4KoDvimMsL92ZMdqT1MgErgXV8dpb+zFS0PulBU="}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.7.0_1696640018896_0.42792558556925564"},"_hasShrinkwrap":false},"0.8.0":{"name":"@autotelic/fastify-mail","version":"0.8.0","description":"A Fastify plugin for rendering and sending emails","main":"index.js","scripts":{"lint":"standard","fix":"standard --fix","test":"tap","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"homepage":"https://github.com/autotelic/fastify-mail#readme","dependencies":{"@fastify/view":"^8.2.0","fastify-plugin":"^4.5.1","nodemailer":"^6.9.8","nunjucks":"^3.2.4"},"devDependencies":{"fastify":"^4.25.2","fastify-cli":"^6.0.0","husky":"^8.0.3","lint-staged":"^15.2.0","sinon":"^17.0.1","standard":"^17.1.0","tap":"^18.6.1"},"lint-staged":{"*.js":"npm run fix"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"standard":{"ignore":["**/*.ts"]},"_id":"@autotelic/fastify-mail@0.8.0","gitHead":"5a13ce498c9cd3675a23a2782d4d44565c2e78f9","types":"./index.d.ts","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-qdYug/b/vXNWD9SH+ZEcqAZ2uDgI33AsCIpI/+/ATve7+qLMaGIp1FLb9ZLafKKMHOddOsRf4UpAqwuyNry08w==","shasum":"e8126fb6dd646b98385d25c4a53e508307452940","tarball":"https://registry.npmjs.org/@autotelic/fastify-mail/-/fastify-mail-0.8.0.tgz","fileCount":5,"unpackedSize":13542,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXdYCmaoUZtLNQxlVaav8+Vq0oJuhE0v94Du+EzRSRRgIgOUOEH+ZD11d0CsOR757D75x6CWovmmn9nGkf79cxufM="}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-mail_0.8.0_1706124440580_0.9141526804424234"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-07T17:47:24.107Z","0.1.0":"2021-01-07T17:47:24.744Z","modified":"2024-01-24T19:27:20.977Z","0.2.0":"2021-01-27T20:19:13.177Z","0.3.0":"2021-02-05T17:31:54.373Z","0.5.0":"2022-06-10T23:43:04.988Z","0.6.0":"2022-09-21T21:37:24.342Z","0.7.0":"2023-10-07T00:53:39.096Z","0.8.0":"2024-01-24T19:27:20.822Z"},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"description":"A Fastify plugin for rendering and sending emails","homepage":"https://github.com/autotelic/fastify-mail#readme","keywords":["fastify","plugin","nodemailer","fastify-nodemailer","mail","point-of-view","template","view"],"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-mail.git"},"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"bugs":{"url":"https://github.com/autotelic/fastify-mail/issues"},"license":"MIT","readme":"# fastify-mail\n\nA [Fastify](https://www.fastify.io/) plugin that uses [point-of-view](https://github.com/fastify/point-of-view#readme) and [fastify-nodemailer](https://github.com/lependu/fastify-nodemailer#readme) to template and send email messages.\n\n## Usage\n\n```sh\nnpm i @autotelic/fastify-mail\n```\n\n## Setup\n\n`fastify-mail` decorates the reply interface with the `mail` method and takes two options to get started: `pov` and `transporter`\n\n### Point-of-View\n\n- `pov.engine` should be a template engine object used to configure point-of-view\n- to see a list of engines currently supported by point-of-view with options, [view docs here](https://github.com/fastify/point-of-view/blob/master/index.d.ts)\n- For quick start, `fastify-mail` only requires the engine. For example, using `nunjucks`:\n\n  ```js\n  fastify.register(mail, { pov: { engine: { nunjucks: require('nunjucks') } }, transporter: ... })\n  ```\n\n- If you'd prefer to register `point-of-view` on your own, omit the `engine` option and `fastify-mail` will not register it.\n- If you configure `point-of-view` with a different decorator name, add this to the options of `fastify-mail`\n\n  ```js\n  fastify.register(mail, { pov: { propertyName: 'POV_DECORATOR' }, transporter: ... })\n  ```\n\n### Nodemailer\n\n- `transporter` should be an object defining connection data to be used as a `nodemailer` SMTP transport. [View nodemailer's docs here](https://nodemailer.com/smtp/)\n- `fastify-mail` decorates `fastify` with `nodemailer` so a transporter must be defined\n- For example, using `maildev`:\n\n  ```js\n  const transporter = {\n    host: 'localhost',\n    port: 1025,\n    ignoreTLS: true\n  }\n\n  fastify.register(mail, { pov: { engine: ... }, transporter })\n  ```\n\n## Example\n\n```js\n// index.js\nconst mail = require(\"@autotelic/fastify-mail\")\n\n// register fastify-mail\nfastify.register(mail, pov: { {engine: { TEMPLATE_ENGINE_OBJECT } }, transporter: { NODEMAILER_TRANSPORTER_OBJECT } })\n\n// setup test route\nfastify.get(\"/sendmail\", async (req, reply) => {\n\n  const message = {\n    to: \"to@a-person.com\",\n    from: \"from@person.com\",\n    cc: \"cc@person.com\",\n    bcc: \"bcc@person.com\",\n    subject: \"This is a subject\"\n  }\n\n  const opts = {\n    templatePath: \"path/to/my/templates/\",\n    context: { name: \"Test Name\" }\n  }\n\n  const queued = await fastify.mail.sendMail(message, opts)\n\n  if (queued.error) {\n    const { error } = queued\n    reply.send(error);\n  } else {\n    const { messageId } = queued\n    reply.send({ messageId })\n  }\n})\n```\n\n## Templates\n\nEach message must have the following templates with the file extension set in point-of-view config:\n\n- 'html': Contains the html template for the email.\n- 'text': Contains the text template for the email.\n\n```sh\n.\n|--index.js\n|--templates\n    |-- html.njk\n    |-- text.njk\n```\n\n## Example Apps\n\nSee [/examples/mailgun](./examples/mailgun) for a working example app using [nodemailer-mailgun-transport](https://github.com/xr0master/mailgun-nodemailer-transport#readme).\n\nSee [/examples/maildev](./examples/maildev) for a working example app using [MailDev](https://maildev.github.io/maildev/)\n\n## API\n\n### Decorator\n\nThis plugin decorates fastify with a `mail` object containing the following methods:\n\n- sendMail: 'function' - Calls `createMessage` to generate an message and uses [fastify-nodemailer](https://github.com/lependu/fastify-nodemailer) to send the generated email.\n- Accepts the following arguments:\n  - message: 'object'\n          *This is a valid 'message' object as per the Nodemailer API*\n    - from: 'string' - The email address the email is to be sent from.\n    - to: 'array' - Comma separated list or an array of recipients email addresses (`string`) that will appear on the To: field\n    - cc: 'array' - Comma separated list or an array of recipients email addresses (`string`) that will appear on the Cc: field\n    - bcc: 'array' - Comma separated list or an array of recipients email addresses (`string`) that will appear on the Bcc: field\n    - replyTo : 'string' - An email address that will appear on the Reply-To: field\n    - subject: 'string' - The subject of the email with context injected.\n    - html: 'string' - The HTML version of the message as an Unicode string, with context injected.\n    - text : 'string' - The plaintext version of the message as an Unicode string, with context injected\n\n  - opts: 'object' - Object containing options:\n    - templatePath:  'string' - the relative path to the message's templates.\n    - context: 'object' - Object containing context for the message (such as - variables that will be used in copy)\n\n- Returns: 'object' with following properties:\n  - accepted : 'array' of email addresses accepted - eg. [ 'test@example.com' ]\n  - rejected : 'array' of email addresses rejected - eg. [],\n  - envelopeTime\n  - messageTime\n  - messageSize\n  - response\n  - envelope\n  - messageId\n\n- createMessage: 'function' - Generates a message object where the data provided is updated to use templates where available with context variables injected\n  - Accepts the following arguments:\n    - message: 'object'\n      - fields as above\n    - templatePath: 'string' - the relative path to the message's templates.\n    - context: 'object' - Object containing context for the message (such as - variables that will be used in copy)\n\n    For more details on this response see the nodemailer documentation [View nodemailer's docs here](https://nodemailer.com/smtp/)\n\n### Testing\n\n[Tap](https://node-tap.org/) is used for testing. To run tests:\n\n```sh\nnpm test\n```\n","readmeFilename":"README.md"}