util-helpers 4.22.2 → 4.23.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 (58) hide show
  1. package/README.md +3 -0
  2. package/dist/util-helpers.js +594 -560
  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/getImageInfo.js +34 -40
  8. package/esm/index.js +2 -1
  9. package/esm/loadImage.js +32 -34
  10. package/esm/loadImageWithBlob.js +23 -24
  11. package/esm/randomString.js +26 -12
  12. package/esm/transformObjectValue.js +25 -0
  13. package/esm/validatePassword.js +4 -13
  14. package/lib/VERSION.js +1 -1
  15. package/lib/getImageInfo.js +33 -39
  16. package/lib/index.js +3 -1
  17. package/lib/loadImage.js +31 -33
  18. package/lib/loadImageWithBlob.js +23 -24
  19. package/lib/randomString.js +25 -11
  20. package/lib/transformObjectValue.js +27 -0
  21. package/lib/validatePassword.js +4 -13
  22. package/package.json +11 -11
  23. package/types/AsyncMemo.d.ts +16 -2
  24. package/types/ajax.d.ts +2 -2
  25. package/types/blobToDataURL.d.ts +1 -1
  26. package/types/calculateCursorPosition.d.ts +2 -2
  27. package/types/compressImage.d.ts +1 -1
  28. package/types/dataURLToBlob.d.ts +1 -1
  29. package/types/download.d.ts +3 -3
  30. package/types/fileReader.d.ts +1 -1
  31. package/types/gcd.d.ts +1 -1
  32. package/types/getImageInfo.d.ts +11 -10
  33. package/types/index.d.ts +3 -2
  34. package/types/isBankCard.d.ts +1 -1
  35. package/types/isBusinessLicense.d.ts +1 -1
  36. package/types/isChinese.d.ts +3 -3
  37. package/types/isHMCard.d.ts +1 -1
  38. package/types/isIdCard.d.ts +2 -2
  39. package/types/isPassport.d.ts +1 -1
  40. package/types/isPassword.d.ts +1 -1
  41. package/types/isSocialCreditCode.d.ts +1 -1
  42. package/types/isSwiftCode.d.ts +1 -1
  43. package/types/isTWCard.d.ts +1 -1
  44. package/types/isUrl.d.ts +1 -1
  45. package/types/isVehicle.d.ts +1 -1
  46. package/types/lcm.d.ts +1 -1
  47. package/types/loadImage.d.ts +2 -0
  48. package/types/loadImageWithBlob.d.ts +6 -4
  49. package/types/normalizeString.d.ts +1 -1
  50. package/types/numberToChinese.d.ts +1 -1
  51. package/types/parseIdCard.d.ts +1 -1
  52. package/types/randomString.d.ts +7 -3
  53. package/types/safeDate.d.ts +1 -1
  54. package/types/setDataURLPrefix.d.ts +2 -2
  55. package/types/transformObjectValue.d.ts +67 -0
  56. package/types/validatePassword.d.ts +1 -1
  57. package/esm/utils/Cache.js +0 -47
  58. package/lib/utils/Cache.js +0 -49
package/README.md CHANGED
@@ -76,6 +76,7 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
76
76
  - [replaceChar](https://doly-dev.github.io/util-helpers/module-Processor.html#.replaceChar) - 替换字符,应用场景如:脱敏
77
77
  - [safeDate](https://doly-dev.github.io/util-helpers/module-Processor.html#.safeDate) - 创建一个 Date 实例,同 new Date
78
78
  - [setDataURLPrefix](https://doly-dev.github.io/util-helpers/module-Processor.html#.setDataURLPrefix) - 设置 DataURL 前缀、MIME 类型、base64 标识
79
+ - [transformObjectValue](https://doly-dev.github.io/util-helpers/module-Processor.html#.transformObjectValue) - 创建一个转换值的新对象或数组
79
80
  - 树结构数据操作
80
81
  - [filterTree](https://doly-dev.github.io/util-helpers/module-Processor.html#.filterTree) - 过滤树节点
81
82
  - [findTreeNode](https://doly-dev.github.io/util-helpers/module-Other.html#.findTreeNode) - 查找树结构数据节点
@@ -107,6 +108,8 @@ formatBankCard('6228480402564890018', { spaceMark: '-' }); // 6228-4804-0256-489
107
108
  - [isVehicle](https://doly-dev.github.io/util-helpers/module-Validator.html#.isVehicle) - 车牌号
108
109
  - [isWX](https://doly-dev.github.io/util-helpers/module-Validator.html#.isWX) - 微信号
109
110
  - [validatePassword](https://doly-dev.github.io/util-helpers/module-Validator.html#.validatePassword) - 验证密码
111
+ - Classes
112
+ - [AsyncMemo](https://doly-dev.github.io/util-helpers/AsyncMemo.html) - 异步缓存类
110
113
 
111
114
  ## 精选第三方工具库
112
115