@jhqn/utils 0.3.1 → 0.3.2-beta.1

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/core.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as isArrStr, $t as naturalSort, A as dateFmt, At as isValidKey, B as getHostEnv, Bt as jGroupC, C as cnIdCard18Re, Cn as userAgent, Ct as isSymbol, D as cnUSCIRE, Dt as isUndefined, E as cnTelRE2, Et as isUSCI, F as fixiOSInputAutoZoomIn, Ft as isWeakSet, G as hideFirstName, Gt as jLogOnce, H as hideBankCard, Ht as jInfo, I as getBaseAttachUrl, It as jClear, J as hidePhone, Jt as jWarn, K as hideHead, Kt as jTime, L as getCodeOfDate, Lt as jDebug, M as detect, Mt as isValidRes, N as emailRE, Nt as isValidResCode, O as currencyFmt, Ot as isValidArrRes, P as filterObj, Pt as isWeakMap, Q as inBrowser, Qt as kebab2Title, R as getCodeOfHour, Rt as jError, S as cnIdCard15Re, Sn as toThousands, St as isString, T as cnTelRE, Tt as isURL, U as hideCardNo, Ut as jLog, V as getVariableType, Vt as jGroupE, W as hideEmail, Wt as jLogDedupe, X as hideTail, Xt as kebab2Pascal, Y as hideSurname, Yt as kebab2Camel, Z as hideThird, Zt as kebab2Snake, _ as camel2Kebab, _n as stringifyJSON, _t as isObject, a as NullOrUndefinable, an as pascal2Kebab, at as isDef, b as camel2Title, bn as title2Pascal, bt as isRegExp, c as PageReq, cn as recoverFile, ct as isError, d as PartialBy, dn as reviver, dt as isIdCard, en as naturalSortBy, et as isArray, f as Res, fn as setBaseAttachUrl, ft as isJSONStr, g as attachFmt, gn as snake2Title, gt as isNumeric, h as VK, hn as snake2Pascal, ht as isNumber, i as MaybeArray, in as pascal2Camel, it as isDate, j as dayjs, jt as isValidPageRes, k as dateDuration, kt as isValidFileType, l as PageRes, ln as replacer, lt as isFile, m as Undefinable, mn as snake2Kebab, mt as isNull, n as Dict, nn as parseJSON, nt as isBlob, o as Nullable, on as pascal2Snake, ot as isEmail, p as UnDef, pn as snake2Camel, pt as isMap, q as hideMiddle, qt as jTimeEnd, r as HostEnv, rn as parseToJSON, rt as isBoolean, s as Numeric, sn as pascal2Title, st as isEmpty, t as Dayjs, tn as nonASCII, tt as isBigInt, u as PageResData, un as resUrl, ut as isFunction, v as camel2Pascal, vn as title2Camel, vt as isPhone, w as cnPhoneRE, wn as waitTime, wt as isTel, x as checkImg, xn as title2Snake, xt as isSet, y as camel2Snake, yn as title2Kebab, yt as isPromise, z as getCodeOfMonth, zt as jGroup } from "./core-1Sl-W7Yv.js";
1
+ import { $ as isArrStr, $t as naturalSort, A as dateFmt, At as isValidKey, B as getHostEnv, Bt as jGroupC, C as cnIdCard18Re, Cn as userAgent, Ct as isSymbol, D as cnUSCIRE, Dt as isUndefined, E as cnTelRE2, Et as isUSCI, F as fixiOSInputAutoZoomIn, Ft as isWeakSet, G as hideFirstName, Gt as jLogOnce, H as hideBankCard, Ht as jInfo, I as getBaseAttachUrl, It as jClear, J as hidePhone, Jt as jWarn, K as hideHead, Kt as jTime, L as getCodeOfDate, Lt as jDebug, M as detect, Mt as isValidRes, N as emailRE, Nt as isValidResCode, O as currencyFmt, Ot as isValidArrRes, P as filterObj, Pt as isWeakMap, Q as inBrowser, Qt as kebab2Title, R as getCodeOfHour, Rt as jError, S as cnIdCard15Re, Sn as toThousands, St as isString, T as cnTelRE, Tt as isURL, U as hideCardNo, Ut as jLog, V as getVariableType, Vt as jGroupE, W as hideEmail, Wt as jLogDedupe, X as hideTail, Xt as kebab2Pascal, Y as hideSurname, Yt as kebab2Camel, Z as hideThird, Zt as kebab2Snake, _ as camel2Kebab, _n as stringifyJSON, _t as isObject, a as NullOrUndefinable, an as pascal2Kebab, at as isDef, b as camel2Title, bn as title2Pascal, bt as isRegExp, c as PageReq, cn as recoverFile, ct as isError, d as PartialBy, dn as reviver, dt as isIdCard, en as naturalSortBy, et as isArray, f as Res, fn as setBaseAttachUrl, ft as isJSONStr, g as attachFmt, gn as snake2Title, gt as isNumeric, h as VK, hn as snake2Pascal, ht as isNumber, i as MaybeArray, in as pascal2Camel, it as isDate, j as dayjs, jt as isValidPageRes, k as dateDuration, kt as isValidFileType, l as PageRes, ln as replacer, lt as isFile, m as Undefinable, mn as snake2Kebab, mt as isNull, n as Dict, nn as parseJSON, nt as isBlob, o as Nullable, on as pascal2Snake, ot as isEmail, p as UnDef, pn as snake2Camel, pt as isMap, q as hideMiddle, qt as jTimeEnd, r as HostEnv, rn as parseToJSON, rt as isBoolean, s as Numeric, sn as pascal2Title, st as isEmpty, t as Dayjs, tn as nonASCII, tt as isBigInt, u as PageResData, un as resUrl, ut as isFunction, v as camel2Pascal, vn as title2Camel, vt as isPhone, w as cnPhoneRE, wn as waitTime, wt as isTel, x as checkImg, xn as title2Snake, xt as isSet, y as camel2Snake, yn as title2Kebab, yt as isPromise, z as getCodeOfMonth, zt as jGroup } from "./core-vGvnOkEI.js";
2
2
  export { Dayjs, Dict, HostEnv, MaybeArray, NullOrUndefinable, Nullable, Numeric, PageReq, PageRes, PageResData, PartialBy, Res, UnDef, Undefinable, VK, attachFmt, camel2Kebab, camel2Pascal, camel2Snake, camel2Title, checkImg, cnIdCard15Re, cnIdCard18Re, cnPhoneRE, cnTelRE, cnTelRE2, cnUSCIRE, currencyFmt, dateDuration, dateFmt, dayjs, detect, emailRE, filterObj, fixiOSInputAutoZoomIn, getBaseAttachUrl, getCodeOfDate, getCodeOfHour, getCodeOfMonth, getHostEnv, getVariableType, hideBankCard, hideCardNo, hideEmail, hideFirstName, hideHead, hideMiddle, hidePhone, hideSurname, hideTail, hideThird, inBrowser, isArrStr, isArray, isBigInt, isBlob, isBoolean, isDate, isDef, isEmail, isEmpty, isError, isFile, isFunction, isIdCard, isJSONStr, isMap, isNull, isNumber, isNumeric, isObject, isPhone, isPromise, isRegExp, isSet, isString, isSymbol, isTel, isURL, isUSCI, isUndefined, isValidArrRes, isValidFileType, isValidKey, isValidPageRes, isValidRes, isValidResCode, isWeakMap, isWeakSet, jClear, jDebug, jError, jGroup, jGroupC, jGroupE, jInfo, jLog, jLogDedupe, jLogOnce, jTime, jTimeEnd, jWarn, kebab2Camel, kebab2Pascal, kebab2Snake, kebab2Title, naturalSort, naturalSortBy, nonASCII, parseJSON, parseToJSON, pascal2Camel, pascal2Kebab, pascal2Snake, pascal2Title, recoverFile, replacer, resUrl, reviver, setBaseAttachUrl, snake2Camel, snake2Kebab, snake2Pascal, snake2Title, stringifyJSON, title2Camel, title2Kebab, title2Pascal, title2Snake, toThousands, userAgent, waitTime };
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- import{$ as e,$t as t,A as n,At as r,B as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,G as m,Gt as h,H as g,Ht as _,I as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,Lt as T,M as E,Mt as D,N as O,Nt as k,O as A,Ot as j,P as M,Pt as N,Q as P,Qt as F,R as I,Rt as L,S as R,St as z,T as B,Tt as V,U as H,Ut as U,V as W,Vt as G,W as K,Wt as q,X as J,Xt as Y,Y as X,Yt as Z,Z as Q,Zt as $,_ as ee,_t as te,a as ne,an as re,at as ie,b as ae,bt as oe,c as se,cn as ce,ct as le,d as ue,dt as de,en as fe,et as pe,f as me,ft as he,g as ge,gt as _e,h as ve,ht as ye,i as be,in as xe,it as Se,j as Ce,jt as we,k as Te,kt as Ee,l as De,ln as Oe,lt as ke,m as Ae,mt as je,n as Me,nn as Ne,nt as Pe,o as Fe,on as Ie,ot as Le,p as Re,pt as ze,q as Be,qt as Ve,r as He,rn as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tn as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st,zt as ct}from"./core-DFhXXH5v.js";export{Je as attachFmt,Me as camel2Kebab,He as camel2Pascal,be as camel2Snake,ne as camel2Title,Fe as checkImg,Ge as cnIdCard15Re,se as cnIdCard18Re,De as cnPhoneRE,Ze as cnTelRE,ue as cnTelRE2,me as cnUSCIRE,Re as currencyFmt,Ae as dateDuration,ve as dateFmt,ge as dayjs,ee as detect,$e as emailRE,at as filterObj,ae as fixiOSInputAutoZoomIn,rt as getBaseAttachUrl,R as getCodeOfDate,o as getCodeOfHour,tt as getCodeOfMonth,B as getHostEnv,u as getVariableType,c as hideBankCard,A as hideCardNo,Te as hideEmail,n as hideFirstName,Ce as hideHead,E as hideMiddle,O as hidePhone,M as hideSurname,f as hideTail,v as hideThird,w as inBrowser,I as isArrStr,st as isArray,i as isBigInt,W as isBlob,g as isBoolean,H as isDate,K as isDef,m as isEmail,S as isEmpty,Be as isError,b as isFile,X as isFunction,J as isIdCard,Q as isJSONStr,P as isMap,e as isNull,pe as isNumber,Xe as isNumeric,Pe as isObject,We as isPhone,Se as isPromise,ie as isRegExp,Le as isSet,qe as isString,le as isSymbol,ke as isTel,Qe as isURL,de as isUSCI,he as isUndefined,ze as isValidArrRes,je as isValidFileType,ye as isValidKey,_e as isValidPageRes,te as isValidRes,et as isValidResCode,ot as isWeakMap,oe as isWeakSet,it as jClear,z as jDebug,s as jError,nt as jGroup,V as jGroupC,d as jGroupE,l as jInfo,j as jLog,Ee as jLogDedupe,r as jLogOnce,we as jTime,D as jTimeEnd,k as jWarn,N as kebab2Camel,p as kebab2Pascal,y as kebab2Snake,T as kebab2Title,L as naturalSort,ct as naturalSortBy,a as nonASCII,G as parseJSON,_ as parseToJSON,U as pascal2Camel,q as pascal2Kebab,h as pascal2Snake,C as pascal2Title,Ve as recoverFile,x as replacer,Z as resUrl,Y as reviver,$ as setBaseAttachUrl,F as snake2Camel,t as snake2Kebab,fe as snake2Pascal,Ye as snake2Title,Ne as stringifyJSON,Ue as title2Camel,xe as title2Kebab,re as title2Pascal,Ie as title2Snake,Ke as toThousands,ce as userAgent,Oe as waitTime};
1
+ import{$ as e,$t as t,A as n,At as r,B as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,G as m,Gt as h,H as g,Ht as _,I as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,Lt as T,M as E,Mt as D,N as O,Nt as k,O as A,Ot as j,P as M,Pt as N,Q as P,Qt as F,R as I,Rt as L,S as R,St as z,T as B,Tt as V,U as H,Ut as U,V as W,Vt as G,W as K,Wt as q,X as J,Xt as Y,Y as X,Yt as Z,Z as Q,Zt as $,_ as ee,_t as te,a as ne,an as re,at as ie,b as ae,bt as oe,c as se,cn as ce,ct as le,d as ue,dt as de,en as fe,et as pe,f as me,ft as he,g as ge,gt as _e,h as ve,ht as ye,i as be,in as xe,it as Se,j as Ce,jt as we,k as Te,kt as Ee,l as De,ln as Oe,lt as ke,m as Ae,mt as je,n as Me,nn as Ne,nt as Pe,o as Fe,on as Ie,ot as Le,p as Re,pt as ze,q as Be,qt as Ve,r as He,rn as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tn as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st,zt as ct}from"./core-D7A_cSVA.js";export{Je as attachFmt,Me as camel2Kebab,He as camel2Pascal,be as camel2Snake,ne as camel2Title,Fe as checkImg,Ge as cnIdCard15Re,se as cnIdCard18Re,De as cnPhoneRE,Ze as cnTelRE,ue as cnTelRE2,me as cnUSCIRE,Re as currencyFmt,Ae as dateDuration,ve as dateFmt,ge as dayjs,ee as detect,$e as emailRE,at as filterObj,ae as fixiOSInputAutoZoomIn,rt as getBaseAttachUrl,R as getCodeOfDate,o as getCodeOfHour,tt as getCodeOfMonth,B as getHostEnv,u as getVariableType,c as hideBankCard,A as hideCardNo,Te as hideEmail,n as hideFirstName,Ce as hideHead,E as hideMiddle,O as hidePhone,M as hideSurname,f as hideTail,v as hideThird,w as inBrowser,I as isArrStr,st as isArray,i as isBigInt,W as isBlob,g as isBoolean,H as isDate,K as isDef,m as isEmail,S as isEmpty,Be as isError,b as isFile,X as isFunction,J as isIdCard,Q as isJSONStr,P as isMap,e as isNull,pe as isNumber,Xe as isNumeric,Pe as isObject,We as isPhone,Se as isPromise,ie as isRegExp,Le as isSet,qe as isString,le as isSymbol,ke as isTel,Qe as isURL,de as isUSCI,he as isUndefined,ze as isValidArrRes,je as isValidFileType,ye as isValidKey,_e as isValidPageRes,te as isValidRes,et as isValidResCode,ot as isWeakMap,oe as isWeakSet,it as jClear,z as jDebug,s as jError,nt as jGroup,V as jGroupC,d as jGroupE,l as jInfo,j as jLog,Ee as jLogDedupe,r as jLogOnce,we as jTime,D as jTimeEnd,k as jWarn,N as kebab2Camel,p as kebab2Pascal,y as kebab2Snake,T as kebab2Title,L as naturalSort,ct as naturalSortBy,a as nonASCII,G as parseJSON,_ as parseToJSON,U as pascal2Camel,q as pascal2Kebab,h as pascal2Snake,C as pascal2Title,Ve as recoverFile,x as replacer,Z as resUrl,Y as reviver,$ as setBaseAttachUrl,F as snake2Camel,t as snake2Kebab,fe as snake2Pascal,Ye as snake2Title,Ne as stringifyJSON,Ue as title2Camel,xe as title2Kebab,re as title2Pascal,Ie as title2Snake,Ke as toThousands,ce as userAgent,Oe as waitTime};
package/dist/crypto.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as base64, c as base64url, d as getCryptoKey, f as md5, i as aes, l as base64urlDecrypt, n as AESEncrypt, o as base64Decrypt, p as setCryptoKey, r as MD5Encrypt, s as base64Encrypt, t as AESDecrypt, u as base64urlEncrypt } from "./crypto-iOKqiXtf.js";
1
+ import { a as base64, c as base64url, d as getCryptoKey, f as md5, i as aes, l as base64urlDecrypt, n as AESEncrypt, o as base64Decrypt, p as setCryptoKey, r as MD5Encrypt, s as base64Encrypt, t as AESDecrypt, u as base64urlEncrypt } from "./crypto-m7hnY66q.js";
2
2
  export { AESDecrypt, AESEncrypt, MD5Encrypt, aes, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, getCryptoKey, md5, setCryptoKey };
