util-helpers 5.1.3 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +1 -0
  2. package/dist/util-helpers.js +683 -74
  3. package/dist/util-helpers.js.map +1 -1
  4. package/dist/util-helpers.min.js +1 -1
  5. package/dist/util-helpers.min.js.map +1 -1
  6. package/esm/VERSION.js +1 -1
  7. package/esm/getFileType.js +3 -3
  8. package/esm/getMimeType.js +43 -0
  9. package/esm/index.js +1 -0
  10. package/esm/utils/file.util.js +1 -1
  11. package/lib/VERSION.js +1 -1
  12. package/lib/getFileType.js +3 -3
  13. package/lib/getMimeType.js +45 -0
  14. package/lib/index.js +2 -0
  15. package/lib/utils/file.util.js +1 -1
  16. package/package.json +18 -18
  17. package/types/AsyncMemo.d.ts +2 -2
  18. package/types/BlobUrl.d.ts +41 -0
  19. package/types/VERSION.d.ts +1 -2
  20. package/types/ajax.d.ts +21 -4
  21. package/types/calculateCursorPosition.d.ts +2 -2
  22. package/types/checkFileType.d.ts +2 -2
  23. package/types/compressImage.d.ts +1 -1
  24. package/types/dataURLToBlob.d.ts +1 -1
  25. package/types/download.d.ts +9 -22
  26. package/types/fileReader.d.ts +1 -1
  27. package/types/gcd.d.ts +1 -1
  28. package/types/getFileType.d.ts +12 -1
  29. package/types/getImageInfo.d.ts +13 -3
  30. package/types/getMimeType.d.ts +62 -0
  31. package/types/index.d.ts +3 -2
  32. package/types/isBankCard.d.ts +1 -1
  33. package/types/isBusinessLicense.d.ts +1 -1
  34. package/types/isChinese.d.ts +3 -3
  35. package/types/isHMCard.d.ts +1 -1
  36. package/types/isIdCard.d.ts +2 -2
  37. package/types/isPassport.d.ts +1 -1
  38. package/types/isPassword.d.ts +1 -1
  39. package/types/isSocialCreditCode.d.ts +1 -1
  40. package/types/isSwiftCode.d.ts +1 -1
  41. package/types/isTWCard.d.ts +1 -1
  42. package/types/isUrl.d.ts +1 -1
  43. package/types/isVehicle.d.ts +1 -1
  44. package/types/lcm.d.ts +1 -1
  45. package/types/loadImageWithBlob.d.ts +2 -1
  46. package/types/numberToChinese.d.ts +1 -1
  47. package/types/parseIdCard.d.ts +1 -1
  48. package/types/safeDate.d.ts +1 -1
  49. package/types/setDataURLPrefix.d.ts +2 -2
  50. package/types/utils/file.util.d.ts +0 -1
  51. package/types/validatePassword.d.ts +1 -1
package/README.md CHANGED
@@ -60,6 +60,7 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
60
60
  - [getFileBlob](https://doly-dev.github.io/util-helpers/module-Other.html#.getFileBlob) - 获取文件 Blob
61
61
  - [getFileType](https://doly-dev.github.io/util-helpers/module-Other.html#.getFileType) - 获取文件类型
62
62
  - [getImageInfo](https://doly-dev.github.io/util-helpers/module-Other.html#.getImageInfo) - 获取图片信息
63
+ - [getMimeType](https://doly-dev.github.io/util-helpers/module-Other.html#.getMimeType) - 获取 MIME 类型
63
64
  - [loadImage](https://doly-dev.github.io/util-helpers/module-Other.html#.loadImage) - 加载图片
64
65
  - [loadImageWithBlob](https://doly-dev.github.io/util-helpers/module-Other.html#.loadImageWithBlob) - 加载图片和 blob 对象
65
66
  - [loadScript](https://doly-dev.github.io/util-helpers/module-Other.html#.loadScript) - 加载 js 文件