@opencode/util 0.0.0-dev-1351 → 0.0.0-dev-1352

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/dist/patch.js +3 -2
  2. package/package.json +1 -1
package/dist/patch.js CHANGED
@@ -125,10 +125,11 @@ function parseAdd(lines, start, end, path) {
125
125
  }),
126
126
  };
127
127
  }
128
- content.push(lines[index].slice(1));
128
+ // Every + line is a whole line of the file, as in Codex, so a final empty + line is a blank last line.
129
+ content.push(`${lines[index].slice(1)}\n`);
129
130
  index++;
130
131
  }
131
- return { content: content.join("\n"), next: index };
132
+ return { content: content.join(""), next: index };
132
133
  }
133
134
  function parseUpdate(lines, start, end, path, hunk) {
134
135
  const chunks = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/util",
4
- "version": "0.0.0-dev-1351",
4
+ "version": "0.0.0-dev-1352",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {