bb-browser 0.8.0 → 0.8.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.
package/dist/cli.js CHANGED
@@ -232,7 +232,10 @@ async function getJsonVersion(host, port) {
232
232
  function connectWebSocket(url) {
233
233
  return new Promise((resolve2, reject) => {
234
234
  const ws = new WebSocket(url);
235
- ws.once("open", () => resolve2(ws));
235
+ ws.once("open", () => {
236
+ ws._socket?.unref?.();
237
+ resolve2(ws);
238
+ });
236
239
  ws.once("error", reject);
237
240
  });
238
241
  }
@@ -3714,5 +3717,5 @@ Full guide: https://github.com/epiral/bb-sites/blob/main/SKILL.md`);
3714
3717
  process.exit(1);
3715
3718
  }
3716
3719
  }
3717
- main();
3720
+ main().then(() => process.exit(0));
3718
3721
  //# sourceMappingURL=cli.js.map