@strapi/provider-email-amazon-ses 4.11.3 → 4.11.5

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.
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  const node_ses_1 = __importDefault(require("node-ses"));
6
- const utils_1 = __importDefault(require("@strapi/utils"));
7
6
  module.exports = {
8
7
  init(providerOptions, settings) {
9
8
  const client = node_ses_1.default.createClient(providerOptions);
@@ -13,16 +12,16 @@ module.exports = {
13
12
  const { from, to, cc, bcc, replyTo, subject, text, html, ...rest } = options;
14
13
  const msg = {
15
14
  from: from || settings.defaultFrom,
15
+ subject,
16
+ message: html,
16
17
  to,
17
18
  cc,
18
19
  bcc,
19
20
  replyTo: replyTo || settings.defaultReplyTo,
20
- subject,
21
21
  altText: text,
22
- message: html,
23
22
  ...rest,
24
23
  };
25
- client.sendEmail(utils_1.default.removeUndefined(msg), (err) => {
24
+ client.sendEmail(msg, (err) => {
26
25
  if (err) {
27
26
  if (err.Message) {
28
27
  // eslint-disable-next-line prefer-promise-reject-errors
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,0DAAkC;AAyBlC,iBAAS;IACP,IAAI,CAAC,eAAgC,EAAE,QAAkB;QACvD,MAAM,MAAM,GAAG,kBAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAErD,OAAO;YACL,IAAI,CAAC,OAAoB;gBACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACrC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI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,CAAC;oBAE7E,MAAM,GAAG,GAA6B;wBACpC,IAAI,EAAE,IAAI,IAAI,QAAQ,CAAC,WAAW;wBAClC,OAAO;wBACP,OAAO,EAAE,IAAI;wBACb,EAAE;wBACF,EAAE;wBACF,GAAG;wBACH,OAAO,EAAE,OAAO,IAAI,QAAQ,CAAC,cAAc;wBAC3C,OAAO,EAAE,IAAI;wBACb,GAAG,IAAI;qBACR,CAAC;oBAEF,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;wBAC5B,IAAI,GAAG,EAAE;4BACP,IAAI,GAAG,CAAC,OAAO,EAAE;gCACf,wDAAwD;gCACxD,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;6BAC1D;4BACD,MAAM,CAAC,GAAG,CAAC,CAAC;yBACb;6BAAM;4BACL,OAAO,EAAE,CAAC;yBACX;oBACH,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/provider-email-amazon-ses",
3
- "version": "4.11.3",
3
+ "version": "4.11.5",
4
4
  "description": "Amazon SES provider for strapi email",
5
5
  "keywords": [
6
6
  "email",
@@ -42,16 +42,16 @@
42
42
  "lint": "run -T eslint ."
43
43
  },
44
44
  "dependencies": {
45
- "@strapi/utils": "4.11.3",
45
+ "@strapi/utils": "4.11.5",
46
46
  "node-ses": "^3.0.3"
47
47
  },
48
48
  "devDependencies": {
49
- "eslint-config-custom": "4.11.3",
50
- "tsconfig": "4.11.3"
49
+ "eslint-config-custom": "4.11.5",
50
+ "tsconfig": "4.11.5"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=14.19.1 <=18.x.x",
54
54
  "npm": ">=6.0.0"
55
55
  },
56
- "gitHead": "aac28413ada24fb8fff55c2908343cc3b8a2a3e0"
56
+ "gitHead": "7bdef3d27843c78666c85f30dc2f1bcf4d6b805e"
57
57
  }