@haluo/util 2.0.7 → 2.0.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.
Files changed (40) hide show
  1. package/dist/index.js +34 -20
  2. package/dist/modules/cookie/index.js +4 -3
  3. package/dist/modules/date/index.js +12 -12
  4. package/dist/modules/dom/index.js +2 -2
  5. package/dist/modules/filter/index.js +11 -20
  6. package/dist/modules/format/index.js +2 -1
  7. package/dist/modules/match/index.js +1 -1
  8. package/dist/modules/monitor/index.js +2 -2
  9. package/dist/modules/monitor/lib/jsError.js +5 -13
  10. package/dist/modules/monitor/lib/timing.js +1 -1
  11. package/dist/modules/monitor/lib/xhr.js +2 -4
  12. package/dist/modules/monitor/utils/tracker.js +2 -23
  13. package/dist/modules/number/index.js +5 -4
  14. package/dist/modules/sentry/index.js +9 -6
  15. package/dist/modules/tools/index.js +5 -5
  16. package/dist/tsconfig.tsbuildinfo +1 -2915
  17. package/dist/types/index.d.ts +24 -3
  18. package/dist/types/modules/cookie/index.d.ts +2 -0
  19. package/dist/types/modules/date/index.d.ts +52 -1
  20. package/dist/types/modules/dom/index.d.ts +28 -1
  21. package/dist/types/modules/filter/index.d.ts +4 -6
  22. package/dist/types/modules/format/index.d.ts +2 -0
  23. package/dist/types/modules/match/index.d.ts +12 -1
  24. package/dist/types/modules/monitor/utils/tracker.d.ts +0 -1
  25. package/dist/types/modules/number/index.d.ts +3 -1
  26. package/dist/types/modules/tools/index.d.ts +166 -1
  27. package/package.json +6 -2
  28. package/dist/index.cjs.js +0 -89
  29. package/dist/index.d.ts +0 -12
  30. package/dist/index.esm.js +0 -87
  31. package/dist/lib-list.d.ts +0 -2
  32. package/dist/modules/cookie/index.d.ts +0 -27
  33. package/dist/modules/date/index.d.ts +0 -1
  34. package/dist/modules/dom/index.d.ts +0 -1
  35. package/dist/modules/filter/index.d.ts +0 -26
  36. package/dist/modules/format/index.d.ts +0 -13
  37. package/dist/modules/match/index.d.ts +0 -1
  38. package/dist/modules/number/index.d.ts +0 -39
  39. package/dist/modules/sentry/index.d.ts +0 -15
  40. package/dist/modules/tools/index.d.ts +0 -1
@@ -1,39 +0,0 @@
1
- declare class NumberClass {
2
- /**
3
- * 个位数前面补0
4
- * @param {Number} num 需要格式化的数字
5
- * @return {String} '01'
6
- */
7
- formatNumber(num: number): string;
8
- /**
9
- * 将手机号中间部分替换为星号
10
- * @param {String} phone 手机号码
11
- * @return {String} 131****1111
12
- */
13
- formatPhone(phone: string): string;
14
- /**
15
- * 格式化数字 万
16
- * @param {Number} num
17
- * @return {String} 12.3万
18
- */
19
- convertToWan(num: number): string | number;
20
- /**
21
- * 格式化数字 k
22
- * @param {Number} num
23
- * @return {String} 1.2k
24
- */
25
- convertToThousand(num: number): string | number;
26
- /**
27
- * 随机数,指定范围
28
- * @param {Number} min 开始
29
- * @param {Number} max 结束
30
- * @return {Number|Object}
31
- */
32
- random(min: number, max: number): number | null;
33
- /**
34
- * 格式化金额
35
- * @param {Number} num
36
- * @return {String} 123,456
37
- */
38
- formatMoney(money: number | string, signal: string): string;
39
- }
@@ -1,15 +0,0 @@
1
- declare class Report {
2
- static instance: any;
3
- constructor(Vue: Object, options?: {});
4
- [key: string]: any;
5
- static getInstance(Vue: Object, Option: Object): any;
6
- install(): void;
7
- /**
8
- * 主动上报
9
- * @param {String} data
10
- * @param {String} type 'info','warning','error'
11
- * @param {Object} options
12
- */
13
- log(data?: any, type?: any, options?: any): void;
14
- }
15
- export default Report;
@@ -1 +0,0 @@
1
- export {};