@daeryun/dr_components 0.3.74 → 0.3.76

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.
@@ -20,11 +20,11 @@ const addMyCaseQuestion = (_a) => __awaiter(void 0, [_a], void 0, function* ({ j
20
20
  },
21
21
  body: JSON.stringify({ content })
22
22
  });
23
- if (!response.ok) {
24
- throw new Error('Network response was not ok');
25
- }
26
- const data = yield response.json();
27
- return data;
23
+ // if (!response.result) {
24
+ // throw new Error('Network response was not ok');
25
+ // }
26
+ // const data = await response.json();
27
+ return response;
28
28
  }
29
29
  catch (error) {
30
30
  console.error('Failed to fetch case:', error);
@@ -12,11 +12,11 @@ const addMyCaseQuestion = async ({ jwt, id, content }: { jwt: string; id: string
12
12
  },
13
13
  body: JSON.stringify({ content })
14
14
  });
15
- if (!response.ok) {
16
- throw new Error('Network response was not ok');
17
- }
18
- const data = await response.json();
19
- return data;
15
+ // if (!response.result) {
16
+ // throw new Error('Network response was not ok');
17
+ // }
18
+ // const data = await response.json();
19
+ return response;
20
20
  } catch (error) {
21
21
  console.error('Failed to fetch case:', error);
22
22
  throw error;
@@ -19,11 +19,11 @@ const getCase = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id })
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -11,11 +11,11 @@ const getCase = async ({ jwt, id }: { jwt: string; id: string }) => {
11
11
  Authorization: `${jwt}`
12
12
  }
13
13
  });
14
- if (!response.ok) {
15
- throw new Error('Network response was not ok');
16
- }
17
- const data = await response.json();
18
- return data;
14
+ // if (!response.ok) {
15
+ // throw new Error('Network response was not ok');
16
+ // }
17
+ // const data = await response.json();
18
+ return response;
19
19
  } catch (error) {
20
20
  console.error('Failed to fetch case:', error);
21
21
  throw error;
@@ -19,11 +19,11 @@ const getCaseList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, si
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -21,11 +21,11 @@ const getCaseList = async ({
21
21
  Authorization: `${jwt}`
22
22
  }
23
23
  });
24
- if (!response.ok) {
25
- throw new Error('Network response was not ok');
26
- }
27
- const data = await response.json();
28
- return data;
24
+ // if (!response.ok) {
25
+ // throw new Error('Network response was not ok');
26
+ // }
27
+ // const data = await response.json();
28
+ return response;
29
29
  } catch (error) {
30
30
  console.error('Failed to fetch case:', error);
31
31
  throw error;
@@ -19,11 +19,11 @@ const getCourtFileList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jw
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -11,11 +11,11 @@ const getCourtFileList = async ({ jwt, id }: { jwt: string; id: string }) => {
11
11
  Authorization: `${jwt}`
12
12
  }
13
13
  });
14
- if (!response.ok) {
15
- throw new Error('Network response was not ok');
16
- }
17
- const data = await response.json();
18
- return data;
14
+ // if (!response.ok) {
15
+ // throw new Error('Network response was not ok');
16
+ // }
17
+ // const data = await response.json();
18
+ return response;
19
19
  } catch (error) {
20
20
  console.error('Failed to fetch case:', error);
21
21
  throw error;
@@ -19,11 +19,11 @@ const getMyCaseQuestion = (_a) => __awaiter(void 0, [_a], void 0, function* ({ j
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -11,11 +11,11 @@ const getMyCaseQuestion = async ({ jwt, id, page, size }: { jwt: string; id: str
11
11
  Authorization: `${jwt}`
12
12
  }
13
13
  });
14
- if (!response.ok) {
15
- throw new Error('Network response was not ok');
16
- }
17
- const data = await response.json();
18
- return data;
14
+ // if (!response.ok) {
15
+ // throw new Error('Network response was not ok');
16
+ // }
17
+ // const data = await response.json();
18
+ return response;
19
19
  } catch (error) {
20
20
  console.error('Failed to fetch case:', error);
21
21
  throw error;
@@ -19,11 +19,11 @@ const getMyFileList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt,
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -11,11 +11,11 @@ const getMyFileList = async ({ jwt, id }: { jwt: string; id: string }) => {
11
11
  Authorization: `${jwt}`
12
12
  }
13
13
  });
14
- if (!response.ok) {
15
- throw new Error('Network response was not ok');
16
- }
17
- const data = await response.json();
18
- return data;
14
+ // if (!response.ok) {
15
+ // throw new Error('Network response was not ok');
16
+ // }
17
+ // const data = await response.json();
18
+ return response;
19
19
  } catch (error) {
20
20
  console.error('Failed to fetch case:', error);
21
21
  throw error;
@@ -19,11 +19,11 @@ const getTimeLine = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id
19
19
  Authorization: `${jwt}`
20
20
  }
21
21
  });
22
- if (!response.ok) {
23
- throw new Error('Network response was not ok');
24
- }
25
- const data = yield response.json();
26
- return data;
22
+ // if (!response.ok) {
23
+ // throw new Error('Network response was not ok');
24
+ // }
25
+ // const data = await response.json();
26
+ return response;
27
27
  }
28
28
  catch (error) {
29
29
  console.error('Failed to fetch case:', error);
@@ -11,11 +11,11 @@ const getTimeLine = async ({ jwt, id }: { jwt: string; id: string }) => {
11
11
  Authorization: `${jwt}`
12
12
  }
13
13
  });
14
- if (!response.ok) {
15
- throw new Error('Network response was not ok');
16
- }
17
- const data = await response.json();
18
- return data;
14
+ // if (!response.ok) {
15
+ // throw new Error('Network response was not ok');
16
+ // }
17
+ // const data = await response.json();
18
+ return response;
19
19
  } catch (error) {
20
20
  console.error('Failed to fetch case:', error);
21
21
  throw error;