@daysnap/utils 0.1.16 → 0.1.18

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 (94) hide show
  1. package/docs/classes/Storage.md +13 -13
  2. package/docs/interfaces/EventBusCallback.md +1 -1
  3. package/docs/interfaces/StorageManager.md +4 -4
  4. package/docs/interfaces/Trap.md +5 -5
  5. package/docs/modules.md +144 -340
  6. package/es/blobToBase64.d.ts +1 -1
  7. package/es/blobToBase64.js +1 -1
  8. package/es/{chunk-2ZSZ4GDI.js → chunk-65FBSULU.js} +1 -2
  9. package/es/{chunk-WXD7J2FR.js → chunk-DW5GIB4A.js} +1 -2
  10. package/es/chunk-HRKQWKOJ.js +21 -0
  11. package/es/chunk-S2FOFDX4.js +8 -0
  12. package/es/{chunk-D5O4LXN3.js → chunk-YLHA5VH3.js} +1 -1
  13. package/es/filterCRLF.d.ts +6 -0
  14. package/es/filterCRLF.js +6 -0
  15. package/es/filterEmptyValue.js +3 -3
  16. package/es/formartDateToZN.js +1 -1
  17. package/es/formatFileSize.js +1 -1
  18. package/es/getDateBoundsByMonths.d.ts +1 -1
  19. package/es/getMonthBounds.d.ts +1 -1
  20. package/es/index.d.ts +2 -8
  21. package/es/index.js +95 -121
  22. package/es/{isUrl.js → isURL.js} +1 -1
  23. package/es/stringifyQuery.js +2 -2
  24. package/lib/blobToBase64.cjs +2 -2
  25. package/lib/blobToBase64.d.cts +1 -1
  26. package/lib/{chunk-YIW4PW4Q.cjs → chunk-CDHFRZQM.cjs} +8 -2
  27. package/lib/chunk-CXDOHSIF.cjs +8 -0
  28. package/lib/{chunk-KT3FWGJG.cjs → chunk-DIJ3MI2T.cjs} +1 -2
  29. package/lib/{chunk-EDVQTNLJ.cjs → chunk-LJD6E7O5.cjs} +1 -2
  30. package/lib/{chunk-I6VB2D7C.cjs → chunk-YMGGMXZL.cjs} +1 -1
  31. package/lib/filterCRLF.cjs +6 -0
  32. package/lib/filterCRLF.d.cts +6 -0
  33. package/lib/filterEmptyValue.cjs +4 -4
  34. package/lib/formartDateToZN.cjs +2 -2
  35. package/lib/formatFileSize.cjs +2 -2
  36. package/lib/getDateBoundsByMonths.d.cts +1 -1
  37. package/lib/getMonthBounds.d.cts +1 -1
  38. package/lib/index.cjs +71 -97
  39. package/lib/index.d.cts +2 -8
  40. package/lib/isURL.cjs +6 -0
  41. package/lib/stringifyQuery.cjs +3 -3
  42. package/package.json +1 -1
  43. package/docs/classes/Poller.md +0 -151
  44. package/docs/interfaces/PollerOptions.md +0 -19
  45. package/es/chunk-AAKGIVZB.js +0 -21
  46. package/es/chunk-BZ6JSRMY.js +0 -8
  47. package/es/chunk-GLJALZRT.js +0 -43
  48. package/es/chunk-KH7MPMQF.js +0 -15
  49. package/es/chunk-MOZPLBC3.js +0 -8
  50. package/es/chunk-OOWZEABP.js +0 -8
  51. package/es/chunk-PXMH56CM.js +0 -8
  52. package/es/chunk-UDRRKKBB.js +0 -12
  53. package/es/crToBr.d.ts +0 -6
  54. package/es/crToBr.js +0 -6
  55. package/es/crlfToBr.d.ts +0 -11
  56. package/es/crlfToBr.js +0 -8
  57. package/es/getDaysOfMonth.d.ts +0 -6
  58. package/es/getDaysOfMonth.js +0 -6
  59. package/es/getWeekBounds.d.ts +0 -7
  60. package/es/getWeekBounds.js +0 -9
  61. package/es/isLeapYear.d.ts +0 -7
  62. package/es/isLeapYear.js +0 -6
  63. package/es/lfToBr.d.ts +0 -6
  64. package/es/lfToBr.js +0 -6
  65. package/es/poller.d.ts +0 -20
  66. package/es/poller.js +0 -7
  67. package/lib/chunk-4WWOJSX3.cjs +0 -21
  68. package/lib/chunk-EUH2FDMT.cjs +0 -8
  69. package/lib/chunk-TDUDOSU4.cjs +0 -43
  70. package/lib/chunk-TMCJ3HTA.cjs +0 -12
  71. package/lib/chunk-UTUKZLEN.cjs +0 -8
  72. package/lib/chunk-XSCXPGEI.cjs +0 -8
  73. package/lib/chunk-ZSDKKWIQ.cjs +0 -8
  74. package/lib/crToBr.cjs +0 -6
  75. package/lib/crToBr.d.cts +0 -6
  76. package/lib/crlfToBr.cjs +0 -8
  77. package/lib/crlfToBr.d.cts +0 -11
  78. package/lib/getDaysOfMonth.cjs +0 -6
  79. package/lib/getDaysOfMonth.d.cts +0 -6
  80. package/lib/getWeekBounds.cjs +0 -9
  81. package/lib/getWeekBounds.d.cts +0 -7
  82. package/lib/isLeapYear.cjs +0 -6
  83. package/lib/isLeapYear.d.cts +0 -7
  84. package/lib/isUrl.cjs +0 -6
  85. package/lib/lfToBr.cjs +0 -6
  86. package/lib/lfToBr.d.cts +0 -6
  87. package/lib/poller.cjs +0 -7
  88. package/lib/poller.d.cts +0 -20
  89. package/es/{chunk-SMNIKKYG.js → chunk-NXEL6RMI.js} +6 -6
  90. package/es/{chunk-WXXFRKUS.js → chunk-VDXSQKQF.js} +3 -3
  91. package/es/{isUrl.d.ts → isURL.d.ts} +0 -0
  92. package/lib/{chunk-4USHGA4P.cjs → chunk-73AXP7FD.cjs} +2 -2
  93. package/lib/{chunk-4P4EJVBW.cjs → chunk-PYFTXKFI.cjs} +4 -4
  94. /package/lib/{isUrl.d.cts → isURL.d.cts} +0 -0
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * blob 转 base64
3
3
  */
