@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
@@ -1,59 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.factory = void 0;
4
- const isArray_1 = require("../isArray");
5
- const isObject_1 = require("../isObject");
6
- function factory(type) {
7
- const fn = window[type];
8
- // 设置
9
- const setItem = (key, val) => {
10
- fn.setItem(key, JSON.stringify(val));
11
- return val;
12
- };
13
- // 获取
14
- const getItem = (key, defaultVal = null) => {
15
- const val = fn.getItem(key);
16
- // 如果为 null 取默认值
17
- if (val === null) {
18
- return defaultVal;
19
- }
20
- return JSON.parse(val);
21
- };
22
- // 删除
23
- const removeItem = (key) => {
24
- fn.removeItem(key);
25
- };
26
- // 更新
27
- const updateItem = (key, val) => {
28
- const prev = getItem(key);
29
- if ((0, isArray_1.isArray)(val)) {
30
- val = [...(prev || []), ...val];
31
- }
32
- else if ((0, isObject_1.isObject)(val)) {
33
- val = Object.assign(Object.assign({}, prev), val);
34
- }
35
- return setItem(key, val);
36
- };
37
- // 清除
38
- const clear = () => {
39
- fn.clear();
40
- };
41
- // 生成
42
- const generate = (key) => {
43
- return {
44
- setItem: (val) => setItem(key, val),
45
- getItem: (defaultVal) => getItem(key, defaultVal),
46
- removeItem: () => removeItem(key),
47
- updateItem: (val) => updateItem(key, val),
48
- };
49
- };
50
- return {
51
- setItem,
52
- getItem,
53
- removeItem,
54
- updateItem,
55
- clear,
56
- generate,
57
- };
58
- }
59
- exports.factory = factory;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkM6B3UGFIjs = require('../chunk-M6B3UGFI.js');
4
+ require('../chunk-CSZ7G34M.js');
5
+ require('../chunk-XCSSSEK2.js');
6
+
7
+
8
+ exports.factory = _chunkM6B3UGFIjs.factory;
@@ -1,5 +1,6 @@
1
- export * from './factory';
2
- export declare const getCache: () => {
1
+ export { StorageManager, factory } from './factory.js';
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 };
@@ -1,30 +1,14 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getLocal = exports.getCache = void 0;
18
- const factory_1 = require("./factory");
19
- __exportStar(require("./factory"), exports);
20
- const getStorage = (type) => {
21
- let instance = null;
22
- return () => {
23
- if (!instance) {
24
- instance = (0, factory_1.factory)(type);
25
- }
26
- return instance;
27
- };
28
- };
29
- exports.getCache = getStorage('sessionStorage');
30
- exports.getLocal = getStorage('localStorage');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkIJCLLBSRjs = require('../chunk-IJCLLBSR.js');
5
+
6
+
7
+ var _chunkM6B3UGFIjs = require('../chunk-M6B3UGFI.js');
8
+ require('../chunk-CSZ7G34M.js');
9
+ require('../chunk-XCSSSEK2.js');
10
+
11
+
12
+
13
+
14
+ exports.factory = _chunkM6B3UGFIjs.factory; exports.getCache = _chunkIJCLLBSRjs.getCache; exports.getLocal = _chunkIJCLLBSRjs.getLocal;
@@ -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 };
package/lib/stringTrim.js CHANGED
@@ -1,23 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringTrim = void 0;
4
- /**
5
- * 去除字符串空格
6
- * @param str 字符串值
7
- * @param type 方式 1-所有空格,2-前后空格,3-前空格,4-后空格
8
- */
9
- function stringTrim(str, type = 1) {
10
- switch (type) {
11
- case 1:
12
- return str.replace(/\s+/g, '');
13
- case 2:
14
- return str.replace(/(^\s*)|(\s*$)/g, '');
15
- case 3:
16
- return str.replace(/(^\s*)/g, '');
17
- case 4:
18
- return str.replace(/(\s*$)/g, '');
19
- default:
20
- return str;
21
- }
22
- }
23
- exports.stringTrim = stringTrim;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIF7JMIDOjs = require('./chunk-IF7JMIDO.js');
4
+
5
+
6
+ exports.stringTrim = _chunkIF7JMIDOjs.stringTrim;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 对象转 URLSearchParams
3
3
  */
