@riocrypto/common-server 1.0.1143 → 1.0.1144

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.
@@ -157,10 +157,10 @@ class BitsoClient {
157
157
  };
158
158
  const signedRequestConfig = this.signRequest(requestConfig);
159
159
  const { data } = yield (0, axios_1.default)(signedRequestConfig);
160
- if (!data.success || !data.payload.length) {
160
+ if (!data.success) {
161
161
  throw new Error("Error getting Bitso order trades");
162
162
  }
163
- return data.payload;
163
+ return data.payload || [];
164
164
  });
165
165
  }
166
166
  cancelOrder(oid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1143",
3
+ "version": "1.0.1144",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",