allserver 2.4.0 → 2.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allserver",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Multi-protocol simple RPC server and [optional] client. Boilerplate-less. Opinionated. Minimalistic. DX-first.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -41,7 +41,7 @@ module.exports = require("./ClientTransport").compose({
41
41
  });
42
42
  if (typeof promise.promise === "function") promise = promise.promise(); // AWS SDK v2 adoption
43
43
  const invocationResponse = await promise;
44
- return JSON.parse(invocationResponse.Payload);
44
+ return JSON.parse(Buffer.from(invocationResponse.Payload));
45
45
  },
46
46
 
47
47
  createCallContext(defaultCtx) {