Skip to content

Commit

Permalink
Merge pull request #123 from ainize-team/release/1.2.2
Browse files Browse the repository at this point in the history
Upgrade version to 1.2.2
  • Loading branch information
yoojinko authored Jun 13, 2024
2 parents e0fd666 + c1d78ee commit 8b0f52d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ainize-team/ainize-js",
"version": "1.2.1",
"version": "1.2.2",
"main": "dist/ainize.js",
"types": "dist/ainize.d.ts",
"scripts": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"typescript": "^4.6.3"
},
"dependencies": {
"@ainblockchain/ain-js": "^1.10.0",
"@ainblockchain/ain-js": "^1.10.2",
"axios": "^0.26.1",
"express": "^4.18.2",
"fast-json-stable-stringify": "^2.1.0",
Expand Down
4 changes: 4 additions & 0 deletions src/handlers/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default class Handler {
return true;
}

isConnected(): boolean {
return this.ain.getEventManager().isConnected();
}

async connect() {
this.checkEventManager();
await this.ain.getEventManager().connect(this.disconnectedCb.bind(this));
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@ainblockchain/ain-js@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@ainblockchain/ain-js/-/ain-js-1.10.0.tgz#2ab91ee9c5f083ef8830e8db528b69c18264aefa"
integrity sha512-4fmL7vaLBesY2de3aTtJTpjT0MO5ezeQSUlZcU5bjm5aY9LCFfCxSy3vkYrAROC7KstNODSfWjzMlpoc9afrWA==
"@ainblockchain/ain-js@^1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@ainblockchain/ain-js/-/ain-js-1.10.2.tgz#c0ed1e230a6c2b3703169a5c243c173944004bdd"
integrity sha512-2lHYnvbjEHm3/K5Lw5wCNVBtj61Z1p1u+FbveXMg4vDCwUnuYwvCrtZjTxxv13MXHoJ6izdkkA3X93GWtQhpow==
dependencies:
"@ainblockchain/ain-util" "^1.1.9"
"@types/node" "^12.7.3"
Expand Down

0 comments on commit 8b0f52d

Please sign in to comment.