leafrelay 0.2.2 → 0.2.4

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.
@@ -1,4 +1,4 @@
1
- // ../daemon/dist/chunk-RYKQ47FZ.js
1
+ // ../daemon/dist/chunk-PSHSXZIB.js
2
2
  import { createHash } from "crypto";
3
3
  import { homedir } from "os";
4
4
  import { join, resolve } from "path";
@@ -4587,6 +4587,7 @@ minimatch.Minimatch = Minimatch;
4587
4587
  minimatch.escape = escape;
4588
4588
  minimatch.unescape = unescape;
4589
4589
  var import_diff_match_patch = __toESM(require_diff_match_patch(), 1);
4590
+ var import_diff_match_patch2 = __toESM(require_diff_match_patch(), 1);
4590
4591
  var sink;
4591
4592
  function write(level, args) {
4592
4593
  if (sink !== void 0) {
@@ -4665,8 +4666,10 @@ var HttpRequestScheduler = class {
4665
4666
  }
4666
4667
  };
4667
4668
  var sharedHttpRequestScheduler = new HttpRequestScheduler();
4669
+ var decoder = new TextDecoder("utf-8", { fatal: true });
4668
4670
  var textDecoder = new TextDecoder("utf-8", { fatal: true });
4669
4671
  var textEncoder = new TextEncoder();
4672
+ var encoder = new TextEncoder();
4670
4673
  var LEAFRELAY_PROTOCOL_VERSION = 1;
4671
4674
  var RPC_METHOD = {
4672
4675
  initialize: "leafrelay/initialize",
@@ -4701,17 +4704,17 @@ var CLOSED_SOCKET_ERRORS = /* @__PURE__ */ new Set([
4701
4704
  "ERR_STREAM_WRITE_AFTER_END"
4702
4705
  ]);
4703
4706
  var LeafRelaySocketWriter = class extends SocketMessageWriter {
4704
- constructor(socket) {
4705
- super(socket);
4706
- this.socket = socket;
4707
+ constructor(transportSocket) {
4708
+ super(transportSocket);
4709
+ this.transportSocket = transportSocket;
4707
4710
  }
4708
- socket;
4711
+ transportSocket;
4709
4712
  async write(message) {
4710
4713
  try {
4711
4714
  await super.write(message);
4712
4715
  } catch (error2) {
4713
4716
  const code = error2.code;
4714
- if (this.socket.destroyed || this.socket.writableEnded || code && CLOSED_SOCKET_ERRORS.has(code)) {
4717
+ if (this.transportSocket.destroyed || this.transportSocket.writableEnded || code && CLOSED_SOCKET_ERRORS.has(code)) {
4715
4718
  return;
4716
4719
  }
4717
4720
  throw error2;
@@ -5064,7 +5067,7 @@ async function tryConnect(metadata) {
5064
5067
  function connectCliDaemon(autoStart = true) {
5065
5068
  return LeafRelayDaemonClient.connect({
5066
5069
  clientName: "cli",
5067
- clientVersion: "0.2.2",
5070
+ clientVersion: "0.2.4",
5068
5071
  daemonEntrypoint: new URL("./daemon.js", import.meta.url),
5069
5072
  autoStart
5070
5073
  });
@@ -5154,4 +5157,4 @@ export {
5154
5157
  chokidar/index.js:
5155
5158
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
5156
5159
  */
5157
- //# sourceMappingURL=chunk-2EXJYAER.js.map
5160
+ //# sourceMappingURL=chunk-Y543FNFD.js.map