@daysnap/utils 0.0.96 → 0.0.97

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 CHANGED
@@ -35,3 +35,30 @@ import { debounce } from '@daysnap/utils'
35
35
  ## 详情 API 文档
36
36
 
37
37
  [点我查看](./docs/modules.md)
38
+
39
+
40
+ ## 注意事项
41
+
42
+ ```json
43
+ {
44
+ "exports": {
45
+ ".": {
46
+ "import": "./es/index.js",
47
+ "require": "./lib/index.cjs"
48
+ },
49
+ "./*": "./*"
50
+ },
51
+ "main": "lib/index.cjs",
52
+ "module": "es/index.js",
53
+ "types": "es/index.d.ts",
54
+ "typesVersions": {
55
+ "*": {
56
+ "*": [
57
+ "./lib/*",
58
+ "./es/*",
59
+ "./*"
60
+ ]
61
+ }
62
+ },
63
+ }
64
+ ```
package/docs/README.md CHANGED
@@ -37,3 +37,29 @@ import { debounce } from '@daysnap/utils'
37
37
  ## 详情 API 文档
38
38
 
39
39
  [点我查看](./docs/modules.md)
40
+
41
+ ## 注意事项
42
+
43
+ ```json
44
+ {
45
+ "exports": {
46
+ ".": {
47
+ "import": "./es/index.js",
48
+ "require": "./lib/index.cjs"
49
+ },
50
+ "./*": "./*"
51
+ },
52
+ "main": "lib/index.cjs",
53
+ "module": "es/index.js",
54
+ "types": "es/index.d.ts",
55
+ "typesVersions": {
56
+ "*": {
57
+ "*": [
58
+ "./lib/*",
59
+ "./es/*",
60
+ "./*"
61
+ ]
62
+ }
63
+ },
64
+ }
65
+ ```
@@ -35,7 +35,7 @@
35
35
 
36
36
  #### Defined in
37
37
 
