@yosle/tropipayjs
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -486,3 +486,2 @@ 'use strict'; | ||
static expiresIn; | ||
static expiresIn; | ||
serverMode; | ||
@@ -527,7 +526,2 @@ hooks; | ||
baseURL: config.customTropipayUrl || tpp_env, | ||
const tpp_env = this.serverMode === "Production" | ||
? "https://www.tropipay.com" | ||
: "https://tropipay-dev.herokuapp.com"; | ||
this.request = axios__default["default"].create({ | ||
baseURL: config.customTropipayUrl || tpp_env, | ||
headers: { | ||
@@ -541,3 +535,3 @@ "Content-Type": "application/json", | ||
this.loginRequest = axios__default["default"].create({ | ||
baseURL: tpp_env, | ||
baseURL: config.customTropipayUrl || tpp_env, | ||
headers: { | ||
@@ -544,0 +538,0 @@ "Content-Type": "application/json", |
{ | ||
"name": "@yosle/tropipayjs", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "Javascript / Typescript SDK for the Tropipay API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -90,3 +90,3 @@ /** | ||
this.loginRequest = axios.create({ | ||
baseURL: tpp_env, | ||
baseURL: config.customTropipayUrl || tpp_env, | ||
headers: { | ||
@@ -93,0 +93,0 @@ "Content-Type": "application/json", |
139659
3717