@8ms/helpers 1.21.0 → 1.23.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.
@@ -90,8 +90,13 @@ class SimpleEmail extends BaseClass_1.default {
90
90
  Source: this.from,
91
91
  };
92
92
  const command = new SendEmailCommand(params);
93
- const apiResponse = await global.awsSesClient.send(command);
94
- return apiResponse;
93
+ try {
94
+ response = await global.awsSesClient.send(command);
95
+ }
96
+ catch (exception) {
97
+ response = exception;
98
+ }
99
+ return response;
95
100
  }
96
101
  _filterRecipients({ field }) {
97
102
  // Remove all undefined and null values
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "1.21.0",
4
+ "version": "1.23.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
@@ -13,31 +13,31 @@
13
13
  "jest": "jest --watch"
14
14
  },
15
15
  "dependencies": {
16
- "axios": "1.6.8",
16
+ "axios": "1.7.2",
17
17
  "crypto-js": "4.2.0",
18
18
  "date-fns": "3.6.0",
19
19
  "date-fns-tz": "3.1.3",
20
20
  "lodash": "4.17.21",
21
- "zod": "3.23.5"
21
+ "zod": "3.23.8"
22
22
  },
23
23
  "devDependencies": {
24
- "@aws-sdk/client-s3": "3.567.0",
25
- "@aws-sdk/client-ses": "3.567.0",
26
- "@aws-sdk/client-sqs": "3.567.0",
27
- "@aws-sdk/client-ssm": "3.567.0",
28
- "@aws-sdk/lib-storage": "3.567.0",
29
- "@aws-sdk/s3-request-presigner": "3.567.0",
30
- "@babel/preset-env": "7.24.5",
31
- "@babel/preset-flow": "7.24.1",
32
- "@babel/preset-typescript": "7.24.1",
33
- "@google-cloud/bigquery": "7.6.1",
34
- "@google-cloud/storage": "7.10.2",
24
+ "@aws-sdk/client-s3": "3.617.0",
25
+ "@aws-sdk/client-ses": "3.616.0",
26
+ "@aws-sdk/client-sqs": "3.616.0",
27
+ "@aws-sdk/client-ssm": "3.616.0",
28
+ "@aws-sdk/lib-storage": "3.617.0",
29
+ "@aws-sdk/s3-request-presigner": "3.617.0",
30
+ "@babel/preset-env": "7.24.8",
31
+ "@babel/preset-flow": "7.24.7",
32
+ "@babel/preset-typescript": "7.24.7",
33
+ "@google-cloud/bigquery": "7.8.0",
34
+ "@google-cloud/storage": "7.12.0",
35
35
  "@planetscale/database": "1.18.0",
36
- "@prisma/adapter-planetscale": "5.14.0",
37
- "@prisma/client": "5.13.0",
36
+ "@prisma/adapter-planetscale": "5.17.0",
37
+ "@prisma/client": "5.17.0",
38
38
  "@types/jest": "29.5.12",
39
- "@types/lodash": "4.17.0",
40
- "@types/node": "20.12.8",
39
+ "@types/lodash": "4.17.7",
40
+ "@types/node": "20.14.12",
41
41
  "babel-jest": "29.7.0",
42
42
  "jest": "29.7.0",
43
43
  "node-fetch": "3.3.2",
@@ -45,7 +45,7 @@
45
45
  "stream-json": "1.8.0",
46
46
  "timezone-mock": "1.3.6",
47
47
  "ts-node": "10.9.2",
48
- "tslib": "2.6.2",
49
- "typescript": "5.4.5"
48
+ "tslib": "2.6.3",
49
+ "typescript": "5.5.4"
50
50
  }
51
51
  }
@@ -3,6 +3,6 @@
3
3
  * https://stackoverflow.com/a/49428486
4
4
  */
5
5
  declare const getStringFromStream: ({ stream }: {
6
- stream;
6
+ stream: any;
7
7
  }) => Promise<string>;
8
8
  export default getStringFromStream;
@@ -2,7 +2,7 @@
2
2
  * Create a new relative URL based on the current path.
3
3
  */
4
4
  declare const buildRelative: ({ router, updated }: {
5
- router;
5
+ router: any;
6
6
  updated: object;
7
7
  }) => string;
8
8
  export default buildRelative;