38
- [storage/factory.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/storage/factory.ts#L6)
38
+ [storage/factory.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/storage/factory.ts#L6)
39
39
 
40
40
  ___
41
41
 
@@ -49,7 +49,7 @@ ___
49
49
 
50
50
  #### Defined in
51
51
 
52
- [storage/factory.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/storage/factory.ts#L7)
52
+ [storage/factory.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/storage/factory.ts#L7)
53
53
 
54
54
  ___
55
55
 
@@ -69,7 +69,7 @@ ___
69
69
 
70
70
  #### Defined in
71
71
 
72
- [storage/factory.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/storage/factory.ts#L5)
72
+ [storage/factory.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/storage/factory.ts#L5)
73
73
 
74
74
  ___
75
75
 
@@ -89,4 +89,4 @@ ___
89
89
 
90
90
  #### Defined in
91
91
 
92
- [storage/factory.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/storage/factory.ts#L8)
92
+ [storage/factory.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/storage/factory.ts#L8)
@@ -31,7 +31,7 @@
31
31
 
32
32
  #### Defined in
33
33
 
34
- [trap.ts:12](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L12)
34
+ [trap.ts:12](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L12)
35
35
 
36
36
  ___
37
37
 
@@ -56,7 +56,7 @@ ___
56
56
 
57
57
  #### Defined in
58
58
 
59
- [trap.ts:10](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L10)
59
+ [trap.ts:10](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L10)
60
60
 
61
61
  ___
62
62
 
@@ -80,7 +80,7 @@ ___
80
80
 
81
81
  #### Defined in
82
82
 
83
- [trap.ts:11](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L11)
83
+ [trap.ts:11](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L11)
84
84
 
85
85
  ___
86
86
 
@@ -90,7 +90,7 @@ ___
90
90
 
91
91
  #### Defined in
92
92
 
93
- [trap.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L8)
93
+ [trap.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L8)
94
94
 
95
95
  ___
96
96
 
@@ -115,4 +115,4 @@ ___
115
115
 
116
116
  #### Defined in
117
117
 
118
- [trap.ts:9](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L9)
118
+ [trap.ts:9](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L9)
package/docs/modules.md CHANGED
@@ -143,7 +143,7 @@
143
143
 
144
144
  #### Defined in
145
145
 
146
- [trap.ts:15](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L15)
146
+ [trap.ts:15](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L15)
147
147
 
148
148
  ## Functions
149
149
 
@@ -181,7 +181,7 @@ res = { '1': '男', '2': '女' }
181
181
 
182
182
  #### Defined in
183
183
 
184
- [ato.ts:12](https://github.com/daysnap/utils/blob/4caac97/src/ato.ts#L12)
184
+ [ato.ts:12](https://github.com/daysnap/utils/blob/17beeea/src/ato.ts#L12)
185
185
 
186
186
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
187
187
 
@@ -206,7 +206,7 @@ res = { '1': '男', '2': '女' }
206
206
 
207
207
  #### Defined in
208
208
 
209
- [ato.ts:16](https://github.com/daysnap/utils/blob/4caac97/src/ato.ts#L16)
209
+ [ato.ts:16](https://github.com/daysnap/utils/blob/17beeea/src/ato.ts#L16)
210
210
 
211
211
  ___
212
212
 
@@ -226,7 +226,7 @@ ___
226
226
 
227
227
  #### Defined in
228
228
 
229
- [decode.ts:41](https://github.com/daysnap/utils/blob/4caac97/src/decode.ts#L41)
229
+ [decode.ts:41](https://github.com/daysnap/utils/blob/17beeea/src/decode.ts#L41)
230
230
 
231
231
  ___
232
232
 
@@ -249,7 +249,7 @@ base64 转 blob
249
249
 
250
250
  #### Defined in
251
251
 
252
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/base64ToBlob.ts#L6)
252
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/base64ToBlob.ts#L6)
253
253
 
254
254
  ___
255
255
 
@@ -271,7 +271,7 @@ blob 转 base64
271
271
 
272
272
  #### Defined in
273
273
 
274
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/blobToBase64.ts#L4)
274
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/blobToBase64.ts#L4)
275
275
 
276
276
  ___
277
277
 
@@ -291,7 +291,7 @@ ___
291
291
 
292
292
  #### Defined in
293
293
 
294
- [decode.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/decode.ts#L8)
294
+ [decode.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/decode.ts#L8)
295
295
 
296
296
  ___
297
297
 
@@ -332,7 +332,7 @@ ___
332
332
 
333
333
  #### Defined in
334
334
 
335
- [cached.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/cached.ts#L5)
335
+ [cached.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/cached.ts#L5)
336
336
 
337
337
  ___
338
338
 
@@ -355,7 +355,7 @@ camelCase('hello-world') => helloWorld
355
355
 
356
356
  #### Defined in
357
357
 
358
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/camelCase.ts#L5)
358
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/camelCase.ts#L5)
359
359
 
360
360
  ___
361
361
 
@@ -379,7 +379,7 @@ canvas 转 blob 文件
379
379
 
380
380
  #### Defined in
381
381
 
382
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/canvasToBlob.ts#L4)
382
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/canvasToBlob.ts#L4)
383
383
 
384
384
  ___
385
385
 
@@ -402,7 +402,7 @@ capitalize('hello world') => Hello world
402
402
 
403
403
  #### Defined in
404
404
 
405
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/capitalize.ts#L5)
405
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/capitalize.ts#L5)
406
406
 
407
407
  ___
408
408
 
@@ -426,7 +426,7 @@ ___
426
426
 
427
427
  #### Defined in
428
428
 
429
- [clamp.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/clamp.ts#L7)
429
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/clamp.ts#L7)
430
430
 
431
431
  ___
432
432
 
@@ -454,7 +454,7 @@ ___
454
454
 
455
455
  #### Defined in
456
456
 
457
- [clone.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/clone.ts#L8)
457
+ [clone.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/clone.ts#L8)
458
458
 
459
459
  ___
460
460
 
@@ -482,7 +482,7 @@ ___
482
482
 
483
483
  #### Defined in
484
484
 
485
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/cloneSimple.ts#L7)
485
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/cloneSimple.ts#L7)
486
486
 
487
487
  ___
488
488
 
@@ -504,7 +504,7 @@ ___
504
504
 
505
505
  #### Defined in
506
506
 
507
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/createHexColorByHash.ts#L4)
507
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/createHexColorByHash.ts#L4)
508
508
 
509
509
  ___
510
510
 
@@ -530,7 +530,7 @@ ___
530
530
 
531
531
  #### Defined in
532
532
 
533
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/4caac97/src/compareVersion.ts#L9)
533
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/17beeea/src/compareVersion.ts#L9)
534
534
 
535
535
  ___
536
536
 
@@ -552,7 +552,7 @@ ___
552
552
 
553
553
  #### Defined in
554
554
 
555
- [compressImage.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/compressImage.ts#L6)
555
+ [compressImage.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/compressImage.ts#L6)
556
556
 
557
557
  ___
558
558
 
@@ -590,7 +590,7 @@ ___
590
590
 
591
591
  #### Defined in
592
592
 
593
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/4caac97/src/createLinearFunction.ts#L9)
593
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/17beeea/src/createLinearFunction.ts#L9)
594
594
 
595
595
  ___
596
596
 
@@ -622,7 +622,7 @@ ___
622
622
 
623
623
  #### Defined in
624
624
 
625
- [trap.ts:49](https://github.com/daysnap/utils/blob/4caac97/src/trap.ts#L49)
625
+ [trap.ts:49](https://github.com/daysnap/utils/blob/17beeea/src/trap.ts#L49)
626
626
 
627
627
  ___
628
628
 
@@ -685,7 +685,7 @@ fn() 执行的时候就会执行showLoading
685
685
 
686
686
  #### Defined in
687
687
 
688
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/4caac97/src/createWithLoading.ts#L11)
688
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/17beeea/src/createWithLoading.ts#L11)
689
689
 
690
690
  ___
691
691
 
@@ -728,7 +728,7 @@ ___
728
728
 
729
729
  #### Defined in
730
730
 
731
- [debounce.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/debounce.ts#L5)
731
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/debounce.ts#L5)
732
732
 
733
733
  ___
734
734
 
@@ -752,7 +752,7 @@ ___
752
752
 
753
753
  #### Defined in
754
754
 
755
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/downloadFile.ts#L4)
755
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/downloadFile.ts#L4)
756
756
 
757
757
  ___
758
758
 
@@ -781,7 +781,7 @@ ___
781
781
 
782
782
  #### Defined in
783
783
 
784
- [each.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/each.ts#L4)
784
+ [each.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/each.ts#L4)
785
785
 
786
786
  ▸ **each**<`T`\>(`data`, `callback`): `void`
787
787
 
@@ -804,7 +804,7 @@ ___
804
804
 
805
805
  #### Defined in
806
806
 
807
- [each.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/each.ts#L8)
807
+ [each.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/each.ts#L8)
808
808
 
809
809
  ___
810
810
 
@@ -822,7 +822,7 @@ ___
822
822
 
823
823
  #### Defined in
824
824
 
825
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/exitFullscreen.ts#L6)
825
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/exitFullscreen.ts#L6)
826
826
 
827
827
  ___
828
828
 
@@ -851,7 +851,7 @@ ___
851
851
 
852
852
  #### Defined in
853
853
 
854
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/4caac97/src/storage/factory.ts#L11)
854
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/17beeea/src/storage/factory.ts#L11)
855
855
 
856
856
  ___
857
857
 
@@ -873,7 +873,7 @@ ___
873
873
 
874
874
  #### Defined in
875
875
 
876
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/filterBankCardNo.ts#L4)
876
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/filterBankCardNo.ts#L4)
877
877
 
878
878
  ___
879
879
 
@@ -895,7 +895,7 @@ ___
895
895
 
896
896
  #### Defined in
897
897
 
898
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/filterCRLF.ts#L4)
898
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/filterCRLF.ts#L4)
899
899
 
900
900
  ___
901
901
 
@@ -917,7 +917,7 @@ ___
917
917
 
918
918
  #### Defined in
919
919
 
920
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/filterEmoji.ts#L4)
920
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/filterEmoji.ts#L4)
921
921
 
922
922
  ___
923
923
 
@@ -940,7 +940,7 @@ ___
940
940
 
941
941
  #### Defined in
942
942
 
943
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/4caac97/src/filterEmptyValue.ts#L12)
943
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/17beeea/src/filterEmptyValue.ts#L12)
944
944
 
945
945
  ___
946
946
 
@@ -963,7 +963,7 @@ ___
963
963
 
964
964
  #### Defined in
965
965
 
966
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/filterIdCard.ts#L5)
966
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/filterIdCard.ts#L5)
967
967
 
968
968
  ___
969
969
 
@@ -985,7 +985,7 @@ ___
985
985
 
986
986
  #### Defined in
987
987
 
988
- [filterName.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/filterName.ts#L4)
988
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/filterName.ts#L4)
989
989
 
990
990
  ___
991
991
 
@@ -1010,7 +1010,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1010
1010
 
1011
1011
  #### Defined in
1012
1012
 
1013
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/filterPhone.ts#L6)
1013
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/filterPhone.ts#L6)
1014
1014
 
1015
1015
  ___
1016
1016
 
@@ -1037,7 +1037,7 @@ str = '131****8888'
1037
1037
 
1038
1038
  #### Defined in
1039
1039
 
1040
- [filterString.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/filterString.ts#L6)
1040
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/filterString.ts#L6)
1041
1041
 
1042
1042
  ___
1043
1043
 
@@ -1060,7 +1060,7 @@ ___
1060
1060
 
1061
1061
  #### Defined in
1062
1062
 
1063
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/formatAmount.ts#L4)
1063
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/formatAmount.ts#L4)
1064
1064
 
1065
1065
  ___
1066
1066
 
@@ -1084,7 +1084,7 @@ ___
1084
1084
 
1085
1085
  #### Defined in
1086
1086
 
1087
- [formatDate.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/formatDate.ts#L8)
1087
+ [formatDate.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/formatDate.ts#L8)
1088
1088
 
1089
1089
  ___
1090
1090
 
@@ -1107,7 +1107,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1107
1107
 
1108
1108
  #### Defined in
1109
1109
 
1110
- [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/formatDateStr.ts#L5)
1110
+ [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/formatDateStr.ts#L5)
1111
1111
 
1112
1112
  ___
1113
1113
 
@@ -1127,7 +1127,7 @@ ___
1127
1127
 
1128
1128
  #### Defined in
1129
1129
 
1130
- [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/4caac97/src/formartDateToZN.ts#L3)
1130
+ [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/17beeea/src/formartDateToZN.ts#L3)
1131
1131
 
1132
1132
  ___
1133
1133
 
@@ -1150,7 +1150,7 @@ ___
1150
1150
 
1151
1151
  #### Defined in
1152
1152
 
1153
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/formatFileSize.ts#L4)
1153
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/formatFileSize.ts#L4)
1154
1154
 
1155
1155
  ___
1156
1156
 
@@ -1175,7 +1175,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1175
1175
 
1176
1176
  #### Defined in
1177
1177
 
1178
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/4caac97/src/formatMessage.ts#L11)
1178
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/17beeea/src/formatMessage.ts#L11)
1179
1179
 
1180
1180
  ___
1181
1181
 
@@ -1207,7 +1207,7 @@ rest = { xxx: 1 }
1207
1207
 
1208
1208
  #### Defined in
1209
1209
 
1210
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/formatPathParams.ts#L8)
1210
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/formatPathParams.ts#L8)
1211
1211
 
1212
1212
  ___
1213
1213
 
@@ -1229,7 +1229,7 @@ ___
1229
1229
 
1230
1230
  #### Defined in
1231
1231
 
1232
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getBlobByUrl.ts#L4)
1232
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getBlobByUrl.ts#L4)
1233
1233
 
1234
1234
  ___
1235
1235
 
@@ -1252,7 +1252,7 @@ ___
1252
1252
 
1253
1253
  #### Defined in
1254
1254
 
1255
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/4caac97/src/storage/index.ts#L9)
1255
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/17beeea/src/storage/index.ts#L9)
1256
1256
 
1257
1257
  ___
1258
1258
 
@@ -1274,7 +1274,7 @@ ___
1274
1274
 
1275
1275
  #### Defined in
1276
1276
 
1277
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getDayMillisecond.ts#L4)
1277
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getDayMillisecond.ts#L4)
1278
1278
 
1279
1279
  ___
1280
1280
 
@@ -1296,7 +1296,7 @@ ___
1296
1296
 
1297
1297
  #### Defined in
1298
1298
 
1299
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getImageInfo.ts#L4)
1299
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getImageInfo.ts#L4)
1300
1300
 
1301
1301
  ___
1302
1302
 
@@ -1319,7 +1319,7 @@ ___
1319
1319
 
1320
1320
  #### Defined in
1321
1321
 
1322
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/4caac97/src/storage/index.ts#L9)
1322
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/17beeea/src/storage/index.ts#L9)
1323
1323
 
1324
1324
  ___
1325
1325
 
@@ -1342,7 +1342,7 @@ ___
1342
1342
 
1343
1343
  #### Defined in
1344
1344
 
1345
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/getRandom.ts#L7)
1345
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/getRandom.ts#L7)
1346
1346
 
1347
1347
  ___
1348
1348
 
@@ -1358,7 +1358,7 @@ ___
1358
1358
 
1359
1359
  #### Defined in
1360
1360
 
1361
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getRandomColor.ts#L4)
1361
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getRandomColor.ts#L4)
1362
1362
 
1363
1363
  ___
1364
1364
 
@@ -1380,7 +1380,7 @@ ___
1380
1380
 
1381
1381
  #### Defined in
1382
1382
 
1383
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/getRandomNumber.ts#L7)
1383
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/getRandomNumber.ts#L7)
1384
1384
 
1385
1385
  ___
1386
1386
 
@@ -1396,7 +1396,7 @@ ___
1396
1396
 
1397
1397
  #### Defined in
1398
1398
 
1399
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getScrollTop.ts#L4)
1399
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getScrollTop.ts#L4)
1400
1400
 
1401
1401
  ___
1402
1402
 
@@ -1418,7 +1418,7 @@ ___
1418
1418
 
1419
1419
  #### Defined in
1420
1420
 
1421
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/getVideoInfo.ts#L4)
1421
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/getVideoInfo.ts#L4)
1422
1422
 
1423
1423
  ___
1424
1424
 
@@ -1434,7 +1434,7 @@ ___
1434
1434
 
1435
1435
  #### Defined in
1436
1436
 
1437
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/inBrowser.ts#L4)
1437
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/inBrowser.ts#L4)
1438
1438
 
1439
1439
  ___
1440
1440
 
@@ -1456,7 +1456,7 @@ ___
1456
1456
 
1457
1457
  #### Defined in
1458
1458
 
1459
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/insertLink.ts#L4)
1459
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/insertLink.ts#L4)
1460
1460
 
1461
1461
  ▸ **insertLink**(`href`, `callback`): `void`
1462
1462
 
@@ -1473,7 +1473,7 @@ ___
1473
1473
 
1474
1474
  #### Defined in
1475
1475
 
1476
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/insertLink.ts#L5)
1476
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/insertLink.ts#L5)
1477
1477
 
1478
1478
  ___
1479
1479
 
@@ -1495,7 +1495,7 @@ ___
1495
1495
 
1496
1496
  #### Defined in
1497
1497
 
1498
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/insertScript.ts#L4)
1498
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/insertScript.ts#L4)
1499
1499
 
1500
1500
  ▸ **insertScript**(`src`, `callback`): `void`
1501
1501
 
@@ -1512,7 +1512,7 @@ ___
1512
1512
 
1513
1513
  #### Defined in
1514
1514
 
1515
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/insertScript.ts#L5)
1515
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/insertScript.ts#L5)
1516
1516
 
1517
1517
  ___
1518
1518
 
@@ -1534,7 +1534,7 @@ ___
1534
1534
 
1535
1535
  #### Defined in
1536
1536
 
1537
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/insertStyle.ts#L4)
1537
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/insertStyle.ts#L4)
1538
1538
 
1539
1539
  ___
1540
1540
 
@@ -1563,7 +1563,7 @@ isAmount('1.123') => false
1563
1563
 
1564
1564
  #### Defined in
1565
1565
 
1566
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/4caac97/src/isAmount.ts#L11)
1566
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/17beeea/src/isAmount.ts#L11)
1567
1567
 
1568
1568
  ___
1569
1569
 
@@ -1579,7 +1579,7 @@ ___
1579
1579
 
1580
1580
  #### Defined in
1581
1581
 
1582
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isAndroid.ts#L4)
1582
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isAndroid.ts#L4)
1583
1583
 
1584
1584
  ___
1585
1585
 
@@ -1603,7 +1603,7 @@ val is any[]
1603
1603
 
1604
1604
  #### Defined in
1605
1605
 
1606
- [isArray.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/isArray.ts#L6)
1606
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/isArray.ts#L6)
1607
1607
 
1608
1608
  ___
1609
1609
 
@@ -1625,7 +1625,7 @@ val is boolean
1625
1625
 
1626
1626
  #### Defined in
1627
1627
 
1628
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isBoolean.ts#L5)
1628
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isBoolean.ts#L5)
1629
1629
 
1630
1630
  ___
1631
1631
 
@@ -1647,7 +1647,7 @@ ___
1647
1647
 
1648
1648
  #### Defined in
1649
1649
 
1650
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isChinese.ts#L4)
1650
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isChinese.ts#L4)
1651
1651
 
1652
1652
  ___
1653
1653
 
@@ -1669,7 +1669,7 @@ val is Date
1669
1669
 
1670
1670
  #### Defined in
1671
1671
 
1672
- [isDate.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isDate.ts#L4)
1672
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isDate.ts#L4)
1673
1673
 
1674
1674
  ___
1675
1675
 
@@ -1691,7 +1691,7 @@ ___
1691
1691
 
1692
1692
  #### Defined in
1693
1693
 
1694
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isEmail.ts#L4)
1694
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isEmail.ts#L4)
1695
1695
 
1696
1696
  ___
1697
1697
 
@@ -1713,7 +1713,7 @@ ___
1713
1713
 
1714
1714
  #### Defined in
1715
1715
 
1716
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/isEmpty.ts#L6)
1716
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/isEmpty.ts#L6)
1717
1717
 
1718
1718
  ___
1719
1719
 
@@ -1735,7 +1735,7 @@ ___
1735
1735
 
1736
1736
  #### Defined in
1737
1737
 
1738
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/isEmptyArray.ts#L6)
1738
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/isEmptyArray.ts#L6)
1739
1739
 
1740
1740
  ___
1741
1741
 
@@ -1757,7 +1757,7 @@ ___
1757
1757
 
1758
1758
  #### Defined in
1759
1759
 
1760
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isEmptyObject.ts#L5)
1760
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isEmptyObject.ts#L5)
1761
1761
 
1762
1762
  ___
1763
1763
 
@@ -1779,7 +1779,7 @@ val is Error
1779
1779
 
1780
1780
  #### Defined in
1781
1781
 
1782
- [isError.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isError.ts#L4)
1782
+ [isError.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isError.ts#L4)
1783
1783
 
1784
1784
  ___
1785
1785
 
@@ -1801,7 +1801,7 @@ val is Function
1801
1801
 
1802
1802
  #### Defined in
1803
1803
 
1804
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isFunction.ts#L4)
1804
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isFunction.ts#L4)
1805
1805
 
1806
1806
  ___
1807
1807
 
@@ -1819,7 +1819,7 @@ ___
1819
1819
 
1820
1820
  #### Defined in
1821
1821
 
1822
- [isIE.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/isIE.ts#L6)
1822
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/isIE.ts#L6)
1823
1823
 
1824
1824
  ___
1825
1825
 
@@ -1835,7 +1835,7 @@ ___
1835
1835
 
1836
1836
  #### Defined in
1837
1837
 
1838
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isIOS.ts#L4)
1838
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isIOS.ts#L4)
1839
1839
 
1840
1840
  ___
1841
1841
 
@@ -1857,7 +1857,7 @@ ___
1857
1857
 
1858
1858
  #### Defined in
1859
1859
 
1860
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isIdCard.ts#L4)
1860
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isIdCard.ts#L4)
1861
1861
 
1862
1862
  ___
1863
1863
 
@@ -1879,7 +1879,7 @@ ___
1879
1879
 
1880
1880
  #### Defined in
1881
1881
 
1882
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/isJSONString.ts#L7)
1882
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/isJSONString.ts#L7)
1883
1883
 
1884
1884
  ___
1885
1885
 
@@ -1901,7 +1901,7 @@ ___
1901
1901
 
1902
1902
  #### Defined in
1903
1903
 
1904
- [isLan.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isLan.ts#L5)
1904
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isLan.ts#L5)
1905
1905
 
1906
1906
  ___
1907
1907
 
@@ -1923,7 +1923,7 @@ ___
1923
1923
 
1924
1924
  #### Defined in
1925
1925
 
1926
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isLicenseCode.ts#L5)
1926
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isLicenseCode.ts#L5)
1927
1927
 
1928
1928
  ___
1929
1929
 
@@ -1939,7 +1939,7 @@ ___
1939
1939
 
1940
1940
  #### Defined in
1941
1941
 
1942
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isMobile.ts#L4)
1942
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isMobile.ts#L4)
1943
1943
 
1944
1944
  ___
1945
1945
 
@@ -1962,7 +1962,7 @@ ___
1962
1962
 
1963
1963
  #### Defined in
1964
1964
 
1965
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/isNativeFunction.ts#L7)
1965
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/isNativeFunction.ts#L7)
1966
1966
 
1967
1967
  ___
1968
1968
 
@@ -1984,7 +1984,7 @@ val is null
1984
1984
 
1985
1985
  #### Defined in
1986
1986
 
1987
- [isNull.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isNull.ts#L4)
1987
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isNull.ts#L4)
1988
1988
 
1989
1989
  ___
1990
1990
 
@@ -2006,7 +2006,7 @@ val is number
2006
2006
 
2007
2007
  #### Defined in
2008
2008
 
2009
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isNumber.ts#L5)
2009
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isNumber.ts#L5)
2010
2010
 
2011
2011
  ___
2012
2012
 
@@ -2028,7 +2028,7 @@ val is Record<string, any\>
2028
2028
 
2029
2029
  #### Defined in
2030
2030
 
2031
- [isObject.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isObject.ts#L4)
2031
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isObject.ts#L4)
2032
2032
 
2033
2033
  ___
2034
2034
 
@@ -2050,7 +2050,7 @@ ___
2050
2050
 
2051
2051
  #### Defined in
2052
2052
 
2053
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isPhone.ts#L4)
2053
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isPhone.ts#L4)
2054
2054
 
2055
2055
  ___
2056
2056
 
@@ -2078,7 +2078,7 @@ val is Promise<T\>
2078
2078
 
2079
2079
  #### Defined in
2080
2080
 
2081
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isPromise.ts#L4)
2081
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isPromise.ts#L4)
2082
2082
 
2083
2083
  ___
2084
2084
 
@@ -2100,7 +2100,7 @@ val is RegExp
2100
2100
 
2101
2101
  #### Defined in
2102
2102
 
2103
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isRegExp.ts#L4)
2103
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isRegExp.ts#L4)
2104
2104
 
2105
2105
  ___
2106
2106
 
@@ -2122,7 +2122,7 @@ val is string
2122
2122
 
2123
2123
  #### Defined in
2124
2124
 
2125
- [isString.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isString.ts#L4)
2125
+ [isString.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isString.ts#L4)
2126
2126
 
2127
2127
  ___
2128
2128
 
@@ -2144,7 +2144,7 @@ val is undefined
2144
2144
 
2145
2145
  #### Defined in
2146
2146
 
2147
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isUndefined.ts#L4)
2147
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isUndefined.ts#L4)
2148
2148
 
2149
2149
  ___
2150
2150
 
@@ -2182,7 +2182,7 @@ ___
2182
2182
 
2183
2183
  #### Defined in
2184
2184
 
2185
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/isWeChat.ts#L4)
2185
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/isWeChat.ts#L4)
2186
2186
 
2187
2187
  ___
2188
2188
 
@@ -2199,7 +2199,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2199
2199
 
2200
2200
  #### Defined in
2201
2201
 
2202
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isWeChatMiniProgram.ts#L5)
2202
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isWeChatMiniProgram.ts#L5)
2203
2203
 
2204
2204
  ___
2205
2205
 
@@ -2219,7 +2219,7 @@ ___
2219
2219
 
2220
2220
  #### Defined in
2221
2221
 
2222
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/4caac97/src/isWeChat.ts#L12)
2222
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/17beeea/src/isWeChat.ts#L12)
2223
2223
 
2224
2224
  ___
2225
2225
 
@@ -2241,7 +2241,7 @@ val is Window
2241
2241
 
2242
2242
  #### Defined in
2243
2243
 
2244
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/isWindow.ts#L5)
2244
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/isWindow.ts#L5)
2245
2245
 
2246
2246
  ___
2247
2247
 
@@ -2264,7 +2264,7 @@ kebabCase('helloWorld') => hello-world
2264
2264
 
2265
2265
  #### Defined in
2266
2266
 
2267
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/kebabCase.ts#L5)
2267
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/kebabCase.ts#L5)
2268
2268
 
2269
2269
  ___
2270
2270
 
@@ -2293,7 +2293,7 @@ list 生成器,快速生成数据
2293
2293
 
2294
2294
  #### Defined in
2295
2295
 
2296
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/listGenerator.ts#L5)
2296
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/listGenerator.ts#L5)
2297
2297
 
2298
2298
  ___
2299
2299
 
@@ -2318,7 +2318,7 @@ ___
2318
2318
 
2319
2319
  #### Defined in
2320
2320
 
2321
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/4caac97/src/mousewheel.ts#L22)
2321
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/17beeea/src/mousewheel.ts#L22)
2322
2322
 
2323
2323
  ___
2324
2324
 
@@ -2334,7 +2334,7 @@ ___
2334
2334
 
2335
2335
  #### Defined in
2336
2336
 
2337
- [nf.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/nf.ts#L4)
2337
+ [nf.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/nf.ts#L4)
2338
2338
 
2339
2339
  ___
2340
2340
 
@@ -2356,7 +2356,7 @@ ___
2356
2356
 
2357
2357
  #### Defined in
2358
2358
 
2359
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/normalizePath.ts#L4)
2359
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/normalizePath.ts#L4)
2360
2360
 
2361
2361
  ___
2362
2362
 
@@ -2386,7 +2386,7 @@ ___
2386
2386
 
2387
2387
  #### Defined in
2388
2388
 
2389
- [omit.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/omit.ts#L4)
2389
+ [omit.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/omit.ts#L4)
2390
2390
 
2391
2391
  ___
2392
2392
 
@@ -2410,7 +2410,7 @@ ___
2410
2410
 
2411
2411
  #### Defined in
2412
2412
 
2413
- [padding.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/padding.ts#L7)
2413
+ [padding.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/padding.ts#L7)
2414
2414
 
2415
2415
  ___
2416
2416
 
@@ -2432,7 +2432,7 @@ ___
2432
2432
 
2433
2433
  #### Defined in
2434
2434
 
2435
- [parseDate.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/parseDate.ts#L4)
2435
+ [parseDate.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/parseDate.ts#L4)
2436
2436
 
2437
2437
  ___
2438
2438
 
@@ -2455,7 +2455,7 @@ ___
2455
2455
 
2456
2456
  #### Defined in
2457
2457
 
2458
- [parseError.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/parseError.ts#L8)
2458
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/parseError.ts#L8)
2459
2459
 
2460
2460
  ___
2461
2461
 
@@ -2485,7 +2485,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2485
2485
 
2486
2486
  #### Defined in
2487
2487
 
2488
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/parseObject.ts#L5)
2488
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/parseObject.ts#L5)
2489
2489
 
2490
2490
  ___
2491
2491
 
@@ -2514,7 +2514,7 @@ ___
2514
2514
 
2515
2515
  #### Defined in
2516
2516
 
2517
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/parsePath.ts#L6)
2517
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/parsePath.ts#L6)
2518
2518
 
2519
2519
  ___
2520
2520
 
@@ -2537,7 +2537,7 @@ ___
2537
2537
 
2538
2538
  #### Defined in
2539
2539
 
2540
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/parseQuery.ts#L8)
2540
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/parseQuery.ts#L8)
2541
2541
 
2542
2542
  ___
2543
2543
 
@@ -2567,7 +2567,7 @@ ___
2567
2567
 
2568
2568
  #### Defined in
2569
2569
 
2570
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/parseQueryString.ts#L6)
2570
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/parseQueryString.ts#L6)
2571
2571
 
2572
2572
  ___
2573
2573
 
@@ -2590,7 +2590,7 @@ pascalCase('hello-world') => HelloWorld
2590
2590
 
2591
2591
  #### Defined in
2592
2592
 
2593
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/pascalCase.ts#L8)
2593
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/pascalCase.ts#L8)
2594
2594
 
2595
2595
  ___
2596
2596
 
@@ -2620,7 +2620,7 @@ ___
2620
2620
 
2621
2621
  #### Defined in
2622
2622
 
2623
- [pick.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/pick.ts#L4)
2623
+ [pick.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/pick.ts#L4)
2624
2624
 
2625
2625
  ___
2626
2626
 
@@ -2643,7 +2643,7 @@ ___
2643
2643
 
2644
2644
  #### Defined in
2645
2645
 
2646
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/replaceCrlf.ts#L4)
2646
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/replaceCrlf.ts#L4)
2647
2647
 
2648
2648
  ___
2649
2649
 
@@ -2667,7 +2667,7 @@ ___
2667
2667
 
2668
2668
  #### Defined in
2669
2669
 
2670
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/requestFullScreen.ts#L6)
2670
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/requestFullScreen.ts#L6)
2671
2671
 
2672
2672
  ___
2673
2673
 
@@ -2693,7 +2693,7 @@ reserve(0, '--') => 0
2693
2693
 
2694
2694
  #### Defined in
2695
2695
 
2696
- [reserve.ts:8](https://github.com/daysnap/utils/blob/4caac97/src/reserve.ts#L8)
2696
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/17beeea/src/reserve.ts#L8)
2697
2697
 
2698
2698
  ___
2699
2699
 
@@ -2717,7 +2717,7 @@ ___
2717
2717
 
2718
2718
  #### Defined in
2719
2719
 
2720
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/rgbToHex.ts#L4)
2720
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/rgbToHex.ts#L4)
2721
2721
 
2722
2722
  ___
2723
2723
 
@@ -2740,7 +2740,7 @@ ___
2740
2740
 
2741
2741
  #### Defined in
2742
2742
 
2743
- [round.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/round.ts#L6)
2743
+ [round.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/round.ts#L6)
2744
2744
 
2745
2745
  ___
2746
2746
 
@@ -2756,7 +2756,7 @@ ___
2756
2756
 
2757
2757
  #### Defined in
2758
2758
 
2759
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/scrollToTop.ts#L4)
2759
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/scrollToTop.ts#L4)
2760
2760
 
2761
2761
  ___
2762
2762
 
@@ -2778,7 +2778,7 @@ ___
2778
2778
 
2779
2779
  #### Defined in
2780
2780
 
2781
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/setScrollTop.ts#L4)
2781
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/setScrollTop.ts#L4)
2782
2782
 
2783
2783
  ___
2784
2784
 
@@ -2801,7 +2801,7 @@ ___
2801
2801
 
2802
2802
  #### Defined in
2803
2803
 
2804
- [sleep.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/sleep.ts#L6)
2804
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/sleep.ts#L6)
2805
2805
 
2806
2806
  ___
2807
2807
 
@@ -2830,7 +2830,7 @@ ___
2830
2830
 
2831
2831
  #### Defined in
2832
2832
 
2833
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/splitArray.ts#L4)
2833
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/splitArray.ts#L4)
2834
2834
 
2835
2835
  ___
2836
2836
 
@@ -2853,7 +2853,7 @@ ___
2853
2853
 
2854
2854
  #### Defined in
2855
2855
 
2856
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/stringTrim.ts#L6)
2856
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/stringTrim.ts#L6)
2857
2857
 
2858
2858
  ___
2859
2859
 
@@ -2875,7 +2875,7 @@ ___
2875
2875
 
2876
2876
  #### Defined in
2877
2877
 
2878
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/4caac97/src/stringifyQuery.ts#L7)
2878
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/17beeea/src/stringifyQuery.ts#L7)
2879
2879
 
2880
2880
  ___
2881
2881
 
@@ -2899,7 +2899,7 @@ ___
2899
2899
 
2900
2900
  #### Defined in
2901
2901
 
2902
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/stringifyQueryString.ts#L6)
2902
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/stringifyQueryString.ts#L6)
2903
2903
 
2904
2904
  ___
2905
2905
 
@@ -2943,7 +2943,7 @@ ___
2943
2943
 
2944
2944
  #### Defined in
2945
2945
 
2946
- [throttle.ts:48](https://github.com/daysnap/utils/blob/4caac97/src/throttle.ts#L48)
2946
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/17beeea/src/throttle.ts#L48)
2947
2947
 
2948
2948
  ___
2949
2949
 
@@ -2986,7 +2986,7 @@ ___
2986
2986
 
2987
2987
  #### Defined in
2988
2988
 
2989
- [throttle.ts:5](https://github.com/daysnap/utils/blob/4caac97/src/throttle.ts#L5)
2989
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/17beeea/src/throttle.ts#L5)
2990
2990
 
2991
2991
  ___
2992
2992
 
@@ -3029,7 +3029,7 @@ ___
3029
3029
 
3030
3030
  #### Defined in
3031
3031
 
3032
- [throttle.ts:25](https://github.com/daysnap/utils/blob/4caac97/src/throttle.ts#L25)
3032
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/17beeea/src/throttle.ts#L25)
3033
3033
 
3034
3034
  ___
3035
3035
 
@@ -3051,7 +3051,7 @@ ___
3051
3051
 
3052
3052
  #### Defined in
3053
3053
 
3054
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/toCDB.ts#L4)
3054
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/toCDB.ts#L4)
3055
3055
 
3056
3056
  ___
3057
3057
 
@@ -3073,7 +3073,7 @@ ___
3073
3073
 
3074
3074
  #### Defined in
3075
3075
 
3076
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/toDBC.ts#L4)
3076
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/toDBC.ts#L4)
3077
3077
 
3078
3078
  ___
3079
3079
 
@@ -3097,7 +3097,7 @@ ___
3097
3097
 
3098
3098
  #### Defined in
3099
3099
 
3100
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/4caac97/src/typeOf.ts#L6)
3100
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/17beeea/src/typeOf.ts#L6)
3101
3101
 
3102
3102
  ___
3103
3103
 
@@ -3126,4 +3126,4 @@ ___
3126
3126
 
3127
3127
  #### Defined in
3128
3128
 
3129
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/4caac97/src/withPreventConsecutiveClicks.ts#L4)
3129
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/17beeea/src/withPreventConsecutiveClicks.ts#L4)
package/package.json CHANGED
@@ -1,29 +1,37 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
3
  "type": "module",
4
- "version": "0.0.96",
4
+ "version": "0.0.97",
5
5
  "description": "通用的工具库",
6
6
  "exports": {
7
7
  ".": {
8
- "import": "./es/index.js",
9
- "require": "./lib/index.cjs"
8
+ "import": {
9
+ "types": "./es/index.d.ts",
10
+ "default": "./es/index.js"
11
+ },
12
+ "require": {
13
+ "types": "./lib/index.d.cts",
14
+ "default": "./lib/index.cjs"
15
+ }
10
16
  },
11
17
  "./*": "./*"
12
18
  },
13
19
  "main": "lib/index.cjs",
14
20
  "module": "es/index.js",
15
- "types": "es/index.d.js",
21
+ "types": "es/index.d.ts",
16
22
  "typesVersions": {
17
23
  "*": {
18
24
  "*": [
19
- "./es/*"
25
+ "./lib/*",
26
+ "./es/*",
27
+ "./*"
20
28
  ]
21
29
  }
22
30
  },
23
31
  "scripts": {
24
- "gen": "plop --plopfile ./scripts/gen.js --force",
25
- "del": "plop --plopfile ./scripts/del.js --force",
26
- "entry": "plop --plopfile ./scripts/entry.js --force",
32
+ "gen": "plop --plopfile ./scripts/gen.cjs --force",
33
+ "del": "plop --plopfile ./scripts/del.cjs --force",
34
+ "entry": "plop --plopfile ./scripts/entry.cjs --force",
27
35
  "docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
28
36
  "clean:es": "rimraf ./es",
29
37
  "clean:lib": "rimraf ./lib",