package/dist/crypto.js CHANGED
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./crypto-DXTxc5tk.js";export{d as AESDecrypt,o as AESEncrypt,l as MD5Encrypt,i as aes,e as base64,s as base64Decrypt,u as base64Encrypt,t as base64url,a as base64urlDecrypt,f as base64urlEncrypt,n as getCryptoKey,r as md5,c as setCryptoKey};
1
+ import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./crypto-DyTnRE4J.js";export{d as AESDecrypt,o as AESEncrypt,l as MD5Encrypt,i as aes,e as base64,s as base64Decrypt,u as base64Encrypt,t as base64url,a as base64urlDecrypt,f as base64urlEncrypt,n as getCryptoKey,r as md5,c as setCryptoKey};
package/dist/faker.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as fakeEnum, c as fakeIntRange, d as fakePhone, f as fakeValue, i as fakeDateRange, l as fakeKey, n as fakeDateFuture, o as fakeFloatRange, r as fakeDatePast, s as fakeId, t as fakeChance, u as fakeName } from "./faker-1Bdjoao3.js";
1
+ import { a as fakeEnum, c as fakeIntRange, d as fakePhone, f as fakeValue, i as fakeDateRange, l as fakeKey, n as fakeDateFuture, o as fakeFloatRange, r as fakeDatePast, s as fakeId, t as fakeChance, u as fakeName } from "./faker-BI2VZVxO.js";
2
2
  export { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue };
