@mark1russell7/harness 0.12.2 → 0.12.3

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.
package/build/index.js CHANGED
@@ -2150,7 +2150,13 @@ const lines = (also) => {
2150
2150
  if (text.length > 0) other.push(text);
2151
2151
  return;
2152
2152
  }
2153
- const line = JSON.parse(text);
2153
+ let line;
2154
+ try {
2155
+ line = JSON.parse(text);
2156
+ } catch {
2157
+ other.push(text);
2158
+ return;
2159
+ }
2154
2160
  seen.push(line);
2155
2161
  also?.(line);
2156
2162
  for (const wait of waiting.splice(0)) if (wait.kinds.includes(line.ev)) wait.resolve(line);