{"_id":"strapi-provider-email-mock","_rev":"2-14b8c06a9b7f999a39892d9968e4de58","name":"strapi-provider-email-mock","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"strapi-provider-email-mock","version":"1.0.0","description":"A simple in-memory mock mail provider for strapi.io","main":"index.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/vaxr/strapi-provider-email-mock.git"},"keywords":["strapi","provider","email","mock"],"author":{"name":"Viktor Ricci","email":"ricci@primateer.de"},"license":"MIT","bugs":{"url":"https://github.com/vaxr/strapi-provider-email-mock/issues"},"homepage":"https://github.com/vaxr/strapi-provider-email-mock#readme","strapi":{"isProvider":true},"gitHead":"dedfa3b4592404a6c0df2ba6503e3495d5044db6","_id":"strapi-provider-email-mock@1.0.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-IAaWhovLIvuBxeluhKPoepom4qVlV4xRZ7+efYHQUZ2iGC/M8NYe6PHZnQGVpENH6M1dUKsN9Hm9SyJFyxUFbA==","shasum":"06c645dfed94d483fc3f7c85866d922f8abd1d10","tarball":"https://registry.npmjs.org/strapi-provider-email-mock/-/strapi-provider-email-mock-1.0.0.tgz","fileCount":4,"unpackedSize":3646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJ/cgCRA9TVsSAnZWagAA8hQP/3whLvwY0dciPtPfvEz1\nfFgkLPds3ZSKqprOKrmq8YWnC3KKOzVHu++GqoCtyL9RrSrL/kxVMKZGkCoM\nXbScRCkzERcLUsMReTt7mKFIsi1o/T3bVEyJxC/iNJ+D7tKduFw0pdJ+E/4N\nZK5nrf9TRVUniqLo+wn6NiywFswf9qaGSlSVxEMpgAYwhS3Hrtu2e38rnUZ/\nvlHXUG5affM9hSB7ckdsY6J/5fmTIhTbUR2gmG2PEyfW9Vmq+kS5AraiNxXF\nuhSoQHj/jLvELOJS8o+ByFp37mAKG/g07TiyLkAIE6YuoJYDGxNe/82MU5hJ\n2GuCosVRFt8GTl5OM4ZXXzmp3xCaYoJyL/czwCNAHGfqrJHZaGXUaN/HW2Hp\n5bX6IOdpCBPEEDG/W4krUk/7vqRpCbwAodGdGdqbIt8racKy/v2udqTzOd+W\nKLOgNzVMHM77dK0dfWtZWrKIy+7IhIyJwGdUU+E+MZaWzHklcFBdJVfd3pjq\n9H84ORuSXVV9APr3Maz8XdC088xxrg1xwtW/WDMXOuMhuIXew0vkBsBzHjUc\noqQAOwkVXWmg5482VzN0mzDmMtYExheATaazQdjl6qc88ZVk2Zsu7dVKC5Su\nlsYbBVFt2Z8DIrHIOtmdNQxzreduGbFNsyoN6H/tSWdo5Uuitv7HjSF5mXIc\nfrf8\r\n=gU6a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgEC3MJK1fpiQE17g/02ZfGLN14YvaEvjtIoiQ9VqnlAiEA2+GFHAtvBx1yIBp5SLI0gFhj/E4yXpga7UWIn8ramSU="}]},"maintainers":[{"name":"vaxr","email":"ricci@primateer.de"}],"_npmUser":{"name":"vaxr","email":"ricci@primateer.de"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-provider-email-mock_1.0.0_1596454688557_0.20656900521348276"},"_hasShrinkwrap":false},"1.0.1":{"name":"strapi-provider-email-mock","version":"1.0.1","description":"A simple in-memory mock mail provider for strapi.io","directories":{"lib":"./lib"},"main":"./lib","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/vaxr/strapi-provider-email-mock.git"},"keywords":["strapi","provider","email","mock"],"author":{"name":"Viktor Ricci","email":"ricci@primateer.de"},"license":"MIT","bugs":{"url":"https://github.com/vaxr/strapi-provider-email-mock/issues"},"homepage":"https://github.com/vaxr/strapi-provider-email-mock#readme","strapi":{"isProvider":true},"gitHead":"53bc884f616a9858c37577629a21c01994275ff4","_id":"strapi-provider-email-mock@1.0.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Hv9CK9zvFenlq9pcX9PspkNhRyCEE4Kh81lrB4QbOFgIikGoSZ9L/g9f9lqR5Lb6yR+kdB/K33tuLmYRP8U9Tw==","shasum":"184ecdb948c9f4f25a949d22e7e480108e4b79a4","tarball":"https://registry.npmjs.org/strapi-provider-email-mock/-/strapi-provider-email-mock-1.0.1.tgz","fileCount":4,"unpackedSize":4103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK/PUCRA9TVsSAnZWagAAYKMP/R9nk4TkKvCPuAfLy1ay\npwUQYYPUBV8c6frtkgjlzcVUo+NQY1a/ZrXaostQR+8Tw2Mw9AVU4PBhOLwg\nav2NsjF+uZWrW2uFeSHKy5m3+DshS5QR+dPl4ZPhArdR7zIk3HtuQu/Ed5oC\nWMifbsKTBA+lvnibvaiHY4jdozhKQMlrTVFeejfJbdxfmF0+P6qwbs7OI6/c\nE8KuOkv0sMEFnMvTSKYG8Gwf0OmylWe1muKjv/Mye0N7Buv/QGv49ubJp9wk\nMTdJ/zvqF1VbHazOUNaYmq+LTao6O1cIQvKxDyxbwb3A3DNlEgkvI+H7UCdW\nxvnw6qJPnf0s/tut+Bo0Lu7Xh4VkC6XKvQKzLkIZGqpVDaJe5vFbTzYs9uza\nZi2fcjWryQ/LV6pjhnwAVjzF/yUgYXhz3eyhpJC5bUvGEH1ODyQ9qZrs6toj\neu+8xQ4Rd43HQDF4W1ODJUle/9KN/9qE7uq9+f8vGpDdffyjVT4keCX9GF0i\nXriVxCd11mPzt37BqTfKMlydiGc7DBGRcX7PaHNDjzLhfqPGfIeRVflYHAo4\noSQ0oLUgOPEvLKXF3xyC1zvsMGK60g02zTIHtlI2olGJ1lyJCEAHvhZrPZHN\njq/lPLGlB0hyQSG7WdP6pEFbbJv7Ei5gSaY68iywYNNtm32a0XB2P+U/agao\nsv5o\r\n=U6zK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1hUvYDh1Qe9WwBoctne9sWmx03rxMx72D5EX5IVT2/AiALqDLWlXWTzM7sPRYqx8LAu1hR05esG2/RX4K6nkeIuA=="}]},"maintainers":[{"name":"vaxr","email":"ricci@primateer.de"}],"_npmUser":{"name":"vaxr","email":"ricci@primateer.de"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-provider-email-mock_1.0.1_1596715987706_0.5549671933949316"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-03T11:38:08.557Z","1.0.0":"2020-08-03T11:38:08.650Z","modified":"2022-05-18T19:42:09.240Z","1.0.1":"2020-08-06T12:13:07.886Z"},"maintainers":[{"name":"vaxr","email":"ricci@primateer.de"}],"description":"A simple in-memory mock mail provider for strapi.io","homepage":"https://github.com/vaxr/strapi-provider-email-mock#readme","keywords":["strapi","provider","email","mock"],"repository":{"type":"git","url":"git+https://github.com/vaxr/strapi-provider-email-mock.git"},"author":{"name":"Viktor Ricci","email":"ricci@primateer.de"},"bugs":{"url":"https://github.com/vaxr/strapi-provider-email-mock/issues"},"license":"MIT","readme":"# strapi-provider-email-mock\nA simple in-memory mock mail provider for strapi.io\n\n### Usage\n\nSetup in `plugins.js` like any other provider:\n\n```js\nmodule.exports = ({env}) => ({\n  email: {\n    provider: 'mock',\n    providerOptions: {},\n    settings: {\n      // If set to false, each email sent will be logged to console\n      quiet: true,\n      defaultFrom: 'strapi@example.com',\n      defaultReplyTo: 'strapi@example.com',\n    },\n  },\n});\n```\n\nEach mail sent gets pushed on the recipient's stack and can be retrieved via `.popMail(...)` as follows:\n\n```js\nconst email = require('strapi-provider-email-mock');\n\ntest('send email to provider', async done => {\n  // send mail\n  const recipient = 'foo@example.com';\n  const sender = 'bar@example.com';\n  await strapi.plugins['email'].services.email.send({\n    to: recipient,\n    from: sender,\n    subject: 'Test',\n    text: 'You may safely delete this mail.',\n  });\n\n  // pop off the recipient's personal mail stack \n  const mail = email.popMail(recipient);\n  if (!mail) fail('No mail received.')\n  expect(mail.text).toContain('delete this');\n\n  done();\n});\n```\n","readmeFilename":"README.md"}