oiu-core 0.0.26 → 0.0.27

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ErrorCode/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAW,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAiB,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI1E,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB,CAAA;AACD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,cAAc,UAQvD;yBARe,SAAS;sBAiBA,SAAS,QAAQ,MAAM,UAAU,UAAU,CAAC,QAAQ,CAAC,WAAW,OAAO,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ErrorCode/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAW,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAiB,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI1E,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB,CAAC;AACF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,cAAc,UAQvD;yBARe,SAAS;sBAiBA,SAAS,QAAQ,MAAM,UAAU,UAAU,CAAC,QAAQ,CAAC,WAAW,OAAO,EAAE"}
@@ -1,4 +1,4 @@
1
- import { A as Re, P as f, a as $, d as Ue } from "./main-CNHFtjCH.js";
1
+ import { A as Re, P as f, a as $, d as Ue } from "./main-iElb4SaI.js";
2
2
  class j extends Error {
3
3
  }
4
4
  j.prototype.name = "InvalidTokenError";
@@ -6997,11 +6997,12 @@ const $p = {
6997
6997
  }), xc = (e) => e[Dc];
6998
6998
  function ui({ code: e, args: t }) {
6999
6999
  const r = tr(), n = Re((i) => xc(i).errors), o = ui.text(r, e, n, t);
7000
- return t ? Qo(o, t) : o;
7000
+ return t && o ? Qo(o, t) : o;
7001
7001
  }
7002
7002
  ui.text = (e, t, r, ...n) => {
7003
7003
  const o = r[t];
7004
- return n && n.length !== 0 ? Qo(o, ...n) : o;
7004
+ if (o)
7005
+ return n && n.length !== 0 ? Qo(o, ...n) : o;
7005
7006
  };
7006
7007
  const _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7007
7008
  __proto__: null,
@@ -7039,7 +7040,7 @@ function Hp({ className: e, children: t, getPermissionFor: r, defaultAbility: n
7039
7040
  var Fc = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(Fc || {});
7040
7041
  const kp = () => import(
7041
7042
  /* @vite-ignore */
7042
- "./index-DsBrGEJj.js"
7043
+ "./index-DZ3rREg7.js"
7043
7044
  );
7044
7045
  async function Up(e, t, r) {
7045
7046
  return (await kp()).default(e, t, r);
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as e, b as t, h as u, j as i, c as n, e as o, f as h, u as c, g } from "./main-CNHFtjCH.js";
1
+ import { i as e, b as t, h as u, j as i, c as n, e as o, f as h, u as c, g } from "./main-iElb4SaI.js";
2
2
  export {
3
3
  e as auth,
4
4
  t as components,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oiu-core",
3
3
  "private": false,
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"