@daysnap/utils 0.0.93 → 0.0.95

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 (887) hide show
  1. package/docs/interfaces/StorageManager.md +4 -4
  2. package/docs/interfaces/Trap.md +5 -5
  3. package/docs/modules.md +146 -122
  4. package/es/{ato.d.ts → ato.d.mts} +4 -2
  5. package/es/ato.mjs +6 -0
  6. package/es/base64ToBlob.d.mts +8 -0
  7. package/es/base64ToBlob.mjs +6 -0
  8. package/es/blobToBase64.d.mts +6 -0
  9. package/es/blobToBase64.mjs +6 -0
  10. package/es/cached.d.mts +7 -0
  11. package/es/cached.mjs +6 -0
  12. package/es/camelCase.d.mts +7 -0
  13. package/es/camelCase.mjs +6 -0
  14. package/es/canvasToBlob.d.mts +6 -0
  15. package/es/canvasToBlob.mjs +6 -0
  16. package/es/capitalize.d.mts +7 -0
  17. package/es/capitalize.mjs +6 -0
  18. package/es/chunk-2BCJGKPK.mjs +52 -0
  19. package/es/chunk-2YCUJDBN.mjs +55 -0
  20. package/es/chunk-2ZSYVROU.mjs +12 -0
  21. package/es/chunk-36BFA7SH.mjs +10 -0
  22. package/es/chunk-47AYSPDB.mjs +37 -0
  23. package/es/chunk-4FSOO7WE.mjs +8 -0
  24. package/es/chunk-4HDKZDZI.mjs +16 -0
  25. package/es/chunk-55VPNRDX.mjs +45 -0
  26. package/es/chunk-5FZDYL3X.mjs +14 -0
  27. package/es/chunk-67UQVOZK.mjs +22 -0
  28. package/es/chunk-6UG5VG67.mjs +8 -0
  29. package/es/chunk-7EYJRHPH.mjs +12 -0
  30. package/es/chunk-7K7LDQU5.mjs +8 -0
  31. package/es/chunk-AA7WCD7R.mjs +20 -0
  32. package/es/chunk-ACFNEWIA.mjs +17 -0
  33. package/es/chunk-ALUR2G5E.mjs +7 -0
  34. package/es/chunk-AQXI5M6E.mjs +8 -0
  35. package/es/chunk-AVYLSD4Y.mjs +12 -0
  36. package/es/chunk-B2QDZGN6.mjs +12 -0
  37. package/es/chunk-BI6NG2XY.mjs +8 -0
  38. package/es/chunk-BND7NHHZ.mjs +23 -0
  39. package/es/chunk-BZIKQDNP.mjs +25 -0
  40. package/es/chunk-C3VMHKA2.mjs +32 -0
  41. package/es/chunk-CH54B2NW.mjs +19 -0
  42. package/es/chunk-CIIM7WK6.mjs +12 -0
  43. package/es/chunk-DF4FZM53.mjs +8 -0
  44. package/es/chunk-DFNNXFNH.mjs +22 -0
  45. package/es/chunk-DKP76RFK.mjs +8 -0
  46. package/es/chunk-DPJQZSCQ.mjs +22 -0
  47. package/es/chunk-E3D4KBHK.mjs +11 -0
  48. package/es/chunk-EH5U26GD.mjs +8 -0
  49. package/es/chunk-EHZGMWKM.mjs +8 -0
  50. package/es/chunk-EJPQYVUM.mjs +8 -0
  51. package/es/chunk-FAZP7TZ2.mjs +8 -0
  52. package/es/chunk-FUPB76YN.mjs +8 -0
  53. package/es/chunk-GBEWSYLC.mjs +11 -0
  54. package/es/chunk-GGV2QLUA.mjs +17 -0
  55. package/es/chunk-GLR6PUBW.mjs +14 -0
  56. package/es/chunk-GSEIW3MZ.mjs +8 -0
  57. package/es/chunk-H4Q2L2Z7.mjs +8 -0
  58. package/es/chunk-H625225L.mjs +11 -0
  59. package/es/chunk-HMTKJUIX.mjs +22 -0
  60. package/es/chunk-HX6BTERO.mjs +8 -0
  61. package/es/chunk-IBD2BGUZ.mjs +17 -0
  62. package/es/chunk-IGSBQ6WF.mjs +15 -0
  63. package/es/chunk-IIW4U5AP.mjs +16 -0
  64. package/es/chunk-IQFJ5CYB.mjs +29 -0
  65. package/es/chunk-J3CV6URY.mjs +8 -0
  66. package/es/chunk-JHC77OJC.mjs +12 -0
  67. package/es/chunk-JNYC6ERK.mjs +21 -0
  68. package/es/chunk-KCWWH5WQ.mjs +30 -0
  69. package/es/chunk-KH4FBZOK.mjs +8 -0
  70. package/es/chunk-KH7NPF6I.mjs +15 -0
  71. package/es/chunk-KLSJ3VZG.mjs +10 -0
  72. package/es/chunk-KRWQWZSN.mjs +8 -0
  73. package/es/chunk-KZ3JDS2O.mjs +14 -0
  74. package/es/chunk-L7X3A3OQ.mjs +8 -0
  75. package/es/chunk-LXLIFUBR.mjs +43 -0
  76. package/es/chunk-MPSJ4FMD.mjs +16 -0
  77. package/es/chunk-MRUDDQHD.mjs +23 -0
  78. package/es/chunk-N4OGI2R3.mjs +19 -0
  79. package/es/chunk-N6IG3JYY.mjs +12 -0
  80. package/es/chunk-NPK3BLV3.mjs +30 -0
  81. package/es/chunk-NS4LR37B.mjs +8 -0
  82. package/es/chunk-NSD6JAKL.mjs +19 -0
  83. package/es/chunk-O6RUKPNP.mjs +9 -0
  84. package/es/chunk-ODB7KGAC.mjs +23 -0
  85. package/es/chunk-OG7NHU5G.mjs +42 -0
  86. package/es/chunk-OHCFFQNC.mjs +17 -0
  87. package/es/chunk-OL5ADAY4.mjs +57 -0
  88. package/es/chunk-OMH5TZIZ.mjs +13 -0
  89. package/es/chunk-OQG6GEL2.mjs +13 -0
  90. package/es/chunk-PGVJ5IPJ.mjs +8 -0
  91. package/es/chunk-PMNXLTUL.mjs +8 -0
  92. package/es/chunk-PUHUSCOJ.mjs +8 -0
  93. package/es/chunk-QI5FH522.mjs +11 -0
  94. package/es/chunk-QIYJY2OJ.mjs +8 -0
  95. package/es/chunk-REX225J2.mjs +10 -0
  96. package/es/chunk-RNR7ZEZT.mjs +12 -0
  97. package/es/chunk-SJCOWTEU.mjs +13 -0
  98. package/es/chunk-SLCAL4QM.mjs +8 -0
  99. package/es/chunk-SOAUJN2U.mjs +8 -0
  100. package/es/chunk-SWZD5EEJ.mjs +55 -0
  101. package/es/chunk-T2D2S2FY.mjs +8 -0
  102. package/es/chunk-T3MNPQVN.mjs +12 -0
  103. package/es/chunk-T53J6Z3W.mjs +8 -0
  104. package/es/chunk-TP4LCGUV.mjs +42 -0
  105. package/es/chunk-TZUHPRZ4.mjs +8 -0
  106. package/es/chunk-TZYPEK5T.mjs +34 -0
  107. package/es/chunk-UCRMI3XM.mjs +11 -0
  108. package/es/chunk-UCXP6JO2.mjs +14 -0
  109. package/es/chunk-UKTPML4E.mjs +14 -0
  110. package/es/chunk-USYDW5X4.mjs +8 -0
  111. package/es/chunk-UZ44S2T3.mjs +8 -0
  112. package/es/chunk-VLHC3FS7.mjs +20 -0
  113. package/es/chunk-VUU242QS.mjs +15 -0
  114. package/es/chunk-W56MFMAJ.mjs +16 -0
  115. package/es/chunk-W6L2LW6U.mjs +13 -0
  116. package/es/chunk-W72QWFLR.mjs +27 -0
  117. package/es/chunk-WLGNQDOA.mjs +8 -0
  118. package/es/chunk-WQFMRPXU.mjs +19 -0
  119. package/es/chunk-WTILX3PP.mjs +8 -0
  120. package/es/chunk-XJT6W4OH.mjs +15 -0
  121. package/es/chunk-XY5KATPF.mjs +12 -0
  122. package/es/chunk-Y2L4VRHX.mjs +10 -0
  123. package/es/chunk-Y6WZSPBK.mjs +13 -0
  124. package/es/chunk-YBK27UNT.mjs +24 -0
  125. package/es/chunk-YJKAHUCK.mjs +8 -0
  126. package/es/chunk-YMKK5EMJ.mjs +8 -0
  127. package/es/chunk-YO3WEMCZ.mjs +8 -0
  128. package/es/chunk-YWA5IBEK.mjs +8 -0
  129. package/es/chunk-YY5FUU2J.mjs +8 -0
  130. package/es/chunk-ZDX7R4RH.mjs +19 -0
  131. package/es/chunk-ZHLRSVIE.mjs +8 -0
  132. package/es/{clamp.d.ts → clamp.d.mts} +3 -1
  133. package/es/clamp.mjs +6 -0
  134. package/es/clone.d.mts +7 -0
  135. package/es/clone.mjs +8 -0
  136. package/es/{cloneSimple.d.ts → cloneSimple.d.mts} +3 -1
  137. package/es/cloneSimple.mjs +6 -0
  138. package/es/{compareVersion.d.ts → compareVersion.d.mts} +3 -1
  139. package/es/compareVersion.mjs +6 -0
  140. package/es/compressImage.d.mts +6 -0
  141. package/es/compressImage.mjs +7 -0
  142. package/es/createHexColorByHash.d.mts +6 -0
  143. package/es/createHexColorByHash.mjs +6 -0
  144. package/es/{createLinearFunction.d.ts → createLinearFunction.d.mts} +3 -1
  145. package/es/createLinearFunction.mjs +6 -0
  146. package/es/{createWithLoading.d.ts → createWithLoading.d.mts} +4 -2
  147. package/es/createWithLoading.mjs +6 -0
  148. package/es/debounce.d.mts +7 -0
  149. package/es/debounce.mjs +6 -0
  150. package/es/decode.d.mts +4 -0
  151. package/es/decode.mjs +8 -0
  152. package/es/downloadFile.d.mts +8 -0
  153. package/es/downloadFile.mjs +6 -0
  154. package/es/each.d.mts +7 -0
  155. package/es/each.mjs +6 -0
  156. package/es/{exitFullscreen.d.ts → exitFullscreen.d.mts} +3 -1
  157. package/es/exitFullscreen.mjs +6 -0
  158. package/es/filterBankCardNo.d.mts +6 -0
  159. package/es/filterBankCardNo.mjs +6 -0
  160. package/es/filterCRLF.d.mts +6 -0
  161. package/es/filterCRLF.mjs +6 -0
  162. package/es/filterEmoji.d.mts +6 -0
  163. package/es/filterEmoji.mjs +6 -0
  164. package/es/{filterEmptyValue.d.ts → filterEmptyValue.d.mts} +3 -1
  165. package/es/filterEmptyValue.mjs +14 -0
  166. package/es/filterIdCard.d.mts +7 -0
  167. package/es/filterIdCard.mjs +6 -0
  168. package/es/filterName.d.mts +6 -0
  169. package/es/filterName.mjs +6 -0
  170. package/es/{filterPhone.d.ts → filterPhone.d.mts} +3 -1
  171. package/es/filterPhone.mjs +6 -0
  172. package/es/filterString.d.mts +8 -0
  173. package/es/filterString.mjs +6 -0
  174. package/es/formartDateToZN.d.mts +3 -0
  175. package/es/formartDateToZN.mjs +119 -0
  176. package/es/formatAmount.d.mts +6 -0
  177. package/es/formatAmount.mjs +6 -0
  178. package/es/formatDate.d.mts +7 -0
  179. package/es/formatDate.mjs +8 -0
  180. package/es/{formatDateStr.d.ts → formatDateStr.d.mts} +3 -1
  181. package/es/formatDateStr.mjs +6 -0
  182. package/es/formatFileSize.d.mts +6 -0
  183. package/es/formatFileSize.mjs +6 -0
  184. package/es/{formatMessage.d.ts → formatMessage.d.mts} +3 -1
  185. package/es/formatMessage.mjs +10 -0
  186. package/es/{formatPathParams.d.ts → formatPathParams.d.mts} +3 -1
  187. package/es/formatPathParams.mjs +6 -0
  188. package/es/getBlobByUrl.d.mts +6 -0
  189. package/es/getBlobByUrl.mjs +6 -0
  190. package/es/getDayMillisecond.d.mts +6 -0
  191. package/es/getDayMillisecond.mjs +6 -0
  192. package/es/getImageInfo.d.mts +6 -0
  193. package/es/getImageInfo.mjs +6 -0
  194. package/es/{getRandom.d.ts → getRandom.d.mts} +3 -1
  195. package/es/getRandom.mjs +7 -0
  196. package/es/getRandomColor.d.mts +6 -0
  197. package/es/getRandomColor.mjs +6 -0
  198. package/es/{getRandomNumber.d.ts → getRandomNumber.d.mts} +3 -1
  199. package/es/getRandomNumber.mjs +8 -0
  200. package/es/getScrollTop.d.mts +6 -0
  201. package/es/getScrollTop.mjs +6 -0
  202. package/es/getVideoInfo.d.mts +6 -0
  203. package/es/getVideoInfo.mjs +6 -0
  204. package/es/inBrowser.d.mts +6 -0
  205. package/es/inBrowser.mjs +6 -0
  206. package/es/index.d.mts +115 -0
  207. package/es/index.mjs +470 -0
  208. package/es/insertLink.d.mts +7 -0
  209. package/es/insertLink.mjs +6 -0
  210. package/es/insertScript.d.mts +7 -0
  211. package/es/insertScript.mjs +6 -0
  212. package/es/insertStyle.d.mts +6 -0
  213. package/es/insertStyle.mjs +6 -0
  214. package/es/{isAmount.d.ts → isAmount.d.mts} +3 -1
  215. package/es/isAmount.mjs +6 -0
  216. package/es/isAndroid.d.mts +6 -0
  217. package/es/isAndroid.mjs +6 -0
  218. package/es/{isArray.d.ts → isArray.d.mts} +3 -1
  219. package/es/isArray.mjs +6 -0
  220. package/es/isBoolean.d.mts +7 -0
  221. package/es/isBoolean.mjs +6 -0
  222. package/es/isChinese.d.mts +6 -0
  223. package/es/isChinese.mjs +6 -0
  224. package/es/isDate.d.mts +6 -0
  225. package/es/isDate.mjs +6 -0
  226. package/es/isEmail.d.mts +6 -0
  227. package/es/isEmail.mjs +6 -0
  228. package/es/isEmpty.d.mts +6 -0
  229. package/es/isEmpty.mjs +8 -0
  230. package/es/isEmptyArray.d.mts +6 -0
  231. package/es/isEmptyArray.mjs +7 -0
  232. package/es/isEmptyObject.d.mts +7 -0
  233. package/es/isEmptyObject.mjs +6 -0
  234. package/es/isError.d.mts +6 -0
  235. package/es/isError.mjs +6 -0
  236. package/es/isFunction.d.mts +6 -0
  237. package/es/isFunction.mjs +6 -0
  238. package/es/{isIE.d.ts → isIE.d.mts} +3 -1
  239. package/es/isIE.mjs +6 -0
  240. package/es/isIOS.d.mts +6 -0
  241. package/es/isIOS.mjs +6 -0
  242. package/es/isIdCard.d.mts +6 -0
  243. package/es/isIdCard.mjs +6 -0
  244. package/es/isJSONString.d.mts +7 -0
  245. package/es/isJSONString.mjs +7 -0
  246. package/es/{isLan.d.ts → isLan.d.mts} +3 -1
  247. package/es/isLan.mjs +6 -0
  248. package/es/isLicenseCode.d.mts +7 -0
  249. package/es/isLicenseCode.mjs +6 -0
  250. package/es/isMobile.d.mts +6 -0
  251. package/es/isMobile.mjs +6 -0
  252. package/es/{isNativeFunction.d.ts → isNativeFunction.d.mts} +3 -1
  253. package/es/isNativeFunction.mjs +7 -0
  254. package/es/isNull.d.mts +6 -0
  255. package/es/isNull.mjs +6 -0
  256. package/es/isNumber.d.mts +7 -0
  257. package/es/isNumber.mjs +6 -0
  258. package/es/isObject.d.mts +6 -0
  259. package/es/isObject.mjs +6 -0
  260. package/es/isPhone.d.mts +6 -0
  261. package/es/isPhone.mjs +6 -0
  262. package/es/isPromise.d.mts +6 -0
  263. package/es/isPromise.mjs +6 -0
  264. package/es/isRegExp.d.mts +6 -0
  265. package/es/isRegExp.mjs +6 -0
  266. package/es/isString.d.mts +6 -0
  267. package/es/isString.mjs +6 -0
  268. package/es/isUndefined.d.mts +6 -0
  269. package/es/isUndefined.mjs +6 -0
  270. package/es/isUrl.d.mts +6 -0
  271. package/es/isUrl.mjs +6 -0
  272. package/es/{isWeChat.d.ts → isWeChat.d.mts} +4 -2
  273. package/es/isWeChat.mjs +8 -0
  274. package/es/{isWeChatMiniProgram.d.ts → isWeChatMiniProgram.d.mts} +3 -1
  275. package/es/isWeChatMiniProgram.mjs +6 -0
  276. package/es/isWindow.d.mts +7 -0
  277. package/es/isWindow.mjs +6 -0
  278. package/es/kebabCase.d.mts +7 -0
  279. package/es/kebabCase.mjs +6 -0
  280. package/es/listGenerator.d.mts +7 -0
  281. package/es/listGenerator.mjs +6 -0
  282. package/es/{mousewheel.d.ts → mousewheel.d.mts} +3 -2
  283. package/es/mousewheel.mjs +6 -0
  284. package/es/nf.d.mts +6 -0
  285. package/es/nf.mjs +6 -0
  286. package/es/normalizePath.d.mts +6 -0
  287. package/es/normalizePath.mjs +6 -0
  288. package/es/omit.d.mts +6 -0
  289. package/es/omit.mjs +6 -0
  290. package/es/{padding.d.ts → padding.d.mts} +3 -1
  291. package/es/padding.mjs +6 -0
  292. package/es/parseDate.d.mts +6 -0
  293. package/es/parseDate.mjs +6 -0
  294. package/es/parseError.d.mts +6 -0
  295. package/es/parseError.mjs +10 -0
  296. package/es/parseObject.d.mts +7 -0
  297. package/es/parseObject.mjs +6 -0
  298. package/es/parsePath.d.mts +6 -0
  299. package/es/parsePath.mjs +7 -0
  300. package/es/parseQuery.d.mts +8 -0
  301. package/es/parseQuery.mjs +8 -0
  302. package/es/parseQueryString.d.mts +8 -0
  303. package/es/parseQueryString.mjs +6 -0
  304. package/es/{pascalCase.d.ts → pascalCase.d.mts} +3 -1
  305. package/es/pascalCase.mjs +8 -0
  306. package/es/pick.d.mts +6 -0
  307. package/es/pick.mjs +6 -0
  308. package/es/replaceCrlf.d.mts +6 -0
  309. package/es/replaceCrlf.mjs +6 -0
  310. package/es/{requestFullScreen.d.ts → requestFullScreen.d.mts} +3 -1
  311. package/es/requestFullScreen.mjs +6 -0
  312. package/es/{reserve.d.ts → reserve.d.mts} +3 -1
  313. package/es/reserve.mjs +9 -0
  314. package/es/rgbToHex.d.mts +6 -0
  315. package/es/rgbToHex.mjs +6 -0
  316. package/es/{round.d.ts → round.d.mts} +3 -1
  317. package/es/round.mjs +6 -0
  318. package/es/scrollToTop.d.mts +6 -0
  319. package/es/scrollToTop.mjs +6 -0
  320. package/es/setScrollTop.d.mts +6 -0
  321. package/es/setScrollTop.mjs +6 -0
  322. package/es/{sleep.d.ts → sleep.d.mts} +3 -1
  323. package/es/sleep.mjs +6 -0
  324. package/es/splitArray.d.mts +6 -0
  325. package/es/splitArray.mjs +6 -0
  326. package/es/storage/{factory.d.ts → factory.d.mts} +4 -2
  327. package/es/storage/factory.mjs +8 -0
  328. package/es/storage/{index.d.ts → index.d.mts} +6 -3
  329. package/es/storage/index.mjs +14 -0
  330. package/es/{stringTrim.d.ts → stringTrim.d.mts} +3 -1
  331. package/es/stringTrim.mjs +6 -0
  332. package/es/stringifyQuery.d.mts +6 -0
  333. package/es/stringifyQuery.mjs +8 -0
  334. package/es/stringifyQueryString.d.mts +8 -0
  335. package/es/stringifyQueryString.mjs +6 -0
  336. package/es/throttle.d.mts +17 -0
  337. package/es/throttle.mjs +10 -0
  338. package/es/toCDB.d.mts +6 -0
  339. package/es/toCDB.mjs +6 -0
  340. package/es/toDBC.d.mts +6 -0
  341. package/es/toDBC.mjs +6 -0
  342. package/es/{trap.d.ts → trap.d.mts} +5 -3
  343. package/es/trap.mjs +9 -0
  344. package/es/{typeOf.d.ts → typeOf.d.mts} +3 -1
  345. package/es/typeOf.mjs +6 -0
  346. package/es/withPreventConsecutiveClicks.d.mts +6 -0
  347. package/es/withPreventConsecutiveClicks.mjs +6 -0
  348. package/lib/ato.d.ts +4 -2
  349. package/lib/ato.js +6 -10
  350. package/lib/base64ToBlob.d.ts +3 -1
  351. package/lib/base64ToBlob.js +6 -25
  352. package/lib/blobToBase64.d.ts +3 -1
  353. package/lib/blobToBase64.js +6 -18
  354. package/lib/cached.d.ts +3 -1
  355. package/lib/cached.js +6 -16
  356. package/lib/camelCase.d.ts +3 -1
  357. package/lib/camelCase.js +6 -11
  358. package/lib/canvasToBlob.d.ts +3 -1
  359. package/lib/canvasToBlob.js +6 -12
  360. package/lib/capitalize.d.ts +3 -1
  361. package/lib/capitalize.js +6 -11
  362. package/lib/chunk-2ZSZ4GDI.js +14 -0
  363. package/lib/chunk-3HR2GZUU.js +8 -0
  364. package/lib/chunk-3KRJNCKB.js +8 -0
  365. package/lib/chunk-3MBFDHEW.js +8 -0
  366. package/lib/chunk-3OUQEOSR.js +8 -0
  367. package/lib/chunk-3ZZPPKM3.js +17 -0
  368. package/lib/chunk-4BFL6RXS.js +45 -0
  369. package/lib/chunk-4N33UIAB.js +12 -0
  370. package/lib/chunk-4QMOXXPL.js +22 -0
  371. package/lib/chunk-53VI5KBY.js +17 -0
  372. package/lib/chunk-576ZRCUO.js +10 -0
  373. package/lib/chunk-5BVFSCCX.js +8 -0
  374. package/lib/chunk-5Z3KN6O2.js +8 -0
  375. package/lib/chunk-6EBFQIMY.js +14 -0
  376. package/lib/chunk-6GTFQZL4.js +12 -0
  377. package/lib/chunk-6UGTRW2S.js +8 -0
  378. package/lib/chunk-A4YRDVZ4.js +8 -0
  379. package/lib/chunk-ADGGLX7E.js +55 -0
  380. package/lib/chunk-ASYHV5B7.js +32 -0
  381. package/lib/chunk-AZFTV4OE.js +43 -0
  382. package/lib/chunk-BNF4U7EJ.js +12 -0
  383. package/lib/chunk-BULTIEJG.js +8 -0
  384. package/lib/chunk-CCZL3GEW.js +8 -0
  385. package/lib/chunk-CMP4T3ZH.js +8 -0
  386. package/lib/chunk-CNCI66H4.js +19 -0
  387. package/lib/chunk-CSZ7G34M.js +8 -0
  388. package/lib/chunk-D5O4LXN3.js +8 -0
  389. package/lib/chunk-D7OBO7J6.js +8 -0
  390. package/lib/chunk-DHYITZTI.js +13 -0
  391. package/lib/chunk-DOXFJNJO.js +16 -0
  392. package/lib/chunk-DWT2WM6H.js +11 -0
  393. package/lib/chunk-E2KNR3UG.js +20 -0
  394. package/lib/chunk-EFDRCKKS.js +8 -0
  395. package/lib/chunk-EJMUWNXI.js +30 -0
  396. package/lib/chunk-ELR2DZ56.js +12 -0
  397. package/lib/chunk-F4QMON2N.js +8 -0
  398. package/lib/chunk-FBJWICWM.js +14 -0
  399. package/lib/chunk-FIHEVMN6.js +23 -0
  400. package/lib/chunk-FY3PSILS.js +11 -0
  401. package/lib/chunk-GDCXWM7X.js +24 -0
  402. package/lib/chunk-GNGSV7F7.js +8 -0
  403. package/lib/chunk-GV4IJGB2.js +13 -0
  404. package/lib/chunk-GVPHHNDY.js +55 -0
  405. package/lib/chunk-GVYBTJDA.js +8 -0
  406. package/lib/chunk-HNVHVI6P.js +42 -0
  407. package/lib/chunk-HU5DI7IU.js +8 -0
  408. package/lib/chunk-IF7JMIDO.js +19 -0
  409. package/lib/chunk-IIIHPNUB.js +17 -0
  410. package/lib/chunk-IJCLLBSR.js +21 -0
  411. package/lib/chunk-IJD4RHXI.js +8 -0
  412. package/lib/chunk-IPAT3N4P.js +12 -0
  413. package/lib/chunk-IPIA4Z65.js +9 -0
  414. package/lib/chunk-J2Y5ZZA3.js +19 -0
  415. package/lib/chunk-JG33SHAK.js +17 -0
  416. package/lib/chunk-JKCLDPOC.js +10 -0
  417. package/lib/chunk-JMUWQLHE.js +8 -0
  418. package/lib/chunk-K4SQME6B.js +16 -0
  419. package/lib/chunk-KDND6GRD.js +22 -0
  420. package/lib/chunk-KEADPNJL.js +11 -0
  421. package/lib/chunk-KH7MPMQF.js +15 -0
  422. package/lib/chunk-KJX7IWF5.js +13 -0
  423. package/lib/chunk-KOOGLWJ5.js +8 -0
  424. package/lib/chunk-KYLBUCGC.js +8 -0
  425. package/lib/chunk-KZJIPHQB.js +11 -0
  426. package/lib/chunk-L52JSZDZ.js +16 -0
  427. package/lib/chunk-LJ4CEJ5C.js +8 -0
  428. package/lib/chunk-LOPD7SSH.js +52 -0
  429. package/lib/chunk-M3NXNABN.js +14 -0
  430. package/lib/chunk-M6B3UGFI.js +57 -0
  431. package/lib/chunk-MQDWCBXD.js +13 -0
  432. package/lib/chunk-MTF3ACKC.js +8 -0
  433. package/lib/chunk-NCFA5IXM.js +8 -0
  434. package/lib/chunk-OAVK23A3.js +16 -0
  435. package/lib/chunk-OC64NXZ2.js +22 -0
  436. package/lib/chunk-ONTP5SDE.js +19 -0
  437. package/lib/chunk-P7QW362C.js +12 -0
  438. package/lib/chunk-PAERS3SW.js +7 -0
  439. package/lib/chunk-PQE4SACQ.js +20 -0
  440. package/lib/chunk-QTKWJHHW.js +22 -0
  441. package/lib/chunk-QYCMY2T4.js +8 -0
  442. package/lib/chunk-S2FOFDX4.js +8 -0
  443. package/lib/chunk-S6UH3LMW.js +25 -0
  444. package/lib/chunk-S7PUCGCQ.js +15 -0
  445. package/lib/chunk-SCEONZUJ.js +23 -0
  446. package/lib/chunk-SN35EJZF.js +30 -0
  447. package/lib/chunk-SQ3L6IQW.js +8 -0
  448. package/lib/chunk-SWLGSN5X.js +8 -0
  449. package/lib/chunk-SZ7IZE42.js +12 -0
  450. package/lib/chunk-TNIIDDN4.js +10 -0
  451. package/lib/chunk-TSD6OV4A.js +8 -0
  452. package/lib/chunk-TSFGLHCP.js +11 -0
  453. package/lib/chunk-TT6AI5JN.js +37 -0
  454. package/lib/chunk-TXWIC3L7.js +12 -0
  455. package/lib/chunk-UCDNFQ3U.js +12 -0
  456. package/lib/chunk-UMUYJJ3M.js +15 -0
  457. package/lib/chunk-UXSZFM5G.js +10 -0
  458. package/lib/chunk-VMJHCN3P.js +19 -0
  459. package/lib/chunk-VTSGSUL2.js +29 -0
  460. package/lib/chunk-W52BRMSD.js +14 -0
  461. package/lib/chunk-WCZPEH7E.js +8 -0
  462. package/lib/chunk-WEWAC6GL.js +13 -0
  463. package/lib/chunk-WFPQI6HC.js +27 -0
  464. package/lib/chunk-WXXFRKUS.js +23 -0
  465. package/lib/chunk-XCSSSEK2.js +8 -0
  466. package/lib/chunk-XOQU757U.js +8 -0
  467. package/lib/chunk-XR4BSWOV.js +42 -0
  468. package/lib/chunk-Y4V5R7XA.js +8 -0
  469. package/lib/chunk-YBAHLKXR.js +34 -0
  470. package/lib/chunk-YGV2UKBN.js +15 -0
  471. package/lib/chunk-YGYLI2DC.js +12 -0
  472. package/lib/chunk-YKTD7CLE.js +8 -0
  473. package/lib/chunk-ZDRIUWKX.js +8 -0
  474. package/lib/chunk-ZGN3KUXE.js +8 -0
  475. package/lib/chunk-ZWXX326Y.js +8 -0
  476. package/lib/clamp.d.ts +3 -1
  477. package/lib/clamp.js +6 -20
  478. package/lib/clone.d.ts +3 -1
  479. package/lib/clone.js +8 -23
  480. package/lib/cloneSimple.d.ts +3 -1
  481. package/lib/cloneSimple.js +6 -13
  482. package/lib/compareVersion.d.ts +3 -1
  483. package/lib/compareVersion.js +6 -43
  484. package/lib/compressImage.d.ts +3 -1
  485. package/lib/compressImage.js +7 -20
  486. package/lib/createHexColorByHash.d.ts +3 -1
  487. package/lib/createHexColorByHash.js +6 -67
  488. package/lib/createLinearFunction.d.ts +3 -1
  489. package/lib/createLinearFunction.js +6 -24
  490. package/lib/createWithLoading.d.ts +4 -2
  491. package/lib/createWithLoading.js +6 -39
  492. package/lib/debounce.d.ts +3 -1
  493. package/lib/debounce.js +6 -18
  494. package/lib/decode.d.ts +4 -2
  495. package/lib/decode.js +8 -52
  496. package/lib/downloadFile.d.ts +3 -1
  497. package/lib/downloadFile.js +6 -15
  498. package/lib/each.d.ts +4 -2
  499. package/lib/each.js +6 -17
  500. package/lib/exitFullscreen.d.ts +3 -1
  501. package/lib/exitFullscreen.js +6 -31
  502. package/lib/filterBankCardNo.d.ts +3 -1
  503. package/lib/filterBankCardNo.js +6 -12
  504. package/lib/filterCRLF.d.ts +3 -1
  505. package/lib/filterCRLF.js +6 -10
  506. package/lib/filterEmoji.d.ts +3 -1
  507. package/lib/filterEmoji.js +6 -21
  508. package/lib/filterEmptyValue.d.ts +3 -1
  509. package/lib/filterEmptyValue.js +14 -35
  510. package/lib/filterIdCard.d.ts +3 -1
  511. package/lib/filterIdCard.js +6 -11
  512. package/lib/filterName.d.ts +3 -1
  513. package/lib/filterName.js +6 -20
  514. package/lib/filterPhone.d.ts +3 -1
  515. package/lib/filterPhone.js +6 -12
  516. package/lib/filterString.d.ts +3 -1
  517. package/lib/filterString.js +6 -20
  518. package/lib/formartDateToZN.d.ts +3 -1
  519. package/lib/formartDateToZN.js +119 -34
  520. package/lib/formatAmount.d.ts +3 -1
  521. package/lib/formatAmount.js +6 -25
  522. package/lib/formatDate.d.ts +3 -1
  523. package/lib/formatDate.js +8 -39
  524. package/lib/formatDateStr.d.ts +3 -1
  525. package/lib/formatDateStr.js +6 -11
  526. package/lib/formatFileSize.d.ts +6 -0
  527. package/lib/formatFileSize.js +6 -0
  528. package/lib/formatMessage.d.ts +3 -1
  529. package/lib/formatMessage.js +10 -29
  530. package/lib/formatPathParams.d.ts +3 -1
  531. package/lib/formatPathParams.js +6 -23
  532. package/lib/getBlobByUrl.d.ts +3 -1
  533. package/lib/getBlobByUrl.js +6 -25
  534. package/lib/getDayMillisecond.d.ts +3 -1
  535. package/lib/getDayMillisecond.js +6 -10
  536. package/lib/getImageInfo.d.ts +3 -1
  537. package/lib/getImageInfo.js +6 -18
  538. package/lib/getRandom.d.ts +3 -1
  539. package/lib/getRandom.js +7 -13
  540. package/lib/getRandomColor.d.ts +3 -1
  541. package/lib/getRandomColor.js +6 -10
  542. package/lib/getRandomNumber.d.ts +3 -1
  543. package/lib/getRandomNumber.js +8 -12
  544. package/lib/getScrollTop.d.ts +3 -1
  545. package/lib/getScrollTop.js +6 -10
  546. package/lib/getVideoInfo.d.ts +3 -1
  547. package/lib/getVideoInfo.js +6 -19
  548. package/lib/inBrowser.d.ts +3 -1
  549. package/lib/inBrowser.js +6 -10
  550. package/lib/index.d.ts +115 -112
  551. package/lib/index.js +470 -129
  552. package/lib/insertLink.d.ts +4 -2
  553. package/lib/insertLink.js +6 -19
  554. package/lib/insertScript.d.ts +4 -2
  555. package/lib/insertScript.js +6 -19
  556. package/lib/insertStyle.d.ts +3 -1
  557. package/lib/insertStyle.js +6 -13
  558. package/lib/isAmount.d.ts +3 -1
  559. package/lib/isAmount.js +6 -17
  560. package/lib/isAndroid.d.ts +3 -1
  561. package/lib/isAndroid.js +6 -10
  562. package/lib/isArray.d.ts +3 -1
  563. package/lib/isArray.js +6 -12
  564. package/lib/isBoolean.d.ts +3 -1
  565. package/lib/isBoolean.js +6 -11
  566. package/lib/isChinese.d.ts +3 -1
  567. package/lib/isChinese.js +6 -10
  568. package/lib/isDate.d.ts +3 -1
  569. package/lib/isDate.js +6 -10
  570. package/lib/isEmail.d.ts +3 -1
  571. package/lib/isEmail.js +6 -10
  572. package/lib/isEmpty.d.ts +3 -1
  573. package/lib/isEmpty.js +8 -12
  574. package/lib/isEmptyArray.d.ts +3 -1
  575. package/lib/isEmptyArray.js +7 -11
  576. package/lib/isEmptyObject.d.ts +3 -1
  577. package/lib/isEmptyObject.js +6 -11
  578. package/lib/isError.d.ts +3 -1
  579. package/lib/isError.js +6 -10
  580. package/lib/isFunction.d.ts +3 -1
  581. package/lib/isFunction.js +6 -10
  582. package/lib/isIE.d.ts +3 -1
  583. package/lib/isIE.js +6 -31
  584. package/lib/isIOS.d.ts +3 -1
  585. package/lib/isIOS.js +6 -10
  586. package/lib/isIdCard.d.ts +3 -1
  587. package/lib/isIdCard.js +6 -10
  588. package/lib/isJSONString.d.ts +3 -1
  589. package/lib/isJSONString.js +7 -18
  590. package/lib/isLan.d.ts +3 -1
  591. package/lib/isLan.js +6 -40
  592. package/lib/isLicenseCode.d.ts +3 -1
  593. package/lib/isLicenseCode.js +6 -11
  594. package/lib/isMobile.d.ts +3 -1
  595. package/lib/isMobile.js +6 -15
  596. package/lib/isNativeFunction.d.ts +3 -1
  597. package/lib/isNativeFunction.js +7 -12
  598. package/lib/isNull.d.ts +3 -1
  599. package/lib/isNull.js +6 -10
  600. package/lib/isNumber.d.ts +3 -1
  601. package/lib/isNumber.js +6 -11
  602. package/lib/isObject.d.ts +3 -1
  603. package/lib/isObject.js +6 -10
  604. package/lib/isPhone.d.ts +3 -1
  605. package/lib/isPhone.js +6 -10
  606. package/lib/isPromise.d.ts +3 -1
  607. package/lib/isPromise.js +6 -10
  608. package/lib/isRegExp.d.ts +3 -1
  609. package/lib/isRegExp.js +6 -10
  610. package/lib/isString.d.ts +3 -1
  611. package/lib/isString.js +6 -10
  612. package/lib/isUndefined.d.ts +3 -1
  613. package/lib/isUndefined.js +6 -10
  614. package/lib/isUrl.d.ts +3 -1
  615. package/lib/isUrl.js +6 -10
  616. package/lib/isWeChat.d.ts +4 -2
  617. package/lib/isWeChat.js +8 -18
  618. package/lib/isWeChatMiniProgram.d.ts +3 -1
  619. package/lib/isWeChatMiniProgram.js +6 -12
  620. package/lib/isWindow.d.ts +3 -1
  621. package/lib/isWindow.js +6 -11
  622. package/lib/kebabCase.d.ts +3 -1
  623. package/lib/kebabCase.js +6 -12
  624. package/lib/listGenerator.d.ts +3 -1
  625. package/lib/listGenerator.js +6 -11
  626. package/lib/mousewheel.d.ts +3 -2
  627. package/lib/mousewheel.js +6 -65
  628. package/lib/nf.d.ts +3 -1
  629. package/lib/nf.js +6 -10
  630. package/lib/normalizePath.d.ts +3 -1
  631. package/lib/normalizePath.js +6 -10
  632. package/lib/omit.d.ts +3 -1
  633. package/lib/omit.js +6 -14
  634. package/lib/padding.d.ts +3 -1
  635. package/lib/padding.js +6 -15
  636. package/lib/parseDate.d.ts +3 -1
  637. package/lib/parseDate.js +6 -15
  638. package/lib/parseError.d.ts +3 -1
  639. package/lib/parseError.js +10 -26
  640. package/lib/parseObject.d.ts +3 -1
  641. package/lib/parseObject.js +6 -17
  642. package/lib/parsePath.d.ts +3 -1
  643. package/lib/parsePath.js +7 -18
  644. package/lib/parseQuery.d.ts +3 -1
  645. package/lib/parseQuery.js +8 -31
  646. package/lib/parseQueryString.d.ts +3 -1
  647. package/lib/parseQueryString.js +6 -18
  648. package/lib/pascalCase.d.ts +3 -1
  649. package/lib/pascalCase.js +8 -13
  650. package/lib/pick.d.ts +3 -1
  651. package/lib/pick.js +6 -14
  652. package/lib/replaceCrlf.d.ts +3 -1
  653. package/lib/replaceCrlf.js +6 -10
  654. package/lib/requestFullScreen.d.ts +3 -1
  655. package/lib/requestFullScreen.js +6 -31
  656. package/lib/reserve.d.ts +3 -1
  657. package/lib/reserve.js +9 -14
  658. package/lib/rgbToHex.d.ts +3 -1
  659. package/lib/rgbToHex.js +6 -16
  660. package/lib/round.d.ts +3 -1
  661. package/lib/round.js +6 -51
  662. package/lib/scrollToTop.d.ts +3 -1
  663. package/lib/scrollToTop.js +6 -14
  664. package/lib/setScrollTop.d.ts +3 -1
  665. package/lib/setScrollTop.js +6 -10
  666. package/lib/sleep.d.ts +3 -1
  667. package/lib/sleep.js +6 -14
  668. package/lib/splitArray.d.ts +3 -1
  669. package/lib/splitArray.js +6 -14
  670. package/lib/storage/factory.d.ts +4 -2
  671. package/lib/storage/factory.js +8 -59
  672. package/lib/storage/index.d.ts +6 -3
  673. package/lib/storage/index.js +14 -30
  674. package/lib/stringTrim.d.ts +3 -1
  675. package/lib/stringTrim.js +6 -23
  676. package/lib/stringifyQuery.d.ts +3 -1
  677. package/lib/stringifyQuery.js +8 -20
  678. package/lib/stringifyQueryString.d.ts +3 -1
  679. package/lib/stringifyQueryString.js +6 -17
  680. package/lib/throttle.d.ts +5 -3
  681. package/lib/throttle.js +10 -45
  682. package/lib/toCDB.d.ts +3 -1
  683. package/lib/toCDB.js +6 -23
  684. package/lib/toDBC.d.ts +3 -1
  685. package/lib/toDBC.js +6 -23
  686. package/lib/trap.d.ts +5 -3
  687. package/lib/trap.js +9 -47
  688. package/lib/typeOf.d.ts +3 -1
  689. package/lib/typeOf.js +6 -12
  690. package/lib/withPreventConsecutiveClicks.d.ts +3 -1
  691. package/lib/withPreventConsecutiveClicks.js +6 -42
  692. package/package.json +16 -6
  693. package/es/ato.js +0 -6
  694. package/es/base64ToBlob.d.ts +0 -6
  695. package/es/base64ToBlob.js +0 -21
  696. package/es/blobToBase64.d.ts +0 -4
  697. package/es/blobToBase64.js +0 -14
  698. package/es/cached.d.ts +0 -5
  699. package/es/cached.js +0 -12
  700. package/es/camelCase.d.ts +0 -5
  701. package/es/camelCase.js +0 -7
  702. package/es/canvasToBlob.d.ts +0 -4
  703. package/es/canvasToBlob.js +0 -8
  704. package/es/capitalize.d.ts +0 -5
  705. package/es/capitalize.js +0 -7
  706. package/es/clamp.js +0 -16
  707. package/es/clone.d.ts +0 -5
  708. package/es/clone.js +0 -19
  709. package/es/cloneSimple.js +0 -9
  710. package/es/compareVersion.js +0 -39
  711. package/es/compressImage.d.ts +0 -4
  712. package/es/compressImage.js +0 -16
  713. package/es/createHexColorByHash.d.ts +0 -4
  714. package/es/createHexColorByHash.js +0 -63
  715. package/es/createLinearFunction.js +0 -20
  716. package/es/createWithLoading.js +0 -35
  717. package/es/debounce.d.ts +0 -5
  718. package/es/debounce.js +0 -14
  719. package/es/decode.d.ts +0 -2
  720. package/es/decode.js +0 -47
  721. package/es/downloadFile.d.ts +0 -6
  722. package/es/downloadFile.js +0 -11
  723. package/es/each.d.ts +0 -5
  724. package/es/each.js +0 -13
  725. package/es/exitFullscreen.js +0 -27
  726. package/es/filterBankCardNo.d.ts +0 -4
  727. package/es/filterBankCardNo.js +0 -8
  728. package/es/filterCRLF.d.ts +0 -4
  729. package/es/filterCRLF.js +0 -6
  730. package/es/filterEmoji.d.ts +0 -4
  731. package/es/filterEmoji.js +0 -17
  732. package/es/filterEmptyValue.js +0 -31
  733. package/es/filterIdCard.d.ts +0 -5
  734. package/es/filterIdCard.js +0 -7
  735. package/es/filterName.d.ts +0 -4
  736. package/es/filterName.js +0 -16
  737. package/es/filterPhone.js +0 -8
  738. package/es/filterString.d.ts +0 -6
  739. package/es/filterString.js +0 -16
  740. package/es/formartDateToZN.d.ts +0 -1
  741. package/es/formartDateToZN.js +0 -30
  742. package/es/formatAmount.d.ts +0 -4
  743. package/es/formatAmount.js +0 -21
  744. package/es/formatDate.d.ts +0 -5
  745. package/es/formatDate.js +0 -35
  746. package/es/formatDateStr.js +0 -7
  747. package/es/formatMessage.js +0 -25
  748. package/es/formatPathParams.js +0 -19
  749. package/es/getBlobByUrl.d.ts +0 -4
  750. package/es/getBlobByUrl.js +0 -21
  751. package/es/getDayMillisecond.d.ts +0 -4
  752. package/es/getDayMillisecond.js +0 -6
  753. package/es/getImageInfo.d.ts +0 -4
  754. package/es/getImageInfo.js +0 -14
  755. package/es/getRandom.js +0 -9
  756. package/es/getRandomColor.d.ts +0 -4
  757. package/es/getRandomColor.js +0 -6
  758. package/es/getRandomNumber.js +0 -8
  759. package/es/getScrollTop.d.ts +0 -4
  760. package/es/getScrollTop.js +0 -6
  761. package/es/getVideoInfo.d.ts +0 -4
  762. package/es/getVideoInfo.js +0 -15
  763. package/es/inBrowser.d.ts +0 -4
  764. package/es/inBrowser.js +0 -6
  765. package/es/index.d.ts +0 -112
  766. package/es/index.js +0 -113
  767. package/es/insertLink.d.ts +0 -5
  768. package/es/insertLink.js +0 -15
  769. package/es/insertScript.d.ts +0 -5
  770. package/es/insertScript.js +0 -15
  771. package/es/insertStyle.d.ts +0 -4
  772. package/es/insertStyle.js +0 -9
  773. package/es/isAmount.js +0 -13
  774. package/es/isAndroid.d.ts +0 -4
  775. package/es/isAndroid.js +0 -6
  776. package/es/isArray.js +0 -8
  777. package/es/isBoolean.d.ts +0 -5
  778. package/es/isBoolean.js +0 -7
  779. package/es/isChinese.d.ts +0 -4
  780. package/es/isChinese.js +0 -6
  781. package/es/isDate.d.ts +0 -4
  782. package/es/isDate.js +0 -6
  783. package/es/isEmail.d.ts +0 -4
  784. package/es/isEmail.js +0 -6
  785. package/es/isEmpty.d.ts +0 -4
  786. package/es/isEmpty.js +0 -8
  787. package/es/isEmptyArray.d.ts +0 -4
  788. package/es/isEmptyArray.js +0 -7
  789. package/es/isEmptyObject.d.ts +0 -5
  790. package/es/isEmptyObject.js +0 -7
  791. package/es/isError.d.ts +0 -4
  792. package/es/isError.js +0 -6
  793. package/es/isFunction.d.ts +0 -4
  794. package/es/isFunction.js +0 -6
  795. package/es/isIE.js +0 -27
  796. package/es/isIOS.d.ts +0 -4
  797. package/es/isIOS.js +0 -6
  798. package/es/isIdCard.d.ts +0 -4
  799. package/es/isIdCard.js +0 -6
  800. package/es/isJSONString.d.ts +0 -5
  801. package/es/isJSONString.js +0 -14
  802. package/es/isLan.js +0 -36
  803. package/es/isLicenseCode.d.ts +0 -5
  804. package/es/isLicenseCode.js +0 -7
  805. package/es/isMobile.d.ts +0 -4
  806. package/es/isMobile.js +0 -11
  807. package/es/isNativeFunction.js +0 -8
  808. package/es/isNull.d.ts +0 -4
  809. package/es/isNull.js +0 -6
  810. package/es/isNumber.d.ts +0 -5
  811. package/es/isNumber.js +0 -7
  812. package/es/isObject.d.ts +0 -4
  813. package/es/isObject.js +0 -6
  814. package/es/isPhone.d.ts +0 -4
  815. package/es/isPhone.js +0 -6
  816. package/es/isPromise.d.ts +0 -4
  817. package/es/isPromise.js +0 -6
  818. package/es/isRegExp.d.ts +0 -4
  819. package/es/isRegExp.js +0 -6
  820. package/es/isString.d.ts +0 -4
  821. package/es/isString.js +0 -6
  822. package/es/isUndefined.d.ts +0 -4
  823. package/es/isUndefined.js +0 -6
  824. package/es/isUrl.d.ts +0 -4
  825. package/es/isUrl.js +0 -6
  826. package/es/isWeChat.js +0 -13
  827. package/es/isWeChatMiniProgram.js +0 -8
  828. package/es/isWindow.d.ts +0 -5
  829. package/es/isWindow.js +0 -7
  830. package/es/kebabCase.d.ts +0 -5
  831. package/es/kebabCase.js +0 -8
  832. package/es/listGenerator.d.ts +0 -5
  833. package/es/listGenerator.js +0 -7
  834. package/es/mousewheel.js +0 -61
  835. package/es/nf.d.ts +0 -4
  836. package/es/nf.js +0 -6
  837. package/es/normalizePath.d.ts +0 -4
  838. package/es/normalizePath.js +0 -6
  839. package/es/omit.d.ts +0 -4
  840. package/es/omit.js +0 -10
  841. package/es/padding.js +0 -11
  842. package/es/parseDate.d.ts +0 -4
  843. package/es/parseDate.js +0 -11
  844. package/es/parseError.d.ts +0 -4
  845. package/es/parseError.js +0 -22
  846. package/es/parseObject.d.ts +0 -5
  847. package/es/parseObject.js +0 -13
  848. package/es/parsePath.d.ts +0 -4
  849. package/es/parsePath.js +0 -14
  850. package/es/parseQuery.d.ts +0 -6
  851. package/es/parseQuery.js +0 -27
  852. package/es/parseQueryString.d.ts +0 -6
  853. package/es/parseQueryString.js +0 -14
  854. package/es/pascalCase.js +0 -9
  855. package/es/pick.d.ts +0 -4
  856. package/es/pick.js +0 -10
  857. package/es/replaceCrlf.d.ts +0 -4
  858. package/es/replaceCrlf.js +0 -6
  859. package/es/requestFullScreen.js +0 -27
  860. package/es/reserve.js +0 -10
  861. package/es/rgbToHex.d.ts +0 -4
  862. package/es/rgbToHex.js +0 -12
  863. package/es/round.js +0 -47
  864. package/es/scrollToTop.d.ts +0 -4
  865. package/es/scrollToTop.js +0 -10
  866. package/es/setScrollTop.d.ts +0 -4
  867. package/es/setScrollTop.js +0 -6
  868. package/es/sleep.js +0 -10
  869. package/es/splitArray.d.ts +0 -4
  870. package/es/splitArray.js +0 -10
  871. package/es/storage/factory.js +0 -55
  872. package/es/storage/index.js +0 -13
  873. package/es/stringTrim.js +0 -19
  874. package/es/stringifyQuery.d.ts +0 -4
  875. package/es/stringifyQuery.js +0 -16
  876. package/es/stringifyQueryString.d.ts +0 -6
  877. package/es/stringifyQueryString.js +0 -13
  878. package/es/throttle.d.ts +0 -15
  879. package/es/throttle.js +0 -39
  880. package/es/toCDB.d.ts +0 -4
  881. package/es/toCDB.js +0 -19
  882. package/es/toDBC.d.ts +0 -4
  883. package/es/toDBC.js +0 -19
  884. package/es/trap.js +0 -43
  885. package/es/typeOf.js +0 -8
  886. package/es/withPreventConsecutiveClicks.d.ts +0 -4
  887. package/es/withPreventConsecutiveClicks.js +0 -38
