@strapi/provider-email-nodemailer 4.0.0-next.6 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +10 -7
  2. package/lib/index.js +2 -2
  3. package/package.json +26 -26
package/README.md CHANGED
@@ -111,13 +111,16 @@ module.exports = ({ env }) => ({
111
111
  To send an email from anywhere inside Strapi:
112
112
 
113
113
  ```js
114
- await strapi.plugins['email'].services.email.send({
115
- to: 'someone@example.com',
116
- from: 'someone2@example.com',
117
- subject: 'Hello world',
118
- text: 'Hello world',
119
- html: `<h4>Hello world</h4>`,
120
- });
114
+ await strapi
115
+ .plugin('email')
116
+ .service('email')
117
+ .send({
118
+ to: 'someone@example.com',
119
+ from: 'someone2@example.com',
120
+ subject: 'Hello world',
121
+ text: 'Hello world',
122
+ html: `<h4>Hello world</h4>`,
123
+ });
121
124
  ```
122
125
 
123
126
  The following fields are supported:
package/lib/index.js CHANGED
@@ -23,11 +23,11 @@ module.exports = {
23
23
  provider: 'nodemailer',
24
24
  name: 'Nodemailer',
25
25
 
26
- init: (providerOptions = {}, settings = {}) => {
26
+ init(providerOptions = {}, settings = {}) {
27
27
  const transporter = nodemailer.createTransport(providerOptions);
28
28
 
29
29
  return {
30
- send: options => {
30
+ send(options) {
31
31
  // Default values.
32
32
  const emailOptions = {
33
33
  ..._.pick(options, emailFields),
package/package.json CHANGED
@@ -1,35 +1,32 @@
1
1
  {
2
2
  "name": "@strapi/provider-email-nodemailer",
3
- "version": "4.0.0-next.6",
3
+ "version": "4.0.0",
4
4
  "description": "Nodemailer provider for Strapi 3",
5
- "homepage": "https://strapi.io",
6
5
  "keywords": [
7
6
  "strapi",
8
7
  "email",
9
8
  "provider",
10
9
  "nodemailer"
11
10
  ],
12
- "main": "./lib",
13
- "directories": {
14
- "lib": "./lib"
15
- },
16
- "dependencies": {
17
- "lodash": "4.17.21",
18
- "nodemailer": "6.5.0"
11
+ "homepage": "https://strapi.io",
12
+ "bugs": {
13
+ "url": "https://github.com/strapi/strapi/issues"
19
14
  },
20
15
  "repository": {
21
16
  "type": "git",
22
17
  "url": "https://github.com/strapi/strapi.git"
23
18
  },
19
+ "license": "SEE LICENSE IN LICENSE",
24
20
  "author": {
25
21
  "name": "Yurii Tykhomyrov"
26
22
  },
27
- "strapi": {
28
- "isProvider": true
29
- },
30
- "scripts": {
31
- "test": "echo \"no tests yet\""
32
- },
23
+ "maintainers": [
24
+ {
25
+ "name": "Strapi Solutions SAS",
26
+ "email": "hi@strapi.io",
27
+ "url": "https://strapi.io"
28
+ }
29
+ ],
33
30
  "contributors": [
34
31
  {
35
32
  "name": "Veit Bjarsch",
@@ -44,20 +41,23 @@
44
41
  "email": "git@roschaefer.de"
45
42
  }
46
43
  ],
47
- "maintainers": [
48
- {
49
- "name": "Strapi team",
50
- "email": "hi@strapi.io",
51
- "url": "https://strapi.io"
52
- }
53
- ],
54
- "license": "SEE LICENSE IN LICENSE",
55
- "bugs": {
56
- "url": "https://github.com/strapi/strapi/issues"
44
+ "main": "./lib",
45
+ "directories": {
46
+ "lib": "./lib"
47
+ },
48
+ "scripts": {
49
+ "test": "echo \"no tests yet\""
50
+ },
51
+ "dependencies": {
52
+ "lodash": "4.17.21",
53
+ "nodemailer": "6.5.0"
57
54
  },
58
55
  "engines": {
59
56
  "node": ">=12.x.x <=16.x.x",
60
57
  "npm": ">=6.0.0"
61
58
  },
62
- "gitHead": "f528a865cb9c4234f2cda4f0df5b40e7c427ff9a"
59
+ "strapi": {
60
+ "isProvider": true
61
+ },
62
+ "gitHead": "b181702f0202b2c6d645d42b195a831f25cd0b03"
63
63
  }