@jinglescode/nostr-chat-plugin
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -76,4 +76,4 @@ import { jsx } from 'react/jsx-runtime'; | ||
var NostrChatContext = createContext({ | ||
subscribeRoom: function (_) { }, | ||
publishMessage: function (_) { }, | ||
subscribeRoom: function (roomId) { }, | ||
publishMessage: function (message) { }, | ||
messages: [], | ||
@@ -87,3 +87,5 @@ user: { | ||
}, | ||
setUser: function (_) { }, | ||
setUser: function (_a) { | ||
_a.nsec; _a.pubkey; | ||
}, | ||
}); | ||
@@ -90,0 +92,0 @@ var NostrChatProvider = function (_a) { |
@@ -8,4 +8,4 @@ import { ReactNode } from "react"; | ||
export declare const useNostrChat: () => { | ||
subscribeRoom: (_: string) => void; | ||
publishMessage: (_: string) => void; | ||
subscribeRoom: (roomId: string) => void; | ||
publishMessage: (message: string) => void; | ||
messages: Message[] | undefined; | ||
@@ -17,3 +17,3 @@ user: User | undefined; | ||
}; | ||
setUser: (_: User) => void; | ||
setUser: ({ nsec, pubkey }: User) => void; | ||
}; |
{ | ||
"name": "@jinglescode/nostr-chat-plugin", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A NOSTR React chatroom component", | ||
@@ -5,0 +5,0 @@ "author": "jinglescode", |
@@ -11,6 +11,1 @@ export type Message = { | ||
}; | ||
export type UserData = { | ||
id: string; | ||
avatar: string; | ||
name: string; | ||
}; |
{ | ||
"name": "@jinglescode/nostr-chat-plugin", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A NOSTR React chatroom component", | ||
@@ -5,0 +5,0 @@ "author": "jinglescode", |
@@ -12,7 +12,1 @@ export type Message = { | ||
}; | ||
export type UserData = { | ||
id: string; | ||
avatar: string; | ||
name: string; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47391
807