diff --git a/package.json b/package.json index 24138c9..7a8903a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "typescript": "^4.6.3" }, "dependencies": { - "@ainblockchain/ain-js": "^1.6.3", + "@ainblockchain/ain-js": "^1.8.0", "axios": "^0.26.1", "express": "^4.18.2", "fast-json-stable-stringify": "^2.1.0", diff --git a/src/handlers/handler.ts b/src/handlers/handler.ts index 8ec99d5..b2b6793 100644 --- a/src/handlers/handler.ts +++ b/src/handlers/handler.ts @@ -21,7 +21,7 @@ export default class Handler { async connect() { this.checkEventManager(); - await this.ain.getEventManager().connect({},this.disconnectedCb.bind(this)); + await this.ain.getEventManager().connect(this.disconnectedCb.bind(this)); console.log('connected'); }; diff --git a/yarn.lock b/yarn.lock index f3d2629..3caf8c6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,20 +2,22 @@ # yarn lockfile v1 -"@ainblockchain/ain-js@^1.6.3": - version "1.6.3" - resolved "https://registry.yarnpkg.com/@ainblockchain/ain-js/-/ain-js-1.6.3.tgz#56ca744a6bf5e558f2acba75f106e8f88f5426ba" - integrity sha512-rdQfT6jcqcF4VP1twwMQkCijZ6SN1RewTjU1D35rJ7ZnRQjoIxekkodkdcIDVvyUEpR6A6iuT9SSSTz9KUMNbA== +"@ainblockchain/ain-js@^1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@ainblockchain/ain-js/-/ain-js-1.8.0.tgz#95273afd97118a673dbddb1fe6bd10d1d0ac99ae" + integrity sha512-LJ/bt+Ne8nfjn3hPzj8k44IsYnRvzW1KGhVC4iGk6+7UkpHkcS3yc8AcIpN9yfOra05erPUjD8xPIohbN9cSqQ== dependencies: "@ainblockchain/ain-util" "^1.1.9" "@types/node" "^12.7.3" "@types/randombytes" "^2.0.0" "@types/semver" "^7.3.4" + "@types/ws" "8.5.3" axios "^0.21.4" bip39 "^3.0.2" browserify-cipher "^1.0.1" eventemitter3 "^4.0.0" hdkey "^1.1.1" + isomorphic-ws "^5.0.0" lodash "^4.17.20" node-seal "^4.5.7" pbkdf2 "^3.0.17" @@ -24,7 +26,7 @@ semver "^6.3.0" url-parse "^1.4.7" uuid "^3.3.3" - ws "^8.2.3" + ws "^8.16.0" "@ainblockchain/ain-util@^1.1.9": version "1.1.9" @@ -752,6 +754,13 @@ resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz" integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== +"@types/ws@8.5.3": + version "8.5.3" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d" + integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w== + dependencies: + "@types/node" "*" + "@types/yargs-parser@*": version "21.0.0" resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz" @@ -1958,6 +1967,11 @@ isexe@^2.0.0: resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +isomorphic-ws@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== + istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz" @@ -3572,10 +3586,10 @@ ws@^7.4.6: resolved "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -ws@^8.2.3: - version "8.13.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== +ws@^8.16.0: + version "8.16.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.16.0.tgz#d1cd774f36fbc07165066a60e40323eab6446fd4" + integrity sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ== xml-name-validator@^3.0.0: version "3.0.0"