@ninebone/util 1.0.33 → 1.0.35
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/dist/nine-util.js +9 -3
- package/dist/nine-util.js.map +1 -1
- package/dist/nine-util.umd.js +1 -1
- package/dist/nine-util.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-util.js
CHANGED
|
@@ -222,8 +222,14 @@ __privateAdd(_Fetch, _request, (method, url, data = {}, headers = {}, showLoadin
|
|
|
222
222
|
}
|
|
223
223
|
return fetch(targetUrl, options).then(async (res) => {
|
|
224
224
|
if (!res.ok) {
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const err = await res.json().catch(() => ({}));
|
|
226
|
+
const errorMessage = err.message || `API 오류 (${res.status})`;
|
|
227
|
+
if (res.status === 400) {
|
|
228
|
+
nine == null ? void 0 : nine.alert(errorMessage).rgb().shake();
|
|
229
|
+
} else {
|
|
230
|
+
console.error("시스템 오류:", errorMessage);
|
|
231
|
+
}
|
|
232
|
+
throw new Error(errorMessage);
|
|
227
233
|
}
|
|
228
234
|
return res.json();
|
|
229
235
|
}).catch((err) => {
|
|
@@ -1307,7 +1313,7 @@ class UxSplitter extends HTMLElement {
|
|
|
1307
1313
|
const htmlTmpl = document.createElement("template");
|
|
1308
1314
|
htmlTmpl.innerHTML = `
|
|
1309
1315
|
<style>
|
|
1310
|
-
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.
|
|
1316
|
+
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.35"}/dist/css/nine-util.css";
|
|
1311
1317
|
${customImport}
|
|
1312
1318
|
</style>
|
|
1313
1319
|
${gripTmpl}
|