observal-pi 1.3.1 → 1.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.
@@ -201,8 +201,10 @@ export default function (pi: ExtensionAPI) {
201
201
  let consumedBytes = 0;
202
202
  for (let i = 0; i < rawLines.length; i++) {
203
203
  const line = rawLines[i]!;
204
- if (i === rawLines.length - 1 && !text.endsWith("\n")) {
205
- break; // incomplete line
204
+ if (i === rawLines.length - 1) {
205
+ // Last element after split: either empty (file ended with \n)
206
+ // or an incomplete line (file didn't end with \n). Either way, stop.
207
+ break;
206
208
  }
207
209
  if (line.trim()) {
208
210
  lines.push(line);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "observal-pi",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Observal session telemetry for Pi — zero-dependency extension that pushes session traces to your Observal server",
5
5
  "keywords": [
6
6
  "pi-package",