4
- declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer>;
4
+ declare function blobToBase64(blob: Blob, contentType?: string): Promise<string | ArrayBuffer>;
5
5
 
6
6
  export { blobToBase64 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  blobToBase64
3
- } from "./chunk-KH7MPMQF.js";
3
+ } from "./chunk-HRKQWKOJ.js";
4
4
  export {
5
5
  blobToBase64
6
6
  };
@@ -1,7 +1,6 @@
1
1
  // src/formatFileSize.ts
2
2
  function formatFileSize(bytes, decimals = 2) {
3
- if (bytes === 0)
4
- return "0 Bytes";
3
+ if (bytes === 0) return "0 Bytes";
5
4
  const k = 1024;
6
5
  const dm = decimals < 0 ? 0 : decimals;
7
6
  const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
@@ -25,8 +25,7 @@ function formatDateToZN(v) {
25
25
  return `${hours}\u5C0F\u65F6\u524D`;
26
26
  } else if (seconds >= 60) {
27
27
  return `${minutes}\u5206\u949F\u524D`;
28
- } else
29
- return "\u521A\u521A";
28
+ } else return "\u521A\u521A";
30
29
  }
31
30
 
32
31
  export {
@@ -0,0 +1,21 @@
1
+ // src/blobToBase64.ts
2
+ function blobToBase64(blob, contentType) {
3
+ return new Promise((resolve, reject) => {
4
+ const fileReader = new FileReader();
5
+ fileReader.onload = (res) => {
6
+ const result = res.target?.result;
7
+ if (result && typeof result === "string" && contentType) {
8
+ const [, data] = result.split(",");
9
+ resolve(`data:${contentType};base64,${data}`);
10
+ } else {
11
+ resolve(result ?? "");
12
+ }
13
+ };
14
+ fileReader.onerror = reject;
15
+ fileReader.readAsDataURL(blob);
16
+ });
17
+ }
18
+
19
+ export {
20
+ blobToBase64
21
+ };
@@ -0,0 +1,8 @@
1
+ // src/filterCRLF.ts
2
+ function filterCRLF(v) {
3
+ return v.replace(/\r|\n/gi, "<br/>");
4
+ }
5
+
6
+ export {
7
+ filterCRLF
8
+ };
@@ -1,4 +1,4 @@
1
- // src/isUrl.ts
1
+ // src/isURL.ts
2
2
  function isUrl(val) {
3
3
  return /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(val);
4
4
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 替换字符串里面的回车换行符
3
+ */
4
+ declare function filterCRLF(v: string): string;
5
+
6
+ export { filterCRLF };
@@ -0,0 +1,6 @@
1
+ import {
2
+ filterCRLF
3
+ } from "./chunk-S2FOFDX4.js";
4
+ export {
5
+ filterCRLF
6
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  filterEmptyValue
3
- } from "./chunk-SMNIKKYG.js";
4
- import "./chunk-YGV2UKBN.js";
5
- import "./chunk-ELR2DZ56.js";
3
+ } from "./chunk-NXEL6RMI.js";
6
4
  import "./chunk-GVYBTJDA.js";
7
5
  import "./chunk-WCZPEH7E.js";
6
+ import "./chunk-YGV2UKBN.js";
7
+ import "./chunk-ELR2DZ56.js";
8
8
  import "./chunk-3KRJNCKB.js";
9
9
  import "./chunk-KOOGLWJ5.js";
10
10
  import "./chunk-CSZ7G34M.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formatDateToZN
3
- } from "./chunk-WXD7J2FR.js";
3
+ } from "./chunk-DW5GIB4A.js";
4
4
  import "./chunk-UMJU7UF2.js";
