idea-aws 4.0.3 → 4.0.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.
@@ -410,7 +410,7 @@ class ResourceController extends genericController_1.GenericController {
410
410
  });
411
411
  const client = new Lambda.LambdaClient();
412
412
  const { Payload } = await client.send(command);
413
- const payload = JSON.parse(Payload.transformToString());
413
+ const payload = JSON.parse(Buffer.from(Payload).toString());
414
414
  const body = JSON.parse(payload.body);
415
415
  if (Number(payload.statusCode) !== 200)
416
416
  throw new Error(body.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "AWS wrappers to use in IDEA's back-ends",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "homepage": "https://iter-idea.github.io/IDEA-AWS",
38
38
  "dependencies": {
39
39
  "@aws-lambda-powertools/metrics": "^1.12.1",
40
- "idea-toolbox": "^7.0.0",
40
+ "idea-toolbox": "^7.0.1",
41
41
  "nanoid": "^3.3.4",
42
42
  "nodemailer": "^6.9.4",
43
43
  "shortid": "^2.2.16",