ide-assi 0.733.0 → 0.734.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.
@@ -202447,8 +202447,12 @@ window.jQuery = window.$ = $$1;
202447
202447
 
202448
202448
  class IdeFetch {
202449
202449
 
202450
+ static contextPath = "";
202451
+
202450
202452
  static #request = (method, url, data = {}) => {
202451
202453
 
202454
+ url = `${IdeFetch.contextPath}${url}`;
202455
+
202452
202456
  ninegrid.loading.show();
202453
202457
  //console.log(method, url, data);
202454
202458
 
@@ -202465,9 +202469,9 @@ class IdeFetch {
202465
202469
 
202466
202470
  return fetch(url, options)
202467
202471
  .then(res => {
202468
- console.log(res);
202472
+
202469
202473
  if (url !== "/api/source/query") ninegrid.loading.hide();
202470
- if (!res) return null;
202474
+ //if (!res) return null;
202471
202475
  if (!res.ok) {
202472
202476
  return res.text().then(text => {
202473
202477
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -202443,8 +202443,12 @@ window.jQuery = window.$ = $$1;
202443
202443
 
202444
202444
  class IdeFetch {
202445
202445
 
202446
+ static contextPath = "";
202447
+
202446
202448
  static #request = (method, url, data = {}) => {
202447
202449
 
202450
+ url = `${IdeFetch.contextPath}${url}`;
202451
+
202448
202452
  ninegrid.loading.show();
202449
202453
  //console.log(method, url, data);
202450
202454
 
@@ -202461,9 +202465,9 @@ class IdeFetch {
202461
202465
 
202462
202466
  return fetch(url, options)
202463
202467
  .then(res => {
202464
- console.log(res);
202468
+
202465
202469
  if (url !== "/api/source/query") ninegrid.loading.hide();
202466
- if (!res) return null;
202470
+ //if (!res) return null;
202467
202471
  if (!res.ok) {
202468
202472
  return res.text().then(text => {
202469
202473
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -2,8 +2,12 @@ import ninegrid from "ninegrid2";
2
2
 
3
3
  export class IdeFetch {
4
4
 
5
+ static contextPath = "";
6
+
5
7
  static #request = (method, url, data = {}) => {
6
8
 
9
+ url = `${IdeFetch.contextPath}${url}`;
10
+
7
11
  ninegrid.loading.show();
8
12
  //console.log(method, url, data);
9
13
 
@@ -20,9 +24,9 @@ export class IdeFetch {
20
24
 
21
25
  return fetch(url, options)
22
26
  .then(res => {
23
- console.log(res);
27
+
24
28
  if (url !== "/api/source/query") ninegrid.loading.hide();
25
- if (!res) return null;
29
+ //if (!res) return null;
26
30
  if (!res.ok) {
27
31
  return res.text().then(text => {
28
32
  throw new Error(`API 오류 (${res.status}): ${text}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.733.0",
4
+ "version": "0.734.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -2,8 +2,12 @@ import ninegrid from "ninegrid2";
2
2
 
3
3
  export class IdeFetch {
4
4
 
5
+ static contextPath = "";
6
+
5
7
  static #request = (method, url, data = {}) => {
6
8
 
9
+ url = `${IdeFetch.contextPath}${url}`;
10
+
7
11
  ninegrid.loading.show();
8
12
  //console.log(method, url, data);
9
13
 
@@ -20,9 +24,9 @@ export class IdeFetch {
20
24
 
21
25
  return fetch(url, options)
22
26
  .then(res => {
23
- console.log(res);
27
+
24
28
  if (url !== "/api/source/query") ninegrid.loading.hide();
25
- if (!res) return null;
29
+ //if (!res) return null;
26
30
  if (!res.ok) {
27
31
  return res.text().then(text => {
28
32
  throw new Error(`API 오류 (${res.status}): ${text}`);