5
5
  import "./chunk-A3YS6665.js";
6
6
  import "./chunk-F4QMON2N.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formatFileSize
3
- } from "./chunk-2ZSZ4GDI.js";
3
+ } from "./chunk-65FBSULU.js";
4
4
  export {
5
5
  formatFileSize
6
6
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 获取月份开始时间、结束时间
2
+ * 说明
3
3
  */
4
4
  declare function getDateBoundsByMonths(monthsCount: number, date: string | number | Date): [Date, Date];
5
5
  declare function getDateBoundsByMonths(monthsCount: number, date: string | number | Date, fmt: string): [string, string];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 获取月份的开始时间和结束时间
2
+ * 获取当前月份的开始时间和结束时间
3
3
  */
4
4
  declare function getMonthBounds(value: string | number | Date): [Date, Date];
5
5
  declare function getMonthBounds(value: string | number | Date, fmt: string): [string, string];
package/es/index.d.ts CHANGED
@@ -11,12 +11,10 @@ export { clone } from './clone.js';
11
11
  export { cloneSimple } from './cloneSimple.js';
12
12
  export { compareVersion } from './compareVersion.js';
13
13
  export { compressImage } from './compressImage.js';
14
- export { crToBr } from './crToBr.js';
15
14
  export { createFactory } from './createFactory.js';
16
15
  export { colorGenByHash } from './createHexColorByHash.js';
17
16
  export { createLinearFunction } from './createLinearFunction.js';
18
17
  export { createWithLoading } from './createWithLoading.js';
19
- export { crlfToBr, filterCRLF } from './crlfToBr.js';
20
18
  export { debounce } from './debounce.js';
21
19
  export { atob, btoa } from './decode.js';
22
20
  export { downloadFile } from './downloadFile.js';
@@ -24,6 +22,7 @@ export { each } from './each.js';
24
22
  export { EventBusCallback, eventBus } from './eventBus.js';
25
23
  export { exitFullscreen } from './exitFullscreen.js';
26
24
  export { filterBankCardNo } from './filterBankCardNo.js';
25
+ export { filterCRLF } from './filterCRLF.js';
27
26
  export { filterEmoji } from './filterEmoji.js';
28
27
  export { filterEmptyValue } from './filterEmptyValue.js';
29
28
  export { filterIdCard } from './filterIdCard.js';
@@ -40,7 +39,6 @@ export { formatPathParams } from './formatPathParams.js';
40
39
  export { getBlobByUrl } from './getBlobByUrl.js';
41
40
  export { getDateBoundsByMonths } from './getDateBoundsByMonths.js';
42
41
  export { getDayMillisecond } from './getDayMillisecond.js';
43
- export { getDaysOfMonth } from './getDaysOfMonth.js';
44
42
  export { getImageInfo } from './getImageInfo.js';
45
43
  export { getMonthBounds } from './getMonthBounds.js';
46
44
  export { getRandom } from './getRandom.js';
@@ -49,7 +47,6 @@ export { getRandomNumber } from './getRandomNumber.js';
49
47
  export { getRangeDate } from './getRangeDate.js';
50
48
  export { getScrollTop } from './getScrollTop.js';
51
49
  export { getVideoInfo } from './getVideoInfo.js';
52
- export { getWeekBounds } from './getWeekBounds.js';
53
50
  export { getWeekday } from './getWeekday.js';
54
51
  export { inBrowser } from './inBrowser.js';
55
52
  export { insertLink } from './insertLink.js';
@@ -72,7 +69,6 @@ export { isIOS } from './isIOS.js';
72
69
  export { isIdCard } from './isIdCard.js';
73
70
  export { isJSONString } from './isJSONString.js';
74
71
  export { isLan } from './isLan.js';
75
- export { isLeapYear } from './isLeapYear.js';
76
72
  export { isLicenseCode } from './isLicenseCode.js';
77
73
  export { isMobile } from './isMobile.js';
78
74
  export { isNativeFunction } from './isNativeFunction.js';
@@ -84,14 +80,13 @@ export { isPromise } from './isPromise.js';
84
80
  export { isRegExp } from './isRegExp.js';
85
81
  export { isString } from './isString.js';
86
82
  export { isType } from './isType.js';
83
+ export { isUrl } from './isURL.js';
87
84
  export { isUndefined } from './isUndefined.js';
88
- export { isUrl } from './isUrl.js';
89
85
  export { isValidDate } from './isValidDate.js';
90
86
  export { isWeChat, isWeixin } from './isWeChat.js';
91
87
  export { isWeChatMiniProgram } from './isWeChatMiniProgram.js';
92
88
  export { isWindow } from './isWindow.js';
93
89
  export { kebabCase } from './kebabCase.js';
94
- export { lfToBr } from './lfToBr.js';
95
90
  export { listGenerator } from './listGenerator.js';
96
91
  export { makePhoneCall } from './makePhoneCall.js';
97
92
  export { mousewheel } from './mousewheel.js';
@@ -108,7 +103,6 @@ export { parseQuery } from './parseQuery.js';
108
103
  export { parseQueryString } from './parseQueryString.js';
109
104
  export { pascalCase } from './pascalCase.js';
110
105
  export { pick } from './pick.js';
111
- export { Poller, PollerOptions, PollerTask } from './poller.js';
112
106
  export { replaceCrlf } from './replaceCrlf.js';
113
107
  export { requestFullScreen } from './requestFullScreen.js';
114
108
  export { reserve } from './reserve.js';
package/es/index.js CHANGED
@@ -1,3 +1,10 @@
1
+ import {
2
+ toDBC
3
+ } from "./chunk-ONTP5SDE.js";
4
+ import {
5
+ createTrapInstance,
6
+ trap
7
+ } from "./chunk-LOPD7SSH.js";
1
8
  import {
2
9
  typeOf
3
10
  } from "./chunk-MTF3ACKC.js";
@@ -17,6 +24,12 @@ import {
17
24
  import {
18
25
  Storage
19
26
  } from "./chunk-56QUZDMU.js";
27
+ import {
28
+ setScrollTop
29
+ } from "./chunk-BULTIEJG.js";
30
+ import {
31
+ sleep
32
+ } from "./chunk-TNIIDDN4.js";
20
33
  import {
21
34
  splitArray
22
35
  } from "./chunk-BNF4U7EJ.js";
@@ -25,7 +38,7 @@ import {
25
38
  } from "./chunk-IF7JMIDO.js";
26
39
  import {
27
40
  stringifyQuery
28
- } from "./chunk-WXXFRKUS.js";
41
+ } from "./chunk-VDXSQKQF.js";
29
42
  import {
30
43
  stringifyQueryString
31
44
  } from "./chunk-TSFGLHCP.js";
@@ -38,12 +51,11 @@ import {
38
51
  toCDB
39
52
  } from "./chunk-J2Y5ZZA3.js";
40
53
  import {
41
- toDBC
42
- } from "./chunk-ONTP5SDE.js";
54
+ pascalCase
55
+ } from "./chunk-S7PUCGCQ.js";
43
56
  import {
44
- createTrapInstance,
45
- trap
46
- } from "./chunk-LOPD7SSH.js";
57
+ pick
58
+ } from "./chunk-IPAT3N4P.js";
47
59
  import {
48
60
  replaceCrlf
49
61
  } from "./chunk-GNGSV7F7.js";
