2022-08-07 01:52:34 +00:00
|
|
|
{
|
|
|
|
"name": "nostr-ts-relay",
|
2022-11-15 13:38:05 +00:00
|
|
|
"version": "1.7.6",
|
2022-08-07 01:52:34 +00:00
|
|
|
"description": "A nostr relay written in Typescript.",
|
2022-10-17 03:57:38 +00:00
|
|
|
"supportedNips": [
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
4,
|
|
|
|
9,
|
|
|
|
11,
|
|
|
|
12,
|
|
|
|
15,
|
|
|
|
16,
|
|
|
|
22,
|
2022-10-30 18:16:29 -04:00
|
|
|
26,
|
|
|
|
33
|
2022-10-17 03:57:38 +00:00
|
|
|
],
|
2022-08-07 01:52:34 +00:00
|
|
|
"main": "src/index.ts",
|
|
|
|
"scripts": {
|
2022-10-28 00:44:30 -04:00
|
|
|
"dev": "node -r ts-node/register src/index.ts",
|
2022-10-28 20:51:09 -04:00
|
|
|
"clean": "rimraf ./{dist,.nyc_output,.test-reports,.coverage}",
|
2022-10-12 01:19:22 +00:00
|
|
|
"build": "tsc --project tsconfig.build.json",
|
2022-10-17 04:35:12 +00:00
|
|
|
"prestart": "npm run build",
|
|
|
|
"start": "cd dist && node src/index.js",
|
|
|
|
"build:check": "npm run build -- --noEmit",
|
2022-08-15 03:17:56 +00:00
|
|
|
"lint": "eslint ./src ./test --ext .ts",
|
2022-08-07 01:52:34 +00:00
|
|
|
"lint:fix": "npm run lint -- --fix",
|
|
|
|
"db:migrate": "knex migrate:latest",
|
|
|
|
"db:migrate:rollback": "knex migrate:rollback",
|
|
|
|
"db:seed": "knex seed:run",
|
2022-10-28 20:51:09 -04:00
|
|
|
"pretest:unit": "mkdir -p .test-reports/unit",
|
2022-10-25 00:28:44 -04:00
|
|
|
"test:unit": "mocha 'test/**/*.spec.ts'",
|
2022-10-28 20:58:14 -04:00
|
|
|
"test:unit:watch": "npm run test:unit -- --min --watch --watch-files src/**/*,test/**/*",
|
2022-10-28 21:47:43 -04:00
|
|
|
"cover:unit": "nyc --report-dir .coverage/unit npm run test:unit",
|
2022-10-28 20:58:14 -04:00
|
|
|
"docker:build": "docker build -t nostr-ts-relay .",
|
2022-10-28 20:51:09 -04:00
|
|
|
"pretest:integration": "mkdir -p .test-reports/integration",
|
2022-10-25 00:28:44 -04:00
|
|
|
"test:integration": "cucumber-js",
|
2022-10-28 21:47:43 -04:00
|
|
|
"cover:integration": "nyc --report-dir .coverage/integration npm run test:integration -- -p cover",
|
2022-11-06 01:25:17 -04:00
|
|
|
"predocker:compose:start": "[ -d \"$HOME/.nostr\" ] || mkdir -p $HOME/.nostr",
|
2022-11-06 19:30:12 -05:00
|
|
|
"docker:compose:start": "docker compose up --build --remove-orphans",
|
2022-10-28 20:51:09 -04:00
|
|
|
"docker:compose:stop": "docker compose down",
|
|
|
|
"docker:compose:clean": "docker compose rm",
|
2022-11-06 19:30:12 -05:00
|
|
|
"pretor:docker:compose:start": "mkdir -p $HOME/.nostr/tor/data",
|
|
|
|
"tor:docker:compose:start": "docker compose -f docker-compose.yml -f docker-compose.tor.yml up --build --remove-orphans",
|
|
|
|
"tor:hostname": "cat $HOME/.nostr/tor/data/nostr-ts-relay/hostname",
|
|
|
|
"tor:docker:compose:stop": "docker compose -f docker-compose.yml -f docker-compose.tor.yml down",
|
2022-11-11 20:24:16 -05:00
|
|
|
"docker:integration:run": "docker compose -f ./test/integration/docker-compose.yml run --rm tests",
|
2022-10-28 21:47:43 -04:00
|
|
|
"docker:test:integration": "npm run docker:integration:run -- npm run test:integration",
|
2022-11-11 20:24:16 -05:00
|
|
|
"docker:cover:integration": "npm run docker:integration:run -- npm run cover:integration",
|
|
|
|
"postdocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml down"
|
2022-08-07 01:52:34 +00:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/Cameri/nostr-ts-relay.git"
|
|
|
|
},
|
|
|
|
"keywords": [
|
2022-10-17 04:35:12 +00:00
|
|
|
"nostr",
|
|
|
|
"relay"
|
2022-08-07 01:52:34 +00:00
|
|
|
],
|
|
|
|
"author": "Ricardo Arturo Cabral Mejía",
|
|
|
|
"license": "MIT",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/Cameri/nostr-ts-relay/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/Cameri/nostr-ts-relay#readme",
|
|
|
|
"devDependencies": {
|
2022-10-25 00:28:44 -04:00
|
|
|
"@cucumber/cucumber": "8.7.0",
|
2022-10-28 00:44:30 -04:00
|
|
|
"@cucumber/pretty-formatter": "1.0.0",
|
2022-11-06 00:43:25 -04:00
|
|
|
"@semantic-release/commit-analyzer": "9.0.2",
|
2022-11-08 22:07:35 -05:00
|
|
|
"@semantic-release/git": "10.0.1",
|
2022-11-06 00:43:25 -04:00
|
|
|
"@semantic-release/github": "8.0.6",
|
2022-11-08 22:37:50 -05:00
|
|
|
"@semantic-release/npm": "9.0.1",
|
2022-11-06 00:43:25 -04:00
|
|
|
"@semantic-release/release-notes-generator": "10.0.3",
|
2022-08-07 01:52:34 +00:00
|
|
|
"@types/chai": "^4.3.1",
|
2022-08-29 01:52:40 +00:00
|
|
|
"@types/chai-as-promised": "^7.1.5",
|
2022-10-30 01:36:11 -04:00
|
|
|
"@types/debug": "4.1.7",
|
2022-08-07 01:52:34 +00:00
|
|
|
"@types/mocha": "^9.1.1",
|
|
|
|
"@types/node": "^17.0.24",
|
|
|
|
"@types/pg": "^8.6.5",
|
|
|
|
"@types/ramda": "^0.28.13",
|
|
|
|
"@types/sinon": "^10.0.11",
|
2022-08-14 05:33:57 +00:00
|
|
|
"@types/sinon-chai": "^3.2.8",
|
2022-08-07 01:52:34 +00:00
|
|
|
"@types/ws": "^8.5.3",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
|
|
"@typescript-eslint/parser": "^5.19.0",
|
|
|
|
"chai": "^4.3.6",
|
2022-08-29 01:52:40 +00:00
|
|
|
"chai-as-promised": "^7.1.1",
|
2022-11-06 10:36:34 -05:00
|
|
|
"conventional-changelog-conventionalcommits": "5.0.0",
|
2022-08-07 01:52:34 +00:00
|
|
|
"eslint": "^8.13.0",
|
|
|
|
"mocha": "^9.2.2",
|
2022-08-14 05:33:57 +00:00
|
|
|
"mochawesome": "^7.1.3",
|
|
|
|
"nyc": "^15.1.0",
|
2022-08-07 01:52:34 +00:00
|
|
|
"rimraf": "^3.0.2",
|
2022-11-06 00:43:25 -04:00
|
|
|
"semantic-release": "19.0.5",
|
2022-11-06 01:10:28 -04:00
|
|
|
"semantic-release-telegram": "1.6.0",
|
2022-08-07 01:52:34 +00:00
|
|
|
"sinon-chai": "^3.7.0",
|
2022-08-14 05:33:57 +00:00
|
|
|
"source-map-support": "^0.5.21",
|
2022-10-17 04:35:12 +00:00
|
|
|
"ts-node": "^10.9.1",
|
2022-08-07 01:52:34 +00:00
|
|
|
"ts-node-dev": "^1.1.8",
|
2022-10-17 04:35:12 +00:00
|
|
|
"typescript": "4.6",
|
2022-08-07 01:52:34 +00:00
|
|
|
"uuid": "^8.3.2"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-09-22 21:47:57 +00:00
|
|
|
"@noble/secp256k1": "1.7.0",
|
2022-10-30 01:36:11 -04:00
|
|
|
"debug": "4.3.4",
|
2022-11-13 20:33:17 +00:00
|
|
|
"joi": "17.6.4",
|
2022-11-11 20:40:52 +00:00
|
|
|
"knex": "2.3.0",
|
2022-09-22 21:47:57 +00:00
|
|
|
"pg": "8.8.0",
|
2022-11-11 20:40:56 +00:00
|
|
|
"pg-query-stream": "4.2.4",
|
2022-09-22 21:47:57 +00:00
|
|
|
"ramda": "0.28.0",
|
2022-11-12 20:43:07 -05:00
|
|
|
"redis": "4.5.0",
|
2022-11-14 22:59:23 +00:00
|
|
|
"ws": "8.10.0"
|
2022-08-07 01:52:34 +00:00
|
|
|
}
|
|
|
|
}
|