@riocrypto/common-server 1.0.1668 → 1.0.1670

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.
@@ -24,7 +24,7 @@ class ClusterClient {
24
24
  baseURL: baseUrl,
25
25
  headers: {
26
26
  Host: process.env.RIO_ENV === common_1.RioEnv.Local
27
- ? "localhost"
27
+ ? "http://localhost"
28
28
  : process.env.RIO_ENV === common_1.RioEnv.Development
29
29
  ? "dev.riotransfer.co"
30
30
  : process.env.RIO_ENV === common_1.RioEnv.Staging
@@ -258,13 +258,15 @@ const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* ()
258
258
  if (!CLUSTER_API_KEY) {
259
259
  throw new common_1.SecretManagerError();
260
260
  }
261
- const baseUrl = process.env.RIO_ENV === common_1.RioEnv.Development
262
- ? "https://dev.riotransfer.co"
263
- : process.env.RIO_ENV === common_1.RioEnv.Production
264
- ? "https://www.riotransfer.co"
265
- : process.env.RIO_ENV === common_1.RioEnv.Staging
266
- ? "https://staging.riotransfer.co"
267
- : "https://sandbox.riotransfer.co";
261
+ const baseUrl = process.env.RIO_ENV === common_1.RioEnv.Local
262
+ ? "http://localhost"
263
+ : process.env.RIO_ENV === common_1.RioEnv.Development
264
+ ? "https://dev.riotransfer.co"
265
+ : process.env.RIO_ENV === common_1.RioEnv.Production
266
+ ? "https://www.riotransfer.co"
267
+ : process.env.RIO_ENV === common_1.RioEnv.Staging
268
+ ? "https://staging.riotransfer.co"
269
+ : "https://sandbox.riotransfer.co";
268
270
  return new ClusterClient(baseUrl, CLUSTER_API_KEY);
269
271
  });
270
272
  exports.buildClusterClient = buildClusterClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1668",
3
+ "version": "1.0.1670",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",