@@ -63,8 +75,14 @@ import {
63
75
  scrollToTop
64
76
  } from "./chunk-P7QW362C.js";
65
77
  import {
66
- setScrollTop
67
- } from "./chunk-BULTIEJG.js";
78
+ omit
79
+ } from "./chunk-6GTFQZL4.js";
80
+ import {
81
+ padding
82
+ } from "./chunk-CCZL3GEW.js";
83
+ import {
84
+ parseDate
85
+ } from "./chunk-DWT2WM6H.js";
68
86
  import {
69
87
  parseError
70
88
  } from "./chunk-EJMUWNXI.js";
@@ -78,17 +96,11 @@ import {
78
96
  parseQueryString
79
97
  } from "./chunk-SZ7IZE42.js";
80
98
  import {
81
- pascalCase
82
- } from "./chunk-S7PUCGCQ.js";
83
- import {
84
- pick
85
- } from "./chunk-IPAT3N4P.js";
86
- import {
87
- Poller
88
- } from "./chunk-GLJALZRT.js";
99
+ isWindow
100
+ } from "./chunk-QYCMY2T4.js";
89
101
  import {
90
- sleep
91
- } from "./chunk-TNIIDDN4.js";
102
+ kebabCase
103
+ } from "./chunk-IPIA4Z65.js";
92
104
  import {
93
105
  makePhoneCall
94
106
  } from "./chunk-GYOXULKV.js";
