mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-13 10:28:51 +00:00
unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { verifiedSymbol, type Event, type Nostr } from './core.ts'
|
||||
|
||||
export async function yieldThread() {
|
||||
return new Promise(resolve => {
|
||||
const ch = new MessageChannel()
|
||||
@@ -7,3 +9,8 @@ export async function yieldThread() {
|
||||
ch.port1.start()
|
||||
})
|
||||
}
|
||||
|
||||
export const alwaysTrue: Nostr['verifyEvent'] = (t: Event) => {
|
||||
t[verifiedSymbol] = true
|
||||
return t[verifiedSymbol]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user