@springmicro/auth 0.7.19 → 0.7.21

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.
Files changed (25) hide show
  1. package/dist/{Index-1e31d199-uzuBdtPJ.js → Index-1e31d199-BXGGyb0l.js} +48 -48
  2. package/dist/{Index-6078f122-DLKGZ31_.js → Index-6078f122-DGZJdnAZ.js} +67 -67
  3. package/dist/{Web3Auth-Zi4vzALJ.js → Web3Auth-DG8Yz_cD.js} +5884 -5161
  4. package/dist/{ccip-c78d2f16-DUJGUJJo.js → ccip-c78d2f16-BfTJLflq.js} +2 -2
  5. package/dist/{hmac-CGR-aDxj.js → hmac-CW2mnXa8.js} +1 -1
  6. package/dist/{index-021f6a62-DBObZnNM.js → index-021f6a62-CxfpndDE.js} +32 -32
  7. package/dist/{index-40a497ea-BEwImqwN.js → index-40a497ea-BRLn4BDo.js} +3 -3
  8. package/dist/index-B51q7F_W.js +9742 -0
  9. package/dist/{index-BrtZvnd0.js → index-BXvsDp0W.js} +582 -584
  10. package/dist/{index-B4ilnhZS.js → index-BYJic99M.js} +33 -33
  11. package/dist/{index-Bu--mwXK.js → index-Bfb6JoQf.js} +9082 -8717
  12. package/dist/{index-XgTFhms9.js → index-C8R4klyg.js} +27 -27
  13. package/dist/{index-C8ynRf9-.js → index-CBbDq4vF.js} +3310 -3294
  14. package/dist/{index-1_Q3geSC.js → index-DbQi7wFl.js} +26 -26
  15. package/dist/index-hDobpv7u.js +32 -0
  16. package/dist/index.js +1 -1
  17. package/dist/index.umd.cjs +293 -286
  18. package/dist/native-FDN9oNjc.js +15 -0
  19. package/dist/{number-BfxMSPkm.js → number-DvQcSzeP.js} +556 -335
  20. package/dist/parseEther-C7cmMVOE.js +24 -0
  21. package/dist/{sha256-JJGtJ2gn.js → sha256-C90UGNQg.js} +8 -7
  22. package/dist/{transactionRequest-be6a8ea9-_q5BIZxq.js → transactionRequest-be6a8ea9-CCwC71wa.js} +9 -9
  23. package/package.json +2 -2
  24. package/dist/index-Cn-_BAwo.js +0 -6151
  25. package/dist/index-Cw8vH8KI.js +0 -29
@@ -0,0 +1,24 @@
1
+ import { C as g } from "./Web3Auth-DG8Yz_cD.js";
2
+ function u(i, n) {
3
+ let [e, t = "0"] = i.split(".");
4
+ const s = e.startsWith("-");
5
+ if (s && (e = e.slice(1)), t = t.replace(/(0+)$/, ""), n === 0)
6
+ Math.round(+`.${t}`) === 1 && (e = `${BigInt(e) + 1n}`), t = "";
7
+ else if (t.length > n) {
8
+ const [r, $, f] = [
9
+ t.slice(0, n - 1),
10
+ t.slice(n - 1, n),
11
+ t.slice(n)
12
+ ], o = Math.round(+`${$}.${f}`);
13
+ o > 9 ? t = `${BigInt(r) + BigInt(1)}0`.padStart(r.length + 1, "0") : t = `${r}${o}`, t.length > n && (t = t.slice(1), e = `${BigInt(e) + 1n}`), t = t.slice(0, n);
14
+ } else
15
+ t = t.padEnd(n, "0");
16
+ return BigInt(`${s ? "-" : ""}${e}${t}`);
17
+ }
18
+ function p(i, n = "wei") {
19
+ return u(i, g[n]);
20
+ }
21
+ export {
22
+ p as a,
23
+ u as p
24
+ };
@@ -64,13 +64,13 @@ async function V(t, e, s) {
64
64
  i >= 0 && i < e || (await H(), n += i);
65
65
  }
66
66
  }
