@dxos/shell 0.5.0 → 0.5.1-main.16a1d7d

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.
@@ -73094,23 +73094,26 @@ var readableBrowserExports = readableBrowser.exports, createPromiseFromCallback
73094
73094
  }
73095
73095
  /**
73096
73096
  * Wake blocked callers (if any).
73097
+ * NOOP if the trigger is already resolved.
73097
73098
  */
73098
73099
  wake($) {
73099
- return this._wake($), this._options.autoReset ? this.reset() : this;
73100
+ return this._resolve($), this._options.autoReset ? this.reset() : this;
73100
73101
  }
73101
73102
  /**
73102
73103
  * Reset promise (new waiters will wait).
73103
73104
  */
73104
73105
  reset() {
73105
- return this._promise = new Promise(($) => {
73106
- this._wake = $;
73106
+ return this._promise = new Promise(($, I) => {
73107
+ this._resolve = $, this._reject = I;
73108
+ }), this._promise.catch(() => {
73107
73109
  }), this;
73108
73110
  }
73109
73111
  /**
73110
73112
  * Throw error to blocked callers (if any).
73113
+ * NOOP if the trigger is already resolved.
73111
73114
  */
73112
73115
  throw($) {
73113
- return this._wake(Promise.reject($)), this._options.autoReset ? this.reset() : this;
73116
+ return this._reject($), this._options.autoReset ? this.reset() : this;
73114
73117
  }
73115
73118
  }, MulticastObservable = class Jn extends Observable {
73116
73119
  constructor(I, U) {
@@ -84810,7 +84813,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84810
84813
  $ < this._buffer.length ? this._buffer = this._buffer.subarray($) : this._buffer = void 0;
84811
84814
  }
84812
84815
  destroy() {
84813
- this._stream.readableLength > 0 && log$2.info("framer destroyed while there are still read bytes in the buffer.", void 0, {
84816
+ this._stream.readableLength > 0 && log$2("framer destroyed while there are still read bytes in the buffer.", void 0, {
84814
84817
  F: __dxlog_file2$2,
84815
84818
  L: 140,
84816
84819
  S: this,
@@ -85862,7 +85865,7 @@ var Connection = class {
85862
85865
  });
85863
85866
  }
85864
85867
  } else {
85865
- log$2.info(`graceful close requested when we were in ${I} state? aborting`, void 0, {
85868
+ log$2(`graceful close requested when we were in ${I} state? aborting`, void 0, {
85866
85869
  F: __dxlog_file$2,
85867
85870
  L: 333,
85868
85871
  S: this,
@@ -88763,7 +88766,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
88763
88766
  return this._client.rpc;
88764
88767
  }
88765
88768
  async open() {
88766
- const { WebsocketRpcClient: $ } = await import("./index-Dvri-LiT.mjs");
88769
+ const { WebsocketRpcClient: $ } = await import("./index-V2p4ZwgG.mjs");
88767
88770
  this._client = new $({
88768
88771
  url: getUnixSocket(this._profile, "ws+unix"),
88769
88772
  requested: clientServiceBundle,
@@ -96619,4 +96622,4 @@ export {
96619
96622
  log$2 as l,
96620
96623
  runShell as r
96621
96624
  };
96622
- //# sourceMappingURL=index-C6Dqr0aO.mjs.map
96625
+ //# sourceMappingURL=index-DDZP6tbF.mjs.map