4
- export declare function stringifyQuery(v: Record<string, any>): string;
4
+ declare function stringifyQuery(v: Record<string, any>): string;
5
+
6
+ export { stringifyQuery };
@@ -1,20 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringifyQuery = void 0;
4
- const isEmptyObject_1 = require("./isEmptyObject");
5
- const isString_1 = require("./isString");
6
- /**
7
- * 对象转 URLSearchParams
8
- */
9
- function stringifyQuery(v) {
10
- if ((0, isEmptyObject_1.isEmptyObject)(v)) {
11
- return '';
12
- }
13
- const query = new URLSearchParams();
14
- Object.keys(v).forEach((key) => {
15
- const value = (0, isString_1.isString)(v[key]) ? v[key] : JSON.stringify(v[key]);
16
- query.append(key, value);
17
- });
18
- return query.toString();
19
- }
20
- exports.stringifyQuery = stringifyQuery;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWXXFRKUSjs = require('./chunk-WXXFRKUS.js');
4
+ require('./chunk-F4QMON2N.js');
5
+ require('./chunk-GVYBTJDA.js');
6
+
7
+
8
+ exports.stringifyQuery = _chunkWXXFRKUSjs.stringifyQuery;
@@ -3,4 +3,6 @@
3
3
  *
4
4
  * 在不支持 URLSearchParams 的环境下使用该方法
5
5
  */
6
- export declare function stringifyQueryString(value: Record<string, any>): string;
6
+ declare function stringifyQueryString(value: Record<string, any>): string;
7
+
8
+ export { stringifyQueryString };
@@ -1,17 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringifyQueryString = void 0;
4
- /**
5
- * 将对象转换为查询字符串
6
- *
7
- * 在不支持 URLSearchParams 的环境下使用该方法
8
- */
9
- function stringifyQueryString(value) {
10
- return Object.keys(value)
11
- .reduce((res, k) => {
12
- res.push(`${k}=${value[k]}`);
13
- return res;
14
- }, [])
15
- .join('&');
16
- }
17
- exports.stringifyQueryString = stringifyQueryString;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkTSFGLHCPjs = require('./chunk-TSFGLHCP.js');
4
+
5
+
6
+ exports.stringifyQueryString = _chunkTSFGLHCPjs.stringifyQueryString;
package/lib/throttle.d.ts CHANGED
@@ -2,14 +2,16 @@
2
2
  * 节流函数,时间戳模式
3
3
  * 减少事件执行次数,有规律的执行,事件触发后立即执行
4
4
  */
5
- export declare function throttleLeading<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
5
+ declare function throttleLeading<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
6
6
  /**
7
7
  * 节流函数,定时器模式
8
8
  * 减少事件执行次数,有规律的执行,事件触发后延迟执行
9
9
  */
10
- export declare function throttleTrailing<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
10
+ declare function throttleTrailing<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
11
11
  /**
12
12
  * 节流函数
13
13
  * 减少事件执行次数,有规律的执行
14
14
  */
15
- export declare function throttle<T extends (...args: any[]) => any>(fn: T, ms: number, mode?: 'leading' | 'trailing'): (this: unknown, ...args: Parameters<T>) => void;
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 };
package/lib/throttle.js CHANGED
@@ -1,45 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.throttle = exports.throttleTrailing = exports.throttleLeading = void 0;
4
- /**
5
- * 节流函数,时间戳模式
6
- * 减少事件执行次数,有规律的执行,事件触发后立即执行
7
- */
8
- function throttleLeading(fn, ms) {
9
- let pre = 0;
10
- // eslint-disable-next-line func-names
11
- return function (...args) {
12
- const now = Date.now();
13
- if (now - pre >= ms) {
14
- fn.apply(this, args);
15
- pre = now;
16
- }
17
- };
18
- }
19
- exports.throttleLeading = throttleLeading;
20
- /**
21
- * 节流函数,定时器模式
22
- * 减少事件执行次数,有规律的执行,事件触发后延迟执行
23
- */
24
- function throttleTrailing(fn, ms) {
25
- let timer = null;
26
- // eslint-disable-next-line func-names
27
- return function (...args) {
28
- if (timer) {
29
- return;
30
- }
31
- timer = setTimeout(() => {
32
- fn.apply(this, args);
33
- timer = null;
34
- }, ms);
35
- };
36
- }
37
- exports.throttleTrailing = throttleTrailing;
38
- /**
39
- * 节流函数
40
- * 减少事件执行次数,有规律的执行
41
- */
42
- function throttle(fn, ms, mode = 'trailing') {
43
- return mode === 'leading' ? throttleLeading(fn, ms) : throttleTrailing(fn, ms);
44
- }
45
- exports.throttle = throttle;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkASYHV5B7js = require('./chunk-ASYHV5B7.js');
6
+
7
+
8
+
9
+
10
+ exports.throttle = _chunkASYHV5B7js.throttle; exports.throttleLeading = _chunkASYHV5B7js.throttleLeading; exports.throttleTrailing = _chunkASYHV5B7js.throttleTrailing;
package/lib/toCDB.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 全角转换为半角
3
3
  */
