util-helpers 4.18.0 → 4.18.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.
- package/README.md +3 -3
- package/dist/util-helpers.js +2 -2
- 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/index.js +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -6
- package/types/isPromiseLike.d.ts +1 -0
- package/types/normalizeString.d.ts +1 -0
- package/types/waitTime.d.ts +1 -0
package/README.md
CHANGED
|
@@ -56,7 +56,6 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
|
|
|
56
56
|
- [formatMoney](https://doly-dev.github.io/util-helpers/module-Processor.html#.formatMoney) - 格式化金额
|
|
57
57
|
- [formatMobile](https://doly-dev.github.io/util-helpers/module-Processor.html#.formatMobile) - 格式化手机号码
|
|
58
58
|
- [formatBankCard](https://doly-dev.github.io/util-helpers/module-Processor.html#.formatBankCard) - 格式化银行卡
|
|
59
|
-
- [normalizeString](https://doly-dev.github.io/util-helpers/module-Processor.html#.normalizeString) - 规整化字符串,如果值为 `undefined` `null` 转为 '',如果不是字符串类型则转为字符串
|
|
60
59
|
- [numberToChinese](https://doly-dev.github.io/util-helpers/module-Processor.html#.numberToChinese) - 数字转中文数字
|
|
61
60
|
- [padZero](https://doly-dev.github.io/util-helpers/module-Processor.html#.padZero) - 前置补零
|
|
62
61
|
- [parseIdCard](https://doly-dev.github.io/util-helpers/module-Processor.html#.parseIdCard) - 解析身份证号码
|
|
@@ -87,7 +86,6 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
|
|
|
87
86
|
- [isSwiftCode](https://doly-dev.github.io/util-helpers/module-Validator.html#.isSwiftCode) - Swift Code
|
|
88
87
|
- [isPassword](https://doly-dev.github.io/util-helpers/module-Validator.html#.isPassword) 密码强度
|
|
89
88
|
- [isPassport](https://doly-dev.github.io/util-helpers/module-Validator.html#.isPassport) - 护照号
|
|
90
|
-
- [isPromiseLike](https://doly-dev.github.io/util-helpers/module-Validator.html#.isPromiseLike) - 类似 Promise 对象
|
|
91
89
|
- [isChinese](https://doly-dev.github.io/util-helpers/module-Validator.html#.isChinese) - 中文
|
|
92
90
|
- [isIPv4](https://doly-dev.github.io/util-helpers/module-Validator.html#.isIPv4) - IPv4
|
|
93
91
|
- [isIPv6](https://doly-dev.github.io/util-helpers/module-Validator.html#.isIPv6) - IPv6
|
|
@@ -101,14 +99,15 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
|
|
|
101
99
|
- [download](https://doly-dev.github.io/util-helpers/module-Other.html#.download) - 下载
|
|
102
100
|
- [randomString](https://doly-dev.github.io/util-helpers/module-Other.html#.randomString) - 随机字符串
|
|
103
101
|
- [strlen](https://doly-dev.github.io/util-helpers/module-Other.html#.strlen) - 字符长度
|
|
104
|
-
- [waitTime](https://doly-dev.github.io/util-helpers/module-Other.html#.waitTime) - 等待时间返回 Promise
|
|
105
102
|
|
|
106
103
|
## 精选第三方工具库
|
|
107
104
|
|
|
105
|
+
- [ut2] - 一个现代 JavaScript 实用工具库
|
|
108
106
|
- [lodash] - 封装了诸多对字符串、数组、对象等常见数据类型的处理函数
|
|
109
107
|
- [query-string] - URL 解析、序列化
|
|
110
108
|
- [qs] - URL 查询字符串解析和序列化库
|
|
111
109
|
- [js-cookie] - 一个简单,轻量级的 JavaScript API,用于处理 cookie
|
|
110
|
+
- [cache2] - 一个简单的 JavaScript 缓存管理,支持浏览器端和 node.js
|
|
112
111
|
- [store2] - 丰富了 localStorage 和 sessionStorage 功能(JSON,命名空间,扩展等)
|
|
113
112
|
- [dayjs] - 一个轻量的处理时间和日期的 JavaScript 库,和 Moment.js 的 API 设计保持完全一样
|
|
114
113
|
- [date-fns] - 提供了最全面、简单且一致的工具集,用于在浏览器和 Node.js 中操作 JavaScript 日期
|
|
@@ -122,6 +121,7 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
|
|
|
122
121
|
- [JSZip] - 创建、读取和编辑 zip 文件
|
|
123
122
|
- [ua-parser-js] - 用于从用户代理数据中检测浏览器、引擎、操作系统、CPU 和设备类型/型号
|
|
124
123
|
|
|
124
|
+
[ut2]: https://www.npmjs.com/package/ut2
|
|
125
125
|
[lodash]: https://www.npmjs.com/package/lodash
|
|
126
126
|
[query-string]: https://www.npmjs.com/package/query-string
|
|
127
127
|
[qs]: https://www.npmjs.com/package/qs
|
package/dist/util-helpers.js
CHANGED
|
@@ -1700,9 +1700,9 @@
|
|
|
1700
1700
|
return internalFindTreeSelect(tree, predicate, childrenField);
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
-
var VERSION = "4.18.
|
|
1703
|
+
var VERSION = "4.18.1";
|
|
1704
1704
|
|
|
1705
|
-
var version = "4.18.
|
|
1705
|
+
var version = "4.18.1";
|
|
1706
1706
|
|
|
1707
1707
|
exports.VERSION = VERSION;
|
|
1708
1708
|
exports.ajax = ajax;
|