@abraca/dabra 1.0.3 → 1.0.4

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.d.ts CHANGED
@@ -941,6 +941,8 @@ interface UserProfile {
941
941
  email: string | null;
942
942
  displayName: string | null;
943
943
  role: string;
944
+ /** Account-level Ed25519 public key (base64url). Canonical user identity. */
945
+ publicKey: string | null;
944
946
  }
945
947
  interface DocumentMeta {
946
948
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abraca/dabra",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "abracadabra provider",
5
5
  "keywords": [
6
6
  "abracadabra",
@@ -512,7 +512,7 @@ export class AbracadabraWS extends EventEmitter {
512
512
 
513
513
  // Detect server-side rate-limit close (code 4429).
514
514
  // `event` may be a CloseEvent (browser) with `.code`, or a raw number (ws/Node.js).
515
- console.log('[DEBUG] onClose event:', typeof event, JSON.stringify(event), 'code:', (event as any)?.code);
515
+ // `event` may be a CloseEvent (browser) with `.code`, or a raw number (ws/Node.js).
516
516
  const isRateLimited = (event as any)?.code === 4429 || event === 4429;
517
517
  this.emit("disconnect", { event });
518
518
  if (isRateLimited) {
package/src/types.ts CHANGED
@@ -166,6 +166,8 @@ export interface UserProfile {
166
166
  email: string | null;
167
167
  displayName: string | null;
168
168
  role: string;
169
+ /** Account-level Ed25519 public key (base64url). Canonical user identity. */
170
+ publicKey: string | null;
169
171
  }
170
172
 
171
173
  export interface DocumentMeta {