4
- export declare function toCDB(str: string): string;
4
+ declare function toCDB(str: string): string;
5
+
6
+ export { toCDB };
package/lib/toCDB.js CHANGED
@@ -1,23 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCDB = void 0;
4
- /**
5
- * 全角转换为半角
6
- */
7
- function toCDB(str) {
8
- let result = '';
9
- for (let i = 0; i < str.length; i++) {
10
- const code = str.charCodeAt(i);
11
- if (code >= 65281 && code <= 65374) {
12
- result += String.fromCharCode(str.charCodeAt(i) - 65248);
13
- }
14
- else if (code == 12288) {
15
- result += String.fromCharCode(str.charCodeAt(i) - 12288 + 32);
16
- }
17
- else {
18
- result += str.charAt(i);
19
- }
20
- }
21
- return result;
22
- }
23
- exports.toCDB = toCDB;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkJ2Y5ZZA3js = require('./chunk-J2Y5ZZA3.js');
4
+
5
+
6
+ exports.toCDB = _chunkJ2Y5ZZA3js.toCDB;
package/lib/toDBC.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 半角转换为全角
3
3
  */
4
- export declare function toDBC(str: string): string;
4
+ declare function toDBC(str: string): string;
5
+
6
+ export { toDBC };
package/lib/toDBC.js CHANGED
@@ -1,23 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDBC = void 0;
4
- /**
5
- * 半角转换为全角
6
- */
7
- function toDBC(str) {
8
- let result = '';
9
- for (let i = 0; i < str.length; i++) {
10
- const code = str.charCodeAt(i);
11
- if (code >= 33 && code <= 126) {
12
- result += String.fromCharCode(str.charCodeAt(i) + 65248);
13
- }
14
- else if (code == 32) {
15
- result += String.fromCharCode(str.charCodeAt(i) + 12288 - 32);
16
- }
17
- else {
18
- result += str.charAt(i);
19
- }
20
- }
21
- return result;
22
- }
23
- exports.toDBC = toDBC;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkONTP5SDEjs = require('./chunk-ONTP5SDE.js');
4
+
5
+
6
+ exports.toDBC = _chunkONTP5SDEjs.toDBC;
package/lib/trap.d.ts CHANGED
@@ -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/lib/trap.js CHANGED
@@ -1,47 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTrapInstance = exports.trap = void 0;
4
- const isUndefined_1 = require("./isUndefined");
5
- exports.trap = {
6
- list: {},
7
- // 触发
8
- trigger(id, data = {}) {
9
- if (!id.startsWith('trap')) {
10
- throw new Error(`trap id 命名必须满足: trap:[componentName]:[action]`);
11
- }
12
- this.list[id] = data;
13
- },
14
- // 创建
15
- create(id, cb) {
16
- if (!id.startsWith('trap')) {
17
- throw new Error(`trap id 命名必须满足: trap:[componentName]:[action]`);
18
- }
19
- const data = this.list[id];
20
- this.delete(id);
21
- if (!(0, isUndefined_1.isUndefined)(data)) {
22
- cb(data);
23
- }
24
- },
25
- // 删除
26
- delete(id) {
27
- delete this.list[id];
28
- },
29
- // 清除
30
- clear() {
31
- this.list = {};
32
- },
33
- };
34
- function createTrapInstance(id) {
35
- return {
36
- trigger(data) {
37
- return exports.trap.trigger(id, data);
38
- },
39
- create(cb) {
40
- return exports.trap.create(id, cb);
41
- },
42
- delete() {
43
- return exports.trap.delete(id);
44
- },
45
- };
46
- }
47
- exports.createTrapInstance = createTrapInstance;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkLOPD7SSHjs = require('./chunk-LOPD7SSH.js');
5
+ require('./chunk-3KRJNCKB.js');
6
+
7
+
8
+
9
+ exports.createTrapInstance = _chunkLOPD7SSHjs.createTrapInstance; exports.trap = _chunkLOPD7SSHjs.trap;
package/lib/typeOf.d.ts CHANGED
@@ -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/lib/typeOf.js CHANGED
@@ -1,12 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.typeOf = void 0;
4
- /**
5
- * 判断类型
6
- * @param val 待判断数据
7
- * @returns 'undefined'|'null'|'boolean'|'string'|'number'|'object'|'array'|'function'|'symbol'|'map'|'weakmap'|'bigint'|'regexp'|'date'
8
- */
9
- function typeOf(val) {
10
- return Object.prototype.toString.call(val).slice(8, -1).toLowerCase();
11
- }
12
- exports.typeOf = typeOf;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkMTF3ACKCjs = require('./chunk-MTF3ACKC.js');
4
+
5
+
6
+ exports.typeOf = _chunkMTF3ACKCjs.typeOf;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 防止连续点击
3
3
  */