package/dist/faker.js CHANGED
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./faker-P1GC82Ur.js";export{u as fakeChance,o as fakeDateFuture,c as fakeDatePast,i as fakeDateRange,e as fakeEnum,s as fakeFloatRange,l as fakeId,t as fakeIntRange,a as fakeKey,d as fakeName,n as fakePhone,r as fakeValue};
1
+ import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./faker-Cs4rM2K0.js";export{u as fakeChance,o as fakeDateFuture,c as fakeDatePast,i as fakeDateRange,e as fakeEnum,s as fakeFloatRange,l as fakeId,t as fakeIntRange,a as fakeKey,d as fakeName,n as fakePhone,r as fakeValue};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as isArrStr, $t as naturalSort, A as dateFmt, At as isValidKey, B as getHostEnv, Bt as jGroupC, C as cnIdCard18Re, Cn as userAgent, Ct as isSymbol, D as cnUSCIRE, Dt as isUndefined, E as cnTelRE2, Et as isUSCI, F as fixiOSInputAutoZoomIn, Ft as isWeakSet, G as hideFirstName, Gt as jLogOnce, H as hideBankCard, Ht as jInfo, I as getBaseAttachUrl, It as jClear, J as hidePhone, Jt as jWarn, K as hideHead, Kt as jTime, L as getCodeOfDate, Lt as jDebug, M as detect, Mt as isValidRes, N as emailRE, Nt as isValidResCode, O as currencyFmt, Ot as isValidArrRes, P as filterObj, Pt as isWeakMap, Q as inBrowser, Qt as kebab2Title, R as getCodeOfHour, Rt as jError, S as cnIdCard15Re, Sn as toThousands, St as isString, T as cnTelRE, Tt as isURL, U as hideCardNo, Ut as jLog, V as getVariableType, Vt as jGroupE, W as hideEmail, Wt as jLogDedupe, X as hideTail, Xt as kebab2Pascal, Y as hideSurname, Yt as kebab2Camel, Z as hideThird, Zt as kebab2Snake, _ as camel2Kebab, _n as stringifyJSON, _t as isObject, a as NullOrUndefinable, an as pascal2Kebab, at as isDef, b as camel2Title, bn as title2Pascal, bt as isRegExp, c as PageReq, cn as recoverFile, ct as isError, d as PartialBy, dn as reviver, dt as isIdCard, en as naturalSortBy, et as isArray, f as Res, fn as setBaseAttachUrl, ft as isJSONStr, g as attachFmt, gn as snake2Title, gt as isNumeric, h as VK, hn as snake2Pascal, ht as isNumber, i as MaybeArray, in as pascal2Camel, it as isDate, j as dayjs, jt as isValidPageRes, k as dateDuration, kt as isValidFileType, l as PageRes, ln as replacer, lt as isFile, m as Undefinable, mn as snake2Kebab, mt as isNull, n as Dict, nn as parseJSON, nt as isBlob, o as Nullable, on as pascal2Snake, ot as isEmail, p as UnDef, pn as snake2Camel, pt as isMap, q as hideMiddle, qt as jTimeEnd, r as HostEnv, rn as parseToJSON, rt as isBoolean, s as Numeric, sn as pascal2Title, st as isEmpty, t as Dayjs, tn as nonASCII, tt as isBigInt, u as PageResData, un as resUrl, ut as isFunction, v as camel2Pascal, vn as title2Camel, vt as isPhone, w as cnPhoneRE, wn as waitTime, wt as isTel, x as checkImg, xn as title2Snake, xt as isSet, y as camel2Snake, yn as title2Kebab, yt as isPromise, z as getCodeOfMonth, zt as jGroup } from "./core-1Sl-W7Yv.js";
2
- import { a as base64, c as base64url, d as getCryptoKey, f as md5, i as aes, l as base64urlDecrypt, n as AESEncrypt, o as base64Decrypt, p as setCryptoKey, r as MD5Encrypt, s as base64Encrypt, t as AESDecrypt, u as base64urlEncrypt } from "./crypto-iOKqiXtf.js";
3
- import { a as fakeEnum, c as fakeIntRange, d as fakePhone, f as fakeValue, i as fakeDateRange, l as fakeKey, n as fakeDateFuture, o as fakeFloatRange, r as fakeDatePast, s as fakeId, t as fakeChance, u as fakeName } from "./faker-1Bdjoao3.js";
4
- import { a as getMockData, i as commonRes, n as commonArrRes, o as getMockDataList, r as commonPageRes, t as MaybeFn } from "./msw-slMUsl5l.js";
5
- import { _ as storageParse, a as hasLocal, c as removeLocal, d as removeSessionAll, f as removeStorage, g as setStorage, h as setSession, i as getStorage, l as removeLocalAll, m as setLocal, n as getLocal, o as hasSession, p as removeStorageAll, r as getSession, s as hasStorage, t as StorageObj, u as removeSession, v as storageStringify } from "./index-nXgHLeKa.js";
1
+ import { $ as isArrStr, $t as naturalSort, A as dateFmt, At as isValidKey, B as getHostEnv, Bt as jGroupC, C as cnIdCard18Re, Cn as userAgent, Ct as isSymbol, D as cnUSCIRE, Dt as isUndefined, E as cnTelRE2, Et as isUSCI, F as fixiOSInputAutoZoomIn, Ft as isWeakSet, G as hideFirstName, Gt as jLogOnce, H as hideBankCard, Ht as jInfo, I as getBaseAttachUrl, It as jClear, J as hidePhone, Jt as jWarn, K as hideHead, Kt as jTime, L as getCodeOfDate, Lt as jDebug, M as detect, Mt as isValidRes, N as emailRE, Nt as isValidResCode, O as currencyFmt, Ot as isValidArrRes, P as filterObj, Pt as isWeakMap, Q as inBrowser, Qt as kebab2Title, R as getCodeOfHour, Rt as jError, S as cnIdCard15Re, Sn as toThousands, St as isString, T as cnTelRE, Tt as isURL, U as hideCardNo, Ut as jLog, V as getVariableType, Vt as jGroupE, W as hideEmail, Wt as jLogDedupe, X as hideTail, Xt as kebab2Pascal, Y as hideSurname, Yt as kebab2Camel, Z as hideThird, Zt as kebab2Snake, _ as camel2Kebab, _n as stringifyJSON, _t as isObject, a as NullOrUndefinable, an as pascal2Kebab, at as isDef, b as camel2Title, bn as title2Pascal, bt as isRegExp, c as PageReq, cn as recoverFile, ct as isError, d as PartialBy, dn as reviver, dt as isIdCard, en as naturalSortBy, et as isArray, f as Res, fn as setBaseAttachUrl, ft as isJSONStr, g as attachFmt, gn as snake2Title, gt as isNumeric, h as VK, hn as snake2Pascal, ht as isNumber, i as MaybeArray, in as pascal2Camel, it as isDate, j as dayjs, jt as isValidPageRes, k as dateDuration, kt as isValidFileType, l as PageRes, ln as replacer, lt as isFile, m as Undefinable, mn as snake2Kebab, mt as isNull, n as Dict, nn as parseJSON, nt as isBlob, o as Nullable, on as pascal2Snake, ot as isEmail, p as UnDef, pn as snake2Camel, pt as isMap, q as hideMiddle, qt as jTimeEnd, r as HostEnv, rn as parseToJSON, rt as isBoolean, s as Numeric, sn as pascal2Title, st as isEmpty, t as Dayjs, tn as nonASCII, tt as isBigInt, u as PageResData, un as resUrl, ut as isFunction, v as camel2Pascal, vn as title2Camel, vt as isPhone, w as cnPhoneRE, wn as waitTime, wt as isTel, x as checkImg, xn as title2Snake, xt as isSet, y as camel2Snake, yn as title2Kebab, yt as isPromise, z as getCodeOfMonth, zt as jGroup } from "./core-vGvnOkEI.js";
2
+ import { a as base64, c as base64url, d as getCryptoKey, f as md5, i as aes, l as base64urlDecrypt, n as AESEncrypt, o as base64Decrypt, p as setCryptoKey, r as MD5Encrypt, s as base64Encrypt, t as AESDecrypt, u as base64urlEncrypt } from "./crypto-m7hnY66q.js";
3
+ import { a as fakeEnum, c as fakeIntRange, d as fakePhone, f as fakeValue, i as fakeDateRange, l as fakeKey, n as fakeDateFuture, o as fakeFloatRange, r as fakeDatePast, s as fakeId, t as fakeChance, u as fakeName } from "./faker-BI2VZVxO.js";
4
+ import { a as getMockData, i as commonRes, n as commonArrRes, o as getMockDataList, r as commonPageRes, t as MaybeFn } from "./msw-nEoEuUuj.js";
5
+ import { _ as storageParse, a as hasLocal, c as removeLocal, d as removeSessionAll, f as removeStorage, g as setStorage, h as setSession, i as getStorage, l as removeLocalAll, m as setLocal, n as getLocal, o as hasSession, p as removeStorageAll, r as getSession, s as hasStorage, t as StorageObj, u as removeSession, v as storageStringify } from "./index-Bwt_67VL.js";
6
6
  export { AESDecrypt, AESEncrypt, Dayjs, Dict, HostEnv, MD5Encrypt, MaybeArray, MaybeFn, NullOrUndefinable, Nullable, Numeric, PageReq, PageRes, PageResData, PartialBy, Res, StorageObj, UnDef, Undefinable, VK, aes, attachFmt, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, camel2Kebab, camel2Pascal, camel2Snake, camel2Title, checkImg, cnIdCard15Re, cnIdCard18Re, cnPhoneRE, cnTelRE, cnTelRE2, cnUSCIRE, commonArrRes, commonPageRes, commonRes, currencyFmt, dateDuration, dateFmt, dayjs, detect, emailRE, fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue, filterObj, fixiOSInputAutoZoomIn, getBaseAttachUrl, getCodeOfDate, getCodeOfHour, getCodeOfMonth, getCryptoKey, getHostEnv, getLocal, getMockData, getMockDataList, getSession, getStorage, getVariableType, hasLocal, hasSession, hasStorage, hideBankCard, hideCardNo, hideEmail, hideFirstName, hideHead, hideMiddle, hidePhone, hideSurname, hideTail, hideThird, inBrowser, isArrStr, isArray, isBigInt, isBlob, isBoolean, isDate, isDef, isEmail, isEmpty, isError, isFile, isFunction, isIdCard, isJSONStr, isMap, isNull, isNumber, isNumeric, isObject, isPhone, isPromise, isRegExp, isSet, isString, isSymbol, isTel, isURL, isUSCI, isUndefined, isValidArrRes, isValidFileType, isValidKey, isValidPageRes, isValidRes, isValidResCode, isWeakMap, isWeakSet, jClear, jDebug, jError, jGroup, jGroupC, jGroupE, jInfo, jLog, jLogDedupe, jLogOnce, jTime, jTimeEnd, jWarn, kebab2Camel, kebab2Pascal, kebab2Snake, kebab2Title, md5, naturalSort, naturalSortBy, nonASCII, parseJSON, parseToJSON, pascal2Camel, pascal2Kebab, pascal2Snake, pascal2Title, recoverFile, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, replacer, resUrl, reviver, setBaseAttachUrl, setCryptoKey, setLocal, setSession, setStorage, snake2Camel, snake2Kebab, snake2Pascal, snake2Title, storageParse, storageStringify, stringifyJSON, title2Camel, title2Kebab, title2Pascal, title2Snake, toThousands, userAgent, waitTime };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{$ as e,$t as t,A as n,At as r,B as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,G as m,Gt as h,H as g,Ht as _,I as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,Lt as T,M as E,Mt as D,N as O,Nt as k,O as A,Ot as j,P as M,Pt as N,Q as P,Qt as F,R as I,Rt as L,S as R,St as z,T as B,Tt as V,U as H,Ut as U,V as W,Vt as G,W as K,Wt as q,X as J,Xt as Y,Y as X,Yt as Z,Z as Q,Zt as $,_ as ee,_t as te,a as ne,an as re,at as ie,b as ae,bt as oe,c as se,cn as ce,ct as le,d as ue,dt as de,en as fe,et as pe,f as me,ft as he,g as ge,gt as _e,h as ve,ht as ye,i as be,in as xe,it as Se,j as Ce,jt as we,k as Te,kt as Ee,l as De,ln as Oe,lt as ke,m as Ae,mt as je,n as Me,nn as Ne,nt as Pe,o as Fe,on as Ie,ot as Le,p as Re,pt as ze,q as Be,qt as Ve,r as He,rn as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tn as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st,zt as ct}from"./core-DFhXXH5v.js";import{a as lt,c as ut,d as dt,f as ft,i as pt,l as mt,n as ht,o as gt,p as _t,r as vt,s as yt,t as bt,u as xt}from"./crypto-DXTxc5tk.js";import{a as St,c as Ct,d as wt,f as Tt,i as Et,l as Dt,n as Ot,o as kt,r as At,s as jt,t as Mt,u as Nt}from"./faker-P1GC82Ur.js";import{a as Pt,i as Ft,n as It,r as Lt,t as Rt}from"./msw-DHfSlHXA.js";import{_ as zt,a as Bt,c as Vt,d as Ht,f as Ut,g as Wt,h as Gt,i as Kt,l as qt,m as Jt,n as Yt,o as Xt,p as Zt,r as Qt,s as $t,t as en,u as tn}from"./storage-CmMN0ZWM.js";export{bt as AESDecrypt,ht as AESEncrypt,vt as MD5Encrypt,pt as aes,Je as attachFmt,lt as base64,gt as base64Decrypt,yt as base64Encrypt,ut as base64url,mt as base64urlDecrypt,xt as base64urlEncrypt,Me as camel2Kebab,He as camel2Pascal,be as camel2Snake,ne as camel2Title,Fe as checkImg,Ge as cnIdCard15Re,se as cnIdCard18Re,De as cnPhoneRE,Ze as cnTelRE,ue as cnTelRE2,me as cnUSCIRE,Rt as commonArrRes,It as commonPageRes,Lt as commonRes,Re as currencyFmt,Ae as dateDuration,ve as dateFmt,ge as dayjs,ee as detect,$e as emailRE,Mt as fakeChance,Ot as fakeDateFuture,At as fakeDatePast,Et as fakeDateRange,St as fakeEnum,kt as fakeFloatRange,jt as fakeId,Ct as fakeIntRange,Dt as fakeKey,Nt as fakeName,wt as fakePhone,Tt as fakeValue,at as filterObj,ae as fixiOSInputAutoZoomIn,rt as getBaseAttachUrl,R as getCodeOfDate,o as getCodeOfHour,tt as getCodeOfMonth,dt as getCryptoKey,B as getHostEnv,en as getLocal,Ft as getMockData,Pt as getMockDataList,Yt as getSession,Qt as getStorage,u as getVariableType,Kt as hasLocal,Bt as hasSession,Xt as hasStorage,c as hideBankCard,A as hideCardNo,Te as hideEmail,n as hideFirstName,Ce as hideHead,E as hideMiddle,O as hidePhone,M as hideSurname,f as hideTail,v as hideThird,w as inBrowser,I as isArrStr,st as isArray,i as isBigInt,W as isBlob,g as isBoolean,H as isDate,K as isDef,m as isEmail,S as isEmpty,Be as isError,b as isFile,X as isFunction,J as isIdCard,Q as isJSONStr,P as isMap,e as isNull,pe as isNumber,Xe as isNumeric,Pe as isObject,We as isPhone,Se as isPromise,ie as isRegExp,Le as isSet,qe as isString,le as isSymbol,ke as isTel,Qe as isURL,de as isUSCI,he as isUndefined,ze as isValidArrRes,je as isValidFileType,ye as isValidKey,_e as isValidPageRes,te as isValidRes,et as isValidResCode,ot as isWeakMap,oe as isWeakSet,it as jClear,z as jDebug,s as jError,nt as jGroup,V as jGroupC,d as jGroupE,l as jInfo,j as jLog,Ee as jLogDedupe,r as jLogOnce,we as jTime,D as jTimeEnd,k as jWarn,N as kebab2Camel,p as kebab2Pascal,y as kebab2Snake,T as kebab2Title,ft as md5,L as naturalSort,ct as naturalSortBy,a as nonASCII,G as parseJSON,_ as parseToJSON,U as pascal2Camel,q as pascal2Kebab,h as pascal2Snake,C as pascal2Title,Ve as recoverFile,$t as removeLocal,Vt as removeLocalAll,qt as removeSession,tn as removeSessionAll,Ht as removeStorage,Ut as removeStorageAll,x as replacer,Z as resUrl,Y as reviver,$ as setBaseAttachUrl,_t as setCryptoKey,Zt as setLocal,Jt as setSession,Gt as setStorage,F as snake2Camel,t as snake2Kebab,fe as snake2Pascal,Ye as snake2Title,Wt as storageParse,zt as storageStringify,Ne as stringifyJSON,Ue as title2Camel,xe as title2Kebab,re as title2Pascal,Ie as title2Snake,Ke as toThousands,ce as userAgent,Oe as waitTime};
