mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
chore(ai): event schema validation tool + fixes
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
05a3aa2b1f
commit
ce8c5931e5
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -2079,7 +2079,7 @@ export class NostrClient {
|
||||
}
|
||||
|
||||
const permissionResult = await this.ensureExtensionPermissions(
|
||||
DEFAULT_NIP07_CORE_METHODS,
|
||||
DEFAULT_NIP07_PERMISSION_METHODS,
|
||||
{ context: "login", logMetrics: true, showStatus: false },
|
||||
);
|
||||
if (!permissionResult.ok) {
|
||||
|
||||
@@ -251,13 +251,16 @@ test(
|
||||
let fetchCalls = 0;
|
||||
nostrClient.fetchListIncrementally = async () => {
|
||||
fetchCalls += 1;
|
||||
return fetchCalls === 1 ? [event] : [];
|
||||
// Always return the event so the second load call (with permissions) finds data
|
||||
return [event];
|
||||
};
|
||||
nostrClient.relays = relayUrls;
|
||||
nostrClient.writeRelays = relayUrls;
|
||||
|
||||
const decryptCalls = [];
|
||||
window.nostr = {
|
||||
enable: async () => true,
|
||||
getPublicKey: async () => pubkey,
|
||||
nip04: {
|
||||
decrypt: async () => {
|
||||
decryptCalls.push("nip04");
|
||||
|
||||
Reference in new issue
Block a user