ide-assi 0.732.0 → 0.733.0

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.
@@ -202465,13 +202465,15 @@ class IdeFetch {
202465
202465
 
202466
202466
  return fetch(url, options)
202467
202467
  .then(res => {
202468
+ console.log(res);
202468
202469
  if (url !== "/api/source/query") ninegrid.loading.hide();
202470
+ if (!res) return null;
202469
202471
  if (!res.ok) {
202470
202472
  return res.text().then(text => {
202471
202473
  throw new Error(`API 오류 (${res.status}): ${text}`);
202472
202474
  });
202473
202475
  }
202474
- return res ? res.json() : null;
202476
+ return res.json();
202475
202477
  })
202476
202478
  .catch(err => {
202477
202479
  ninegrid.loading.hide();
@@ -202461,13 +202461,15 @@ class IdeFetch {
202461
202461
 
202462
202462
  return fetch(url, options)
202463
202463
  .then(res => {
202464
+ console.log(res);
202464
202465
  if (url !== "/api/source/query") ninegrid.loading.hide();
202466
+ if (!res) return null;
202465
202467
  if (!res.ok) {
202466
202468
  return res.text().then(text => {
202467
202469
  throw new Error(`API 오류 (${res.status}): ${text}`);
202468
202470
  });
202469
202471
  }
202470
- return res ? res.json() : null;
202472
+ return res.json();
202471
202473
  })
202472
202474
  .catch(err => {
202473
202475
  ninegrid.loading.hide();
@@ -20,13 +20,15 @@ export class IdeFetch {
20
20
 
21
21
  return fetch(url, options)
22
22
  .then(res => {
23
+ console.log(res);
23
24
  if (url !== "/api/source/query") ninegrid.loading.hide();
25
+ if (!res) return null;
24
26
  if (!res.ok) {
25
27
  return res.text().then(text => {
26
28
  throw new Error(`API 오류 (${res.status}): ${text}`);
27
29
  });
28
30
  }
29
- return res ? res.json() : null;
31
+ return res.json();
30
32
  })
31
33
  .catch(err => {
32
34
  ninegrid.loading.hide();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.732.0",
4
+ "version": "0.733.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -20,13 +20,15 @@ export class IdeFetch {
20
20
 
21
21
  return fetch(url, options)
22
22
  .then(res => {
23
+ console.log(res);
23
24
  if (url !== "/api/source/query") ninegrid.loading.hide();
25
+ if (!res) return null;
24
26
  if (!res.ok) {
25
27
  return res.text().then(text => {
26
28
  throw new Error(`API 오류 (${res.status}): ${text}`);
27
29
  });
28
30
  }
29
- return res ? res.json() : null;
31
+ return res.json();
30
32
  })
31
33
  .catch(err => {
32
34
  ninegrid.loading.hide();