pankosmia-rcl 0.8.6 → 0.8.7

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.
@@ -296,7 +296,7 @@ async function _e(e, t = !1) {
296
296
  url: e,
297
297
  ok: !1,
298
298
  status: r.status,
299
- error: await r.text()
299
+ error: JSON.parse(await r.text())
300
300
  };
301
301
  return t && console.log("getJson", o), o;
302
302
  }
@@ -332,9 +332,9 @@ async function Zi(e, t = !1) {
332
332
  url: e,
333
333
  ok: !1,
334
334
  status: r.status,
335
- error: await r.text()
335
+ error: JSON.parse(await r.text())
336
336
  };
337
- return t && console.log("postEmptyJson", o), o;
337
+ return t && console.log("postEmpty", o), o;
338
338
  }
339
339
  const n = {
340
340
  url: e,
@@ -342,7 +342,7 @@ async function Zi(e, t = !1) {
342
342
  status: r.status,
343
343
  json: await r.json()
344
344
  };
345
- return t && console.log("postEmptyJson", n), n;
345
+ return t && console.log("postEmpty", n), n;
346
346
  } catch (r) {
347
347
  const n = {
348
348
  url: e,
@@ -350,7 +350,7 @@ async function Zi(e, t = !1) {
350
350
  status: 0,
351
351
  error: r.message
352
352
  };
353
- return t && console.log("postEmptyJson", n), n;
353
+ return t && console.log("postEmpty", n), n;
354
354
  }
355
355
  }
356
356
  const W = (e, t) => t[e] || e, Hr = Ye({ debug: !1, setDebug: () => {
@@ -8847,7 +8847,7 @@ function fm({
8847
8847
  `${O.row.abbreviation} ${W(
8848
8848
  "pages:core-remote-resources:failed",
8849
8849
  g.current
8850
- )} : ${R.error} (${R.status})`,
8850
+ )} : ${R.error.reason} (${R.status})`,
8851
8851
  { variant: "error" }
8852
8852
  ), j((L) => ({
8853
8853
  ...L,
@@ -10397,7 +10397,7 @@ function Jh({ children: e }) {
10397
10397
  await _e("/api/client-interfaces").then((U) => U.json).then((U) => K(U)).catch((U) => console.error("Error :", U));
10398
10398
  }, De = async () => {
10399
10399
  const U = await _e("/api/i18n/flat", a.current);
10400
- U.ok ? v(U.json) : St(`Could not load i18n: ${U.error}`, {
10400
+ U.ok ? v(U.json) : St(`Could not load i18n: ${U.error.reason}`, {
10401
10401
  variant: "error",
10402
10402
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
10403
10403
  persist: !0
@@ -10407,15 +10407,18 @@ function Jh({ children: e }) {
10407
10407
  "/api/settings/typography",
10408
10408
  a.current
10409
10409
  );
10410
- U.ok ? l(U.json) : St(`Could not load typography: ${U.error}`, {
10411
- variant: "error",
10412
- anchorOrigin: { vertical: "bottom", horizontal: "left" },
10413
- persist: !0
10414
- });
10410
+ U.ok ? l(U.json) : St(
10411
+ `Could not load typography: ${U.error.reason}`,
10412
+ {
10413
+ variant: "error",
10414
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
10415
+ persist: !0
10416
+ }
10417
+ );
10415
10418
  }, Xe = async () => {
10416
10419
  const U = await _e("/api/version", a.current);
10417
10420
  U.ok ? yt(U.json) : St(
10418
- `Could not load version for product: ${U.error}`,
10421
+ `Could not load version for product: ${U.error.reason}`,
10419
10422
  {
10420
10423
  variant: "error",
10421
10424
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
@@ -10431,11 +10434,14 @@ function Jh({ children: e }) {
10431
10434
  const Z = U.json.snippet, J = U.json.word;
10432
10435
  Z !== L.current && G(Z), JSON.stringify(J) !== JSON.stringify(H.current) && Re(J);
10433
10436
  } else
10434
- St(`Could not load alignment: ${U.error}`, {
10435
- variant: "error",
10436
- anchorOrigin: { vertical: "bottom", horizontal: "left" },
10437
- persist: !0
10438
- });
10437
+ St(
10438
+ `Could not load alignment: ${U.error.reason}`,
10439
+ {
10440
+ variant: "error",
10441
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
10442
+ persist: !0
10443
+ }
10444
+ );
10439
10445
  };
10440
10446
  ae(() => {
10441
10447
  De().then(), Je().then(), ct().then(), w().then(), bt().then(), Xe().then();
@@ -10453,7 +10459,7 @@ function Jh({ children: e }) {
10453
10459
  verseNum: J.verse
10454
10460
  });
10455
10461
  } else
10456
- St(`Could not load bcv: ${Z.error}`, {
10462
+ St(`Could not load bcv: ${Z.error.reason}`, {
10457
10463
  variant: "error",
10458
10464
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
10459
10465
  persist: !0