@asgard-js/core 0.2.58 → 0.2.59

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/index.mjs CHANGED
@@ -1838,12 +1838,12 @@ class J {
1838
1838
  const t = new J(e);
1839
1839
  return t.subscribe(), t;
1840
1840
  }
1841
- static async reset(e, t, r) {
1842
- const o = new J(e);
1841
+ static async reset(e, t, r, o) {
1842
+ const i = new J(e);
1843
1843
  try {
1844
- return o.subscribe(), await o.resetChannel(t, r), o;
1845
- } catch (i) {
1846
- throw o.close(), i;
1844
+ return i.subscribe(), o?.(i), await i.resetChannel(t, r), i;
1845
+ } catch (s) {
1846
+ throw i.close(), s;
1847
1847
  }
1848
1848
  }
1849
1849
  subscribe() {