@lunora/client 1.0.0-alpha.24 → 1.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.
@@ -1,20 +1,20 @@
1
- import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-B8bdwHLr.mjs";
1
+ import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-B1iZb2Ph.mjs";
2
2
  import '@lunora/runtime';
3
3
  interface IdentityStore {
4
4
  /** Read the current resolved user, or `null` when signed out / not yet resolved. */
5
5
  getUser: () => User | null;
6
6
  /**
7
- * Subscribe to identity changes. `onChange` is called whenever the user or
8
- * token changes. Returns an unsubscribe handle.
9
- */
7
+ * Subscribe to identity changes. `onChange` is called whenever the user or
8
+ * token changes. Returns an unsubscribe handle.
9
+ */
10
10
  subscribe: (onChange: () => void) => () => void;
11
11
  }
12
12
  /**
13
- * Return the per-client identity store, creating it on first access.
14
- *
15
- * The store is cached via a `WeakMap` so it is GC'd when the client is dropped,
16
- * and creation is idempotent — calling this multiple times with the same client
17
- * returns the same store, keeping the single-fetch / fan-out invariant.
18
- */
13
+ * Return the per-client identity store, creating it on first access.
14
+ *
15
+ * The store is cached via a `WeakMap` so it is GC'd when the client is dropped,
16
+ * and creation is idempotent — calling this multiple times with the same client
17
+ * returns the same store, keeping the single-fetch / fan-out invariant.
18
+ */
19
19
  declare const getIdentityStore: (client: LunoraClient) => IdentityStore;
20
20
  export { type IdentityStore, getIdentityStore };
@@ -1,20 +1,20 @@
1
- import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-B8bdwHLr.js";
1
+ import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-B1iZb2Ph.js";
2
2
  import '@lunora/runtime';
3
3
  interface IdentityStore {
4
4
  /** Read the current resolved user, or `null` when signed out / not yet resolved. */
5
5
  getUser: () => User | null;
6
6
  /**
7
- * Subscribe to identity changes. `onChange` is called whenever the user or
8
- * token changes. Returns an unsubscribe handle.
9
- */
7
+ * Subscribe to identity changes. `onChange` is called whenever the user or
8
+ * token changes. Returns an unsubscribe handle.
9
+ */
10
10
  subscribe: (onChange: () => void) => () => void;
11
11
  }
12
12
  /**
13
- * Return the per-client identity store, creating it on first access.
14
- *
15
- * The store is cached via a `WeakMap` so it is GC'd when the client is dropped,
16
- * and creation is idempotent — calling this multiple times with the same client
17
- * returns the same store, keeping the single-fetch / fan-out invariant.
18
- */
13
+ * Return the per-client identity store, creating it on first access.
14
+ *
15
+ * The store is cached via a `WeakMap` so it is GC'd when the client is dropped,
16
+ * and creation is idempotent — calling this multiple times with the same client
17
+ * returns the same store, keeping the single-fetch / fan-out invariant.
18
+ */
19
19
  declare const getIdentityStore: (client: LunoraClient) => IdentityStore;
20
20
  export { type IdentityStore, getIdentityStore };