util-helpers 4.12.7 → 4.12.9
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 -1
- package/dist/util-helpers.js +2 -1
- 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/utils/config.js +2 -1
- package/lib/utils/config.js +2 -1
- package/package.json +4 -3
- package/types/bytesToSize.d.ts +4 -10
- package/types/dataURLToBlob.d.ts +1 -1
- package/types/divide.d.ts +9 -8
- package/types/formatBankCard.d.ts +4 -8
- package/types/formatMobile.d.ts +9 -7
- package/types/formatMoney.d.ts +8 -14
- package/types/index.d.ts +1 -1
- package/types/isBankCard.d.ts +5 -10
- package/types/isBusinessLicense.d.ts +6 -9
- package/types/isChinese.d.ts +9 -16
- package/types/isEmail.d.ts +2 -5
- package/types/isHMCard.d.ts +8 -8
- package/types/isIPv4.d.ts +4 -11
- package/types/isIPv6.d.ts +11 -29
- package/types/isIdCard.d.ts +8 -11
- package/types/isMobile.d.ts +2 -5
- package/types/isPassport.d.ts +2 -5
- package/types/isPassword.d.ts +10 -17
- package/types/isPostcode.d.ts +2 -5
- package/types/isPromiseLike.d.ts +3 -7
- package/types/isQQ.d.ts +2 -5
- package/types/isSocialCreditCode.d.ts +6 -11
- package/types/isSwiftCode.d.ts +5 -5
- package/types/isTWCard.d.ts +7 -4
- package/types/isTelephone.d.ts +6 -9
- package/types/isUrl.d.ts +7 -19
- package/types/isVehicle.d.ts +8 -13
- package/types/isWX.d.ts +2 -5
- package/types/minus.d.ts +4 -8
- package/types/normalizeString.d.ts +2 -0
- package/types/numberToChinese.d.ts +10 -18
- package/types/padZero.d.ts +9 -8
- package/types/parseIdCard.d.ts +3 -3
- package/types/plus.d.ts +4 -8
- package/types/randomString.d.ts +2 -0
- package/types/replaceChar.d.ts +9 -17
- package/types/round.d.ts +3 -7
- package/types/safeDate.d.ts +2 -0
- package/types/setDataURLPrefix.d.ts +2 -0
- package/types/times.d.ts +4 -8
- package/types/utils/config.d.ts +2 -0
- package/types/utils/math.util.d.ts +4 -4
- package/types/waitTime.d.ts +3 -1
- package/types/src/blobToDataURL.d.ts +0 -25
- package/types/src/bytesToSize.d.ts +0 -18
- package/types/src/calculateCursorPosition.d.ts +0 -26
- package/types/src/dataURLToBlob.d.ts +0 -15
- package/types/src/divide.d.ts +0 -22
- package/types/src/formatBankCard.d.ts +0 -31
- package/types/src/formatMobile.d.ts +0 -29
- package/types/src/formatMoney.d.ts +0 -44
- package/types/src/index.d.ts +0 -45
- package/types/src/isBankCard.d.ts +0 -27
- package/types/src/isBusinessLicense.d.ts +0 -26
- package/types/src/isChinese.d.ts +0 -34
- package/types/src/isEmail.d.ts +0 -16
- package/types/src/isHMCard.d.ts +0 -24
- package/types/src/isIPv4.d.ts +0 -18
- package/types/src/isIPv6.d.ts +0 -32
- package/types/src/isIdCard.d.ts +0 -31
- package/types/src/isMobile.d.ts +0 -16
- package/types/src/isPassport.d.ts +0 -18
- package/types/src/isPassword.d.ts +0 -39
- package/types/src/isPostcode.d.ts +0 -16
- package/types/src/isPromiseLike.d.ts +0 -17
- package/types/src/isQQ.d.ts +0 -16
- package/types/src/isSocialCreditCode.d.ts +0 -26
- package/types/src/isSwiftCode.d.ts +0 -22
- package/types/src/isTWCard.d.ts +0 -26
- package/types/src/isTelephone.d.ts +0 -22
- package/types/src/isUrl.d.ts +0 -22
- package/types/src/isVehicle.d.ts +0 -24
- package/types/src/isWX.d.ts +0 -16
- package/types/src/minus.d.ts +0 -17
- package/types/src/normalizeString.d.ts +0 -24
- package/types/src/numberToChinese.d.ts +0 -49
- package/types/src/padZero.d.ts +0 -25
- package/types/src/parseIdCard.d.ts +0 -107
- package/types/src/plus.d.ts +0 -17
- package/types/src/randomString.d.ts +0 -21
- package/types/src/replaceChar.d.ts +0 -46
- package/types/src/round.d.ts +0 -18
- package/types/src/safeDate.d.ts +0 -24
- package/types/src/setDataURLPrefix.d.ts +0 -26
- package/types/src/strlen.d.ts +0 -20
- package/types/src/times.d.ts +0 -17
- package/types/src/utils/config.d.ts +0 -13
- package/types/src/utils/constants.d.ts +0 -2
- package/types/src/utils/convertToString.d.ts +0 -8
- package/types/src/utils/devWarn.d.ts +0 -7
- package/types/src/utils/math.util.d.ts +0 -63
- package/types/src/utils/type/index.d.ts +0 -19
- package/types/src/utils/type/isArguments.d.ts +0 -18
- package/types/src/utils/type/isArray.d.ts +0 -18
- package/types/src/utils/type/isBoolean.d.ts +0 -18
- package/types/src/utils/type/isDate.d.ts +0 -18
- package/types/src/utils/type/isError.d.ts +0 -18
- package/types/src/utils/type/isFunction.d.ts +0 -18
- package/types/src/utils/type/isMap.d.ts +0 -18
- package/types/src/utils/type/isNaN.d.ts +0 -18
- package/types/src/utils/type/isNil.d.ts +0 -11
- package/types/src/utils/type/isNull.d.ts +0 -18
- package/types/src/utils/type/isNumber.d.ts +0 -27
- package/types/src/utils/type/isObject.d.ts +0 -21
- package/types/src/utils/type/isRegExp.d.ts +0 -18
- package/types/src/utils/type/isSet.d.ts +0 -18
- package/types/src/utils/type/isString.d.ts +0 -18
- package/types/src/utils/type/isSymbol.d.ts +0 -18
- package/types/src/utils/type/isType.d.ts +0 -11
- package/types/src/utils/type/isUndefined.d.ts +0 -21
- package/types/src/utils/type/isWeakMap.d.ts +0 -18
- package/types/src/utils/type/isWeakSet.d.ts +0 -18
- package/types/src/validatePassword.d.ts +0 -134
- package/types/src/waitTime.d.ts +0 -22
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ yarn add util-helpers
|
|
|
24
24
|
|
|
25
25
|
如果你的项目使用的是原生方式开发,可以在浏览器中使用 `script` 标签直接引入文件,并使用全局变量 `utilHelpers` 。
|
|
26
26
|
|
|
27
|
-
`npm` 包的 `util-helpers/dist` 目录下提供了 `UMD` 包 `util-helpers.js` 以及 `util-helpers.min.js`。你也可以通过 [UNPKG](https://unpkg.com/util-helpers
|
|
27
|
+
`npm` 包的 `util-helpers/dist` 目录下提供了 `UMD` 包 `util-helpers.js` 以及 `util-helpers.min.js`。你也可以通过 [UNPKG](https://unpkg.com/browse/util-helpers/dist/) 下载到本地进行使用。或者直接使用 [UNPKG 线上版本](https://unpkg.com/util-helpers)<sup> _注意版本_ </sup>。
|
|
28
28
|
|
|
29
29
|
## 示例
|
|
30
30
|
|