@tchain/tcabci-read-js-client 2.7.10 → 2.7.12

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.
package/client.js CHANGED
@@ -57,7 +57,7 @@ export default class TCaBCIClient {
57
57
  _connected = false
58
58
  _chainName = 'transferchain'
59
59
  _chainVersion = 'v1'
60
- _version = `v2.7.10`
60
+ _version = `v2.7.12`
61
61
  /**
62
62
  * @type {?SuccessCallback}
63
63
  */
package/http.js CHANGED
@@ -20,9 +20,8 @@ export class HTTP {
20
20
  */
21
21
  async request(uri, req) {
22
22
  req.cache = 'no-cache'
23
- req.headers = {
24
- Client: `tcabaci-read-js-client/${this._version}`
25
- }
23
+ if (!req.headers) req.headers = {}
24
+ req.headers['Client'] = `tcabaci-read-js-client/${this._version}`
26
25
  req.priority = 'high'
27
26
 
28
27
  return this._breaker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tchain/tcabci-read-js-client",
3
- "version": "2.7.10",
3
+ "version": "2.7.12",
4
4
  "description": "TransferChain Fastest Read Network WebSocket Client",
5
5
  "homepage": "https://github.com/TransferChain/tcabci-read-js-client#readme",
6
6
  "bugs": {
@@ -28,6 +28,14 @@
28
28
  ],
29
29
  "type": "module",
30
30
  "main": "client.js",
31
+ "scripts": {
32
+ "format": "oxfmt ./",
33
+ "lint": "oxfmt ./ && oxlint --fix ./",
34
+ "lint:check": "oxfmt --check ./ && oxlint ./",
35
+ "test": "export NODE_ENV=test || SET \"NODE_ENV=test\" && mocha --require esm --timeout 5000",
36
+ "test:all": "export NODE_ENV=test || SET \"NODE_ENV=test\" && mocha --require esm --timeout 5000 '*_test.js'",
37
+ "test:coverage": "export NODE_ENV=test || SET \"NODE_ENV=test\" && nyc --reporter=text mocha --require esm --timeout 5000"
38
+ },
31
39
  "dependencies": {
32
40
  "@streetbyters/js-debug": "^0.1.3",
33
41
  "cockatiel": "^4.0.0",
@@ -42,16 +50,9 @@
42
50
  "mocha": "^11.8.0",
43
51
  "nyc": "^18.0.0",
44
52
  "oxfmt": "^0.63.0",
45
- "oxlint": "^1.80.0",
53
+ "oxlint": "^1.84.0",
46
54
  "unit.js": "^2.1.1",
47
55
  "ws": "^8.21.3"
48
56
  },
49
- "scripts": {
50
- "format": "oxfmt ./",
51
- "lint": "oxfmt ./ && oxlint --fix ./",
52
- "lint:check": "oxfmt --check ./ && oxlint ./",
53
- "test": "export NODE_ENV=test || SET \"NODE_ENV=test\" && mocha --require esm --timeout 5000",
54
- "test:all": "export NODE_ENV=test || SET \"NODE_ENV=test\" && mocha --require esm --timeout 5000 '*_test.js'",
55
- "test:coverage": "export NODE_ENV=test || SET \"NODE_ENV=test\" && nyc --reporter=text mocha --require esm --timeout 5000"
56
- }
57
- }
57
+ "packageManager": "pnpm@12.5.1"
58
+ }
@@ -15,7 +15,7 @@ export class Options {
15
15
  _protocols = []
16
16
  _customWS
17
17
  _endpoints = ['ws', 'longpoll']
18
- _version = `v2.7.10`
18
+ _version = `v2.7.12`
19
19
 
20
20
  _maxConnectionDelay = 10000
21
21
  _minReconnectionDelay = 1000 + Math.random() * 4000