67
- function O(t) {
67
+ function S(t) {
68
68
  if (typeof t != "string")
69
69
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
70
70
  return new Uint8Array(new TextEncoder().encode(t));
71
71
  }
72
72
  function g(t) {
73
- if (typeof t == "string" && (t = O(t)), !E(t))
73
+ if (typeof t == "string" && (t = S(t)), !E(t))
74
74
  throw new Error(`expected Uint8Array, got ${typeof t}`);
75
75
  return t;
76
76
  }
@@ -83,7 +83,7 @@ function $(...t) {
83
83
  e.set(n, s), s += n.length;
84
84
  }), e;
85
85
  }
86
- class S {
86
+ class O {
87
87
  // Safe version that clones internal state
88
88
  clone() {
89
89
  return this._cloneInto();
@@ -114,7 +114,7 @@ function R(t = 32) {
114
114
  }
115
115
  const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
116
  __proto__: null,
117
- Hash: S,
117
+ Hash: O,
118
118
  asyncLoop: V,
119
119
  bytesToHex: N,
120
120
  checkOpts: W,
@@ -128,7 +128,7 @@ const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
128
  toBytes: g,
129
129
  u32: C,
130
130
  u8: j,
131
- utf8ToBytes: O,
131
+ utf8ToBytes: S,
132
132
  wrapConstructor: L,
133
133
  wrapConstructorWithOpts: M,
134
134
  wrapXOFConstructorWithOpts: v
@@ -139,7 +139,7 @@ function z(t, e, s, n) {
139
139
  const o = BigInt(32), i = BigInt(4294967295), r = Number(s >> o & i), f = Number(s & i), h = n ? 4 : 0, a = n ? 0 : 4;
140
140
  t.setUint32(e + h, r, n), t.setUint32(e + a, f, n);
141
141
  }
142
- class P extends S {
142
+ class P extends O {
143
143
  constructor(e, s, n, o) {
144
144
  super(), this.blockLen = e, this.outputLen = s, this.padOffset = n, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = w(this.buffer);
145
145
  }
@@ -308,7 +308,8 @@ const Q = /* @__PURE__ */ L(() => new k()), Y = /* @__PURE__ */ L(() => new J())
308
308
  sha256: Q
309
309
  }, Symbol.toStringTag, { value: "Module" }));
310
310
  export {
311
- S as H,
311
+ O as H,
312
+ P as S,
312
313
  et as a,
313
314
  T as b,
314
315
  $ as c,
@@ -1058,13 +1058,13 @@ export {
1058
1058
  a as B,
1059
1059
  $t as C,
1060
1060
  vt as D,
1061
- M as E,
1061
+ yt as E,
1062
1062
  De as F,
1063
- Se as G,
1063
+ pt as G,
1064
1064
  ve as H,
1065
1065
  lt as I,
1066
- pt as J,
1067
- yt as K,
1066
+ M as J,
1067
+ Se as K,
1068
1068
  _ as L,
1069
1069
  Xe as M,
1070
1070
  We as N,
@@ -1085,9 +1085,9 @@ export {
1085
1085
  q as a0,
1086
1086
  ne as a1,
1087
1087
  se as a2,
1088
- it as a3,
1089
- g as a4,
1090
- ot as a5,
1088
+ g as a3,
1089
+ ot as a4,
1090
+ it as a5,
1091
1091
  mt as a6,
1092
1092
  gt as b,
1093
1093
  Re as c,
@@ -1102,8 +1102,8 @@ export {
1102
1102
  at as l,
1103
1103
  It as m,
1104
1104
  k as n,
1105
- ae as o,
1106
- P as p,
1105
+ P as o,
1106
+ ae as p,
1107
1107
  ht as q,
1108
1108
  L as r,
1109
1109
  b as s,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springmicro/auth",
3
- "version": "0.7.19",
3
+ "version": "0.7.21",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -53,5 +53,5 @@
53
53
  "react-social-login-buttons": "^4.1.0",
54
54
  "uuid": "^9.0.1"
55
55
  },
56
- "gitHead": "5242f8a3ea5bde25f4b6681f9a30baae76713016"
56
+ "gitHead": "e8fafa3c55eef78488e2a8193d4178e2d843a5f5"
57
57
  }