@ysgroup/core 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/rest.ts CHANGED
@@ -297,7 +297,6 @@ export interface TopologyNode {
297
297
  title: string;
298
298
  kind: "service" | "link";
299
299
  status: string;
300
- port: number;
301
300
  logo_url?: string;
302
301
  online: boolean;
303
302
  last_heartbeat_at: number;
package/src/store.ts CHANGED
@@ -181,8 +181,11 @@ export const useYsStore = defineStore("ys", () => {
181
181
  localStorage.setItem(LS_ACCESS, result.access_token);
182
182
  localStorage.setItem(LS_REFRESH, result.refresh_token);
183
183
  scheduleRenew(result.access_expires_in);
184
- } catch {
184
+ } catch (error) {
185
185
  clearSession();
186
+ sessionMessage.value = String(error)
187
+ .replace(/^Error:\s*/, "")
188
+ .replace(/^\[\d+\]\s*/, "");
186
189
  }
187
190
  }
188
191