@riocrypto/common 1.0.1164 → 1.0.1166

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.
@@ -13,6 +13,10 @@ exports.RioAdminClient = void 0;
13
13
  class RioAdminClient {
14
14
  constructor(axios) {
15
15
  this.axios = axios;
16
+ console.log("process.env.NEXT_PUBLIC_RUNNING_LOCAL", process.env.NEXT_PUBLIC_RUNNING_LOCAL);
17
+ if (process.env.NEXT_PUBLIC_RUNNING_LOCAL === "true") {
18
+ this.axios.defaults.baseURL = "https://dev.riotransfer.co";
19
+ }
16
20
  axios.interceptors.request.use((config) => {
17
21
  // Exclude specific cookies from being sent
18
22
  if (config.headers && config.headers.Cookie) {
@@ -13,6 +13,10 @@ exports.RioClient = void 0;
13
13
  class RioClient {
14
14
  constructor(axios) {
15
15
  this.axios = axios;
16
+ console.log("process.env.NEXT_PUBLIC_RUNNING_LOCAL", process.env.NEXT_PUBLIC_RUNNING_LOCAL);
17
+ if (process.env.NEXT_PUBLIC_RUNNING_LOCAL === "true") {
18
+ this.axios.defaults.baseURL = "https://dev.riotransfer.co";
19
+ }
16
20
  axios.interceptors.request.use((config) => {
17
21
  // Exclude specific cookie from being sent
18
22
  if (config.headers && config.headers.Cookie) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1164",
3
+ "version": "1.0.1166",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",