@riocrypto/common 1.0.1682 → 1.0.1683
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getBaseUrl: () => "https://app.dev.rio.trade" | "https://app.rio.trade" | "https://app.sandbox.rio.trade" | "https://app.local.rio.trade";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBaseUrl = void 0;
|
|
4
|
+
const rio_env_1 = require("../types/rio-env");
|
|
5
|
+
const getBaseUrl = () => {
|
|
6
|
+
return process.env.RIO_ENV === rio_env_1.RioEnv.Development
|
|
7
|
+
? "https://app.dev.rio.trade"
|
|
8
|
+
: process.env.RIO_ENV === rio_env_1.RioEnv.Production
|
|
9
|
+
? "https://app.rio.trade"
|
|
10
|
+
: process.env.RIO_ENV === rio_env_1.RioEnv.Sandbox
|
|
11
|
+
? "https://app.sandbox.rio.trade"
|
|
12
|
+
: "https://app.local.rio.trade";
|
|
13
|
+
};
|
|
14
|
+
exports.getBaseUrl = getBaseUrl;
|
package/build/index.d.ts
CHANGED
|
@@ -312,6 +312,7 @@ export * from "./helpers/validate-business-name";
|
|
|
312
312
|
export * from "./helpers/get-address-for-testing";
|
|
313
313
|
export * from "./helpers/humanize-admin-auth-role";
|
|
314
314
|
export * from "./helpers/humanize-auth-role";
|
|
315
|
+
export * from "./helpers/get-base-url";
|
|
315
316
|
export * from "./clients/rio-client";
|
|
316
317
|
export * from "./clients/rio-admin-client";
|
|
317
318
|
export * from "./constants/mexico-fiscal-regimens";
|
package/build/index.js
CHANGED
|
@@ -328,6 +328,7 @@ __exportStar(require("./helpers/validate-business-name"), exports);
|
|
|
328
328
|
__exportStar(require("./helpers/get-address-for-testing"), exports);
|
|
329
329
|
__exportStar(require("./helpers/humanize-admin-auth-role"), exports);
|
|
330
330
|
__exportStar(require("./helpers/humanize-auth-role"), exports);
|
|
331
|
+
__exportStar(require("./helpers/get-base-url"), exports);
|
|
331
332
|
__exportStar(require("./clients/rio-client"), exports);
|
|
332
333
|
__exportStar(require("./clients/rio-admin-client"), exports);
|
|
333
334
|
__exportStar(require("./constants/mexico-fiscal-regimens"), exports);
|