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