Dependency updates and bugfix

This commit is contained in:
Djuri Baars 2022-08-05 17:23:49 +02:00
parent 67d77156ce
commit 005ed70244
3 changed files with 529 additions and 428 deletions

View File

@ -17,35 +17,35 @@
"cross-fetch": "3.1.5", "cross-fetch": "3.1.5",
"dotenv": "16.0.1", "dotenv": "16.0.1",
"fastify": "^3.29.1", "fastify": "^3.29.1",
"fastify-decorators": "^3.12.0", "fastify-decorators": "^3.13.1",
"fastify-plugin": "^3.0.1", "fastify-plugin": "^3.0.1",
"fastify-socket.io": "^3.0.0", "fastify-socket.io": "^3.0.0",
"ioredis": "^5.1.0", "ioredis": "^5.2.2",
"node-fetch": "3.2.6", "node-fetch": "3.2.10",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rxjs": "^7.5.5", "rxjs": "^7.5.6",
"socket.io": "^4.5.1", "socket.io": "^4.5.1",
"socks-proxy-agent": "^7.0.0", "socks-proxy-agent": "^7.0.0",
"typescript": "^4.7.4", "typescript": "^4.7.4",
"ws": "^8.8.0" "ws": "8.8.1"
}, },
"devDependencies": { "devDependencies": {
"@shopify/eslint-plugin": "^41.3.1", "@shopify/eslint-plugin": "^41.3.1",
"@types/jest": "^28.1.4", "@types/jest": "^28.1.6",
"@types/node": "^17.0.45", "@types/node": "^17.0.45",
"@typescript-eslint/eslint-plugin": "^5.30.4", "@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.30.4", "@typescript-eslint/parser": "^5.32.0",
"axios-mock-adapter": "^1.21.1", "axios-mock-adapter": "^1.21.1",
"concurrently": "^7.2.2", "concurrently": "^7.3.0",
"eslint": "^8.19.0", "eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"fastify-tsconfig": "^1.0.1", "fastify-tsconfig": "^1.0.1",
"jest": "^28.1.2", "jest": "^28.1.3",
"jest-websocket-mock": "^2.3.0", "jest-websocket-mock": "^2.3.0",
"mock-socket": "^9.1.5", "mock-socket": "^9.1.5",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"ts-jest": "^28.0.5", "ts-jest": "^28.0.7",
"ts-node": "^10.8.2" "ts-node": "^10.9.1"
}, },
"scripts": { "scripts": {
"start": "ts-node src/server.ts", "start": "ts-node src/server.ts",

View File

@ -75,6 +75,8 @@ interface GraphUpdateResult {
}; };
} }
let initalized = false
/** /**
* Responsible for connecting to LND in several ways * Responsible for connecting to LND in several ways
*/ */
@ -93,6 +95,10 @@ export class LndService {
@Initializer() @Initializer()
init() { init() {
if (initalized)
return
initalized = true
this.lndRestApiWsUrl = process.env.LND_REST_API_WS || 'ws://localhost:8080'; this.lndRestApiWsUrl = process.env.LND_REST_API_WS || 'ws://localhost:8080';
this.lndRestApiUrl = process.env.LND_REST_API || 'http://localhost:8080'; this.lndRestApiUrl = process.env.LND_REST_API || 'http://localhost:8080';

925
yarn.lock

File diff suppressed because it is too large Load Diff