1mpacto-react-ui 0.0.76 → 0.0.77
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -12
- package/dist/index.mjs.map +1 -1
- package/dist/src/utils/cookies.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2030,18 +2030,17 @@ function ps(e, t) {
|
|
2030
2030
|
}
|
2031
2031
|
var fn = ps(Z4, { path: "/" });
|
2032
2032
|
const pS = {
|
2033
|
-
setItem(e, t, n
|
2034
|
-
const
|
2035
|
-
path: "/"
|
2036
|
-
|
2037
|
-
},
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
}
|
2044
|
-
fn.set(`${e}_count`, s.toString(), i);
|
2033
|
+
setItem(e, t, n = {}, r = 3e3) {
|
2034
|
+
const o = { ...{
|
2035
|
+
path: "/"
|
2036
|
+
}, ...n };
|
2037
|
+
parseInt(fn.get(`${e}_count`) ?? "0", 10) && this.removeItem(e, n);
|
2038
|
+
const u = Math.ceil(t.length / r);
|
2039
|
+
for (let s = 0; s < u; s++) {
|
2040
|
+
const l = t.slice(s * r, (s + 1) * r);
|
2041
|
+
fn.set(`${e}_${s}`, l, o);
|
2042
|
+
}
|
2043
|
+
fn.set(`${e}_count`, u.toString(), o);
|
2045
2044
|
},
|
2046
2045
|
getItem(e) {
|
2047
2046
|
const t = parseInt(fn.get(`${e}_count`) ?? "0", 10);
|