@tchain/tcabci-read-js-client 1.0.8 → 1.0.9

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
@@ -111,7 +111,11 @@ class TCAbciClient {
111
111
  order_field: orderField,
112
112
  order_by: orderBy
113
113
  })
114
- .then(res => { return {txs: res.data.data, total_count: res.data.data.length} })
114
+ .then(res => {
115
+ return {
116
+ txs: res.data.data, total_count: res.data.total_count
117
+ }
118
+ })
115
119
  .catch(e => {
116
120
  switch (e.response.status) {
117
121
  case 400:
package/client_test.js CHANGED
@@ -122,7 +122,7 @@ describe("TCAbciClient TESTS", () => {
122
122
  })
123
123
  .then(data => {
124
124
  unitJS.value(data.txs).hasLength(1)
125
- unitJS.assert.equal(data.total_count, 1)
125
+ unitJS.value(data.total_count).isGreaterThan(0)
126
126
  done()
127
127
  })
128
128
  .catch(err => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tchain/tcabci-read-js-client",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "TransferChain Fastest Read Network WebSocket Client",
5
5
  "main": "client.js",
6
6
  "type": "commonjs",