@ninebone/util 1.0.32 → 1.0.34
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 +6 -4
- 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,10 @@ __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
|
+
nine == null ? void 0 : nine.alert(errorMessage).rgb().shake();
|
|
228
|
+
throw new Error(errorMessage);
|
|
227
229
|
}
|
|
228
230
|
return res.json();
|
|
229
231
|
}).catch((err) => {
|
|
@@ -684,7 +686,7 @@ const dialogStyles = `
|
|
|
684
686
|
border: none;
|
|
685
687
|
box-shadow: unset;
|
|
686
688
|
border-top: none;
|
|
687
|
-
|
|
689
|
+
height: 140px;
|
|
688
690
|
}
|
|
689
691
|
|
|
690
692
|
:host(.rgb) div.left {
|
|
@@ -1307,7 +1309,7 @@ class UxSplitter extends HTMLElement {
|
|
|
1307
1309
|
const htmlTmpl = document.createElement("template");
|
|
1308
1310
|
htmlTmpl.innerHTML = `
|
|
1309
1311
|
<style>
|
|
1310
|
-
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.
|
|
1312
|
+
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.34"}/dist/css/nine-util.css";
|
|
1311
1313
|
${customImport}
|
|
1312
1314
|
</style>
|
|
1313
1315
|
${gripTmpl}
|