1
+ import{$ as e,$t as t,A as n,At as r,B as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,G as m,Gt as h,H as g,Ht as _,I as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,Lt as T,M as E,Mt as D,N as O,Nt as k,O as A,Ot as j,P as M,Pt as N,Q as P,Qt as F,R as I,Rt as L,S as R,St as z,T as B,Tt as V,U as H,Ut as U,V as W,Vt as G,W as K,Wt as q,X as J,Xt as Y,Y as X,Yt as Z,Z as Q,Zt as $,_ as ee,_t as te,a as ne,an as re,at as ie,b as ae,bt as oe,c as se,cn as ce,ct as le,d as ue,dt as de,en as fe,et as pe,f as me,ft as he,g as ge,gt as _e,h as ve,ht as ye,i as be,in as xe,it as Se,j as Ce,jt as we,k as Te,kt as Ee,l as De,ln as Oe,lt as ke,m as Ae,mt as je,n as Me,nn as Ne,nt as Pe,o as Fe,on as Ie,ot as Le,p as Re,pt as ze,q as Be,qt as Ve,r as He,rn as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tn as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st,zt as ct}from"./core-D7A_cSVA.js";import{a as lt,c as ut,d as dt,f as ft,i as pt,l as mt,n as ht,o as gt,p as _t,r as vt,s as yt,t as bt,u as xt}from"./crypto-DyTnRE4J.js";import{a as St,c as Ct,d as wt,f as Tt,i as Et,l as Dt,n as Ot,o as kt,r as At,s as jt,t as Mt,u as Nt}from"./faker-Cs4rM2K0.js";import{a as Pt,i as Ft,n as It,r as Lt,t as Rt}from"./msw-CV9cfx7g.js";import{_ as zt,a as Bt,c as Vt,d as Ht,f as Ut,g as Wt,h as Gt,i as Kt,l as qt,m as Jt,n as Yt,o as Xt,p as Zt,r as Qt,s as $t,t as en,u as tn}from"./storage-BtU5f2H9.js";export{bt as AESDecrypt,ht as AESEncrypt,vt as MD5Encrypt,pt as aes,Je as attachFmt,lt as base64,gt as base64Decrypt,yt as base64Encrypt,ut as base64url,mt as base64urlDecrypt,xt as base64urlEncrypt,Me as camel2Kebab,He as camel2Pascal,be as camel2Snake,ne as camel2Title,Fe as checkImg,Ge as cnIdCard15Re,se as cnIdCard18Re,De as cnPhoneRE,Ze as cnTelRE,ue as cnTelRE2,me as cnUSCIRE,Rt as commonArrRes,It as commonPageRes,Lt as commonRes,Re as currencyFmt,Ae as dateDuration,ve as dateFmt,ge as dayjs,ee as detect,$e as emailRE,Mt as fakeChance,Ot as fakeDateFuture,At as fakeDatePast,Et as fakeDateRange,St as fakeEnum,kt as fakeFloatRange,jt as fakeId,Ct as fakeIntRange,Dt as fakeKey,Nt as fakeName,wt as fakePhone,Tt as fakeValue,at as filterObj,ae as fixiOSInputAutoZoomIn,rt as getBaseAttachUrl,R as getCodeOfDate,o as getCodeOfHour,tt as getCodeOfMonth,dt as getCryptoKey,B as getHostEnv,en as getLocal,Ft as getMockData,Pt as getMockDataList,Yt as getSession,Qt as getStorage,u as getVariableType,Kt as hasLocal,Bt as hasSession,Xt as hasStorage,c as hideBankCard,A as hideCardNo,Te as hideEmail,n as hideFirstName,Ce as hideHead,E as hideMiddle,O as hidePhone,M as hideSurname,f as hideTail,v as hideThird,w as inBrowser,I as isArrStr,st as isArray,i as isBigInt,W as isBlob,g as isBoolean,H as isDate,K as isDef,m as isEmail,S as isEmpty,Be as isError,b as isFile,X as isFunction,J as isIdCard,Q as isJSONStr,P as isMap,e as isNull,pe as isNumber,Xe as isNumeric,Pe as isObject,We as isPhone,Se as isPromise,ie as isRegExp,Le as isSet,qe as isString,le as isSymbol,ke as isTel,Qe as isURL,de as isUSCI,he as isUndefined,ze as isValidArrRes,je as isValidFileType,ye as isValidKey,_e as isValidPageRes,te as isValidRes,et as isValidResCode,ot as isWeakMap,oe as isWeakSet,it as jClear,z as jDebug,s as jError,nt as jGroup,V as jGroupC,d as jGroupE,l as jInfo,j as jLog,Ee as jLogDedupe,r as jLogOnce,we as jTime,D as jTimeEnd,k as jWarn,N as kebab2Camel,p as kebab2Pascal,y as kebab2Snake,T as kebab2Title,ft as md5,L as naturalSort,ct as naturalSortBy,a as nonASCII,G as parseJSON,_ as parseToJSON,U as pascal2Camel,q as pascal2Kebab,h as pascal2Snake,C as pascal2Title,Ve as recoverFile,$t as removeLocal,Vt as removeLocalAll,qt as removeSession,tn as removeSessionAll,Ht as removeStorage,Ut as removeStorageAll,x as replacer,Z as resUrl,Y as reviver,$ as setBaseAttachUrl,_t as setCryptoKey,Zt as setLocal,Jt as setSession,Gt as setStorage,F as snake2Camel,t as snake2Kebab,fe as snake2Pascal,Ye as snake2Title,Wt as storageParse,zt as storageStringify,Ne as stringifyJSON,Ue as title2Camel,xe as title2Kebab,re as title2Pascal,Ie as title2Snake,Ke as toThousands,ce as userAgent,Oe as waitTime};
package/dist/msw.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as getMockData, i as commonRes, n as commonArrRes, o as getMockDataList, r as commonPageRes, t as MaybeFn } from "./msw-slMUsl5l.js";
1
+ import { a as getMockData, i as commonRes, n as commonArrRes, o as getMockDataList, r as commonPageRes, t as MaybeFn } from "./msw-nEoEuUuj.js";
2
2
  export { MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList };
