@akemona-org/strapi-plugin-email 3.7.0 → 3.7.1

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.
@@ -34,7 +34,7 @@ const SettingsPage = () => {
34
34
 
35
35
  const title = formatMessage({ id: getTrad('Settings.title') });
36
36
 
37
- const handleSubmit = async event => {
37
+ const handleSubmit = async (event) => {
38
38
  event.preventDefault();
39
39
  let errors = {};
40
40
 
@@ -77,7 +77,7 @@ const SettingsPage = () => {
77
77
  request('/email/settings', {
78
78
  method: 'GET',
79
79
  })
80
- .then(data => {
80
+ .then((data) => {
81
81
  setConfig(data.config);
82
82
  setProviders([data.config.provider]);
83
83
  setTestAddress(get(data, 'config.settings.testAddress'));
@@ -169,7 +169,7 @@ const SettingsPage = () => {
169
169
  label={getTrad('Settings.form.label.testAddress')}
170
170
  name="test-address"
171
171
  placeholder={getTrad('Settings.form.placeholder.testAddress')}
172
- onChange={event => setTestAddress(event.target.value)}
172
+ onChange={(event) => setTestAddress(event.target.value)}
173
173
  size={{ xs: 6 }}
174
174
  type="email"
175
175
  value={testAddress}
@@ -15,7 +15,7 @@ import trads from './translations';
15
15
  import getTrad from './utils/getTrad';
16
16
  import SettingsPage from './containers/Settings';
17
17
 
18
- export default strapi => {
18
+ export default (strapi) => {
19
19
  const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
20
20
 
21
21
  const plugin = {
@@ -1,5 +1,5 @@
1
1
  import pluginPkg from '../../package.json';
2
2
 
3
- const pluginId = pluginPkg.name.replace(/^strapi-plugin-/i, '');
3
+ const pluginId = pluginPkg.name.replace(/^@akemona-org\/strapi-plugin-/i, '');
4
4
 
5
5
  export default pluginId;
@@ -1,5 +1,5 @@
1
1
  import pluginId from '../pluginId';
2
2
 
3
- const getTrad = id => `${pluginId}.${id}`;
3
+ const getTrad = (id) => `${pluginId}.${id}`;
4
4
 
5
5
  export default getTrad;
@@ -2,10 +2,7 @@ import * as yup from 'yup';
2
2
  import { translatedErrors } from 'strapi-helper-plugin';
3
3
 
4
4
  const schema = yup.object().shape({
5
- email: yup
6
- .string()
7
- .email(translatedErrors.email)
8
- .required(translatedErrors.required),
5
+ email: yup.string().email(translatedErrors.email).required(translatedErrors.required),
9
6
  });
10
7
 
11
8
  export default schema;
@@ -2,7 +2,7 @@
2
2
 
3
3
  const _ = require('lodash');
4
4
 
5
- const createProvider = emailConfig => {
5
+ const createProvider = (emailConfig) => {
6
6
  const providerName = _.toLower(emailConfig.provider);
7
7
  let provider;
8
8
  try {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.7.0",
6
+ "version": "3.7.1",
7
7
  "description": "Easily configure your Strapi application to send emails.",
8
8
  "strapi": {
9
9
  "name": "Email",
@@ -15,12 +15,12 @@
15
15
  "test": "echo \"no tests yet\""
16
16
  },
17
17
  "dependencies": {
18
- "@akemona-org/strapi-provider-email-sendmail": "3.7.0",
19
- "@akemona-org/strapi-utils": "3.7.0",
18
+ "@akemona-org/strapi-provider-email-sendmail": "3.7.1",
19
+ "@akemona-org/strapi-utils": "3.7.1",
20
20
  "lodash": "4.17.21"
21
21
  },
22
22
  "devDependencies": {
23
- "@akemona-org/strapi-helper-plugin": "3.7.0",
23
+ "@akemona-org/strapi-helper-plugin": "3.7.1",
24
24
  "rimraf": "3.0.2"
25
25
  },
26
26
  "author": {
@@ -44,5 +44,5 @@
44
44
  "npm": ">=6.0.0"
45
45
  },
46
46
  "license": "SEE LICENSE IN LICENSE",
47
- "gitHead": "129a8d6191b55810fd66448dcc47fee829df986c"
47
+ "gitHead": "5545ca033e2fb1aa3afbd546c370972426058525"
48
48
  }
package/services/Email.js CHANGED
@@ -6,7 +6,7 @@ const getProviderSettings = () => {
6
6
  return strapi.plugins.email.config;
7
7
  };
8
8
 
9
- const send = async options => {
9
+ const send = async (options) => {
10
10
  return strapi.plugins.email.provider.send(options);
11
11
  };
12
12