@strapi/provider-email-nodemailer 4.0.0-next.8 → 4.0.2

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 +22 -21
  2. package/lib/index.js +2 -2
  3. package/package.json +23 -26
package/README.md CHANGED
@@ -1,27 +1,24 @@
1
- # strapi-provider-email-nodemailer
1
+ # @strapi/provider-email-nodemailer
2
2
 
3
3
  ## Resources
4
4
 
5
- - [License](LICENSE)
5
+ - [LICENSE](LICENSE)
6
6
 
7
7
  ## Links
8
8
 
9
9
  - [Strapi website](https://strapi.io/)
10
- - [Strapi community on Slack](https://slack.strapi.io)
10
+ - [Strapi documentation](https://docs.strapi.io)
11
+ - [Strapi community on Discord](https://discord.strapi.io)
11
12
  - [Strapi news on Twitter](https://twitter.com/strapijs)
12
13
 
13
- ## Prerequisites
14
-
15
- You need to have the plugin `strapi-plugin-email` installed in your Strapi project.
16
-
17
14
  ## Installation
18
15
 
19
16
  ```bash
20
17
  # using yarn
21
- yarn add strapi-provider-email-nodemailer
18
+ yarn add @strapi/provider-email-nodemailer
22
19
 
23
20
  # using npm
24
- npm install strapi-provider-email-nodemailer --save
21
+ npm install @strapi/provider-email-nodemailer --save
25
22
  ```
26
23
 
27
24
  ## Example
@@ -30,22 +27,26 @@ npm install strapi-provider-email-nodemailer --save
30
27
 
31
28
  ```js
32
29
  module.exports = ({ env }) => ({
30
+ // ...
33
31
  email: {
34
- provider: 'nodemailer',
35
- providerOptions: {
36
- host: env('SMTP_HOST', 'smtp.example.com'),
37
- port: env('SMTP_PORT', 587),
38
- auth: {
39
- user: env('SMTP_USERNAME'),
40
- pass: env('SMTP_PASSWORD'),
32
+ config: {
33
+ provider: 'nodemailer',
34
+ providerOptions: {
35
+ host: env('SMTP_HOST', 'smtp.example.com'),
36
+ port: env('SMTP_PORT', 587),
37
+ auth: {
38
+ user: env('SMTP_USERNAME'),
39
+ pass: env('SMTP_PASSWORD'),
40
+ },
41
+ // ... any custom nodemailer options
42
+ },
43
+ settings: {
44
+ defaultFrom: 'hello@example.com',
45
+ defaultReplyTo: 'hello@example.com',
41
46
  },
42
- // ... any custom nodemailer options
43
- },
44
- settings: {
45
- defaultFrom: 'hello@example.com',
46
- defaultReplyTo: 'hello@example.com',
47
47
  },
48
48
  },
49
+ // ...
49
50
  });
50
51
  ```
51
52
 
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.8",
3
+ "version": "4.0.2",
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,20 @@
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": "e3452f6662a45a4ba96e96861e076e313b297666"
59
+ "gitHead": "fd656a47698e0a33aae42abd4330410c8cba1d08"
63
60
  }