@@ -102,17 +114,14 @@ import {
102
114
  normalizePath
103
115
  } from "./chunk-CMP4T3ZH.js";
104
116
  import {
105
- omit
106
- } from "./chunk-6GTFQZL4.js";
107
- import {
108
- padding
109
- } from "./chunk-CCZL3GEW.js";
117
+ isRegExp
118
+ } from "./chunk-Y4V5R7XA.js";
110
119
  import {
111
- parseDate
112
- } from "./chunk-DWT2WM6H.js";
120
+ isType
121
+ } from "./chunk-5EVWQVDV.js";
113
122
  import {
114
123
  isUrl
115
- } from "./chunk-D5O4LXN3.js";
124
+ } from "./chunk-YLHA5VH3.js";
116
125
  import {
117
126
  isValidDate
118
127
  } from "./chunk-S6ZV2M6N.js";
@@ -124,14 +133,14 @@ import {
124
133
  isWeChatMiniProgram
125
134
  } from "./chunk-SQ3L6IQW.js";
126
135
  import {
127
- isWindow
128
- } from "./chunk-QYCMY2T4.js";
136
+ isLicenseCode
137
+ } from "./chunk-576ZRCUO.js";
129
138
  import {
130
- kebabCase
131
- } from "./chunk-IPIA4Z65.js";
139
+ isMobile
140
+ } from "./chunk-L52JSZDZ.js";
132
141
  import {
133
- lfToBr
134
- } from "./chunk-PXMH56CM.js";
142
+ isNativeFunction
143
+ } from "./chunk-4N33UIAB.js";
135
144
  import {
136
145
  isNumber
137
146
  } from "./chunk-NCFA5IXM.js";
