chore: move supported NIPs to package json

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-10-17 03:57:38 +00:00
parent e659384fd6
commit 0b58bcc2f7
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245
2 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,18 @@
"name": "nostr-ts-relay",
"version": "1.3.0",
"description": "A nostr relay written in Typescript.",
"supportedNips": [
1,
2,
4,
9,
11,
12,
15,
16,
22,
26
],
"main": "src/index.ts",
"scripts": {
"dev": "ts-node src/index.ts",

View File

@ -32,7 +32,7 @@ export class WebServerAdapter extends EventEmitter implements IWebServerAdapter
description,
pubkey,
contact,
supported_nips: [1, 2, 4, 9, 11, 12, 15, 16, 22, 26],
supported_nips: packageJson.supportedNips,
software: packageJson.repository.url,
version: packageJson.version,
}