spooder 4.2.12 → 4.2.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spooder",
3
3
  "type": "module",
4
- "version": "4.2.12",
4
+ "version": "4.2.13",
5
5
  "exports": {
6
6
  ".": {
7
7
  "bun": "./src/api.ts",
package/src/cli.ts CHANGED
@@ -69,7 +69,8 @@ async function start_server() {
69
69
  return;
70
70
 
71
71
  const chunk_str = text_decoder.decode(chunk.value);
72
- stream_history.push(...chunk_str.split(/\r?\n/));
72
+ for (const chunk of chunk_str.split(/\r?\n/))
73
+ stream_history.push(chunk.trimEnd());
73
74
 
74
75
  if (stream_history.length > crash_console_history)
75
76
  stream_history.splice(0, stream_history.length - crash_console_history);