package/dist/msw.js CHANGED
@@ -1 +1 @@
1
- import{a as e,i as t,n,r,t as i}from"./msw-DHfSlHXA.js";export{i as commonArrRes,n as commonPageRes,r as commonRes,t as getMockData,e as getMockDataList};
1
+ import{a as e,i as t,n,r,t as i}from"./msw-CV9cfx7g.js";export{i as commonArrRes,n as commonPageRes,r as commonRes,t as getMockData,e as getMockDataList};
@@ -1,2 +1,2 @@
1
- import { _ as storageParse, a as hasLocal, c as removeLocal, d as removeSessionAll, f as removeStorage, g as setStorage, h as setSession, i as getStorage, l as removeLocalAll, m as setLocal, n as getLocal, o as hasSession, p as removeStorageAll, r as getSession, s as hasStorage, t as StorageObj, u as removeSession, v as storageStringify } from "../index-nXgHLeKa.js";
1
+ import { _ as storageParse, a as hasLocal, c as removeLocal, d as removeSessionAll, f as removeStorage, g as setStorage, h as setSession, i as getStorage, l as removeLocalAll, m as setLocal, n as getLocal, o as hasSession, p as removeStorageAll, r as getSession, s as hasStorage, t as StorageObj, u as removeSession, v as storageStringify } from "../index-Bwt_67VL.js";
2
2
  export { StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify };
