@riocrypto/common-server 1.0.1149 → 1.0.1151

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,7 +157,7 @@ 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");
162
162
  }
163
163
  return data.payload;
@@ -269,7 +269,8 @@ const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
269
269
  throw new common_1.SecretManagerError();
270
270
  }
271
271
  const env = process.env.RIO_ENV === common_1.RioEnv.Production ||
272
- process.env.RIO_ENV === common_1.RioEnv.Staging
272
+ process.env.RIO_ENV === common_1.RioEnv.Staging ||
273
+ process.env.RIO_ENV === common_1.RioEnv.Development
273
274
  ? "production"
274
275
  : "sandbox";
275
276
  return new BitsoClient(BITSO_API_KEY, BITSO_API_SECRET, env);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1149",
3
+ "version": "1.0.1151",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",