@@ -141,36 +150,6 @@ import {
141
150
  import {
142
151
  isPromise
143
152
  } from "./chunk-LJ4CEJ5C.js";
144
- import {
145
- isRegExp
146
- } from "./chunk-Y4V5R7XA.js";
147
- import {
148
- isType
149
- } from "./chunk-5EVWQVDV.js";
150
- import {
151
- isIdCard
152
- } from "./chunk-UXSZFM5G.js";
153
- import {
154
- isJSONString
155
- } from "./chunk-IIIHPNUB.js";
156
- import {
157
- isLan
158
- } from "./chunk-VTSGSUL2.js";
159
- import {
160
- isLeapYear
161
- } from "./chunk-MOZPLBC3.js";
162
- import {
163
- isLicenseCode
164
- } from "./chunk-576ZRCUO.js";
165
- import {
166
- isMobile
167
- } from "./chunk-L52JSZDZ.js";
168
- import {
169
- isNativeFunction
170
- } from "./chunk-4N33UIAB.js";
171
- import {
172
- isEmail
173
- } from "./chunk-JMUWQLHE.js";
174
153
  import {
175
154
  isError
176
155
  } from "./chunk-6UGTRW2S.js";
@@ -181,14 +160,14 @@ import {
181
160
  isIOS
182
161
  } from "./chunk-5BVFSCCX.js";
183
162
  import {
184
- insertScript
185
- } from "./chunk-SCEONZUJ.js";
163
+ isIdCard
164
+ } from "./chunk-UXSZFM5G.js";
186
165
  import {
187
- insertStyle
188
- } from "./chunk-FY3PSILS.js";
166
+ isJSONString
167
+ } from "./chunk-IIIHPNUB.js";
189
168
  import {
190
- isAmount
191
- } from "./chunk-YKTD7CLE.js";
169
+ isLan
170
+ } from "./chunk-VTSGSUL2.js";
192
171
  import {
193
172
  isAndroid
194
173
  } from "./chunk-SWLGSN5X.js";
@@ -202,17 +181,11 @@ import {
202
181
  isDate
203
182
  } from "./chunk-A4YRDVZ4.js";
204
183
  import {
205
- getRangeDate
206
- } from "./chunk-JZKIIY3L.js";
207
- import {
208
- getScrollTop
209
- } from "./chunk-EFDRCKKS.js";
184
+ isEmail
185
+ } from "./chunk-JMUWQLHE.js";
210
186
  import {
211
187
  getVideoInfo
212
188
  } from "./chunk-3ZZPPKM3.js";
213
- import {
214
- getWeekBounds
215
- } from "./chunk-AAKGIVZB.js";
216
189
  import {
217
190
  getWeekday
218
191
  } from "./chunk-PSACVUUL.js";
@@ -223,14 +196,17 @@ import {
223
196
  insertLink
224
197
  } from "./chunk-FIHEVMN6.js";
225
198
  import {
226
- getDateBoundsByMonths
227
- } from "./chunk-HNKJXGCC.js";
199
+ insertScript
200
+ } from "./chunk-SCEONZUJ.js";
201
+ import {
202
+ insertStyle
203
+ } from "./chunk-FY3PSILS.js";
204
+ import {
205
+ isAmount
206
+ } from "./chunk-YKTD7CLE.js";
228
207
  import {
229
208
  getDayMillisecond
230
209
  } from "./chunk-ZGN3KUXE.js";
231
- import {
232
- getDaysOfMonth
233
- } from "./chunk-OOWZEABP.js";
234
210
  import {
235
211
  getImageInfo
236
212
  } from "./chunk-ANF3VZYM.js";
@@ -250,26 +226,20 @@ import {
250
226
  listGenerator
251
227
  } from "./chunk-2SUOLGG5.js";
