Skip to content

Commit

Permalink
[samp local] fix for null-responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Aug 10, 2023
1 parent 94c5d8c commit 24a5b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "samp-cli",
"version": "1.0.36",
"version": "1.0.37",
"description": "CLI tool for extended productivity with AWS Serverless Application Model (SAM)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/local/lib/event-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (process.argv.length > 3) {
const stack = JSON.parse(process.argv[3]);
const functionSources = JSON.parse(process.argv[4]);
routeEvent(obj, stack, functionSources).then((result) => {
if (!result.skipResponse) {
if (!result?.skipResponse) {
const response = typeof result === "string" ? result : JSON.stringify(result, null, 2);
process.send(response || "");
}
Expand Down

0 comments on commit 24a5b51

Please sign in to comment.