Compare commits

..

4 Commits

Author SHA1 Message Date
fiatjaf
f992c9c967 cleanup lib/ so we can only publish the esm file under esm/ 2023-03-02 08:36:43 -03:00
fiatjaf
dbf625d6ac fix justfile emit-types. 2023-03-02 08:27:44 -03:00
fiatjaf
8622bd11dd replace test relays. 2023-03-02 08:24:50 -03:00
fiatjaf
0970eee70f remove log from test. 2023-03-02 08:22:30 -03:00
5 changed files with 9 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ install-dependencies:
yarn --ignore-engines
build:
rm -rf lib
node build.js
test: build
@@ -13,11 +14,10 @@ test-only file: build
jest {{file}}
emit-types:
tsc
tsc # see tsconfig.json
publish: build
emit-types
publish: build emit-types
npm publish
format:
prettier --plugin-search-dir . --write .
prettier --plugin-search-dir . --write .

View File

@@ -48,7 +48,6 @@ test('encode and decode naddr', () => {
identifier: 'banana'
})
expect(naddr).toMatch(/naddr1\w+/)
console.log(naddr)
let {type, data} = nip19.decode(naddr)
expect(type).toEqual('naddr')
expect(data.pubkey).toEqual(pk)

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "1.7.2",
"version": "1.7.4",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",

View File

@@ -12,17 +12,17 @@ const {
let pool = new SimplePool()
let relays = [
'wss://nostr-dev.wellorder.net/',
'wss://relay.damus.io/',
'wss://relay.nostr.bg/',
'wss://nostr.fmt.wiz.biz/',
'wss://relay.nostr.band/',
'wss://nostr.zebedee.cloud/'
'wss://nos.lol/'
]
afterAll(() => {
pool.close([
...relays,
'wss://nostr-relay.untethr.me',
'wss://nostr.wine',
'wss://offchain.pub',
'wss://eden.nostr.land'
])

View File

@@ -9,7 +9,7 @@ const {
signEvent
} = require('./lib/nostr.cjs')
let relay = relayInit('wss://nostr-dev.wellorder.net/')
let relay = relayInit('wss://relay.damus.io/')
beforeAll(() => {
relay.connect()