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 8280515 commit 9f35d91
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
## Fixes and improvements
-

# 4.4.3
## Fixes and improvements
- Simulator doesn't crash on logging empty lines

# 4.4.2
## Fixes and improvements
- Simulator's service detection ignores files
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.2",
"version": "4.4.3",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 1 addition & 3 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ export function printWithPrefix(str, prefix = "") {
str
.trimEnd()
.split("\n")
.flatMap((x) => x
.match(new RegExp(`.{1,${stdout.getWindowSize()[0] - prefixLength}}( |$)|.{1,${stdout.getWindowSize()[0] - prefixLength}}`, "g"))
.map((x) => x.trimEnd()))
.flatMap((x) => (x.match(new RegExp(`.{1,${stdout.getWindowSize()[0] - prefixLength}}( |$)|.{1,${stdout.getWindowSize()[0] - prefixLength}}`, "g")) || []).map((x) => x.trimEnd()))
.join(`\n${prefix}`));
}
export function outputGit(str) {
Expand Down
8 changes: 4 additions & 4 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,16 @@ export function printWithPrefix(str: string, prefix: string = "") {
.trimEnd()
.split("\n")
.flatMap((x) =>
x
.match(
(
x.match(
new RegExp(
`.{1,${stdout.getWindowSize()[0] - prefixLength}}( |$)|.{1,${
stdout.getWindowSize()[0] - prefixLength
}}`,
"g"
)
)!
.map((x) => x.trimEnd())
) || []
).map((x) => x.trimEnd())
)
.join(`\n${prefix}`)
);
Expand Down

0 comments on commit 9f35d91

Please sign in to comment.