up
This commit is contained in:
parent
e1c950b683
commit
219ec52b6d
2 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,6 @@ import { initMainHandler } from './services/main/init.js';
|
||||||
import { LoadMainSettingsFromEnv } from './services/main/settings.js';
|
import { LoadMainSettingsFromEnv } from './services/main/settings.js';
|
||||||
import { nip19 } from 'nostr-tools'
|
import { nip19 } from 'nostr-tools'
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
import { WebSocket } from 'ws'
|
|
||||||
Object.assign(global, { WebSocket: WebSocket });
|
|
||||||
const { nprofileEncode } = nip19
|
const { nprofileEncode } = nip19
|
||||||
|
|
||||||
const start = async () => {
|
const start = async () => {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
//import { SimplePool, Sub, Event, UnsignedEvent, getEventHash, signEvent } from 'nostr-tools'
|
//import { SimplePool, Sub, Event, UnsignedEvent, getEventHash, signEvent } from 'nostr-tools'
|
||||||
|
import * as ws from 'ws'
|
||||||
|
Object.assign(global, { WebSocket: ws });
|
||||||
import { SimplePool, Event, UnsignedEvent, getEventHash, finalizeEvent, Relay, nip44 } from 'nostr-tools'
|
import { SimplePool, Event, UnsignedEvent, getEventHash, finalizeEvent, Relay, nip44 } from 'nostr-tools'
|
||||||
//import { encryptData, decryptData, getSharedSecret, decodePayload, encodePayload, EncryptedData, nip44 } from 'nostr-tools'
|
//import { encryptData, decryptData, getSharedSecret, decodePayload, encodePayload, EncryptedData, nip44 } from 'nostr-tools'
|
||||||
import { ERROR, getLogger } from '../helpers/logger.js'
|
import { ERROR, getLogger } from '../helpers/logger.js'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue