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.mjs CHANGED
@@ -9588,7 +9588,9 @@ var authorize2 = async (data) => {
9588
9588
  return response.data;
9589
9589
  };
9590
9590
  var register = async (data) => {
9591
- const response = await publicRequest.post("v1/oauth/register-rn", data);
9591
+ const response = await publicRequest.post("v1/oauth/register-rn", data, {
9592
+ headers: { "Content-Type": "multipart/form-data" }
9593
+ });
9592
9594
  return response.data;
9593
9595
  };
9594
9596
  var getProfileData = async () => {
@@ -9605,7 +9607,7 @@ var checkEmailExists = async (email) => {
9605
9607
  const formData = new FormData();
9606
9608
  formData.append("email", email);
9607
9609
  formData.append("is_checkout_flow", "true");
9608
- const baseUrl = ((_a = publicRequest.defaults.baseURL) == null ? void 0 : _a.replace("/api", "")) || "";
9610
+ const baseUrl = CONFIGS.BASE_URL || ((_a = publicRequest.defaults.baseURL) == null ? void 0 : _a.replace("/api", "")) || "";
9609
9611
  const url = `${baseUrl}/ajax/contact-email`;
9610
9612
  const response = await publicRequest.post(
9611
9613
  url,