umwd-components 0.1.243 → 0.1.245

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.
@@ -59,6 +59,7 @@ async function updatePageAction(prevState, formData) {
59
59
  };
60
60
  }
61
61
  const responseData = await pagebuilderService.updatePageService(validatedFields.data);
62
+ console.log("responseData", responseData);
62
63
  if (!responseData) {
63
64
  return {
64
65
  ...prevState,
@@ -31,7 +31,7 @@ async function loginUserService(userData) {
31
31
  const url = new URL("/api/auth/local", baseUrl);
32
32
  try {
33
33
  const response = await fetch(url, {
34
- method: "POST",
34
+ method: "PUT",
35
35
  headers: {
36
36
  "Content-Type": "application/json"
37
37
  },
@@ -14,7 +14,7 @@ async function updatePageService(pageData) {
14
14
  console.log(url);
15
15
  try {
16
16
  const response = await fetch(url, {
17
- method: "POST",
17
+ method: "PUT",
18
18
  headers: {
19
19
  "Content-Type": "application/json"
20
20
  // Add the jwt bearer token here
@@ -57,6 +57,7 @@ async function updatePageAction(prevState, formData) {
57
57
  };
58
58
  }
59
59
  const responseData = await updatePageService(validatedFields.data);
60
+ console.log("responseData", responseData);
60
61
  if (!responseData) {
61
62
  return {
62
63
  ...prevState,
@@ -29,7 +29,7 @@ async function loginUserService(userData) {
29
29
  const url = new URL("/api/auth/local", baseUrl);
30
30
  try {
31
31
  const response = await fetch(url, {
32
- method: "POST",
32
+ method: "PUT",
33
33
  headers: {
34
34
  "Content-Type": "application/json"
35
35
  },
@@ -12,7 +12,7 @@ async function updatePageService(pageData) {
12
12
  console.log(url);
13
13
  try {
14
14
  const response = await fetch(url, {
15
- method: "POST",
15
+ method: "PUT",
16
16
  headers: {
17
17
  "Content-Type": "application/json"
18
18
  // Add the jwt bearer token here
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.243",
3
+ "version": "0.1.245",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -60,6 +60,8 @@ export async function updatePageAction(prevState: any, formData: FormData) {
60
60
 
61
61
  const responseData = await updatePageService(validatedFields.data);
62
62
 
63
+ console.log("responseData", responseData);
64
+
63
65
  if (!responseData) {
64
66
  return {
65
67
  ...prevState,
@@ -37,7 +37,7 @@ export async function loginUserService(userData: LoginUserProps) {
37
37
 
38
38
  try {
39
39
  const response = await fetch(url, {
40
- method: "POST",
40
+ method: "PUT",
41
41
  headers: {
42
42
  "Content-Type": "application/json",
43
43
  },
@@ -16,7 +16,7 @@ export async function updatePageService(pageData: pageDataProps) {
16
16
 
17
17
  try {
18
18
  const response = await fetch(url, {
19
- method: "POST",
19
+ method: "PUT",
20
20
  headers: {
21
21
  "Content-Type": "application/json",
22
22
  // Add the jwt bearer token here