@aiao/utils 0.0.10 → 0.0.12
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.js
CHANGED
|
@@ -448,12 +448,12 @@ async function Lt(e, t) {
|
|
|
448
448
|
);
|
|
449
449
|
return S(n);
|
|
450
450
|
}
|
|
451
|
-
const
|
|
452
|
-
async function
|
|
451
|
+
const j = "PUBLIC KEY", D = "RSA PRIVATE KEY";
|
|
452
|
+
async function N(e, t = "pkcs8") {
|
|
453
453
|
const r = await crypto.subtle.exportKey(t, e);
|
|
454
454
|
return S(r);
|
|
455
455
|
}
|
|
456
|
-
async function
|
|
456
|
+
async function jt(e = 1024) {
|
|
457
457
|
const { publicKey: t, privateKey: r } = await crypto.subtle.generateKey(
|
|
458
458
|
{
|
|
459
459
|
name: "RSA-OAEP",
|
|
@@ -465,17 +465,17 @@ async function Nt(e = 1024) {
|
|
|
465
465
|
},
|
|
466
466
|
!0,
|
|
467
467
|
["encrypt", "decrypt"]
|
|
468
|
-
), n = await
|
|
468
|
+
), n = await N(t, "spki"), o = await N(r, "pkcs8");
|
|
469
469
|
return {
|
|
470
|
-
publicKey: `-----BEGIN ${
|
|
470
|
+
publicKey: `-----BEGIN ${j}-----
|
|
471
471
|
${n}
|
|
472
|
-
-----END ${
|
|
473
|
-
privateKey: `-----BEGIN ${
|
|
472
|
+
-----END ${j}-----`,
|
|
473
|
+
privateKey: `-----BEGIN ${D}-----
|
|
474
474
|
${o}
|
|
475
|
-
-----END ${
|
|
475
|
+
-----END ${D}-----`
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const Dt = (e) => p(e) || G(e) ? !0 : V(e) ? !1 : new Date(e).getTime() > 0, Me = (e) => {
|
|
479
479
|
const t = e > 0 ? "+" : "-", r = Math.abs(e), n = `${Math.floor(r / 60)}`.padStart(2, "0"), o = `${r % 60}`.padStart(2, "0");
|
|
480
480
|
return {
|
|
481
481
|
flag: t,
|
|
@@ -486,7 +486,7 @@ const jt = (e) => p(e) || G(e) ? !0 : V(e) ? !1 : new Date(e).getTime() > 0, Me
|
|
|
486
486
|
}, Re = (e, t, r) => {
|
|
487
487
|
const { flag: n, hour: o, minute: c } = Me(r);
|
|
488
488
|
return `${e}T${t}${n}${o}:${c}`;
|
|
489
|
-
},
|
|
489
|
+
}, Nt = (e, t, r) => new Date(Re(e, t, r)), H = (e, t) => {
|
|
490
490
|
const r = t.getTime() - e.getTime(), n = Math.floor(r / 864e5), o = Math.floor(n / 30), c = Math.floor(o / 12), s = Math.floor(r / 36e5) % 24, i = Math.floor(r / 6e4) % 60, a = Math.floor(r / 1e3) % 60;
|
|
491
491
|
return { year: c, month: o, day: n, hour: s, minute: i, second: a };
|
|
492
492
|
}, Q = (e, t, r) => r ? `${t} ${r[e] || e}` : `${t} ${e}`, J = ["year", "month", "day", "hour", "minute", "second"], kt = (e, t, r) => {
|
|
@@ -501,7 +501,7 @@ function qt(e) {
|
|
|
501
501
|
e
|
|
502
502
|
)?.groups : !1;
|
|
503
503
|
}
|
|
504
|
-
const Ft = (e) => ue(e), zt = () => Math.floor(Date.now() / 1e3),
|
|
504
|
+
const Ft = (e) => ue(e), zt = () => Math.floor(Date.now() / 1e3), Wt = (e, t = 50) => {
|
|
505
505
|
let r;
|
|
506
506
|
return function(...n) {
|
|
507
507
|
const o = () => {
|
|
@@ -509,7 +509,7 @@ const Ft = (e) => ue(e), zt = () => Math.floor(Date.now() / 1e3), vt = (e, t = 5
|
|
|
509
509
|
};
|
|
510
510
|
r !== void 0 && clearTimeout(r), r = setTimeout(o, t);
|
|
511
511
|
};
|
|
512
|
-
},
|
|
512
|
+
}, vt = () => {
|
|
513
513
|
};
|
|
514
514
|
function Gt(e) {
|
|
515
515
|
let t = !1, r;
|
|
@@ -667,7 +667,7 @@ const Ie = (e) => {
|
|
|
667
667
|
return isNaN(t) || !isFinite(t) ? e : t;
|
|
668
668
|
}
|
|
669
669
|
return e;
|
|
670
|
-
}, Be = (e) => {
|
|
670
|
+
}, Yt = (e) => e == null || typeof e != "object" ? e : structuredClone(e), Be = (e) => {
|
|
671
671
|
for (const r of Object.getOwnPropertyNames(e)) {
|
|
672
672
|
const n = e[r];
|
|
673
673
|
!R(n) && !d(n) || n === null || Be(n);
|
|
@@ -689,19 +689,19 @@ function te(e, t, r, n) {
|
|
|
689
689
|
return s[i] = /^[0-9]{1,}$/.test(l[a + 1]) ? [] : {};
|
|
690
690
|
}, e), e;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function je(e, t, r) {
|
|
693
693
|
return te(e, t, r);
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function De(e, t, r, n) {
|
|
696
696
|
const o = d(n) ? n : void 0;
|
|
697
697
|
return te(e, t, r, o);
|
|
698
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const Xt = (e) => {
|
|
700
700
|
const t = {};
|
|
701
701
|
return Object.keys(e).forEach((r) => {
|
|
702
|
-
r.match(/[^\]]*\[\d+\]/) ?
|
|
702
|
+
r.match(/[^\]]*\[\d+\]/) ? je(t, r, e[r]) : De(t, r, e[r], Object);
|
|
703
703
|
}), t;
|
|
704
|
-
},
|
|
704
|
+
}, Ne = (e, t, r) => {
|
|
705
705
|
const n = (c) => String.prototype.split.call(t, c).filter(Boolean).reduce((s, i) => s != null ? s[i] : s, e), o = n(/[,[\]]+?/) || n(/[,[\].]+?/);
|
|
706
706
|
return o === void 0 || o === e ? r : o;
|
|
707
707
|
}, ke = (e, t) => {
|
|
@@ -735,35 +735,35 @@ const q = (e, t) => {
|
|
|
735
735
|
return !0;
|
|
736
736
|
}
|
|
737
737
|
return e !== e && t !== t;
|
|
738
|
-
},
|
|
738
|
+
}, er = (e, t) => +e == +t, tr = (e, t) => e ? !t || t.length === 0 ? e : t.reduce(
|
|
739
739
|
(r, n) => (delete r[n], r),
|
|
740
740
|
{ ...e }
|
|
741
741
|
) : {};
|
|
742
|
-
function
|
|
742
|
+
function rr(e, t) {
|
|
743
743
|
return Object.keys(e).filter((r) => !t(e[r], r)).reduce((r, n) => (r[n] = e[n], r), {});
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function nr(e, t) {
|
|
746
746
|
return e ? t.reduce(
|
|
747
747
|
(r, n) => (Object.prototype.hasOwnProperty.call(e, n) && (r[n] = e[n]), r),
|
|
748
748
|
{}
|
|
749
749
|
) : {};
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function or(e, t) {
|
|
752
752
|
return Object.keys(e).filter((r) => t(e[r], r)).reduce((r, n) => (r[n] = e[n], r), {});
|
|
753
753
|
}
|
|
754
754
|
const M = (e, t = "", r = {}) => (b(e) ? e.forEach((n, o) => M(n, `${t}[${o}]`, r)) : Ae(e) ? Object.keys(e).forEach(
|
|
755
755
|
(n) => M(e[n], `${t ? t + "." : ""}${n}`, r)
|
|
756
756
|
) : r[`${t}`] = e, r);
|
|
757
|
-
function
|
|
757
|
+
function sr(e) {
|
|
758
758
|
return M(e);
|
|
759
759
|
}
|
|
760
|
-
const
|
|
760
|
+
const cr = (e) => {
|
|
761
761
|
const t = {};
|
|
762
762
|
for (const r in e)
|
|
763
763
|
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
764
764
|
return t;
|
|
765
765
|
};
|
|
766
|
-
function
|
|
766
|
+
function ir(e, t) {
|
|
767
767
|
if (!e || !e.length)
|
|
768
768
|
return {};
|
|
769
769
|
const r = d(t) ? t : b(t) ? (n, o) => t[o] : () => t;
|
|
@@ -772,28 +772,28 @@ function cr(e, t) {
|
|
|
772
772
|
{}
|
|
773
773
|
);
|
|
774
774
|
}
|
|
775
|
-
const
|
|
776
|
-
function
|
|
775
|
+
const ar = typeof window == "object", lr = (e) => e[Math.floor(Math.random() * e.length)], ur = (e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) => Math.random() * (t - e) + e;
|
|
776
|
+
function fr(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
777
777
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
778
778
|
}
|
|
779
|
-
const Ke = "0", re = "123456789", ne = Ke + re, oe = "abcdefghijklmnopqrstuvwxyz", qe = oe.toUpperCase(), Fe = oe + qe, ze = "_-",
|
|
779
|
+
const Ke = "0", re = "123456789", ne = Ke + re, oe = "abcdefghijklmnopqrstuvwxyz", qe = oe.toUpperCase(), Fe = oe + qe, ze = "_-", We = ne + Fe + ze, F = (e = 16, t = We) => {
|
|
780
780
|
let r = "";
|
|
781
781
|
const n = crypto.getRandomValues(new Uint8Array(e |= 0)), o = t.length - 1;
|
|
782
782
|
for (; e--; ) r += t[n[e] & o];
|
|
783
783
|
return r;
|
|
784
|
-
},
|
|
784
|
+
}, ve = (e = 16) => F(1, re) + F(e - 1, ne), hr = (e = 16) => parseInt(ve(e), 10), se = (e) => {
|
|
785
785
|
if (!e) return "";
|
|
786
786
|
const t = e.toLowerCase();
|
|
787
787
|
return Ge(t);
|
|
788
788
|
}, Ge = (e) => e ? e.substring(0, 1).toUpperCase() + e.substring(1, e.length) : "", Ve = /[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g, I = (e) => Array.from(e.match(Ve) ?? []);
|
|
789
|
-
function
|
|
789
|
+
function pr(e) {
|
|
790
790
|
const t = I(e);
|
|
791
791
|
if (t.length === 0)
|
|
792
792
|
return "";
|
|
793
793
|
const [r, ...n] = t;
|
|
794
794
|
return `${r.toLowerCase()}${n.map((o) => se(o)).join("")}`;
|
|
795
795
|
}
|
|
796
|
-
const
|
|
796
|
+
const dr = async (e, t = "deflate") => {
|
|
797
797
|
try {
|
|
798
798
|
const n = new TextEncoder().encode(e), o = new CompressionStream(t), s = o.writable.getWriter();
|
|
799
799
|
await s.write(n), await s.close();
|
|
@@ -813,7 +813,7 @@ const pr = async (e, t = "deflate") => {
|
|
|
813
813
|
} catch (r) {
|
|
814
814
|
throw console.error("压缩过程中出错:", r), r;
|
|
815
815
|
}
|
|
816
|
-
},
|
|
816
|
+
}, mr = async (e, t = "deflate") => {
|
|
817
817
|
try {
|
|
818
818
|
let r = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
819
819
|
const n = (4 - r.length % 4) % 4;
|
|
@@ -877,7 +877,7 @@ const pr = async (e, t = "deflate") => {
|
|
|
877
877
|
8: 8,
|
|
878
878
|
9: 9
|
|
879
879
|
};
|
|
880
|
-
function
|
|
880
|
+
function yr(e) {
|
|
881
881
|
let t = 0, r = 0, n = 0, o = !1;
|
|
882
882
|
for (const c of e.split("").reverse()) {
|
|
883
883
|
if (r = He[c], r === void 0)
|
|
@@ -903,7 +903,7 @@ function mr(e) {
|
|
|
903
903
|
}
|
|
904
904
|
return o && (t += r), t;
|
|
905
905
|
}
|
|
906
|
-
const
|
|
906
|
+
const gr = (e) => {
|
|
907
907
|
const t = {};
|
|
908
908
|
return new URLSearchParams(e).forEach((n, o) => {
|
|
909
909
|
if (Object.prototype.hasOwnProperty.call(t, o)) {
|
|
@@ -912,7 +912,7 @@ const yr = (e) => {
|
|
|
912
912
|
} else
|
|
913
913
|
t[o] = n;
|
|
914
914
|
}), t;
|
|
915
|
-
},
|
|
915
|
+
}, wr = (e) => {
|
|
916
916
|
const t = new URLSearchParams();
|
|
917
917
|
for (const r in e)
|
|
918
918
|
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
@@ -923,11 +923,11 @@ const yr = (e) => {
|
|
|
923
923
|
}, Qe = ["角", "分", "厘"], z = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], O = [
|
|
924
924
|
["元", "万", "亿", "兆", "京", "垓"],
|
|
925
925
|
["", "拾", "佰", "仟"]
|
|
926
|
-
],
|
|
926
|
+
], W = Math.pow(10, 22), Ar = (e) => {
|
|
927
927
|
const t = e < 0 ? "欠" : "";
|
|
928
928
|
let r = Math.abs(e);
|
|
929
|
-
if (r >
|
|
930
|
-
throw new Error(`max value is ${
|
|
929
|
+
if (r > W)
|
|
930
|
+
throw new Error(`max value is ${W}`);
|
|
931
931
|
let n = "";
|
|
932
932
|
if (e > Math.floor(e)) {
|
|
933
933
|
const o = +("0." + `${r}`.split(".")[1]);
|
|
@@ -945,22 +945,22 @@ const yr = (e) => {
|
|
|
945
945
|
}
|
|
946
946
|
return `${t}${n.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整")}`;
|
|
947
947
|
};
|
|
948
|
-
function
|
|
948
|
+
function Er(e, t) {
|
|
949
949
|
const r = e || "", n = t || "", o = Math.max(r.length, n.length);
|
|
950
950
|
return o === 0 ? 1 : (o - fe(r, n)) / o;
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const Sr = (e) => I(e).map((r) => r.toLowerCase()).join("_"), br = (e) => Ze(e).split("-").filter((t) => !!t).map((t) => se(t.toLowerCase())).join(" "), Cr = (e) => e.trim().replace(/\s+/g, " "), Or = (e, t) => e.replace(/\${([^}]+)}/g, (r, n) => Ne(t, n.trim(), "")), Je = (e) => e ? e.substring(0, 1).toLowerCase() + e.substring(1, e.length) : "", Tr = (e) => {
|
|
953
953
|
if (!e) return "";
|
|
954
954
|
const t = e.toLowerCase();
|
|
955
955
|
return Je(t);
|
|
956
|
-
},
|
|
956
|
+
}, v = /^([^/:]+):\/*/, Pr = (...e) => {
|
|
957
957
|
if (e = e.filter((s) => s !== ""), e.length === 0)
|
|
958
958
|
return "";
|
|
959
959
|
if (e.findIndex((s) => !(C(s) || p(s))) >= 0)
|
|
960
960
|
throw new Error("paths must be a string or number");
|
|
961
961
|
let r = "";
|
|
962
962
|
const n = `${e[0]}`;
|
|
963
|
-
n.startsWith("//") ? r = "//" : n.startsWith("/") ? r = "/" : (n.startsWith("file:") && e.length > 1 && (n + e[1]).match(/^file:\/\/\//) ? r = n.replace(
|
|
963
|
+
n.startsWith("//") ? r = "//" : n.startsWith("/") ? r = "/" : (n.startsWith("file:") && e.length > 1 && (n + e[1]).match(/^file:\/\/\//) ? r = n.replace(v, "$1:///") : r = n.replace(v, "$1://"), e.shift()), r && !r.endsWith("/") && (r += "/");
|
|
964
964
|
let o = e.map(
|
|
965
965
|
(s) => `${s}`.replace(/^\/+/, "").replace(/^\.\/+/, "").replace(/\/+$/, "")
|
|
966
966
|
).filter((s) => s !== "").join("/");
|
|
@@ -975,7 +975,7 @@ const Er = (e) => I(e).map((r) => r.toLowerCase()).join("_"), Sr = (e) => Ze(e).
|
|
|
975
975
|
}
|
|
976
976
|
return c.replace(/\/(\?|&|#[^!])/g, "$1");
|
|
977
977
|
};
|
|
978
|
-
class
|
|
978
|
+
class $r {
|
|
979
979
|
#e = /* @__PURE__ */ new Map();
|
|
980
980
|
/**
|
|
981
981
|
* 添加事件监听器
|
|
@@ -1034,7 +1034,7 @@ class Pr {
|
|
|
1034
1034
|
return this.#e.set(t, r), r;
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
const
|
|
1037
|
+
const Mr = "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=", Rr = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", _r = (e, ...t) => {
|
|
1038
1038
|
const r = [];
|
|
1039
1039
|
R(e) ? Object.keys(e).sort().forEach((o) => {
|
|
1040
1040
|
const c = e[o];
|
|
@@ -1046,41 +1046,42 @@ const $r = "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBAD
|
|
|
1046
1046
|
export {
|
|
1047
1047
|
Tt as AsyncQueueExecutor,
|
|
1048
1048
|
Y as BASE_62_DIGITS,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1049
|
+
$r as EventDispatcher,
|
|
1050
|
+
Mr as IMAGE_MIN_BASE64_BLACK,
|
|
1051
|
+
Rr as IMAGE_MIN_BASE64_TRANSPARENT,
|
|
1052
|
+
ar as IS_BROWSER,
|
|
1053
1053
|
rt as IdleTimer,
|
|
1054
1054
|
nt as LeaderElection,
|
|
1055
1055
|
_t as aesDecrypt,
|
|
1056
1056
|
It as aesEncrypt,
|
|
1057
1057
|
T as base64Decode,
|
|
1058
1058
|
S as base64Encode,
|
|
1059
|
-
|
|
1060
|
-
|
|
1059
|
+
pr as camelCase,
|
|
1060
|
+
Dt as canBeDate,
|
|
1061
1061
|
Ie as canBeNumber,
|
|
1062
1062
|
se as capitalize,
|
|
1063
1063
|
Ge as capitalizeFirst,
|
|
1064
1064
|
ot as checkOPFSAvailable,
|
|
1065
1065
|
it as chunk,
|
|
1066
|
-
|
|
1066
|
+
Yt as cloneDeep,
|
|
1067
|
+
dr as compressToBase64Url,
|
|
1067
1068
|
tt as createBroadcastTopic,
|
|
1068
|
-
|
|
1069
|
+
Nt as dateStringToDate,
|
|
1069
1070
|
Re as dateStringWithTimezone,
|
|
1070
|
-
|
|
1071
|
+
Wt as debounce,
|
|
1071
1072
|
xt as decodeJWTPayload,
|
|
1072
|
-
|
|
1073
|
+
mr as decompressFromBase64Url,
|
|
1073
1074
|
Be as deepFreeze,
|
|
1074
1075
|
at as difference,
|
|
1075
|
-
|
|
1076
|
+
vt as emptyFunction,
|
|
1076
1077
|
lt as flatten,
|
|
1077
1078
|
me as flattenDeep,
|
|
1078
|
-
|
|
1079
|
+
Xt as flattenPathObjectToPlainObject,
|
|
1079
1080
|
Ut as formatCountdown,
|
|
1080
1081
|
kt as formatPassTime,
|
|
1081
1082
|
g as generateKeyBetween,
|
|
1082
1083
|
K as generateKeysBetween,
|
|
1083
|
-
|
|
1084
|
+
Ne as get,
|
|
1084
1085
|
ke as has,
|
|
1085
1086
|
ut as intersection,
|
|
1086
1087
|
b as isArray,
|
|
@@ -1089,7 +1090,7 @@ export {
|
|
|
1089
1090
|
G as isDate,
|
|
1090
1091
|
ht as isEmpty,
|
|
1091
1092
|
q as isEqual,
|
|
1092
|
-
|
|
1093
|
+
er as isEqualDate,
|
|
1093
1094
|
Ue as isEqualUint8Array,
|
|
1094
1095
|
pt as isFloat,
|
|
1095
1096
|
d as isFunction,
|
|
@@ -1112,61 +1113,61 @@ export {
|
|
|
1112
1113
|
ge as isSymbol,
|
|
1113
1114
|
$ as isUint8Array,
|
|
1114
1115
|
Ze as kebabCase,
|
|
1115
|
-
|
|
1116
|
+
_r as logError,
|
|
1116
1117
|
Ft as msTimeToMilliseconds,
|
|
1117
1118
|
St as needArray,
|
|
1118
1119
|
Pt as nextMacroTask,
|
|
1119
1120
|
$t as nextMicroTask,
|
|
1120
|
-
|
|
1121
|
+
vt as noop,
|
|
1121
1122
|
xe as numberStep,
|
|
1122
1123
|
Zt as numberStepScreenSize,
|
|
1123
1124
|
Ht as numberStrip,
|
|
1124
|
-
|
|
1125
|
-
|
|
1125
|
+
tr as omit,
|
|
1126
|
+
rr as omitBy,
|
|
1126
1127
|
Gt as once,
|
|
1127
1128
|
bt as orderBy,
|
|
1128
|
-
|
|
1129
|
+
yr as parseChineseNumber,
|
|
1129
1130
|
H as parseTime,
|
|
1130
1131
|
st as performChunk,
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1132
|
+
nr as pick,
|
|
1133
|
+
or as pickBy,
|
|
1134
|
+
sr as plainObjectToFlattenPathObject,
|
|
1134
1135
|
B as pool,
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1136
|
+
gr as queryParse,
|
|
1137
|
+
wr as queryStringify,
|
|
1138
|
+
lr as randomArrayItem,
|
|
1139
|
+
ur as randomFloat,
|
|
1140
|
+
fr as randomInt,
|
|
1140
1141
|
F as randomString,
|
|
1141
|
-
|
|
1142
|
-
|
|
1142
|
+
hr as randomUintByLength,
|
|
1143
|
+
ve as randomUintString,
|
|
1143
1144
|
ct as requestIdleCallbackPolyfill,
|
|
1144
|
-
|
|
1145
|
+
Ar as rmbUppercase,
|
|
1145
1146
|
Bt as rsaDecrypt,
|
|
1146
1147
|
Lt as rsaEncrypt,
|
|
1147
|
-
|
|
1148
|
-
|
|
1148
|
+
jt as rsaGenerateKey,
|
|
1149
|
+
je as set,
|
|
1149
1150
|
te as setBase,
|
|
1150
|
-
|
|
1151
|
-
|
|
1151
|
+
De as setWith,
|
|
1152
|
+
Er as similarity,
|
|
1152
1153
|
Mt as sleep,
|
|
1153
|
-
|
|
1154
|
+
Sr as snakeCase,
|
|
1154
1155
|
Ct as sortBy,
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1156
|
+
br as startCase,
|
|
1157
|
+
Cr as stringSingleline,
|
|
1158
|
+
Or as stringTemplate,
|
|
1158
1159
|
Q as stringTime,
|
|
1159
1160
|
_ as stringToArrayBuffer,
|
|
1160
1161
|
Vt as throttle,
|
|
1161
1162
|
Qt as toInt,
|
|
1162
|
-
|
|
1163
|
+
cr as toPlainObject,
|
|
1163
1164
|
Z as traverseObjectKeys,
|
|
1164
1165
|
Jt as tryToNumber,
|
|
1165
1166
|
Rt as uint8ArrayToString,
|
|
1166
|
-
|
|
1167
|
+
Tr as uncapitalize,
|
|
1167
1168
|
Je as uncapitalizeFirst,
|
|
1168
1169
|
Ot as unionBy,
|
|
1169
1170
|
zt as unixTimestamp,
|
|
1170
|
-
|
|
1171
|
-
|
|
1171
|
+
Pr as urlJoin,
|
|
1172
|
+
ir as zipObject
|
|
1172
1173
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneDeep.d.ts","sourceRoot":"","sources":["../../src/object/cloneDeep.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,CAKvC,CAAC"}
|
package/dist/object/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/object/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qCAAqC,CAAC;AACpD,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qCAAqC,CAAC;AACpD,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiao/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"ms": "^2.1.3",
|
|
33
33
|
"rxjs": "^7.8.2",
|
|
34
34
|
"ts-xor": "^1.3.0",
|
|
35
|
-
"type-fest": "^5.
|
|
35
|
+
"type-fest": "^5.4.4"
|
|
36
36
|
}
|
|
37
37
|
}
|