yxuse 1.0.41 → 1.0.42

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/lib/index.es5.js CHANGED
@@ -7299,13 +7299,11 @@ const Oy = "/login", Cy = (e, t) => {
7299
7299
  };
7300
7300
  var iu = /* @__PURE__ */ ((e) => (e[e.SUCCESS = 200] = "SUCCESS", e[e.ERROR = 500] = "ERROR", e[e.OVERDUE = 401] = "OVERDUE", e[e.TIMEOUT = 3e4] = "TIMEOUT", e.TYPE = "success", e))(iu || {});
7301
7301
  const xy = () => sessionStorage.removeItem("GlobalState"), Ir = () => {
7302
- var n;
7303
7302
  const e = sessionStorage.getItem("GlobalState");
7304
- return ((n = JSON.parse(e)) == null ? void 0 : n.token) || null;
7303
+ return JSON.parse(e) ? JSON.parse(e).token : null;
7305
7304
  }, Sy = () => {
7306
- var n;
7307
7305
  const e = sessionStorage.getItem("GlobalState");
7308
- return ((n = JSON.parse(e)) == null ? void 0 : n.userInfo) || null;
7306
+ return JSON.parse(e) ? JSON.parse(e).userInfo : null;
7309
7307
  }, Ty = async () => Ir() ? await Cu.request("/account/home/menu", "GET", "", !1, !0) : [], Dy = async (e) => {
7310
7308
  if (!Ir())
7311
7309
  return null;
Binary file