From 9a612e59a254fd2fb54127073051ac47031858d1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 14 Mar 2025 09:29:14 -0300 Subject: [PATCH] update nip11 test. --- jsr.json | 2 +- nip11.test.ts | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jsr.json b/jsr.json index e8d44aa..f79baa0 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@nostr/tools", - "version": "2.10.4", + "version": "2.11.0", "exports": { ".": "./index.ts", "./core": "./core.ts", diff --git a/nip11.test.ts b/nip11.test.ts index af379c0..5d7f438 100644 --- a/nip11.test.ts +++ b/nip11.test.ts @@ -10,7 +10,9 @@ describe('requesting relay as for NIP11', () => { const info = await fetchRelayInformation('wss://nos.lol') expect(info.name).toEqual('nos.lol') expect(info.description).toContain('Generally accepts notes, except spammy ones.') - expect(info.supported_nips).toEqual([1, 2, 4, 9, 11, 12, 16, 20, 22, 28, 33, 40]) + expect(info.supported_nips).toContain(1) + expect(info.supported_nips).toContain(11) + expect(info.supported_nips).toContain(70) expect(info.software).toEqual('git+https://github.com/hoytech/strfry.git') }) }) diff --git a/package.json b/package.json index a6e0bce..11db211 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "nostr-tools", - "version": "2.10.4", + "version": "2.11.0", "description": "Tools for making a Nostr client.", "repository": { "type": "git",