@dxos/shell 0.4.8-main.ec0899a → 0.4.8-main.f253994

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.
@@ -12860,11 +12860,14 @@ var a7 = Symbol("logInfoProperties"), o7 = (e) => {
12860
12860
  value: a + "$log"
12861
12861
  });
12862
12862
  }, d7 = (e) => e && typeof e.then == "function", c7 = (e) => {
12863
- try {
12864
- return JSON.parse(localStorage.getItem("dxlog"));
12865
- } catch {
12866
- return;
12867
- }
12863
+ let n;
12864
+ if (typeof localStorage > "u" ? globalThis.localStorage_dxlog && (n = globalThis.localStorage_dxlog) : n = localStorage.getItem("dxlog") ?? void 0, !!n)
12865
+ try {
12866
+ return JSON.parse(n);
12867
+ } catch (t) {
12868
+ console.info("can't parse dxlog config", t);
12869
+ return;
12870
+ }
12868
12871
  }, V0 = () => {
12869
12872
  }, u7 = (e, n) => {
12870
12873
  console.log(jt(n, !1, null, !0));
@@ -13000,7 +13003,7 @@ var g7 = {
13000
13003
  file: process.env.LOG_CONFIG,
13001
13004
  filter: process.env.LOG_FILTER,
13002
13005
  processor: process.env.LOG_PROCESSOR
13003
- } : void 0, t = AS({}, e, n && c7(n.file), n);
13006
+ } : void 0, t = AS({}, c7(n == null ? void 0 : n.file), n, e);
13004
13007
  return {
13005
13008
  options: t,
13006
13009
  filters: zv(t.filter ?? Rn.INFO),
@@ -67821,22 +67824,27 @@ var Cd = "/home/runner/work/dxos/dxos/packages/common/context/src/context.ts", y
67821
67824
  if (this._disposePromise)
67822
67825
  return this._disposePromise;
67823
67826
  this._isDisposed = !0;
67824
- const n = [];
67825
- for (const t of this._disposeCallbacks.reverse())
67826
- 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 () => {
67827
67834
  try {
67828
- await t();
67829
- } catch (i) {
67830
- Ye.catch(i, void 0, {
67835
+ await r();
67836
+ } catch (a) {
67837
+ Ye.catch(a, void 0, {
67831
67838
  F: Cd,
67832
- L: 124,
67839
+ L: 132,
67833
67840
  S: this,
67834
- C: (r, a) => r(...a)
67841
+ C: (o, s) => o(...s)
67835
67842
  });
67836
67843
  }
67837
67844
  })());
67838
- return this._disposeCallbacks.length = 0, this._disposePromise = Promise.all(n).then(() => {
67839
- });
67845
+ return this._disposeCallbacks.length = 0, Promise.all(t).then(() => {
67846
+ n();
67847
+ }), this._disposePromise;
67840
67848
  }
67841
67849
  /**
67842
67850
  * Raise the error inside the context.