252
228
  import {
253
- formatDateToZN
254
- } from "./chunk-WXD7J2FR.js";
229
+ getRangeDate
230
+ } from "./chunk-JZKIIY3L.js";
231
+ import {
232
+ getScrollTop
233
+ } from "./chunk-EFDRCKKS.js";
255
234
  import {
256
235
  formatAmount
257
236
  } from "./chunk-KDND6GRD.js";
258
- import {
259
- formatDate
260
- } from "./chunk-UMJU7UF2.js";
261
- import {
262
- normalizeDate
263
- } from "./chunk-A3YS6665.js";
264
- import {
265
- isString
266
- } from "./chunk-F4QMON2N.js";
267
237
  import {
268
238
  formatDateStr
269
239
  } from "./chunk-3MBFDHEW.js";
270
240
  import {
271
241
  formatFileSize
272
- } from "./chunk-2ZSZ4GDI.js";
242
+ } from "./chunk-65FBSULU.js";
273
243
  import {
274
244
  formatMessage
275
245
  } from "./chunk-YBAHLKXR.js";
@@ -283,29 +253,29 @@ import {
283
253
  getBlobByUrl
284
254
  } from "./chunk-4QMOXXPL.js";
285
255
  import {
286
- exitFullscreen
287
- } from "./chunk-GV4IJGB2.js";
256
+ getDateBoundsByMonths
257
+ } from "./chunk-HNKJXGCC.js";
288
258
  import {
289
- filterBankCardNo
290
- } from "./chunk-JKCLDPOC.js";
259
+ filterCRLF
260
+ } from "./chunk-S2FOFDX4.js";
291
261
  import {
292
262
  filterEmoji
293
263
  } from "./chunk-CNCI66H4.js";
294
264
  import {
295
265
  filterEmptyValue
296
- } from "./chunk-SMNIKKYG.js";
297
- import {
298
- isEmpty
299
- } from "./chunk-YGV2UKBN.js";
300
- import {
301
- isEmptyArray
302
- } from "./chunk-ELR2DZ56.js";
266
+ } from "./chunk-NXEL6RMI.js";
303
267
  import {
304
268
  isEmptyObject
305
269
  } from "./chunk-GVYBTJDA.js";
306
270
  import {
307
271
  isFunction
308
272
  } from "./chunk-WCZPEH7E.js";
273
+ import {
274
+ isEmpty
275
+ } from "./chunk-YGV2UKBN.js";
276
+ import {
277
+ isEmptyArray
278
+ } from "./chunk-ELR2DZ56.js";
309
279
  import {
310
280
  isUndefined
311
281
  } from "./chunk-3KRJNCKB.js";
@@ -325,15 +295,20 @@ import {
325
295
  filterString
326
296
  } from "./chunk-KJX7IWF5.js";
327
297
  import {
328
- createLinearFunction
329
- } from "./chunk-53VI5KBY.js";
298
+ formatDateToZN
299
+ } from "./chunk-DW5GIB4A.js";
300
+ import {
301
+ formatDate
302
+ } from "./chunk-UMJU7UF2.js";
303
+ import {
304
+ normalizeDate
305
+ } from "./chunk-A3YS6665.js";
306
+ import {
307
+ isString
308
+ } from "./chunk-F4QMON2N.js";
330
309
  import {
331
310
  createWithLoading
332
311
  } from "./chunk-OC64NXZ2.js";
333
- import {
334
- crlfToBr,
335
- filterCRLF
336
- } from "./chunk-UDRRKKBB.js";
337
312
  import {
338
313
  debounce
339
314
  } from "./chunk-FBJWICWM.js";
