@mcurros2/microm 1.1.145-0 → 1.1.147-0

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.js CHANGED
@@ -1653,12 +1653,12 @@ class $a1f6b3ef69eb7cc7$export$6118e57c65bf19ee {
1653
1653
  console.warn("Error remembering user", error);
1654
1654
  }
1655
1655
  try {
1656
- yield $a1f6b3ef69eb7cc7$var$__classPrivateFieldGet(this, $a1f6b3ef69eb7cc7$var$_MicroMClient_instances, "m", $a1f6b3ef69eb7cc7$var$_MicroMClient_getAPIEnabledMenus).call(this, username);
1656
+ yield $a1f6b3ef69eb7cc7$var$__classPrivateFieldGet(this, $a1f6b3ef69eb7cc7$var$_MicroMClient_instances, "m", $a1f6b3ef69eb7cc7$var$_MicroMClient_getAPIEnabledMenus).call(this, username, loginTimeout.signal);
1657
1657
  } catch (error) {
1658
1658
  console.warn("Error getting enabled menus", error);
1659
1659
  }
1660
1660
  try {
1661
- yield $a1f6b3ef69eb7cc7$var$__classPrivateFieldGet(this, $a1f6b3ef69eb7cc7$var$_MicroMClient_instances, "m", $a1f6b3ef69eb7cc7$var$_MicroMClient_getTimeZoneOffset).call(this);
1661
+ yield $a1f6b3ef69eb7cc7$var$__classPrivateFieldGet(this, $a1f6b3ef69eb7cc7$var$_MicroMClient_instances, "m", $a1f6b3ef69eb7cc7$var$_MicroMClient_getTimeZoneOffset).call(this, loginTimeout.signal);
1662
1662
  } catch (error) {
1663
1663
  console.warn("Error getting server timezone offset", error);
1664
1664
  }
@@ -1668,8 +1668,10 @@ class $a1f6b3ef69eb7cc7$export$6118e57c65bf19ee {
1668
1668
  url: response.url
1669
1669
  };
1670
1670
  } catch (error) {
1671
- yield this.localLogoff();
1672
- if (!(error instanceof Error && error.name === "AbortError")) //console.log(error);
1671
+ console.warn("Login error", error);
1672
+ try {
1673
+ yield this.logoff();
1674
+ } catch (_a) {}
1673
1675
  throw error;
1674
1676
  } finally{
1675
1677
  loginTimeout.clear();