@@ -1 +1 @@
1
- import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"../storage-CmMN0ZWM.js";export{h as getLocal,u as getSession,p as getStorage,s as hasLocal,t as hasSession,d as hasStorage,m as removeLocal,n as removeLocalAll,c as removeSession,g as removeSessionAll,r as removeStorage,i as removeStorageAll,f as setLocal,l as setSession,o as setStorage,a as storageParse,e as storageStringify};
1
+ import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"../storage-BtU5f2H9.js";export{h as getLocal,u as getSession,p as getStorage,s as hasLocal,t as hasSession,d as hasStorage,m as removeLocal,n as removeLocalAll,c as removeSession,g as removeSessionAll,r as removeStorage,i as removeStorageAll,f as setLocal,l as setSession,o as setStorage,a as storageParse,e as storageStringify};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/utils",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.2-beta.1",
5
5
  "author": "jade-gjz <jiangang.zhang@jaderd.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/jaderd-jh/utils/tree/main/packages/utils#readme",
@@ -89,11 +89,11 @@
89
89
  "dist"
90
90
  ],
91
91
  "dependencies": {
92
- "@jhqn/utils-core": "0.3.1",
93
- "@jhqn/utils-crypto": "0.3.1",
94
- "@jhqn/utils-faker": "0.3.1",
95
- "@jhqn/utils-msw": "0.3.1",
96
- "@jhqn/utils-storage": "0.3.1"
92
+ "@jhqn/utils-core": "0.3.2-beta.1",
93
+ "@jhqn/utils-crypto": "0.3.2-beta.1",
94
+ "@jhqn/utils-faker": "0.3.2-beta.1",
95
+ "@jhqn/utils-storage": "0.3.2-beta.1",
96
+ "@jhqn/utils-msw": "0.3.2-beta.1"
97
97
  },
98
98
  "scripts": {
99
99
  "test": "vitest",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes