prquicktest 2.0.0 → 2.0.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.
@@ -243,8 +243,13 @@ function runInShell(shell, code) {
243
243
  const line = stdoutBuf.slice(0, newlineIdx);
244
244
  stdoutBuf = stdoutBuf.slice(newlineIdx + 1);
245
245
 
246
- if (line.startsWith(markerPrefix)) {
247
- const exitCode = parseInt(line.slice(markerPrefix.length), 10);
246
+ const markerIdx = line.indexOf(markerPrefix);
247
+ if (markerIdx !== -1) {
248
+ // Output any content before the marker (e.g., if previous command didn't end with newline)
249
+ if (markerIdx > 0) {
250
+ process.stdout.write(line.slice(0, markerIdx) + '\n');
251
+ }
252
+ const exitCode = parseInt(line.slice(markerIdx + markerPrefix.length), 10);
248
253
  cleanup();
249
254
  resolve({ success: exitCode === 0, code: exitCode });
250
255
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prquicktest",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Run code blocks from GitHub PR descriptions",
5
5
  "type": "module",
6
6
  "scripts": {