@tchain/tcabci-read-js-client 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +3 -1
  2. package/package.json +3 -3
package/client.js CHANGED
@@ -45,7 +45,7 @@ export default class TCaBCIClient {
45
45
  subscribed = false
46
46
  subscribedAddresses = []
47
47
  connected = false
48
- version = 'v2.2.0'
48
+ version = 'v2.2.2'
49
49
  /**
50
50
  * @type {?successCallback}
51
51
  */
@@ -442,6 +442,7 @@ export default class TCaBCIClient {
442
442
  this.ws.onerror = (event) => {
443
443
  this.setConnected(false)
444
444
  this.setSubscribed(false)
445
+ this.setSubscribeAddresses([], false)
445
446
  this.callErrorCallback(event)
446
447
 
447
448
  reject(event)
@@ -462,6 +463,7 @@ export default class TCaBCIClient {
462
463
  this.ws.onclose = (event) => {
463
464
  this.setConnected(false)
464
465
  this.setSubscribed(false)
466
+ this.setSubscribeAddresses([], false)
465
467
  this.callCloseCallback(event)
466
468
 
467
469
  resolve(event)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tchain/tcabci-read-js-client",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "TransferChain Fastest Read Network WebSocket Client",
5
5
  "main": "client.js",
6
6
  "type": "module",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "homepage": "https://github.com/TransferChain/tcabci-read-js-client#readme",
25
25
  "devDependencies": {
26
- "eslint": "^9.13.0",
26
+ "eslint": "^9.15.0",
27
27
  "eslint-config-prettier": "^9.1.0",
28
28
  "eslint-plugin-import": "^2.31.0",
29
29
  "eslint-plugin-node": "^11.1.0",
30
30
  "eslint-plugin-promise": "^7.1.0",
31
31
  "express": "^4.21.1",
32
- "mocha": "^10.7.3",
32
+ "mocha": "^10.8.2",
33
33
  "nyc": "^17.1.0",
34
34
  "prettier": "^3.3.3",
35
35
  "unit.js": "^2.1.1",