@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 +1 -1
- package/http.js +2 -3
- package/package.json +12 -11
- package/websocketOptions.js +1 -1
package/client.js
CHANGED
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
|
-
|
|
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.
|
|
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.
|
|
53
|
+
"oxlint": "^1.84.0",
|
|
46
54
|
"unit.js": "^2.1.1",
|
|
47
55
|
"ws": "^8.21.3"
|
|
48
56
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
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
|
+
}
|
package/websocketOptions.js
CHANGED