@dxos/shell 0.4.8-main.d9be24a → 0.4.8-main.dcf422f

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.
@@ -67824,22 +67824,27 @@ var Cd = "/home/runner/work/dxos/dxos/packages/common/context/src/context.ts", y
67824
67824
  if (this._disposePromise)
67825
67825
  return this._disposePromise;
67826
67826
  this._isDisposed = !0;
67827
- const n = [];
67828
- for (const t of this._disposeCallbacks.reverse())
67829
- n.push((async () => {
67827
+ let n;
67828
+ this._disposePromise = new Promise((r) => {
67829
+ n = r;
67830
+ });
67831
+ const t = [], i = Array.from(this._disposeCallbacks).reverse();
67832
+ for (const r of i)
67833
+ t.push((async () => {
67830
67834
  try {
67831
- await t();
67832
- } catch (i) {
67833
- Ye.catch(i, void 0, {
67835
+ await r();
67836
+ } catch (a) {
67837
+ Ye.catch(a, void 0, {
67834
67838
  F: Cd,
67835
- L: 124,
67839
+ L: 132,
67836
67840
  S: this,
67837
- C: (r, a) => r(...a)
67841
+ C: (o, s) => o(...s)
67838
67842
  });
67839
67843
  }
67840
67844
  })());
67841
- return this._disposeCallbacks.length = 0, this._disposePromise = Promise.all(n).then(() => {
67842
- });
67845
+ return this._disposeCallbacks.length = 0, Promise.all(t).then(() => {
67846
+ n();
67847
+ }), this._disposePromise;
67843
67848
  }
67844
67849
  /**
67845
67850
  * Raise the error inside the context.