4
- export declare function withPreventConsecutiveClicks<T extends (...args: any[]) => Promise<any>>(fn: T, ms?: number): T;
4
+ declare function withPreventConsecutiveClicks<T extends (...args: any[]) => Promise<any>>(fn: T, ms?: number): T;
5
+
6
+ export { withPreventConsecutiveClicks };
@@ -1,42 +1,6 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.withPreventConsecutiveClicks = void 0;
13
- /**
14
- * 防止连续点击
15
- */
16
- function withPreventConsecutiveClicks(fn, ms) {
17
- let flag = false;
18
- return function (...args) {
19
- return __awaiter(this, void 0, void 0, function* () {
20
- if (flag) {
21
- return;
22
- }
23
- flag = true;
24
- try {
25
- return yield fn.apply(this, args);
26
- // eslint-disable-next-line no-useless-catch
27
- }
28
- catch (err) {
29
- throw err;
30
- }
31
- finally {
32
- if (ms) {
33
- setTimeout(() => (flag = false), ms);
34
- }
35
- else {
36
- flag = false;
37
- }
38
- }
39
- });
40
- };
41
- }
42
- exports.withPreventConsecutiveClicks = withPreventConsecutiveClicks;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkS6UH3LMWjs = require('./chunk-S6UH3LMW.js');
4
+
5
+
6
+ exports.withPreventConsecutiveClicks = _chunkS6UH3LMWjs.withPreventConsecutiveClicks;
package/package.json CHANGED
@@ -1,17 +1,25 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "description": "通用的工具库",
5
5
  "main": "lib/index.js",
6
- "module": "es/index.js",
7
- "types": "es/index.d.ts",
6
+ "module": "es/index.mjs",
7
+ "types": "es/index.d.mts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./es/index.js",
10
+ "types": "./es/index.d.mts",
11
+ "import": "./es/index.mts",
11
12
  "require": "./lib/index.js"
12
13
  },
13
14
  "./*": "./*"
14
15
  },
16
+ "typesVersions": {
17
+ "*": {
18
+ "*": [
19
+ "./es/*"
20
+ ]
21
+ }
22
+ },
15
23
  "scripts": {
16
24
  "gen": "plop --plopfile ./scripts/gen.js --force",
17
25
  "del": "plop --plopfile ./scripts/del.js --force",
@@ -20,12 +28,13 @@
20
28
  "clean:es": "rimraf ./es",
21
29
  "clean:lib": "rimraf ./lib",
22
30
  "clean": "npm run clean:es && npm run clean:lib",
31
+ "build": "npm run clean && tsup",
23
32
  "build:es": "npm run clean:es && tsc -p ./tsconfig-esm.json",
24
33
  "build:lib": "npm run clean:lib && tsc -p ./tsconfig.json",
25
- "build": "npm run entry && npm run build:es && npm run build:lib",
34
+ "build:tsc": "npm run entry && npm run build:es && npm run build:lib",
26
35
  "test": "jest",
27
36
  "coverage": "jest --coverage",
28
- "prerelease": "npm run entry && npm run test && npm run docs",
37
+ "prerelease": "npm run entry && npm run docs",
29
38
  "release": "npm run build && dsc publish -t",
30
39
  "lint": "eslint 'src/**/*.{js,ts}' --fix",
31
40
  "prepare": "husky install && echo 'export PATH=\"/usr/local/bin/:$PATH\"' > ~/.huskyrc"
@@ -70,6 +79,7 @@
70
79
  "prettier": "^2.8.4",
71
80
  "rimraf": "^3.0.2",
72
81
  "ts-jest": "^27.1.5",
82
+ "tsup": "^8.0.2",
73
83
  "typedoc": "^0.23.21",
74
84
  "typedoc-plugin-markdown": "^3.14.0",
75
85
  "typescript": "^4.8.4"
package/es/ato.js DELETED
@@ -1,6 +0,0 @@
1
- export function ato(options, labelKey, valueKey) {
2
- return options.reduce((res, item) => {
3
- res[item[labelKey]] = valueKey ? item[valueKey] : item;
4
- return res;
5
- }, {});
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * base64 转 blob
3
- * @param base64 base64字符串
4
- * @param contentType 文件类型
5
- */
6
- export declare function base64ToBlob(base64: string, contentType?: string): Blob;