@tsingroc/tsingroc-components 5.0.0-alpha.25 → 5.0.0-alpha.26

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.
@@ -48,8 +48,8 @@ export declare class SessionStore {
48
48
  *
49
49
  * - validated:会话首次验证成功。
50
50
  * - revalidated:会话重新验证成功。
51
- * - failed: 会话创建或首次验证失败。
52
- * - invalidated:会话失效。
51
+ * - failed: 会话创建失败。
52
+ * - invalidated:会话验证失败或者被手动终止。
53
53
  */
54
54
  export type SessionStoreEvent = {
55
55
  type: "validated" | "revalidated";
@@ -72,7 +72,7 @@ export class SessionStore {
72
72
  let cancelled = false;
73
73
  const promise = this.#validate(state).catch(err => {
74
74
  this.#updateAndNotify(null, {
75
- type: "failed",
75
+ type: "invalidated",
76
76
  reason: err
77
77
  });
78
78
  throw err;
@@ -189,6 +189,6 @@ export class SessionStore {
189
189
  *
190
190
  * - validated:会话首次验证成功。
191
191
  * - revalidated:会话重新验证成功。
192
- * - failed: 会话创建或首次验证失败。
193
- * - invalidated:会话失效。
192
+ * - failed: 会话创建失败。
193
+ * - invalidated:会话验证失败或者被手动终止。
194
194
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsingroc/tsingroc-components",
3
- "version": "5.0.0-alpha.25",
3
+ "version": "5.0.0-alpha.26",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "description": "",