@jhqn/utils 0.1.0 → 0.2.0

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 (64) hide show
  1. package/dist/core-Ch6mxk2w.js +1 -0
  2. package/dist/core-DwYP_-CS.d.ts +2 -0
  3. package/dist/core.d.ts +2 -11
  4. package/dist/core.js +1 -0
  5. package/dist/crypto-B0-nVlWU.d.ts +6 -0
  6. package/dist/crypto-gQuYNe6g.js +1 -0
  7. package/dist/crypto.d.ts +2 -5
  8. package/dist/crypto.js +1 -0
  9. package/dist/faker-98Q63v1f.js +1 -0
  10. package/dist/faker-CNhKXj81.d.ts +2 -0
  11. package/dist/faker.d.ts +2 -1
  12. package/dist/faker.js +1 -0
  13. package/dist/index-DwYSXdSB.d.ts +2 -0
  14. package/dist/index.d.ts +6 -9
  15. package/dist/index.js +1 -0
  16. package/dist/msw-7KHOfZWk.js +1 -0
  17. package/dist/msw-DdchsHmL.d.ts +2 -0
  18. package/dist/msw.d.ts +2 -1
  19. package/dist/msw.js +1 -0
  20. package/dist/storage/index.d.ts +2 -1
  21. package/dist/storage/index.js +1 -0
  22. package/dist/storage/react.d.ts +2 -1
  23. package/dist/storage/react.js +1 -0
  24. package/dist/storage/vue.d.ts +2 -1
  25. package/dist/storage/vue.js +1 -0
  26. package/dist/storage-Ciz_4b0g.js +1 -0
  27. package/package.json +27 -65
  28. package/core.d.ts +0 -1
  29. package/crypto.d.ts +0 -5
  30. package/dist/core.cjs +0 -16
  31. package/dist/core.d.cts +0 -11
  32. package/dist/core.d.mts +0 -11
  33. package/dist/core.mjs +0 -1
  34. package/dist/crypto.cjs +0 -60
  35. package/dist/crypto.d.cts +0 -5
  36. package/dist/crypto.d.mts +0 -5
  37. package/dist/crypto.mjs +0 -5
  38. package/dist/faker.cjs +0 -16
  39. package/dist/faker.d.cts +0 -1
  40. package/dist/faker.d.mts +0 -1
  41. package/dist/faker.mjs +0 -1
  42. package/dist/index.cjs +0 -104
  43. package/dist/index.d.cts +0 -9
  44. package/dist/index.d.mts +0 -9
  45. package/dist/index.mjs +0 -9
  46. package/dist/msw.cjs +0 -16
  47. package/dist/msw.d.cts +0 -1
  48. package/dist/msw.d.mts +0 -1
  49. package/dist/msw.mjs +0 -1
  50. package/dist/storage/index.cjs +0 -16
  51. package/dist/storage/index.d.cts +0 -1
  52. package/dist/storage/index.d.mts +0 -1
  53. package/dist/storage/index.mjs +0 -1
  54. package/dist/storage/react.cjs +0 -16
  55. package/dist/storage/react.d.cts +0 -1
  56. package/dist/storage/react.d.mts +0 -1
  57. package/dist/storage/react.mjs +0 -1
  58. package/dist/storage/vue.cjs +0 -16
  59. package/dist/storage/vue.d.cts +0 -1
  60. package/dist/storage/vue.d.mts +0 -1
  61. package/dist/storage/vue.mjs +0 -1
  62. package/faker.d.ts +0 -1
  63. package/msw.d.ts +0 -1
  64. package/storage.d.ts +0 -3
