Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrlambda committed Dec 4, 2024
1 parent 9f35d91 commit df02a4d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
## Fixes and improvements
-

# 4.4.4
## Fixes and improvements
- Simulator serves bytes correctly
- Simulator doesn't warn of dead ends for $-messages

# 4.4.3
## Fixes and improvements
- Simulator doesn't crash on logging empty lines
Expand Down
4 changes: 2 additions & 2 deletions Execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ ${NORMAL_COLOR}`);
const rs = this.pendingReplies[traceId];
if (rs !== undefined) {
delete this.pendingReplies[traceId];
reply(rs.resp, body.content, body["content-type"], body["status-code"] || 200, body.headers || {});
reply(rs.resp, Buffer.from(body.content), body["content-type"], body["status-code"] || 200, body.headers || {});
}
}
processEvent(evnt, payload, envelope) {
Expand Down Expand Up @@ -326,7 +326,7 @@ ${NORMAL_COLOR}`);
}
const riverConfigs = processFolders(this.pathToRoot, event);
const rivers = Object.keys(riverConfigs);
if (rivers.length === 0) {
if (rivers.length === 0 && event[0] !== "$") {
timedOutput(`${YELLOW}Warning: No hooks for '${event}'${NORMAL_COLOR}`, `${GRAY}${traceId}: `);
}
rivers.forEach((r) => {
Expand Down
4 changes: 2 additions & 2 deletions Execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ ${NORMAL_COLOR}`);
delete this.pendingReplies[traceId];
reply(
rs.resp,
body.content,
Buffer.from(body.content),
body["content-type"],
body["status-code"] || 200,
body.headers || {}
Expand Down Expand Up @@ -418,7 +418,7 @@ ${NORMAL_COLOR}`);
}
const riverConfigs = processFolders(this.pathToRoot, event);
const rivers = Object.keys(riverConfigs);
if (rivers.length === 0) {
if (rivers.length === 0 && event[0] !== "$") {
timedOutput(
`${YELLOW}Warning: No hooks for '${event}'${NORMAL_COLOR}`,
`${GRAY}${traceId}: `
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merrymake/cli",
"version": "4.4.3",
"version": "4.4.4",
"description": "",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit df02a4d

Please sign in to comment.