@itpay/cli 0.1.5 → 0.1.6
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.
- package/bin/itp +2 -2
- package/package.json +1 -1
package/bin/itp
CHANGED
|
@@ -3706,8 +3706,8 @@ function coreURL(pathname, flags = {}) {
|
|
|
3706
3706
|
return `${coreApiBase(flags)}${pathname.startsWith("/") ? "" : "/"}${pathname}`;
|
|
3707
3707
|
}
|
|
3708
3708
|
|
|
3709
|
-
function coreApiBase(flags = {}) {
|
|
3710
|
-
const base = flags.api_base || flags.core_api_base || process.env.ITPAY_API_BASE || process.env.ITPAY_CORE_API_BASE || process.env.ITPAY_CORE_BASE_URL || "https://dev.api.itpay.ai";
|
|
3709
|
+
function coreApiBase(flags = {}, config = readConfig()) {
|
|
3710
|
+
const base = flags.api_base || flags.core_api_base || process.env.ITPAY_API_BASE || process.env.ITPAY_CORE_API_BASE || process.env.ITPAY_CORE_BASE_URL || config.api_base || "https://dev.api.itpay.ai";
|
|
3711
3711
|
return String(base).replace(/\/$/, "");
|
|
3712
3712
|
}
|
|
3713
3713
|
|