package/es/reserve.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ reserve
3
+ } from "./chunk-B2QDZGN6.mjs";
4
+ import "./chunk-XJT6W4OH.mjs";
5
+ import "./chunk-PMNXLTUL.mjs";
6
+ import "./chunk-T53J6Z3W.mjs";
7
+ export {
8
+ reserve
9
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 说明 rgb 转 十六进制值
3
+ */
4
+ declare function rgbToHex(r: string | number, g: string | number, b: string | number): string;
5
+
6
+ export { rgbToHex };
@@ -0,0 +1,6 @@
1
+ import {
2
+ rgbToHex
3
+ } from "./chunk-QI5FH522.mjs";
4
+ export {
5
+ rgbToHex
6
+ };
@@ -3,4 +3,6 @@
3
3
  * @param val 需要四舍五入的值
4
4
  * @param fractionDigits 需要保留的小数点位数
5
5
  */
6
- export declare function round(val: number, fractionDigits: number): any;
6
+ declare function round(val: number, fractionDigits: number): any;
7
+
8
+ export { round };
package/es/round.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ round
3
+ } from "./chunk-55VPNRDX.mjs";
4
+ export {
5
+ round
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 滚动到页面顶部
3
+ */
4
+ declare function scrollToTop(): void;
5
+
6
+ export { scrollToTop };
@@ -0,0 +1,6 @@
1
+ import {
2
+ scrollToTop
3
+ } from "./chunk-CIIM7WK6.mjs";
4
+ export {
5
+ scrollToTop
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 设置 scrollTop
3
+ */
4
+ declare function setScrollTop(scrollTop?: number): void;
5
+
6
+ export { setScrollTop };
@@ -0,0 +1,6 @@
1
+ import {
2
+ setScrollTop
3
+ } from "./chunk-PGVJ5IPJ.mjs";
4
+ export {
5
+ setScrollTop
6
+ };
@@ -3,4 +3,6 @@
3
3
  * @param ms 休眠时长 毫秒
4
4
  * @param isSuccess 默认执行成功
5
5
  */
6
- export declare function sleep(ms: number, isSuccess?: boolean): Promise<void>;
6
+ declare function sleep(ms: number, isSuccess?: boolean): Promise<void>;
7
+
8
+ export { sleep };
package/es/sleep.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ sleep
3
+ } from "./chunk-36BFA7SH.mjs";
4
+ export {
5
+ sleep
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 分割数组
3
+ */
4
+ declare function splitArray<T = any>(source: T[], size: number): T[][];
5
+
6
+ export { splitArray };
@@ -0,0 +1,6 @@
1
+ import {
2
+ splitArray
3
+ } from "./chunk-T3MNPQVN.mjs";
4
+ export {
5
+ splitArray
6
+ };
@@ -1,10 +1,10 @@
1
- export interface StorageManager<T = any> {
1
+ interface StorageManager<T = any> {
2
2
  setItem(val: T): T;
3
3
  getItem(defaultVal?: Partial<T>): T;
4
4
  removeItem(): void;
5
5
  updateItem(val: Partial<T>): T;
6
6
  }
7
- export declare function factory(type: 'sessionStorage' | 'localStorage'): {
7
+ declare function factory(type: 'sessionStorage' | 'localStorage'): {
8
8
  setItem: <T = any>(key: string, val: T) => T;
9
9
  getItem: <T_1 = any>(key: string, defaultVal?: Partial<T_1> | null) => T_1;
10
10
  removeItem: (key: string) => void;
@@ -17,3 +17,5 @@ export declare function factory(type: 'sessionStorage' | 'localStorage'): {
17
17
  updateItem: (val: Partial<T_3>) => T_3;
18
18
  };
19
19
  };
20
+
21
+ export { type StorageManager, factory };
@@ -0,0 +1,8 @@
1
+ import {
2
+ factory
3
+ } from "../chunk-OL5ADAY4.mjs";
4
+ import "../chunk-UZ44S2T3.mjs";
5
+ import "../chunk-H4Q2L2Z7.mjs";
6
+ export {
7
+ factory
8
+ };
@@ -1,5 +1,6 @@
1
- export * from './factory';
2
- export declare const getCache: () => {
1
+ export { StorageManager, factory } from './factory.mjs';
2
+
3
+ declare const getCache: () => {
3
4
  setItem: <T = any>(key: string, val: T) => T;
4
5
  getItem: <T_1 = any>(key: string, defaultVal?: Partial<T_1> | null) => T_1;
5
6
  removeItem: (key: string) => void;
@@ -12,7 +13,7 @@ export declare const getCache: () => {
12
13
  updateItem: (val: Partial<T_3>) => T_3;
13
14
  };
14
15
  };
15
- export declare const getLocal: () => {
16
+ declare const getLocal: () => {
16
17
  setItem: <T = any>(key: string, val: T) => T;
17
18
  getItem: <T_1 = any>(key: string, defaultVal?: Partial<T_1> | null) => T_1;
18
19
  removeItem: (key: string) => void;
@@ -25,3 +26,5 @@ export declare const getLocal: () => {
25
26
  updateItem: (val: Partial<T_3>) => T_3;
26
27
  };
27
28
  };
29
+
30
+ export { getCache, getLocal };
@@ -0,0 +1,14 @@
1
+ import {
2
+ getCache,
3
+ getLocal
4
+ } from "../chunk-JNYC6ERK.mjs";
5
+ import {
6
+ factory
7
+ } from "../chunk-OL5ADAY4.mjs";
8
+ import "../chunk-UZ44S2T3.mjs";
9
+ import "../chunk-H4Q2L2Z7.mjs";
10
+ export {
11
+ factory,
12
+ getCache,
13
+ getLocal
14
+ };
@@ -3,4 +3,6 @@
3
3
  * @param str 字符串值
4
4
  * @param type 方式 1-所有空格,2-前后空格,3-前空格,4-后空格
5
5
  */
6
- export declare function stringTrim(str: string, type?: 1 | 2 | 3 | 4): string;
6
+ declare function stringTrim(str: string, type?: 1 | 2 | 3 | 4): string;
7
+
8
+ export { stringTrim };
@@ -0,0 +1,6 @@
1
+ import {
2
+ stringTrim
3
+ } from "./chunk-N4OGI2R3.mjs";
4
+ export {
5
+ stringTrim
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 对象转 URLSearchParams
3
+ */
4
+ declare function stringifyQuery(v: Record<string, any>): string;
5
+
6
+ export { stringifyQuery };
@@ -0,0 +1,8 @@
1
+ import {
2
+ stringifyQuery
3
+ } from "./chunk-MRUDDQHD.mjs";
4
+ import "./chunk-FUPB76YN.mjs";
5
+ import "./chunk-GSEIW3MZ.mjs";
6
+ export {
7
+ stringifyQuery
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 将对象转换为查询字符串
3
+ *
4
+ * 在不支持 URLSearchParams 的环境下使用该方法
5
+ */
6
+ declare function stringifyQueryString(value: Record<string, any>): string;
7
+
8
+ export { stringifyQueryString };
@@ -0,0 +1,6 @@
1
+ import {
2
+ stringifyQueryString
3
+ } from "./chunk-H625225L.mjs";
4
+ export {
5
+ stringifyQueryString
6
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 节流函数,时间戳模式
3
+ * 减少事件执行次数,有规律的执行,事件触发后立即执行
4
+ */
5
+ declare function throttleLeading<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
6
+ /**
7
+ * 节流函数,定时器模式
8
+ * 减少事件执行次数,有规律的执行,事件触发后延迟执行
9
+ */
10
+ declare function throttleTrailing<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
11
+ /**
12
+ * 节流函数
13
+ * 减少事件执行次数,有规律的执行
14
+ */
15
+ declare function throttle<T extends (...args: any[]) => any>(fn: T, ms: number, mode?: 'leading' | 'trailing'): (this: unknown, ...args: Parameters<T>) => void;
16
+
17
+ export { throttle, throttleLeading, throttleTrailing };
@@ -0,0 +1,10 @@
1
+ import {
2
+ throttle,
3
+ throttleLeading,
4
+ throttleTrailing
5
+ } from "./chunk-C3VMHKA2.mjs";
6
+ export {
7
+ throttle,
8
+ throttleLeading,
9
+ throttleTrailing
10
+ };
package/es/toCDB.d.mts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 全角转换为半角
3
+ */
4
+ declare function toCDB(str: string): string;
5
+
6
+ export { toCDB };
package/es/toCDB.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ toCDB
3
+ } from "./chunk-CH54B2NW.mjs";
4
+ export {
5
+ toCDB
6
+ };
package/es/toDBC.d.mts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 半角转换为全角
3
+ */
4
+ declare function toDBC(str: string): string;
5
+
6
+ export { toDBC };
package/es/toDBC.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ toDBC
3
+ } from "./chunk-NSD6JAKL.mjs";
4
+ export {
5
+ toDBC
6
+ };
@@ -2,16 +2,18 @@
2
2
  * 陷阱圈套
3
3
  * 主要用于缓存页面下、执行触发
4
4
  */
5
- export interface Trap {
5
+ interface Trap {
6
6
  list: Record<string, any>;
7
7
  trigger: (id: string, data?: any) => void;
8
8
  create: (id: string, cb: (...args: any[]) => any) => void;
9
9
  delete: (id: string) => void;
10
10
  clear: () => void;
11
11
  }
12
- export declare const trap: Trap;
13
- export declare function createTrapInstance<T = any>(id: string): {
12
+ declare const trap: Trap;
13
+ declare function createTrapInstance<T = any>(id: string): {
14
14
  trigger(data?: T): void;
15
15
  create(cb: (data: T) => void): void;
16
16
  delete(): void;
17
17
  };
18
+
19
+ export { type Trap, createTrapInstance, trap };
package/es/trap.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ createTrapInstance,
3
+ trap
4
+ } from "./chunk-2BCJGKPK.mjs";
5
+ import "./chunk-PMNXLTUL.mjs";
6
+ export {
7
+ createTrapInstance,
8
+ trap
9
+ };
@@ -3,4 +3,6 @@
3
3
  * @param val 待判断数据
4
4
  * @returns 'undefined'|'null'|'boolean'|'string'|'number'|'object'|'array'|'function'|'symbol'|'map'|'weakmap'|'bigint'|'regexp'|'date'
5
5
  */
6
- export declare function typeOf(val: unknown): string;
6
+ declare function typeOf(val: unknown): string;
7
+
8
+ export { typeOf };
package/es/typeOf.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ typeOf
3
+ } from "./chunk-7K7LDQU5.mjs";
4
+ export {
5
+ typeOf
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 防止连续点击
3
+ */
4
+ declare function withPreventConsecutiveClicks<T extends (...args: any[]) => Promise<any>>(fn: T, ms?: number): T;
5
+
6
+ export { withPreventConsecutiveClicks };
@@ -0,0 +1,6 @@
1
+ import {
2
+ withPreventConsecutiveClicks
3
+ } from "./chunk-BZIKQDNP.mjs";
4
+ export {
5
+ withPreventConsecutiveClicks
6
+ };
package/lib/ato.d.ts CHANGED
@@ -9,5 +9,7 @@
9
9
  * const res = ato(options, 'value', 'label')
10
10
  * res = { '1': '男', '2': '女' }
11
11
  */
12
- export declare function ato<T extends Record<string, any>, K extends keyof T>(options: T[], labelKey: K): Record<T[K], T>;
13
- export declare function ato<T extends Record<string, any>, K extends keyof T>(options: T[], labelKey: K, valueKey: K): Record<T[K], any>;
12
+ declare function ato<T extends Record<string, any>, K extends keyof T>(options: T[], labelKey: K): Record<T[K], T>;
13
+ declare function ato<T extends Record<string, any>, K extends keyof T>(options: T[], labelKey: K, valueKey: K): Record<T[K], any>;
14
+
15
+ export { ato };
package/lib/ato.js CHANGED
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ato = void 0;
4
- function ato(options, labelKey, valueKey) {
5
- return options.reduce((res, item) => {
6
- res[item[labelKey]] = valueKey ? item[valueKey] : item;
7
- return res;
8
- }, {});
9
- }
10
- exports.ato = ato;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkKEADPNJLjs = require('./chunk-KEADPNJL.js');
4
+
5
+
6
+ exports.ato = _chunkKEADPNJLjs.ato;
@@ -3,4 +3,6 @@
3
3
  * @param base64 base64字符串
4
4
  * @param contentType 文件类型
5
5
  */
6
- export declare function base64ToBlob(base64: string, contentType?: string): Blob;
6
+ declare function base64ToBlob(base64: string, contentType?: string): Blob;
7
+
8
+ export { base64ToBlob };
@@ -1,25 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.base64ToBlob = void 0;
4
- /**
5
- * base64 转 blob
6
- * @param base64 base64字符串
7
- * @param contentType 文件类型
8
- */
9
- function base64ToBlob(base64, contentType) {
10
- var _a;
11
- const [prefix, rest] = base64.split(',');
12
- const type = contentType !== null && contentType !== void 0 ? contentType : (_a = prefix.match(/:(.*?);/)) === null || _a === void 0 ? void 0 : _a[1];
13
- // 还是选用直接 atob
14
- // const data = inBrowser()
15
- // ? window.atob(rest)
16
- // : Buffer.from(rest, 'base64').toString('binary')
17
- const data = atob(rest);
18
- let len = data.length;
19
- const u8arr = new Uint8Array(len);
20
- while (len--) {
21
- u8arr[len] = data.charCodeAt(len);
22
- }
23
- return new Blob([u8arr], { type });
24
- }
25
- exports.base64ToBlob = base64ToBlob;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkDOXFJNJOjs = require('./chunk-DOXFJNJO.js');
4
+
5
+
6
+ exports.base64ToBlob = _chunkDOXFJNJOjs.base64ToBlob;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * blob 转 base64
3
3
  */
4
- export declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer>;
4
+ declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer>;
5
+
6
+ export { blobToBase64 };
@@ -1,18 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.blobToBase64 = void 0;
4
- /**
5
- * blob 转 base64
6
- */
7
- function blobToBase64(blob) {
8
- return new Promise((resolve, reject) => {
9
- const fileReader = new FileReader();
10
- fileReader.onload = (res) => {
11
- var _a, _b;
12
- resolve((_b = (_a = res.target) === null || _a === void 0 ? void 0 : _a.result) !== null && _b !== void 0 ? _b : '');
13
- };
14
- fileReader.onerror = reject;
15
- fileReader.readAsDataURL(blob);
16
- });
17
- }
18
- exports.blobToBase64 = blobToBase64;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkKH7MPMQFjs = require('./chunk-KH7MPMQF.js');
4
+
5
+
6
+ exports.blobToBase64 = _chunkKH7MPMQFjs.blobToBase64;
package/lib/cached.d.ts CHANGED
@@ -2,4 +2,6 @@
2
2
  * 缓存、记忆函数,缓存函数的运算结果
3
3
  * 需注意缓存的函数得是纯函数
4
4
  */
5
- export declare function cached<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
5
+ declare function cached<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
6
+
7
+ export { cached };
package/lib/cached.js CHANGED
@@ -1,16 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cached = void 0;
4
- /**
5
- * 缓存、记忆函数,缓存函数的运算结果
6
- * 需注意缓存的函数得是纯函数
7
- */
8
- function cached(fn) {
9
- const cache = Object.create(null);
10
- return function cachedFn(...args) {
11
- const key = JSON.stringify(args);
12
- const hit = cache[key];
13
- return hit || (cache[key] = fn(...args));
14
- };
15
- }
16
- exports.cached = cached;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWEWAC6GLjs = require('./chunk-WEWAC6GL.js');
4
+
5
+
6
+ exports.cached = _chunkWEWAC6GLjs.cached;
@@ -2,4 +2,6 @@
2
2
  * 驼峰
3
3
  * camelCase('hello-world') => helloWorld
4
4
  */
5
- export declare function camelCase(str: string): string;
5
+ declare function camelCase(str: string): string;
6
+
7
+ export { camelCase };
package/lib/camelCase.js CHANGED
@@ -1,11 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.camelCase = void 0;
4
- /**
5
- * 驼峰
6
- * camelCase('hello-world') => helloWorld
7
- */
8
- function camelCase(str) {
9
- return str.replace(/-(\w)/g, (_, c) => (c ? c.toUpperCase() : ''));
10
- }
11
- exports.camelCase = camelCase;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXOQU757Ujs = require('./chunk-XOQU757U.js');
4
+
5
+
6
+ exports.camelCase = _chunkXOQU757Ujs.camelCase;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * canvas 转 blob 文件
3
3
  */
4
- export declare function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?: any): Promise<Blob>;
4
+ declare function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?: any): Promise<Blob>;
5
+
6
+ export { canvasToBlob };
@@ -1,12 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.canvasToBlob = void 0;
4
- /**
5
- * canvas 转 blob 文件
6
- */
7
- function canvasToBlob(canvas, type, quality) {
8
- return new Promise((resolve, reject) => {
9
- canvas.toBlob((data) => data ? resolve(data) : reject(new Error('canvas toBlob is null')), type, quality);
10
- });
11
- }
12
- exports.canvasToBlob = canvasToBlob;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk6EBFQIMYjs = require('./chunk-6EBFQIMY.js');
4
+
5
+
6
+ exports.canvasToBlob = _chunk6EBFQIMYjs.canvasToBlob;
@@ -2,4 +2,6 @@
2
2
  * 首字母大写
3
3
  * capitalize('hello world') => Hello world
4
4
  */
5
- export declare function capitalize(str: string): string;
5
+ declare function capitalize(str: string): string;
6
+
7
+ export { capitalize };
package/lib/capitalize.js CHANGED
@@ -1,11 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.capitalize = void 0;
4
- /**
5
- * 首字母大写
6
- * capitalize('hello world') => Hello world
7
- */
8
- function capitalize(str) {
9
- return str.charAt(0).toUpperCase() + str.slice(1);
10
- }
11
- exports.capitalize = capitalize;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkHU5DI7IUjs = require('./chunk-HU5DI7IU.js');
4
+
5
+
6
+ exports.capitalize = _chunkHU5DI7IUjs.capitalize;
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/formatFileSize.ts
2
+ function formatFileSize(bytes, decimals = 2) {
3
+ if (bytes === 0)
4
+ return "0 Bytes";
5
+ const k = 1024;
6
+ const dm = decimals < 0 ? 0 : decimals;
7
+ const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
8
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
9
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
10
+ }
11
+
12
+
13
+
14
+ exports.formatFileSize = formatFileSize;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/filterIdCard.ts
2
+ function filterIdCard(val) {
3
+ return val ? `${val.substring(0, 6)}********${val.substring(14)}` : "";
4
+ }
5
+
6
+
7
+
8
+ exports.filterIdCard = filterIdCard;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/isUndefined.ts
2
+ function isUndefined(val) {
3
+ return typeof val === "undefined";
4
+ }
5
+
6
+
7
+
8
+ exports.isUndefined = isUndefined;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/formatDateStr.ts
2
+ function formatDateStr(v) {
3
+ return new Date(v.replace(/-/g, "/"));
4
+ }
5
+
6
+
7
+
8
+ exports.formatDateStr = formatDateStr;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/listGenerator.ts
2
+ function listGenerator(length, fn) {
3
+ return new Array(length).fill("").map((_, index) => fn(index));
4
+ }
5
+
6
+
7
+
8
+ exports.listGenerator = listGenerator;