tf-checkout-react-native 1.0.43 → 1.0.45

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/lib/index.js CHANGED
@@ -9665,7 +9665,9 @@ var authorize2 = async (data) => {
9665
9665
  return response.data;
9666
9666
  };
9667
9667
  var register = async (data) => {
9668
- const response = await publicRequest.post("v1/oauth/register-rn", data);
9668
+ const response = await publicRequest.post("v1/oauth/register-rn", data, {
9669
+ headers: { "Content-Type": "multipart/form-data" }
9670
+ });
9669
9671
  return response.data;
9670
9672
  };
9671
9673
  var getProfileData = async () => {
@@ -9682,7 +9684,7 @@ var checkEmailExists = async (email) => {
9682
9684
  const formData = new FormData();
9683
9685
  formData.append("email", email);
9684
9686
  formData.append("is_checkout_flow", "true");
9685
- const baseUrl = ((_a = publicRequest.defaults.baseURL) == null ? void 0 : _a.replace("/api", "")) || "";
9687
+ const baseUrl = CONFIGS.BASE_URL || ((_a = publicRequest.defaults.baseURL) == null ? void 0 : _a.replace("/api", "")) || "";
9686
9688
  const url = `${baseUrl}/ajax/contact-email`;
9687
9689
  const response = await publicRequest.post(
9688
9690
  url,