@@ -350,6 +325,12 @@ import {
350
325
  import {
351
326
  eventBus
352
327
  } from "./chunk-HYCW7PL5.js";
328
+ import {
329
+ exitFullscreen
330
+ } from "./chunk-GV4IJGB2.js";
331
+ import {
332
+ filterBankCardNo
333
+ } from "./chunk-JKCLDPOC.js";
353
334
  import {
354
335
  clamp
355
336
  } from "./chunk-W52BRMSD.js";
@@ -371,15 +352,15 @@ import {
371
352
  import {
372
353
  compressImage
373
354
  } from "./chunk-ZUMPS2U2.js";
374
- import {
375
- crToBr
376
- } from "./chunk-BZ6JSRMY.js";
377
355
  import {
378
356
  createFactory
379
357
  } from "./chunk-T22U5E3X.js";
380
358
  import {
381
359
  colorGenByHash
382
360
  } from "./chunk-ADGGLX7E.js";
361
+ import {
362
+ createLinearFunction
363
+ } from "./chunk-53VI5KBY.js";
383
364
  import {
384
365
  ato
385
366
  } from "./chunk-KEADPNJL.js";
@@ -388,7 +369,7 @@ import {
388
369
  } from "./chunk-DOXFJNJO.js";
389
370
  import {
390
371
  blobToBase64
391
- } from "./chunk-KH7MPMQF.js";
372
+ } from "./chunk-HRKQWKOJ.js";
392
373
  import {
393
374
  cached
394
375
  } from "./chunk-WEWAC6GL.js";
@@ -405,7 +386,6 @@ import {
405
386
  chooseMedia
406
387
  } from "./chunk-PFTWITSM.js";
407
388
  export {
408
- Poller,
409
389
  Storage,
410
390
  ato,
411
391
  atob,
@@ -423,12 +403,10 @@ export {
423
403
  colorGenByHash,
424
404
  compareVersion,
425
405
  compressImage,
426
- crToBr,
427
406
  createFactory,
428
407
  createLinearFunction,
429
408
  createTrapInstance,
430
409
  createWithLoading,
431
- crlfToBr,
432
410
  debounce,
433
411
  downloadFile,
434
412
  each,
@@ -454,7 +432,6 @@ export {
454
432
  getCache,
455
433
  getDateBoundsByMonths,
456
434
  getDayMillisecond,
457
- getDaysOfMonth,
458
435
  getImageInfo,
459
436
  getLocal,
460
437
  getMonthBounds,
@@ -464,7 +441,6 @@ export {
464
441
  getRangeDate,
465
442
  getScrollTop,
466
443
  getVideoInfo,
467
- getWeekBounds,
468
444
  getWeekday,
469
445
  inBrowser,
470
446
  insertLink,
@@ -487,7 +463,6 @@ export {
487
463
  isIdCard,
488
464
  isJSONString,
489
465
  isLan,
490
- isLeapYear,
491
466
  isLicenseCode,
492
467
  isMobile,
493
468
  isNativeFunction,
@@ -507,7 +482,6 @@ export {
507
482
  isWeixin,
508
483
  isWindow,
509
484
  kebabCase,
510
- lfToBr,
511
485
  listGenerator,
512
486
  makePhoneCall,
513
487
  mousewheel,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isUrl
3
- } from "./chunk-D5O4LXN3.js";
3
+ } from "./chunk-YLHA5VH3.js";
4
4
  export {
5
5
  isUrl
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  stringifyQuery
3
- } from "./chunk-WXXFRKUS.js";
4
- import "./chunk-F4QMON2N.js";
3
+ } from "./chunk-VDXSQKQF.js";
5
4
  import "./chunk-GVYBTJDA.js";
5
+ import "./chunk-F4QMON2N.js";
6
6
  export {
7
7
  stringifyQuery
8
8
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYIW4PW4Qcjs = require('./chunk-YIW4PW4Q.cjs');
3
+ var _chunkCDHFRZQMcjs = require('./chunk-CDHFRZQM.cjs');
4
4
 
5
5
 
6
- exports.blobToBase64 = _chunkYIW4PW4Qcjs.blobToBase64;
6
+ exports.blobToBase64 = _chunkCDHFRZQMcjs.blobToBase64;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * blob 转 base64
3
3
  */
4
- declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer>;
4
+ declare function blobToBase64(blob: Blob, contentType?: string): Promise<string | ArrayBuffer>;
5
5
 
6
6
  export { blobToBase64 };