@@ -0,0 +1 @@
1
+ import{attachFmt as e,camel2Kebab as t,camel2Pascal as n,camel2Snake as r,camel2Title as i,checkImg as a,cnIdCard15Re as o,cnIdCard18Re as s,cnPhoneRE as c,cnTelRE as l,cnTelRE2 as u,cnUSCIRE as d,currencyFmt as f,dateDuration as p,dateFmt as m,dayjs as h,detect as g,emailRE as _,filterObj as v,fixiOSInputAutoZoomIn as y,getBaseAttachUrl as b,getCodeOfDate as x,getCodeOfHour as S,getCodeOfMonth as C,getHostEnv as w,getVariableType as T,hideBankCard as E,hideCardNo as D,hideEmail as O,hideFirstName as k,hideHead as A,hideMiddle as j,hidePhone as M,hideSurname as N,hideTail as P,hideThird as F,inBrowser as I,isArrStr as L,isArray as R,isBigInt as z,isBlob as B,isBoolean as V,isDate as H,isDef as U,isEmail as W,isEmpty as G,isError as K,isFile as q,isFunction as J,isIdCard as Y,isJSONStr as X,isMap as Z,isNull as Q,isNumber as $,isNumeric as ee,isObject as te,isPhone as ne,isPromise as re,isRegExp as ie,isSet as ae,isString as oe,isSymbol as se,isTel as ce,isURL as le,isUSCI as ue,isUndefined as de,isValidArrRes as fe,isValidFileType as pe,isValidKey as me,isValidPageRes as he,isValidRes as ge,isValidResCode as _e,isWeakMap as ve,isWeakSet as ye,jClear as be,jDebug as xe,jError as Se,jGroup as Ce,jGroupC as we,jGroupE as Te,jInfo as Ee,jLog as De,jLogDedupe as Oe,jLogOnce as ke,jTime as Ae,jTimeEnd as je,jWarn as Me,kebab2Camel as Ne,kebab2Pascal as Pe,kebab2Snake as Fe,kebab2Title as Ie,naturalSort as Le,naturalSortBy as Re,nonASCII as ze,parseJSON as Be,parseToJSON as Ve,pascal2Camel as He,pascal2Kebab as Ue,pascal2Snake as We,pascal2Title as Ge,recoverFile as Ke,replacer as qe,resUrl as Je,reviver as Ye,setBaseAttachUrl as Xe,snake2Camel as Ze,snake2Kebab as Qe,snake2Pascal as $e,snake2Title as et,stringifyJSON as tt,title2Camel as nt,title2Kebab as rt,title2Pascal as it,title2Snake as at,toThousands as ot,userAgent as st,waitTime as ct}from"@jhqn/utils-core";export{e as attachFmt,t as camel2Kebab,n as camel2Pascal,r as camel2Snake,i as camel2Title,a as checkImg,o as cnIdCard15Re,s as cnIdCard18Re,c as cnPhoneRE,l as cnTelRE,u as cnTelRE2,d as cnUSCIRE,f as currencyFmt,p as dateDuration,m as dateFmt,h as dayjs,g as detect,_ as emailRE,v as filterObj,y as fixiOSInputAutoZoomIn,b as getBaseAttachUrl,x as getCodeOfDate,S as getCodeOfHour,C as getCodeOfMonth,w as getHostEnv,T as getVariableType,E as hideBankCard,D as hideCardNo,O as hideEmail,k as hideFirstName,A as hideHead,j as hideMiddle,M as hidePhone,N as hideSurname,P as hideTail,F as hideThird,I as inBrowser,L as isArrStr,R as isArray,z as isBigInt,B as isBlob,V as isBoolean,H as isDate,U as isDef,W as isEmail,G as isEmpty,K as isError,q as isFile,J as isFunction,Y as isIdCard,X as isJSONStr,Z as isMap,Q as isNull,$ as isNumber,ee as isNumeric,te as isObject,ne as isPhone,re as isPromise,ie as isRegExp,ae as isSet,oe as isString,se as isSymbol,ce as isTel,le as isURL,ue as isUSCI,de as isUndefined,fe as isValidArrRes,pe as isValidFileType,me as isValidKey,he as isValidPageRes,ge as isValidRes,_e as isValidResCode,ve as isWeakMap,ye as isWeakSet,be as jClear,xe as jDebug,Se as jError,Ce as jGroup,we as jGroupC,Te as jGroupE,Ee as jInfo,De as jLog,Oe as jLogDedupe,ke as jLogOnce,Ae as jTime,je as jTimeEnd,Me as jWarn,Ne as kebab2Camel,Pe as kebab2Pascal,Fe as kebab2Snake,Ie as kebab2Title,Le as naturalSort,Re as naturalSortBy,ze as nonASCII,Be as parseJSON,Ve as parseToJSON,He as pascal2Camel,Ue as pascal2Kebab,We as pascal2Snake,Ge as pascal2Title,Ke as recoverFile,qe as replacer,Je as resUrl,Ye as reviver,Xe as setBaseAttachUrl,Ze as snake2Camel,Qe as snake2Kebab,$e as snake2Pascal,et as snake2Title,tt as stringifyJSON,nt as title2Camel,rt as title2Kebab,it as title2Pascal,at as title2Snake,ot as toThousands,st as userAgent,ct as waitTime};
@@ -0,0 +1,2 @@
1
+ import { 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 } from "@jhqn/utils-core";
2
+ export { type Dayjs, type Dict, type HostEnv, type MaybeArray, type NullOrUndefinable, type Nullable, type Numeric, type PageReq, type PageRes, type PageResData, type PartialBy, type Res, type UnDef, type Undefinable, type 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.d.ts CHANGED
@@ -1,11 +1,2 @@
1
- export * from '@jhqn/utils-core';
2
- import '@jhqn/utils-crypto';
3
- import '@jhqn/utils-crypto/aes';
4
- import '@jhqn/utils-crypto/base64';
5
- import '@jhqn/utils-crypto/base64url';
6
- import '@jhqn/utils-crypto/md5';
7
- import '@jhqn/utils-faker';
8
- import '@jhqn/utils-msw';
9
- import '@jhqn/utils-storage';
10
- import '@jhqn/utils-storage/react';
11
- import '@jhqn/utils-storage/vue';
1
+ import { 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 } from "./core-DwYP_-CS.js";
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 ADDED
@@ -0,0 +1 @@
1
+ import{attachFmt as e,camel2Kebab as t,camel2Pascal as n,camel2Snake as r,camel2Title as i,checkImg as a,cnIdCard15Re as o,cnIdCard18Re as s,cnPhoneRE as c,cnTelRE as l,cnTelRE2 as u,cnUSCIRE as d,currencyFmt as f,dateDuration as p,dateFmt as m,dayjs as h,detect as g,emailRE as _,filterObj as v,fixiOSInputAutoZoomIn as y,getBaseAttachUrl as b,getCodeOfDate as x,getCodeOfHour as S,getCodeOfMonth as C,getHostEnv as w,getVariableType as T,hideBankCard as E,hideCardNo as D,hideEmail as O,hideFirstName as k,hideHead as A,hideMiddle as j,hidePhone as M,hideSurname as N,hideTail as P,hideThird as F,inBrowser as I,isArrStr as L,isArray as R,isBigInt as z,isBlob as B,isBoolean as V,isDate as H,isDef as U,isEmail as W,isEmpty as G,isError as K,isFile as q,isFunction as J,isIdCard as Y,isJSONStr as X,isMap as Z,isNull as Q,isNumber as $,isNumeric as ee,isObject as te,isPhone as ne,isPromise as re,isRegExp as ie,isSet as ae,isString as oe,isSymbol as se,isTel as ce,isURL as le,isUSCI as ue,isUndefined as de,isValidArrRes as fe,isValidFileType as pe,isValidKey as me,isValidPageRes as he,isValidRes as ge,isValidResCode as _e,isWeakMap as ve,isWeakSet as ye,jClear as be,jDebug as xe,jError as Se,jGroup as Ce,jGroupC as we,jGroupE as Te,jInfo as Ee,jLog as De,jLogDedupe as Oe,jLogOnce as ke,jTime as Ae,jTimeEnd as je,jWarn as Me,kebab2Camel as Ne,kebab2Pascal as Pe,kebab2Snake as Fe,kebab2Title as Ie,naturalSort as Le,naturalSortBy as Re,nonASCII as ze,parseJSON as Be,parseToJSON as Ve,pascal2Camel as He,pascal2Kebab as Ue,pascal2Snake as We,pascal2Title as Ge,recoverFile as Ke,replacer as qe,resUrl as Je,reviver as Ye,setBaseAttachUrl as Xe,snake2Camel as Ze,snake2Kebab as Qe,snake2Pascal as $e,snake2Title as et,stringifyJSON as tt,title2Camel as nt,title2Kebab as rt,title2Pascal as it,title2Snake as at,toThousands as ot,userAgent as st,waitTime as ct}from"./core-Ch6mxk2w.js";export{e as attachFmt,t as camel2Kebab,n as camel2Pascal,r as camel2Snake,i as camel2Title,a as checkImg,o as cnIdCard15Re,s as cnIdCard18Re,c as cnPhoneRE,l as cnTelRE,u as cnTelRE2,d as cnUSCIRE,f as currencyFmt,p as dateDuration,m as dateFmt,h as dayjs,g as detect,_ as emailRE,v as filterObj,y as fixiOSInputAutoZoomIn,b as getBaseAttachUrl,x as getCodeOfDate,S as getCodeOfHour,C as getCodeOfMonth,w as getHostEnv,T as getVariableType,E as hideBankCard,D as hideCardNo,O as hideEmail,k as hideFirstName,A as hideHead,j as hideMiddle,M as hidePhone,N as hideSurname,P as hideTail,F as hideThird,I as inBrowser,L as isArrStr,R as isArray,z as isBigInt,B as isBlob,V as isBoolean,H as isDate,U as isDef,W as isEmail,G as isEmpty,K as isError,q as isFile,J as isFunction,Y as isIdCard,X as isJSONStr,Z as isMap,Q as isNull,$ as isNumber,ee as isNumeric,te as isObject,ne as isPhone,re as isPromise,ie as isRegExp,ae as isSet,oe as isString,se as isSymbol,ce as isTel,le as isURL,ue as isUSCI,de as isUndefined,fe as isValidArrRes,pe as isValidFileType,me as isValidKey,he as isValidPageRes,ge as isValidRes,_e as isValidResCode,ve as isWeakMap,ye as isWeakSet,be as jClear,xe as jDebug,Se as jError,Ce as jGroup,we as jGroupC,Te as jGroupE,Ee as jInfo,De as jLog,Oe as jLogDedupe,ke as jLogOnce,Ae as jTime,je as jTimeEnd,Me as jWarn,Ne as kebab2Camel,Pe as kebab2Pascal,Fe as kebab2Snake,Ie as kebab2Title,Le as naturalSort,Re as naturalSortBy,ze as nonASCII,Be as parseJSON,Ve as parseToJSON,He as pascal2Camel,Ue as pascal2Kebab,We as pascal2Snake,Ge as pascal2Title,Ke as recoverFile,qe as replacer,Je as resUrl,Ye as reviver,Xe as setBaseAttachUrl,Ze as snake2Camel,Qe as snake2Kebab,$e as snake2Pascal,et as snake2Title,tt as stringifyJSON,nt as title2Camel,rt as title2Kebab,it as title2Pascal,at as title2Snake,ot as toThousands,st as userAgent,ct as waitTime};
@@ -0,0 +1,6 @@
1
+ import { getCryptoKey, setCryptoKey } from "@jhqn/utils-crypto";
2
+ import { AESDecrypt, AESEncrypt, aes } from "@jhqn/utils-crypto/aes";
3
+ import { base64, base64Decrypt, base64Encrypt } from "@jhqn/utils-crypto/base64";
4
+ import { base64url, base64urlDecrypt, base64urlEncrypt } from "@jhqn/utils-crypto/base64url";
5
+ import { MD5Encrypt, md5 } from "@jhqn/utils-crypto/md5";
6
+ export { AESDecrypt, AESEncrypt, MD5Encrypt, aes, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, getCryptoKey, md5, setCryptoKey };
@@ -0,0 +1 @@
1
+ import{getCryptoKey as e,setCryptoKey as t}from"@jhqn/utils-crypto";import{AESDecrypt as n,AESEncrypt as r,aes as i}from"@jhqn/utils-crypto/aes";import{base64 as a,base64Decrypt as o,base64Encrypt as s}from"@jhqn/utils-crypto/base64";import{base64url as c,base64urlDecrypt as l,base64urlEncrypt as u}from"@jhqn/utils-crypto/base64url";import{MD5Encrypt as d,md5 as f}from"@jhqn/utils-crypto/md5";export{n as AESDecrypt,r as AESEncrypt,d as MD5Encrypt,i as aes,a as base64,o as base64Decrypt,s as base64Encrypt,c as base64url,l as base64urlDecrypt,u as base64urlEncrypt,e as getCryptoKey,f as md5,t as setCryptoKey};
package/dist/crypto.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- export * from '@jhqn/utils-crypto';
2
- export * from '@jhqn/utils-crypto/aes';
3
- export * from '@jhqn/utils-crypto/base64';
4
- export * from '@jhqn/utils-crypto/base64url';
5
- export * from '@jhqn/utils-crypto/md5';
1
+ import { AESDecrypt, AESEncrypt, MD5Encrypt, aes, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, getCryptoKey, md5, setCryptoKey } from "./crypto-B0-nVlWU.js";
2
+ export { AESDecrypt, AESEncrypt, MD5Encrypt, aes, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, getCryptoKey, md5, setCryptoKey };
package/dist/crypto.js ADDED
@@ -0,0 +1 @@
1
+ import{AESDecrypt as e,AESEncrypt as t,MD5Encrypt as n,aes as r,base64 as i,base64Decrypt as a,base64Encrypt as o,base64url as s,base64urlDecrypt as c,base64urlEncrypt as l,getCryptoKey as u,md5 as d,setCryptoKey as f}from"./crypto-gQuYNe6g.js";export{e as AESDecrypt,t as AESEncrypt,n as MD5Encrypt,r as aes,i as base64,a as base64Decrypt,o as base64Encrypt,s as base64url,c as base64urlDecrypt,l as base64urlEncrypt,u as getCryptoKey,d as md5,f as setCryptoKey};
@@ -0,0 +1 @@
1
+ import{fakeChance as e,fakeDateFuture as t,fakeDatePast as n,fakeDateRange as r,fakeEnum as i,fakeFloatRange as a,fakeId as o,fakeIntRange as s,fakeKey as c,fakeName as l,fakePhone as u,fakeValue as d}from"@jhqn/utils-faker";export{e as fakeChance,t as fakeDateFuture,n as fakeDatePast,r as fakeDateRange,i as fakeEnum,a as fakeFloatRange,o as fakeId,s as fakeIntRange,c as fakeKey,l as fakeName,u as fakePhone,d as fakeValue};
@@ -0,0 +1,2 @@
1
+ import { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue } from "@jhqn/utils-faker";
2
+ export { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue };
package/dist/faker.d.ts CHANGED
@@ -1 +1,2 @@
1
- export * from '@jhqn/utils-faker';
1
+ import { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue } from "./faker-CNhKXj81.js";
2
+ export { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue };
package/dist/faker.js ADDED
@@ -0,0 +1 @@
1
+ import{fakeChance as e,fakeDateFuture as t,fakeDatePast as n,fakeDateRange as r,fakeEnum as i,fakeFloatRange as a,fakeId as o,fakeIntRange as s,fakeKey as c,fakeName as l,fakePhone as u,fakeValue as d}from"./faker-98Q63v1f.js";export{e as fakeChance,t as fakeDateFuture,n as fakeDatePast,r as fakeDateRange,i as fakeEnum,a as fakeFloatRange,o as fakeId,s as fakeIntRange,c as fakeKey,l as fakeName,u as fakePhone,d as fakeValue};
@@ -0,0 +1,2 @@
1
+ import { StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify } from "@jhqn/utils-storage";
2
+ export { type StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,6 @@
1
- export * from '@jhqn/utils-core';
2
- export * from '@jhqn/utils-crypto';
3
- export * from '@jhqn/utils-crypto/aes';
4
- export * from '@jhqn/utils-crypto/base64';
5
- export * from '@jhqn/utils-crypto/base64url';
6
- export * from '@jhqn/utils-crypto/md5';
7
- export * from '@jhqn/utils-faker';
8
- export * from '@jhqn/utils-msw';
9
- export * from '@jhqn/utils-storage';
1
+ import { 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 } from "./core-DwYP_-CS.js";
2
+ import { AESDecrypt, AESEncrypt, MD5Encrypt, aes, base64, base64Decrypt, base64Encrypt, base64url, base64urlDecrypt, base64urlEncrypt, getCryptoKey, md5, setCryptoKey } from "./crypto-B0-nVlWU.js";
3
+ import { fakeChance, fakeDateFuture, fakeDatePast, fakeDateRange, fakeEnum, fakeFloatRange, fakeId, fakeIntRange, fakeKey, fakeName, fakePhone, fakeValue } from "./faker-CNhKXj81.js";
4
+ import { MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList } from "./msw-DdchsHmL.js";
5
+ import { StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify } from "./index-DwYSXdSB.js";
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 ADDED
@@ -0,0 +1 @@
1
+ import{attachFmt as e,camel2Kebab as t,camel2Pascal as n,camel2Snake as r,camel2Title as i,checkImg as a,cnIdCard15Re as o,cnIdCard18Re as s,cnPhoneRE as c,cnTelRE as l,cnTelRE2 as u,cnUSCIRE as d,currencyFmt as f,dateDuration as p,dateFmt as m,dayjs as h,detect as g,emailRE as _,filterObj as v,fixiOSInputAutoZoomIn as y,getBaseAttachUrl as b,getCodeOfDate as x,getCodeOfHour as S,getCodeOfMonth as C,getHostEnv as w,getVariableType as T,hideBankCard as E,hideCardNo as D,hideEmail as O,hideFirstName as k,hideHead as A,hideMiddle as j,hidePhone as M,hideSurname as N,hideTail as P,hideThird as F,inBrowser as I,isArrStr as L,isArray as R,isBigInt as z,isBlob as B,isBoolean as V,isDate as H,isDef as U,isEmail as W,isEmpty as G,isError as K,isFile as q,isFunction as J,isIdCard as Y,isJSONStr as X,isMap as Z,isNull as Q,isNumber as $,isNumeric as ee,isObject as te,isPhone as ne,isPromise as re,isRegExp as ie,isSet as ae,isString as oe,isSymbol as se,isTel as ce,isURL as le,isUSCI as ue,isUndefined as de,isValidArrRes as fe,isValidFileType as pe,isValidKey as me,isValidPageRes as he,isValidRes as ge,isValidResCode as _e,isWeakMap as ve,isWeakSet as ye,jClear as be,jDebug as xe,jError as Se,jGroup as Ce,jGroupC as we,jGroupE as Te,jInfo as Ee,jLog as De,jLogDedupe as Oe,jLogOnce as ke,jTime as Ae,jTimeEnd as je,jWarn as Me,kebab2Camel as Ne,kebab2Pascal as Pe,kebab2Snake as Fe,kebab2Title as Ie,naturalSort as Le,naturalSortBy as Re,nonASCII as ze,parseJSON as Be,parseToJSON as Ve,pascal2Camel as He,pascal2Kebab as Ue,pascal2Snake as We,pascal2Title as Ge,recoverFile as Ke,replacer as qe,resUrl as Je,reviver as Ye,setBaseAttachUrl as Xe,snake2Camel as Ze,snake2Kebab as Qe,snake2Pascal as $e,snake2Title as et,stringifyJSON as tt,title2Camel as nt,title2Kebab as rt,title2Pascal as it,title2Snake as at,toThousands as ot,userAgent as st,waitTime as ct}from"./core-Ch6mxk2w.js";import{AESDecrypt as lt,AESEncrypt as ut,MD5Encrypt as dt,aes as ft,base64 as pt,base64Decrypt as mt,base64Encrypt as ht,base64url as gt,base64urlDecrypt as _t,base64urlEncrypt as vt,getCryptoKey as yt,md5 as bt,setCryptoKey as xt}from"./crypto-gQuYNe6g.js";import{fakeChance as St,fakeDateFuture as Ct,fakeDatePast as wt,fakeDateRange as Tt,fakeEnum as Et,fakeFloatRange as Dt,fakeId as Ot,fakeIntRange as kt,fakeKey as At,fakeName as jt,fakePhone as Mt,fakeValue as Nt}from"./faker-98Q63v1f.js";import{commonArrRes as Pt,commonPageRes as Ft,commonRes as It,getMockData as Lt,getMockDataList as Rt}from"./msw-7KHOfZWk.js";import{getLocal as zt,getSession as Bt,getStorage as Vt,hasLocal as Ht,hasSession as Ut,hasStorage as Wt,removeLocal as Gt,removeLocalAll as Kt,removeSession as qt,removeSessionAll as Jt,removeStorage as Yt,removeStorageAll as Xt,setLocal as Zt,setSession as Qt,setStorage as $t,storageParse as en,storageStringify as tn}from"./storage-Ciz_4b0g.js";export{lt as AESDecrypt,ut as AESEncrypt,dt as MD5Encrypt,ft as aes,e as attachFmt,pt as base64,mt as base64Decrypt,ht as base64Encrypt,gt as base64url,_t as base64urlDecrypt,vt as base64urlEncrypt,t as camel2Kebab,n as camel2Pascal,r as camel2Snake,i as camel2Title,a as checkImg,o as cnIdCard15Re,s as cnIdCard18Re,c as cnPhoneRE,l as cnTelRE,u as cnTelRE2,d as cnUSCIRE,Pt as commonArrRes,Ft as commonPageRes,It as commonRes,f as currencyFmt,p as dateDuration,m as dateFmt,h as dayjs,g as detect,_ as emailRE,St as fakeChance,Ct as fakeDateFuture,wt as fakeDatePast,Tt as fakeDateRange,Et as fakeEnum,Dt as fakeFloatRange,Ot as fakeId,kt as fakeIntRange,At as fakeKey,jt as fakeName,Mt as fakePhone,Nt as fakeValue,v as filterObj,y as fixiOSInputAutoZoomIn,b as getBaseAttachUrl,x as getCodeOfDate,S as getCodeOfHour,C as getCodeOfMonth,yt as getCryptoKey,w as getHostEnv,zt as getLocal,Lt as getMockData,Rt as getMockDataList,Bt as getSession,Vt as getStorage,T as getVariableType,Ht as hasLocal,Ut as hasSession,Wt as hasStorage,E as hideBankCard,D as hideCardNo,O as hideEmail,k as hideFirstName,A as hideHead,j as hideMiddle,M as hidePhone,N as hideSurname,P as hideTail,F as hideThird,I as inBrowser,L as isArrStr,R as isArray,z as isBigInt,B as isBlob,V as isBoolean,H as isDate,U as isDef,W as isEmail,G as isEmpty,K as isError,q as isFile,J as isFunction,Y as isIdCard,X as isJSONStr,Z as isMap,Q as isNull,$ as isNumber,ee as isNumeric,te as isObject,ne as isPhone,re as isPromise,ie as isRegExp,ae as isSet,oe as isString,se as isSymbol,ce as isTel,le as isURL,ue as isUSCI,de as isUndefined,fe as isValidArrRes,pe as isValidFileType,me as isValidKey,he as isValidPageRes,ge as isValidRes,_e as isValidResCode,ve as isWeakMap,ye as isWeakSet,be as jClear,xe as jDebug,Se as jError,Ce as jGroup,we as jGroupC,Te as jGroupE,Ee as jInfo,De as jLog,Oe as jLogDedupe,ke as jLogOnce,Ae as jTime,je as jTimeEnd,Me as jWarn,Ne as kebab2Camel,Pe as kebab2Pascal,Fe as kebab2Snake,Ie as kebab2Title,bt as md5,Le as naturalSort,Re as naturalSortBy,ze as nonASCII,Be as parseJSON,Ve as parseToJSON,He as pascal2Camel,Ue as pascal2Kebab,We as pascal2Snake,Ge as pascal2Title,Ke as recoverFile,Gt as removeLocal,Kt as removeLocalAll,qt as removeSession,Jt as removeSessionAll,Yt as removeStorage,Xt as removeStorageAll,qe as replacer,Je as resUrl,Ye as reviver,Xe as setBaseAttachUrl,xt as setCryptoKey,Zt as setLocal,Qt as setSession,$t as setStorage,Ze as snake2Camel,Qe as snake2Kebab,$e as snake2Pascal,et as snake2Title,en as storageParse,tn as storageStringify,tt as stringifyJSON,nt as title2Camel,rt as title2Kebab,it as title2Pascal,at as title2Snake,ot as toThousands,st as userAgent,ct as waitTime};
@@ -0,0 +1 @@
1
+ import{commonArrRes as e,commonPageRes as t,commonRes as n,getMockData as r,getMockDataList as i}from"@jhqn/utils-msw";export{e as commonArrRes,t as commonPageRes,n as commonRes,r as getMockData,i as getMockDataList};
@@ -0,0 +1,2 @@
1
+ import { MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList } from "@jhqn/utils-msw";
2
+ export { type MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList };
package/dist/msw.d.ts CHANGED
@@ -1 +1,2 @@
1
- export * from '@jhqn/utils-msw';
1
+ import { MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList } from "./msw-DdchsHmL.js";
2
+ export { MaybeFn, commonArrRes, commonPageRes, commonRes, getMockData, getMockDataList };
package/dist/msw.js ADDED
@@ -0,0 +1 @@
1
+ import{commonArrRes as e,commonPageRes as t,commonRes as n,getMockData as r,getMockDataList as i}from"./msw-7KHOfZWk.js";export{e as commonArrRes,t as commonPageRes,n as commonRes,r as getMockData,i as getMockDataList};
@@ -1 +1,2 @@
1
- export * from '@jhqn/utils-storage';
1
+ import { StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify } from "../index-DwYSXdSB.js";
2
+ export { StorageObj, getLocal, getSession, getStorage, hasLocal, hasSession, hasStorage, removeLocal, removeLocalAll, removeSession, removeSessionAll, removeStorage, removeStorageAll, setLocal, setSession, setStorage, storageParse, storageStringify };
@@ -0,0 +1 @@
1
+ import{getLocal as e,getSession as t,getStorage as n,hasLocal as r,hasSession as i,hasStorage as a,removeLocal as o,removeLocalAll as s,removeSession as c,removeSessionAll as l,removeStorage as u,removeStorageAll as d,setLocal as f,setSession as p,setStorage as m,storageParse as h,storageStringify as g}from"../storage-Ciz_4b0g.js";export{e as getLocal,t as getSession,n as getStorage,r as hasLocal,i as hasSession,a as hasStorage,o as removeLocal,s as removeLocalAll,c as removeSession,l as removeSessionAll,u as removeStorage,d as removeStorageAll,f as setLocal,p as setSession,m as setStorage,h as storageParse,g as storageStringify};
@@ -1 +1,2 @@
1
- export * from '@jhqn/utils-storage/react';
1
+ import { atomWithLocal, atomWithSession } from "@jhqn/utils-storage/react";
2
+ export { atomWithLocal, atomWithSession };
@@ -0,0 +1 @@
1
+ import{atomWithLocal as e,atomWithSession as t}from"@jhqn/utils-storage/react";export{e as atomWithLocal,t as atomWithSession};
@@ -1 +1,2 @@
1
- export * from '@jhqn/utils-storage/vue';
1
+ import { useLocal, useSession } from "@jhqn/utils-storage/vue";
2
+ export { useLocal, useSession };
@@ -0,0 +1 @@
1
+ import{useLocal as e,useSession as t}from"@jhqn/utils-storage/vue";export{e as useLocal,t as useSession};
@@ -0,0 +1 @@
1
+ import{getLocal as e,getSession as t,getStorage as n,hasLocal as r,hasSession as i,hasStorage as a,removeLocal as o,removeLocalAll as s,removeSession as c,removeSessionAll as l,removeStorage as u,removeStorageAll as d,setLocal as f,setSession as p,setStorage as m,storageParse as h,storageStringify as g}from"@jhqn/utils-storage";export{e as getLocal,t as getSession,n as getStorage,r as hasLocal,i as hasSession,a as hasStorage,o as removeLocal,s as removeLocalAll,c as removeSession,l as removeSessionAll,u as removeStorage,d as removeStorageAll,f as setLocal,p as setSession,m as setStorage,h as storageParse,g as storageStringify};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/utils",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
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",
@@ -21,121 +21,83 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "import": {
24
- "types": "./dist/index.d.mts",
25
- "default": "./dist/index.mjs"
26
- },
27
- "require": {
28
- "types": "./dist/index.d.cts",
29
- "default": "./dist/index.cjs"
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
30
26
  }
31
27
  },
32
28
  "./core": {
33
29
  "types": "./dist/core.d.ts",
34
30
  "import": {
35
- "types": "./dist/core.d.mts",
36
- "default": "./dist/core.mjs"
37
- },
38
- "require": {
39
- "types": "./dist/core.d.cts",
40
- "default": "./dist/core.cjs"
31
+ "types": "./dist/core.d.ts",
32
+ "default": "./dist/core.js"
41
33
  }
42
34
  },
43
35
  "./crypto": {
44
36
  "types": "./dist/crypto.d.ts",
45
37
  "import": {
46
- "types": "./dist/crypto.d.mts",
47
- "default": "./dist/crypto.mjs"
48
- },
49
- "require": {
50
- "types": "./dist/crypto.d.cts",
51
- "default": "./dist/crypto.cjs"
38
+ "types": "./dist/crypto.d.ts",
39
+ "default": "./dist/crypto.js"
52
40
  }
53
41
  },
54
42
  "./faker": {
55
43
  "types": "./dist/faker.d.ts",
56
44
  "import": {
57
- "types": "./dist/faker.d.mts",
58
- "default": "./dist/faker.mjs"
59
- },
60
- "require": {
61
- "types": "./dist/faker.d.cts",
62
- "default": "./dist/faker.cjs"
45
+ "types": "./dist/faker.d.ts",
46
+ "default": "./dist/faker.js"
63
47
  }
64
48
  },
65
49
  "./msw": {
66
50
  "types": "./dist/msw.d.ts",
67
51
  "import": {
68
- "types": "./dist/msw.d.mts",
69
- "default": "./dist/msw.mjs"
70
- },
71
- "require": {
72
- "types": "./dist/msw.d.cts",
73
- "default": "./dist/msw.cjs"
52
+ "types": "./dist/msw.d.ts",
53
+ "default": "./dist/msw.js"
74
54
  }
75
55
  },
76
56
  "./storage": {
77
57
  "types": "./dist/storage/index.d.ts",
78
58
  "import": {
79
- "types": "./dist/storage/index.d.mts",
80
- "default": "./dist/storage/index.mjs"
81
- },
82
- "require": {
83
- "types": "./dist/storage/index.d.cts",
84
- "default": "./dist/storage/index.cjs"
59
+ "types": "./dist/storage/index.d.ts",
60
+ "default": "./dist/storage/index.js"
85
61
  }
86
62
  },
87
63
  "./storage/react": {
88
64
  "types": "./dist/storage/react.d.ts",
89
65
  "import": {
90
- "types": "./dist/storage/react.d.mts",
91
- "default": "./dist/storage/react.mjs"
92
- },
93
- "require": {
94
- "types": "./dist/storage/react.d.cts",
95
- "default": "./dist/storage/react.cjs"
66
+ "types": "./dist/storage/react.d.ts",
67
+ "default": "./dist/storage/react.js"
96
68
  }
97
69
  },
98
70
  "./storage/vue": {
99
71
  "types": "./dist/storage/vue.d.ts",
100
72
  "import": {
101
- "types": "./dist/storage/vue.d.mts",
102
- "default": "./dist/storage/vue.mjs"
103
- },
104
- "require": {
105
- "types": "./dist/storage/vue.d.cts",
106
- "default": "./dist/storage/vue.cjs"
73
+ "types": "./dist/storage/vue.d.ts",
74
+ "default": "./dist/storage/vue.js"
107
75
  }
108
76
  },
109
77
  "./*": {
110
78
  "types": "./dist/*.d.ts",
111
79
  "import": {
112
- "types": "./dist/*.d.mts",
113
- "default": "./dist/*.mjs"
114
- },
115
- "require": {
116
- "types": "./dist/*.d.cts",
117
- "default": "./dist/*.cjs"
80
+ "types": "./dist/*.d.ts",
81
+ "default": "./dist/*.js"
118
82
  }
119
83
  }
120
84
  },
