util-helpers 5.1.2 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/util-helpers.js +681 -72
- package/dist/util-helpers.js.map +1 -1
- package/dist/util-helpers.min.js +1 -1
- package/dist/util-helpers.min.js.map +1 -1
- package/esm/VERSION.js +1 -1
- package/esm/getFileType.js +2 -2
- package/esm/getMimeType.js +43 -0
- package/esm/index.js +1 -0
- package/lib/VERSION.js +1 -1
- package/lib/getFileType.js +2 -2
- package/lib/getMimeType.js +45 -0
- package/lib/index.js +2 -0
- package/package.json +18 -18
- package/types/AsyncMemo.d.ts +2 -2
- package/types/BlobUrl.d.ts +41 -0
- package/types/ajax.d.ts +2 -2
- package/types/bytesToSize.d.ts +2 -2
- package/types/calculateCursorPosition.d.ts +4 -4
- package/types/checkFileType.d.ts +2 -2
- package/types/compressImage.d.ts +7 -6
- package/types/dataURLToBlob.d.ts +1 -1
- package/types/download.d.ts +5 -3
- package/types/fileReader.d.ts +2 -2
- package/types/filterTree.d.ts +2 -2
- package/types/findTreeNode.d.ts +1 -1
- package/types/findTreeNodes.d.ts +1 -1
- package/types/findTreeSelect.d.ts +1 -1
- package/types/formatBankCard.d.ts +2 -2
- package/types/formatMobile.d.ts +1 -1
- package/types/formatMoney.d.ts +4 -4
- package/types/gcd.d.ts +1 -1
- package/types/getFileType.d.ts +1 -1
- package/types/getMimeType.d.ts +25 -0
- package/types/index.d.ts +3 -2
- package/types/isBankCard.d.ts +3 -3
- package/types/isBusinessLicense.d.ts +2 -2
- package/types/isChinese.d.ts +5 -5
- package/types/isHMCard.d.ts +1 -1
- package/types/isIdCard.d.ts +4 -4
- package/types/isPassport.d.ts +1 -1
- package/types/isPassword.d.ts +4 -4
- package/types/isSocialCreditCode.d.ts +1 -1
- package/types/isSwiftCode.d.ts +1 -1
- package/types/isTWCard.d.ts +2 -2
- package/types/isUrl.d.ts +1 -1
- package/types/isValidNumber.d.ts +1 -1
- package/types/isVehicle.d.ts +1 -1
- package/types/lcm.d.ts +1 -1
- package/types/listToTree.d.ts +5 -5
- package/types/loadScript.d.ts +3 -3
- package/types/numberToChinese.d.ts +8 -8
- package/types/padZero.d.ts +1 -1
- package/types/parseIdCard.d.ts +1 -1
- package/types/randomString.d.ts +2 -2
- package/types/replaceChar.d.ts +3 -3
- package/types/round.d.ts +1 -1
- package/types/safeDate.d.ts +1 -1
- package/types/setDataURLPrefix.d.ts +4 -4
- package/types/transformFieldNames.d.ts +1 -1
- package/types/transformObjectValue.d.ts +1 -1
- package/types/validatePassword.d.ts +4 -4
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 文件
|