121
- "main": "dist/index.cjs",
122
- "module": "dist/index.mjs",
85
+ "main": "dist/index.js",
86
+ "module": "dist/index.js",
123
87
  "types": "dist/index.d.ts",
124
88
  "files": [
125
- "*.d.ts",
126
89
  "dist"
127
90
  ],
128
91
  "dependencies": {
129
- "@jhqn/utils-core": "0.1.0",
130
- "@jhqn/utils-faker": "0.1.0",
131
- "@jhqn/utils-crypto": "0.1.0",
132
- "@jhqn/utils-msw": "0.1.0",
133
- "@jhqn/utils-storage": "0.1.0"
92
+ "@jhqn/utils-crypto": "0.2.0",
93
+ "@jhqn/utils-core": "0.2.0",
94
+ "@jhqn/utils-faker": "0.2.0",
95
+ "@jhqn/utils-msw": "0.2.0",
96
+ "@jhqn/utils-storage": "0.2.0"
134
97
  },
135
98
  "scripts": {
136
99
  "test": "vitest",
137
- "//build": "tsup",
138
- "build": "unbuild",
100
+ "build": "tsdown",
139
101
  "publint": "publint"
140
102
  }
141
103
  }
package/core.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-core'
package/crypto.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from '@jhqn/utils-crypto'
2
- export * from '@jhqn/utils-crypto/aes'
3
- export * from '@jhqn/utils-crypto/base64'
4
- export * from '@jhqn/utils-crypto/base64url'
5
- export * from '@jhqn/utils-crypto/md5'
package/dist/core.cjs DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsCore = require('@jhqn/utils-core');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(utilsCore, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: utilsCore['__proto__']
12
- });
13
-
14
- Object.keys(utilsCore).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
16
- });
package/dist/core.d.cts DELETED
@@ -1,11 +0,0 @@
1
- export * from '@jhqn/utils-core';
2
- import '@jhqn/utils-crypto';
3
- import '@jhqn/utils-crypto/aes';
4
- import '@jhqn/utils-crypto/base64';
5
- import '@jhqn/utils-crypto/base64url';
6
- import '@jhqn/utils-crypto/md5';
7
- import '@jhqn/utils-faker';
8
- import '@jhqn/utils-msw';
9
- import '@jhqn/utils-storage';
10
- import '@jhqn/utils-storage/react';
11
- import '@jhqn/utils-storage/vue';
package/dist/core.d.mts DELETED
@@ -1,11 +0,0 @@
1
- export * from '@jhqn/utils-core';
2
- import '@jhqn/utils-crypto';
3
- import '@jhqn/utils-crypto/aes';
4
- import '@jhqn/utils-crypto/base64';
5
- import '@jhqn/utils-crypto/base64url';
6
- import '@jhqn/utils-crypto/md5';
7
- import '@jhqn/utils-faker';
8
- import '@jhqn/utils-msw';
9
- import '@jhqn/utils-storage';
10
- import '@jhqn/utils-storage/react';
11
- import '@jhqn/utils-storage/vue';
package/dist/core.mjs DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-core';
package/dist/crypto.cjs DELETED
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsCrypto = require('@jhqn/utils-crypto');
4
- const aes = require('@jhqn/utils-crypto/aes');
5
- const base64 = require('@jhqn/utils-crypto/base64');
6
- const base64url = require('@jhqn/utils-crypto/base64url');
7
- const md5 = require('@jhqn/utils-crypto/md5');
8
-
9
-
10
-
11
- Object.prototype.hasOwnProperty.call(utilsCrypto, '__proto__') &&
12
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
13
- Object.defineProperty(exports, '__proto__', {
14
- enumerable: true,
15
- value: utilsCrypto['__proto__']
16
- });
17
-
18
- Object.keys(utilsCrypto).forEach(function (k) {
19
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
20
- });
21
- Object.prototype.hasOwnProperty.call(aes, '__proto__') &&
22
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
23
- Object.defineProperty(exports, '__proto__', {
24
- enumerable: true,
25
- value: aes['__proto__']
26
- });
27
-
28
- Object.keys(aes).forEach(function (k) {
29
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
30
- });
31
- Object.prototype.hasOwnProperty.call(base64, '__proto__') &&
32
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
33
- Object.defineProperty(exports, '__proto__', {
34
- enumerable: true,
35
- value: base64['__proto__']
36
- });
37
-
38
- Object.keys(base64).forEach(function (k) {
39
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
40
- });
41
- Object.prototype.hasOwnProperty.call(base64url, '__proto__') &&
42
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
43
- Object.defineProperty(exports, '__proto__', {
44
- enumerable: true,
45
- value: base64url['__proto__']
46
- });
47
-
48
- Object.keys(base64url).forEach(function (k) {
49
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
50
- });
51
- Object.prototype.hasOwnProperty.call(md5, '__proto__') &&
52
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
53
- Object.defineProperty(exports, '__proto__', {
54
- enumerable: true,
55
- value: md5['__proto__']
56
- });
57
-
58
- Object.keys(md5).forEach(function (k) {
59
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
60
- });
package/dist/crypto.d.cts DELETED
@@ -1,5 +0,0 @@
1
- export * from '@jhqn/utils-crypto';
2
- export * from '@jhqn/utils-crypto/aes';
3
- export * from '@jhqn/utils-crypto/base64';
4
- export * from '@jhqn/utils-crypto/base64url';
5
- export * from '@jhqn/utils-crypto/md5';
package/dist/crypto.d.mts DELETED
@@ -1,5 +0,0 @@
1
- export * from '@jhqn/utils-crypto';
2
- export * from '@jhqn/utils-crypto/aes';
3
- export * from '@jhqn/utils-crypto/base64';
4
- export * from '@jhqn/utils-crypto/base64url';
5
- export * from '@jhqn/utils-crypto/md5';
package/dist/crypto.mjs DELETED
@@ -1,5 +0,0 @@
1
- export * from '@jhqn/utils-crypto';
2
- export * from '@jhqn/utils-crypto/aes';
3
- export * from '@jhqn/utils-crypto/base64';
4
- export * from '@jhqn/utils-crypto/base64url';
5
- export * from '@jhqn/utils-crypto/md5';
package/dist/faker.cjs DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsFaker = require('@jhqn/utils-faker');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(utilsFaker, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: utilsFaker['__proto__']
12
- });
13
-
14
- Object.keys(utilsFaker).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
16
- });
package/dist/faker.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-faker';
package/dist/faker.d.mts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-faker';
package/dist/faker.mjs DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-faker';
package/dist/index.cjs DELETED
@@ -1,104 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsCore = require('@jhqn/utils-core');
4
- const utilsCrypto = require('@jhqn/utils-crypto');
5
- const aes = require('@jhqn/utils-crypto/aes');
6
- const base64 = require('@jhqn/utils-crypto/base64');
7
- const base64url = require('@jhqn/utils-crypto/base64url');
8
- const md5 = require('@jhqn/utils-crypto/md5');
9
- const utilsFaker = require('@jhqn/utils-faker');
10
- const utilsMsw = require('@jhqn/utils-msw');
11
- const utilsStorage = require('@jhqn/utils-storage');
12
-
13
-
14
-
15
- Object.prototype.hasOwnProperty.call(utilsCore, '__proto__') &&
16
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
17
- Object.defineProperty(exports, '__proto__', {
18
- enumerable: true,
19
- value: utilsCore['__proto__']
20
- });
21
-
22
- Object.keys(utilsCore).forEach(function (k) {
23
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
24
- });
25
- Object.prototype.hasOwnProperty.call(utilsCrypto, '__proto__') &&
26
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
27
- Object.defineProperty(exports, '__proto__', {
28
- enumerable: true,
29
- value: utilsCrypto['__proto__']
30
- });
31
-
32
- Object.keys(utilsCrypto).forEach(function (k) {
33
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
34
- });
35
- Object.prototype.hasOwnProperty.call(aes, '__proto__') &&
36
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
37
- Object.defineProperty(exports, '__proto__', {
38
- enumerable: true,
39
- value: aes['__proto__']
40
- });
41
-
42
- Object.keys(aes).forEach(function (k) {
43
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
44
- });
45
- Object.prototype.hasOwnProperty.call(base64, '__proto__') &&
46
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
47
- Object.defineProperty(exports, '__proto__', {
48
- enumerable: true,
49
- value: base64['__proto__']
50
- });
51
-
52
- Object.keys(base64).forEach(function (k) {
53
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
54
- });
55
- Object.prototype.hasOwnProperty.call(base64url, '__proto__') &&
56
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
57
- Object.defineProperty(exports, '__proto__', {
58
- enumerable: true,
59
- value: base64url['__proto__']
60
- });
61
-
62
- Object.keys(base64url).forEach(function (k) {
63
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
64
- });
65
- Object.prototype.hasOwnProperty.call(md5, '__proto__') &&
66
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
67
- Object.defineProperty(exports, '__proto__', {
68
- enumerable: true,
69
- value: md5['__proto__']
70
- });
71
-
72
- Object.keys(md5).forEach(function (k) {
73
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
74
- });
75
- Object.prototype.hasOwnProperty.call(utilsFaker, '__proto__') &&
76
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
77
- Object.defineProperty(exports, '__proto__', {
78
- enumerable: true,
79
- value: utilsFaker['__proto__']
80
- });
81
-
82
- Object.keys(utilsFaker).forEach(function (k) {
83
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
84
- });
85
- Object.prototype.hasOwnProperty.call(utilsMsw, '__proto__') &&
86
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
87
- Object.defineProperty(exports, '__proto__', {
88
- enumerable: true,
89
- value: utilsMsw['__proto__']
90
- });
91
-
92
- Object.keys(utilsMsw).forEach(function (k) {
93
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
94
- });
95
- Object.prototype.hasOwnProperty.call(utilsStorage, '__proto__') &&
96
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
97
- Object.defineProperty(exports, '__proto__', {
98
- enumerable: true,
99
- value: utilsStorage['__proto__']
100
- });
101
-
102
- Object.keys(utilsStorage).forEach(function (k) {
103
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
104
- });
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- export * from '@jhqn/utils-core';
2
- export * from '@jhqn/utils-crypto';
3
- export * from '@jhqn/utils-crypto/aes';
4
- export * from '@jhqn/utils-crypto/base64';
5
- export * from '@jhqn/utils-crypto/base64url';
6
- export * from '@jhqn/utils-crypto/md5';
7
- export * from '@jhqn/utils-faker';
8
- export * from '@jhqn/utils-msw';
9
- export * from '@jhqn/utils-storage';
package/dist/index.d.mts DELETED
@@ -1,9 +0,0 @@
1
- export * from '@jhqn/utils-core';
2
- export * from '@jhqn/utils-crypto';
3
- export * from '@jhqn/utils-crypto/aes';
4
- export * from '@jhqn/utils-crypto/base64';
5
- export * from '@jhqn/utils-crypto/base64url';
6
- export * from '@jhqn/utils-crypto/md5';
7
- export * from '@jhqn/utils-faker';
8
- export * from '@jhqn/utils-msw';
9
- export * from '@jhqn/utils-storage';
package/dist/index.mjs DELETED
@@ -1,9 +0,0 @@
1
- export * from '@jhqn/utils-core';
2
- export * from '@jhqn/utils-crypto';
3
- export * from '@jhqn/utils-crypto/aes';
4
- export * from '@jhqn/utils-crypto/base64';
5
- export * from '@jhqn/utils-crypto/base64url';
6
- export * from '@jhqn/utils-crypto/md5';
7
- export * from '@jhqn/utils-faker';
8
- export * from '@jhqn/utils-msw';
9
- export * from '@jhqn/utils-storage';
package/dist/msw.cjs DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsMsw = require('@jhqn/utils-msw');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(utilsMsw, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: utilsMsw['__proto__']
12
- });
13
-
14
- Object.keys(utilsMsw).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
16
- });
package/dist/msw.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-msw';
package/dist/msw.d.mts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-msw';
package/dist/msw.mjs DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-msw';
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const utilsStorage = require('@jhqn/utils-storage');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(utilsStorage, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: utilsStorage['__proto__']
12
- });
13
-
14
- Object.keys(utilsStorage).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
16
- });
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage';
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const react = require('@jhqn/utils-storage/react');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(react, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: react['__proto__']
12
- });
13
-
14
- Object.keys(react).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
16
- });
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/react';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/react';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/react';
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const vue = require('@jhqn/utils-storage/vue');
4
-
5
-
6
-
7
- Object.prototype.hasOwnProperty.call(vue, '__proto__') &&
8
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
9
- Object.defineProperty(exports, '__proto__', {
10
- enumerable: true,
11
- value: vue['__proto__']
12
- });
13
-
14
- Object.keys(vue).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = vue[k];
16
- });
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/vue';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/vue';
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-storage/vue';
package/faker.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-faker'
package/msw.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@jhqn/utils-msw'
package/storage.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from '@jhqn/utils-storage'
2
- export * from '@jhqn/utils-storage/react'
3
- export * from '@jhqn/utils-storage/vue'