@daysnap/utils 0.0.86 → 0.0.87
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/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +118 -118
- package/es/formatMessage.js +1 -1
- package/lib/formatMessage.js +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[storage/factory.ts:3](https://github.com/daysnap/utils/blob/
|
|
38
|
+
[storage/factory.ts:3](https://github.com/daysnap/utils/blob/69a123e/src/storage/factory.ts#L3)
|
|
39
39
|
|
|
40
40
|
___
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@ ___
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[storage/factory.ts:4](https://github.com/daysnap/utils/blob/
|
|
52
|
+
[storage/factory.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/storage/factory.ts#L4)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -69,7 +69,7 @@ ___
|
|
|
69
69
|
|
|
70
70
|
#### Defined in
|
|
71
71
|
|
|
72
|
-
[storage/factory.ts:2](https://github.com/daysnap/utils/blob/
|
|
72
|
+
[storage/factory.ts:2](https://github.com/daysnap/utils/blob/69a123e/src/storage/factory.ts#L2)
|
|
73
73
|
|
|
74
74
|
___
|
|
75
75
|
|
|
@@ -89,4 +89,4 @@ ___
|
|
|
89
89
|
|
|
90
90
|
#### Defined in
|
|
91
91
|
|
|
92
|
-
[storage/factory.ts:5](https://github.com/daysnap/utils/blob/
|
|
92
|
+
[storage/factory.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/storage/factory.ts#L5)
|
package/docs/interfaces/Trap.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[trap.ts:12](https://github.com/daysnap/utils/blob/
|
|
34
|
+
[trap.ts:12](https://github.com/daysnap/utils/blob/69a123e/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/
|
|
59
|
+
[trap.ts:10](https://github.com/daysnap/utils/blob/69a123e/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/
|
|
83
|
+
[trap.ts:11](https://github.com/daysnap/utils/blob/69a123e/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/
|
|
93
|
+
[trap.ts:8](https://github.com/daysnap/utils/blob/69a123e/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/
|
|
118
|
+
[trap.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/trap.ts#L9)
|
package/docs/modules.md
CHANGED
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
|
|
139
139
|
#### Defined in
|
|
140
140
|
|
|
141
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
141
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/69a123e/src/trap.ts#L15)
|
|
142
142
|
|
|
143
143
|
## Functions
|
|
144
144
|
|
|
@@ -176,7 +176,7 @@ res = { '1': '男', '2': '女' }
|
|
|
176
176
|
|
|
177
177
|
#### Defined in
|
|
178
178
|
|
|
179
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
179
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/69a123e/src/ato.ts#L12)
|
|
180
180
|
|
|
181
181
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
182
182
|
|
|
@@ -201,7 +201,7 @@ res = { '1': '男', '2': '女' }
|
|
|
201
201
|
|
|
202
202
|
#### Defined in
|
|
203
203
|
|
|
204
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
204
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/69a123e/src/ato.ts#L16)
|
|
205
205
|
|
|
206
206
|
___
|
|
207
207
|
|
|
@@ -224,7 +224,7 @@ base64 转 blob
|
|
|
224
224
|
|
|
225
225
|
#### Defined in
|
|
226
226
|
|
|
227
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
227
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/base64ToBlob.ts#L6)
|
|
228
228
|
|
|
229
229
|
___
|
|
230
230
|
|
|
@@ -246,7 +246,7 @@ blob 转 base64
|
|
|
246
246
|
|
|
247
247
|
#### Defined in
|
|
248
248
|
|
|
249
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
249
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/blobToBase64.ts#L4)
|
|
250
250
|
|
|
251
251
|
___
|
|
252
252
|
|
|
@@ -287,7 +287,7 @@ ___
|
|
|
287
287
|
|
|
288
288
|
#### Defined in
|
|
289
289
|
|
|
290
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
290
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/cached.ts#L5)
|
|
291
291
|
|
|
292
292
|
___
|
|
293
293
|
|
|
@@ -310,7 +310,7 @@ camelCase('hello-world') => helloWorld
|
|
|
310
310
|
|
|
311
311
|
#### Defined in
|
|
312
312
|
|
|
313
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
313
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/camelCase.ts#L5)
|
|
314
314
|
|
|
315
315
|
___
|
|
316
316
|
|
|
@@ -334,7 +334,7 @@ canvas 转 blob 文件
|
|
|
334
334
|
|
|
335
335
|
#### Defined in
|
|
336
336
|
|
|
337
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
337
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/canvasToBlob.ts#L4)
|
|
338
338
|
|
|
339
339
|
___
|
|
340
340
|
|
|
@@ -357,7 +357,7 @@ capitalize('hello world') => Hello world
|
|
|
357
357
|
|
|
358
358
|
#### Defined in
|
|
359
359
|
|
|
360
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
360
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/capitalize.ts#L5)
|
|
361
361
|
|
|
362
362
|
___
|
|
363
363
|
|
|
@@ -381,7 +381,7 @@ ___
|
|
|
381
381
|
|
|
382
382
|
#### Defined in
|
|
383
383
|
|
|
384
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
384
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/clamp.ts#L7)
|
|
385
385
|
|
|
386
386
|
___
|
|
387
387
|
|
|
@@ -409,7 +409,7 @@ ___
|
|
|
409
409
|
|
|
410
410
|
#### Defined in
|
|
411
411
|
|
|
412
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
412
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/clone.ts#L8)
|
|
413
413
|
|
|
414
414
|
___
|
|
415
415
|
|
|
@@ -437,7 +437,7 @@ ___
|
|
|
437
437
|
|
|
438
438
|
#### Defined in
|
|
439
439
|
|
|
440
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
440
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/cloneSimple.ts#L7)
|
|
441
441
|
|
|
442
442
|
___
|
|
443
443
|
|
|
@@ -459,7 +459,7 @@ ___
|
|
|
459
459
|
|
|
460
460
|
#### Defined in
|
|
461
461
|
|
|
462
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
462
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/createHexColorByHash.ts#L4)
|
|
463
463
|
|
|
464
464
|
___
|
|
465
465
|
|
|
@@ -485,7 +485,7 @@ ___
|
|
|
485
485
|
|
|
486
486
|
#### Defined in
|
|
487
487
|
|
|
488
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
488
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/compareVersion.ts#L9)
|
|
489
489
|
|
|
490
490
|
___
|
|
491
491
|
|
|
@@ -507,7 +507,7 @@ ___
|
|
|
507
507
|
|
|
508
508
|
#### Defined in
|
|
509
509
|
|
|
510
|
-
[compressImage.ts:6](https://github.com/daysnap/utils/blob/
|
|
510
|
+
[compressImage.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/compressImage.ts#L6)
|
|
511
511
|
|
|
512
512
|
___
|
|
513
513
|
|
|
@@ -545,7 +545,7 @@ ___
|
|
|
545
545
|
|
|
546
546
|
#### Defined in
|
|
547
547
|
|
|
548
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
548
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/createLinearFunction.ts#L9)
|
|
549
549
|
|
|
550
550
|
___
|
|
551
551
|
|
|
@@ -577,7 +577,7 @@ ___
|
|
|
577
577
|
|
|
578
578
|
#### Defined in
|
|
579
579
|
|
|
580
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
580
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/69a123e/src/trap.ts#L49)
|
|
581
581
|
|
|
582
582
|
___
|
|
583
583
|
|
|
@@ -640,7 +640,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
640
640
|
|
|
641
641
|
#### Defined in
|
|
642
642
|
|
|
643
|
-
[createWithLoading.ts:9](https://github.com/daysnap/utils/blob/
|
|
643
|
+
[createWithLoading.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/createWithLoading.ts#L9)
|
|
644
644
|
|
|
645
645
|
___
|
|
646
646
|
|
|
@@ -683,7 +683,7 @@ ___
|
|
|
683
683
|
|
|
684
684
|
#### Defined in
|
|
685
685
|
|
|
686
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
686
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/debounce.ts#L5)
|
|
687
687
|
|
|
688
688
|
___
|
|
689
689
|
|
|
@@ -707,7 +707,7 @@ ___
|
|
|
707
707
|
|
|
708
708
|
#### Defined in
|
|
709
709
|
|
|
710
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
710
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/downloadFile.ts#L4)
|
|
711
711
|
|
|
712
712
|
___
|
|
713
713
|
|
|
@@ -736,7 +736,7 @@ ___
|
|
|
736
736
|
|
|
737
737
|
#### Defined in
|
|
738
738
|
|
|
739
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
739
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/each.ts#L4)
|
|
740
740
|
|
|
741
741
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
742
742
|
|
|
@@ -759,7 +759,7 @@ ___
|
|
|
759
759
|
|
|
760
760
|
#### Defined in
|
|
761
761
|
|
|
762
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
762
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/each.ts#L8)
|
|
763
763
|
|
|
764
764
|
___
|
|
765
765
|
|
|
@@ -777,7 +777,7 @@ ___
|
|
|
777
777
|
|
|
778
778
|
#### Defined in
|
|
779
779
|
|
|
780
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
780
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/exitFullscreen.ts#L6)
|
|
781
781
|
|
|
782
782
|
___
|
|
783
783
|
|
|
@@ -806,7 +806,7 @@ ___
|
|
|
806
806
|
|
|
807
807
|
#### Defined in
|
|
808
808
|
|
|
809
|
-
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/
|
|
809
|
+
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/storage/factory.ts#L8)
|
|
810
810
|
|
|
811
811
|
___
|
|
812
812
|
|
|
@@ -828,7 +828,7 @@ ___
|
|
|
828
828
|
|
|
829
829
|
#### Defined in
|
|
830
830
|
|
|
831
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
831
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/filterBankCardNo.ts#L4)
|
|
832
832
|
|
|
833
833
|
___
|
|
834
834
|
|
|
@@ -850,7 +850,7 @@ ___
|
|
|
850
850
|
|
|
851
851
|
#### Defined in
|
|
852
852
|
|
|
853
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
853
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/filterCRLF.ts#L4)
|
|
854
854
|
|
|
855
855
|
___
|
|
856
856
|
|
|
@@ -872,7 +872,7 @@ ___
|
|
|
872
872
|
|
|
873
873
|
#### Defined in
|
|
874
874
|
|
|
875
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
875
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/filterEmoji.ts#L4)
|
|
876
876
|
|
|
877
877
|
___
|
|
878
878
|
|
|
@@ -895,7 +895,7 @@ ___
|
|
|
895
895
|
|
|
896
896
|
#### Defined in
|
|
897
897
|
|
|
898
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
898
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/69a123e/src/filterEmptyValue.ts#L12)
|
|
899
899
|
|
|
900
900
|
___
|
|
901
901
|
|
|
@@ -918,7 +918,7 @@ ___
|
|
|
918
918
|
|
|
919
919
|
#### Defined in
|
|
920
920
|
|
|
921
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
921
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/filterIdCard.ts#L5)
|
|
922
922
|
|
|
923
923
|
___
|
|
924
924
|
|
|
@@ -940,7 +940,7 @@ ___
|
|
|
940
940
|
|
|
941
941
|
#### Defined in
|
|
942
942
|
|
|
943
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
943
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/filterName.ts#L4)
|
|
944
944
|
|
|
945
945
|
___
|
|
946
946
|
|
|
@@ -965,7 +965,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
965
965
|
|
|
966
966
|
#### Defined in
|
|
967
967
|
|
|
968
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
968
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/filterPhone.ts#L6)
|
|
969
969
|
|
|
970
970
|
___
|
|
971
971
|
|
|
@@ -992,7 +992,7 @@ str = '131****8888'
|
|
|
992
992
|
|
|
993
993
|
#### Defined in
|
|
994
994
|
|
|
995
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
995
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/filterString.ts#L6)
|
|
996
996
|
|
|
997
997
|
___
|
|
998
998
|
|
|
@@ -1015,7 +1015,7 @@ ___
|
|
|
1015
1015
|
|
|
1016
1016
|
#### Defined in
|
|
1017
1017
|
|
|
1018
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1018
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/formatAmount.ts#L4)
|
|
1019
1019
|
|
|
1020
1020
|
___
|
|
1021
1021
|
|
|
@@ -1039,7 +1039,7 @@ ___
|
|
|
1039
1039
|
|
|
1040
1040
|
#### Defined in
|
|
1041
1041
|
|
|
1042
|
-
[formatDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
1042
|
+
[formatDate.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/formatDate.ts#L8)
|
|
1043
1043
|
|
|
1044
1044
|
___
|
|
1045
1045
|
|
|
@@ -1062,7 +1062,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1062
1062
|
|
|
1063
1063
|
#### Defined in
|
|
1064
1064
|
|
|
1065
|
-
[formatDateStr.ts:5](https://github.com/daysnap/utils/blob/
|
|
1065
|
+
[formatDateStr.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/formatDateStr.ts#L5)
|
|
1066
1066
|
|
|
1067
1067
|
___
|
|
1068
1068
|
|
|
@@ -1082,7 +1082,7 @@ ___
|
|
|
1082
1082
|
|
|
1083
1083
|
#### Defined in
|
|
1084
1084
|
|
|
1085
|
-
[formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/
|
|
1085
|
+
[formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/69a123e/src/formartDateToZN.ts#L3)
|
|
1086
1086
|
|
|
1087
1087
|
___
|
|
1088
1088
|
|
|
@@ -1107,7 +1107,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1107
1107
|
|
|
1108
1108
|
#### Defined in
|
|
1109
1109
|
|
|
1110
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1110
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/69a123e/src/formatMessage.ts#L11)
|
|
1111
1111
|
|
|
1112
1112
|
___
|
|
1113
1113
|
|
|
@@ -1139,7 +1139,7 @@ rest = { xxx: 1 }
|
|
|
1139
1139
|
|
|
1140
1140
|
#### Defined in
|
|
1141
1141
|
|
|
1142
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1142
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/formatPathParams.ts#L8)
|
|
1143
1143
|
|
|
1144
1144
|
___
|
|
1145
1145
|
|
|
@@ -1161,7 +1161,7 @@ ___
|
|
|
1161
1161
|
|
|
1162
1162
|
#### Defined in
|
|
1163
1163
|
|
|
1164
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1164
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/getBlobByUrl.ts#L4)
|
|
1165
1165
|
|
|
1166
1166
|
___
|
|
1167
1167
|
|
|
@@ -1184,7 +1184,7 @@ ___
|
|
|
1184
1184
|
|
|
1185
1185
|
#### Defined in
|
|
1186
1186
|
|
|
1187
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1187
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/storage/index.ts#L9)
|
|
1188
1188
|
|
|
1189
1189
|
___
|
|
1190
1190
|
|
|
@@ -1206,7 +1206,7 @@ ___
|
|
|
1206
1206
|
|
|
1207
1207
|
#### Defined in
|
|
1208
1208
|
|
|
1209
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1209
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/getDayMillisecond.ts#L4)
|
|
1210
1210
|
|
|
1211
1211
|
___
|
|
1212
1212
|
|
|
@@ -1228,7 +1228,7 @@ ___
|
|
|
1228
1228
|
|
|
1229
1229
|
#### Defined in
|
|
1230
1230
|
|
|
1231
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1231
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/getImageInfo.ts#L4)
|
|
1232
1232
|
|
|
1233
1233
|
___
|
|
1234
1234
|
|
|
@@ -1251,7 +1251,7 @@ ___
|
|
|
1251
1251
|
|
|
1252
1252
|
#### Defined in
|
|
1253
1253
|
|
|
1254
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1254
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/69a123e/src/storage/index.ts#L9)
|
|
1255
1255
|
|
|
1256
1256
|
___
|
|
1257
1257
|
|
|
@@ -1274,7 +1274,7 @@ ___
|
|
|
1274
1274
|
|
|
1275
1275
|
#### Defined in
|
|
1276
1276
|
|
|
1277
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1277
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/getRandom.ts#L7)
|
|
1278
1278
|
|
|
1279
1279
|
___
|
|
1280
1280
|
|
|
@@ -1290,7 +1290,7 @@ ___
|
|
|
1290
1290
|
|
|
1291
1291
|
#### Defined in
|
|
1292
1292
|
|
|
1293
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1293
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/getRandomColor.ts#L4)
|
|
1294
1294
|
|
|
1295
1295
|
___
|
|
1296
1296
|
|
|
@@ -1312,7 +1312,7 @@ ___
|
|
|
1312
1312
|
|
|
1313
1313
|
#### Defined in
|
|
1314
1314
|
|
|
1315
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1315
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/getRandomNumber.ts#L7)
|
|
1316
1316
|
|
|
1317
1317
|
___
|
|
1318
1318
|
|
|
@@ -1334,7 +1334,7 @@ ___
|
|
|
1334
1334
|
|
|
1335
1335
|
#### Defined in
|
|
1336
1336
|
|
|
1337
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1337
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/getVideoInfo.ts#L4)
|
|
1338
1338
|
|
|
1339
1339
|
___
|
|
1340
1340
|
|
|
@@ -1350,7 +1350,7 @@ ___
|
|
|
1350
1350
|
|
|
1351
1351
|
#### Defined in
|
|
1352
1352
|
|
|
1353
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1353
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/inBrowser.ts#L4)
|
|
1354
1354
|
|
|
1355
1355
|
___
|
|
1356
1356
|
|
|
@@ -1372,7 +1372,7 @@ ___
|
|
|
1372
1372
|
|
|
1373
1373
|
#### Defined in
|
|
1374
1374
|
|
|
1375
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1375
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/insertLink.ts#L4)
|
|
1376
1376
|
|
|
1377
1377
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1378
1378
|
|
|
@@ -1389,7 +1389,7 @@ ___
|
|
|
1389
1389
|
|
|
1390
1390
|
#### Defined in
|
|
1391
1391
|
|
|
1392
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1392
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/insertLink.ts#L5)
|
|
1393
1393
|
|
|
1394
1394
|
___
|
|
1395
1395
|
|
|
@@ -1411,7 +1411,7 @@ ___
|
|
|
1411
1411
|
|
|
1412
1412
|
#### Defined in
|
|
1413
1413
|
|
|
1414
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1414
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/insertScript.ts#L4)
|
|
1415
1415
|
|
|
1416
1416
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1417
1417
|
|
|
@@ -1428,7 +1428,7 @@ ___
|
|
|
1428
1428
|
|
|
1429
1429
|
#### Defined in
|
|
1430
1430
|
|
|
1431
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1431
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/insertScript.ts#L5)
|
|
1432
1432
|
|
|
1433
1433
|
___
|
|
1434
1434
|
|
|
@@ -1450,7 +1450,7 @@ ___
|
|
|
1450
1450
|
|
|
1451
1451
|
#### Defined in
|
|
1452
1452
|
|
|
1453
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1453
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/insertStyle.ts#L4)
|
|
1454
1454
|
|
|
1455
1455
|
___
|
|
1456
1456
|
|
|
@@ -1479,7 +1479,7 @@ isAmount('1.123') => false
|
|
|
1479
1479
|
|
|
1480
1480
|
#### Defined in
|
|
1481
1481
|
|
|
1482
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1482
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/69a123e/src/isAmount.ts#L11)
|
|
1483
1483
|
|
|
1484
1484
|
___
|
|
1485
1485
|
|
|
@@ -1495,7 +1495,7 @@ ___
|
|
|
1495
1495
|
|
|
1496
1496
|
#### Defined in
|
|
1497
1497
|
|
|
1498
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1498
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isAndroid.ts#L4)
|
|
1499
1499
|
|
|
1500
1500
|
___
|
|
1501
1501
|
|
|
@@ -1519,7 +1519,7 @@ val is any[]
|
|
|
1519
1519
|
|
|
1520
1520
|
#### Defined in
|
|
1521
1521
|
|
|
1522
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1522
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/isArray.ts#L6)
|
|
1523
1523
|
|
|
1524
1524
|
___
|
|
1525
1525
|
|
|
@@ -1541,7 +1541,7 @@ val is boolean
|
|
|
1541
1541
|
|
|
1542
1542
|
#### Defined in
|
|
1543
1543
|
|
|
1544
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1544
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isBoolean.ts#L5)
|
|
1545
1545
|
|
|
1546
1546
|
___
|
|
1547
1547
|
|
|
@@ -1563,7 +1563,7 @@ ___
|
|
|
1563
1563
|
|
|
1564
1564
|
#### Defined in
|
|
1565
1565
|
|
|
1566
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1566
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isChinese.ts#L4)
|
|
1567
1567
|
|
|
1568
1568
|
___
|
|
1569
1569
|
|
|
@@ -1585,7 +1585,7 @@ val is Date
|
|
|
1585
1585
|
|
|
1586
1586
|
#### Defined in
|
|
1587
1587
|
|
|
1588
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1588
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isDate.ts#L4)
|
|
1589
1589
|
|
|
1590
1590
|
___
|
|
1591
1591
|
|
|
@@ -1607,7 +1607,7 @@ ___
|
|
|
1607
1607
|
|
|
1608
1608
|
#### Defined in
|
|
1609
1609
|
|
|
1610
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1610
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isEmail.ts#L4)
|
|
1611
1611
|
|
|
1612
1612
|
___
|
|
1613
1613
|
|
|
@@ -1629,7 +1629,7 @@ ___
|
|
|
1629
1629
|
|
|
1630
1630
|
#### Defined in
|
|
1631
1631
|
|
|
1632
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1632
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/isEmpty.ts#L6)
|
|
1633
1633
|
|
|
1634
1634
|
___
|
|
1635
1635
|
|
|
@@ -1651,7 +1651,7 @@ ___
|
|
|
1651
1651
|
|
|
1652
1652
|
#### Defined in
|
|
1653
1653
|
|
|
1654
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1654
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/isEmptyArray.ts#L6)
|
|
1655
1655
|
|
|
1656
1656
|
___
|
|
1657
1657
|
|
|
@@ -1673,7 +1673,7 @@ ___
|
|
|
1673
1673
|
|
|
1674
1674
|
#### Defined in
|
|
1675
1675
|
|
|
1676
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
1676
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isEmptyObject.ts#L5)
|
|
1677
1677
|
|
|
1678
1678
|
___
|
|
1679
1679
|
|
|
@@ -1695,7 +1695,7 @@ val is Error
|
|
|
1695
1695
|
|
|
1696
1696
|
#### Defined in
|
|
1697
1697
|
|
|
1698
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
1698
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isError.ts#L4)
|
|
1699
1699
|
|
|
1700
1700
|
___
|
|
1701
1701
|
|
|
@@ -1717,7 +1717,7 @@ val is Function
|
|
|
1717
1717
|
|
|
1718
1718
|
#### Defined in
|
|
1719
1719
|
|
|
1720
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
1720
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isFunction.ts#L4)
|
|
1721
1721
|
|
|
1722
1722
|
___
|
|
1723
1723
|
|
|
@@ -1735,7 +1735,7 @@ ___
|
|
|
1735
1735
|
|
|
1736
1736
|
#### Defined in
|
|
1737
1737
|
|
|
1738
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
1738
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/isIE.ts#L6)
|
|
1739
1739
|
|
|
1740
1740
|
___
|
|
1741
1741
|
|
|
@@ -1751,7 +1751,7 @@ ___
|
|
|
1751
1751
|
|
|
1752
1752
|
#### Defined in
|
|
1753
1753
|
|
|
1754
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
1754
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isIOS.ts#L4)
|
|
1755
1755
|
|
|
1756
1756
|
___
|
|
1757
1757
|
|
|
@@ -1773,7 +1773,7 @@ ___
|
|
|
1773
1773
|
|
|
1774
1774
|
#### Defined in
|
|
1775
1775
|
|
|
1776
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
1776
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isIdCard.ts#L4)
|
|
1777
1777
|
|
|
1778
1778
|
___
|
|
1779
1779
|
|
|
@@ -1795,7 +1795,7 @@ ___
|
|
|
1795
1795
|
|
|
1796
1796
|
#### Defined in
|
|
1797
1797
|
|
|
1798
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
1798
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/isJSONString.ts#L7)
|
|
1799
1799
|
|
|
1800
1800
|
___
|
|
1801
1801
|
|
|
@@ -1817,7 +1817,7 @@ ___
|
|
|
1817
1817
|
|
|
1818
1818
|
#### Defined in
|
|
1819
1819
|
|
|
1820
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
1820
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isLan.ts#L5)
|
|
1821
1821
|
|
|
1822
1822
|
___
|
|
1823
1823
|
|
|
@@ -1839,7 +1839,7 @@ ___
|
|
|
1839
1839
|
|
|
1840
1840
|
#### Defined in
|
|
1841
1841
|
|
|
1842
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
1842
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isLicenseCode.ts#L5)
|
|
1843
1843
|
|
|
1844
1844
|
___
|
|
1845
1845
|
|
|
@@ -1855,7 +1855,7 @@ ___
|
|
|
1855
1855
|
|
|
1856
1856
|
#### Defined in
|
|
1857
1857
|
|
|
1858
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
1858
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isMobile.ts#L4)
|
|
1859
1859
|
|
|
1860
1860
|
___
|
|
1861
1861
|
|
|
@@ -1878,7 +1878,7 @@ ___
|
|
|
1878
1878
|
|
|
1879
1879
|
#### Defined in
|
|
1880
1880
|
|
|
1881
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
1881
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/isNativeFunction.ts#L7)
|
|
1882
1882
|
|
|
1883
1883
|
___
|
|
1884
1884
|
|
|
@@ -1900,7 +1900,7 @@ val is null
|
|
|
1900
1900
|
|
|
1901
1901
|
#### Defined in
|
|
1902
1902
|
|
|
1903
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
1903
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isNull.ts#L4)
|
|
1904
1904
|
|
|
1905
1905
|
___
|
|
1906
1906
|
|
|
@@ -1922,7 +1922,7 @@ val is number
|
|
|
1922
1922
|
|
|
1923
1923
|
#### Defined in
|
|
1924
1924
|
|
|
1925
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
1925
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isNumber.ts#L5)
|
|
1926
1926
|
|
|
1927
1927
|
___
|
|
1928
1928
|
|
|
@@ -1944,7 +1944,7 @@ val is Record<string, any\>
|
|
|
1944
1944
|
|
|
1945
1945
|
#### Defined in
|
|
1946
1946
|
|
|
1947
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
1947
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isObject.ts#L4)
|
|
1948
1948
|
|
|
1949
1949
|
___
|
|
1950
1950
|
|
|
@@ -1966,7 +1966,7 @@ ___
|
|
|
1966
1966
|
|
|
1967
1967
|
#### Defined in
|
|
1968
1968
|
|
|
1969
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
1969
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isPhone.ts#L4)
|
|
1970
1970
|
|
|
1971
1971
|
___
|
|
1972
1972
|
|
|
@@ -1994,7 +1994,7 @@ val is Promise<T\>
|
|
|
1994
1994
|
|
|
1995
1995
|
#### Defined in
|
|
1996
1996
|
|
|
1997
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
1997
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isPromise.ts#L4)
|
|
1998
1998
|
|
|
1999
1999
|
___
|
|
2000
2000
|
|
|
@@ -2016,7 +2016,7 @@ val is RegExp
|
|
|
2016
2016
|
|
|
2017
2017
|
#### Defined in
|
|
2018
2018
|
|
|
2019
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2019
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isRegExp.ts#L4)
|
|
2020
2020
|
|
|
2021
2021
|
___
|
|
2022
2022
|
|
|
@@ -2038,7 +2038,7 @@ val is string
|
|
|
2038
2038
|
|
|
2039
2039
|
#### Defined in
|
|
2040
2040
|
|
|
2041
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2041
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isString.ts#L4)
|
|
2042
2042
|
|
|
2043
2043
|
___
|
|
2044
2044
|
|
|
@@ -2060,7 +2060,7 @@ val is undefined
|
|
|
2060
2060
|
|
|
2061
2061
|
#### Defined in
|
|
2062
2062
|
|
|
2063
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2063
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isUndefined.ts#L4)
|
|
2064
2064
|
|
|
2065
2065
|
___
|
|
2066
2066
|
|
|
@@ -2098,7 +2098,7 @@ ___
|
|
|
2098
2098
|
|
|
2099
2099
|
#### Defined in
|
|
2100
2100
|
|
|
2101
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2101
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/isWeChat.ts#L4)
|
|
2102
2102
|
|
|
2103
2103
|
___
|
|
2104
2104
|
|
|
@@ -2115,7 +2115,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2115
2115
|
|
|
2116
2116
|
#### Defined in
|
|
2117
2117
|
|
|
2118
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2118
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isWeChatMiniProgram.ts#L5)
|
|
2119
2119
|
|
|
2120
2120
|
___
|
|
2121
2121
|
|
|
@@ -2135,7 +2135,7 @@ ___
|
|
|
2135
2135
|
|
|
2136
2136
|
#### Defined in
|
|
2137
2137
|
|
|
2138
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2138
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/69a123e/src/isWeChat.ts#L12)
|
|
2139
2139
|
|
|
2140
2140
|
___
|
|
2141
2141
|
|
|
@@ -2157,7 +2157,7 @@ val is Window
|
|
|
2157
2157
|
|
|
2158
2158
|
#### Defined in
|
|
2159
2159
|
|
|
2160
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2160
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/isWindow.ts#L5)
|
|
2161
2161
|
|
|
2162
2162
|
___
|
|
2163
2163
|
|
|
@@ -2180,7 +2180,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2180
2180
|
|
|
2181
2181
|
#### Defined in
|
|
2182
2182
|
|
|
2183
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2183
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/kebabCase.ts#L5)
|
|
2184
2184
|
|
|
2185
2185
|
___
|
|
2186
2186
|
|
|
@@ -2209,7 +2209,7 @@ list 生成器,快速生成数据
|
|
|
2209
2209
|
|
|
2210
2210
|
#### Defined in
|
|
2211
2211
|
|
|
2212
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2212
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/listGenerator.ts#L5)
|
|
2213
2213
|
|
|
2214
2214
|
___
|
|
2215
2215
|
|
|
@@ -2234,7 +2234,7 @@ ___
|
|
|
2234
2234
|
|
|
2235
2235
|
#### Defined in
|
|
2236
2236
|
|
|
2237
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2237
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/69a123e/src/mousewheel.ts#L22)
|
|
2238
2238
|
|
|
2239
2239
|
___
|
|
2240
2240
|
|
|
@@ -2250,7 +2250,7 @@ ___
|
|
|
2250
2250
|
|
|
2251
2251
|
#### Defined in
|
|
2252
2252
|
|
|
2253
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2253
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/nf.ts#L4)
|
|
2254
2254
|
|
|
2255
2255
|
___
|
|
2256
2256
|
|
|
@@ -2272,7 +2272,7 @@ ___
|
|
|
2272
2272
|
|
|
2273
2273
|
#### Defined in
|
|
2274
2274
|
|
|
2275
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2275
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/normalizePath.ts#L4)
|
|
2276
2276
|
|
|
2277
2277
|
___
|
|
2278
2278
|
|
|
@@ -2302,7 +2302,7 @@ ___
|
|
|
2302
2302
|
|
|
2303
2303
|
#### Defined in
|
|
2304
2304
|
|
|
2305
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2305
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/omit.ts#L4)
|
|
2306
2306
|
|
|
2307
2307
|
___
|
|
2308
2308
|
|
|
@@ -2326,7 +2326,7 @@ ___
|
|
|
2326
2326
|
|
|
2327
2327
|
#### Defined in
|
|
2328
2328
|
|
|
2329
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2329
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/padding.ts#L7)
|
|
2330
2330
|
|
|
2331
2331
|
___
|
|
2332
2332
|
|
|
@@ -2348,7 +2348,7 @@ ___
|
|
|
2348
2348
|
|
|
2349
2349
|
#### Defined in
|
|
2350
2350
|
|
|
2351
|
-
[parseDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2351
|
+
[parseDate.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/parseDate.ts#L4)
|
|
2352
2352
|
|
|
2353
2353
|
___
|
|
2354
2354
|
|
|
@@ -2371,7 +2371,7 @@ ___
|
|
|
2371
2371
|
|
|
2372
2372
|
#### Defined in
|
|
2373
2373
|
|
|
2374
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2374
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/parseError.ts#L8)
|
|
2375
2375
|
|
|
2376
2376
|
___
|
|
2377
2377
|
|
|
@@ -2401,7 +2401,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2401
2401
|
|
|
2402
2402
|
#### Defined in
|
|
2403
2403
|
|
|
2404
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2404
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/parseObject.ts#L5)
|
|
2405
2405
|
|
|
2406
2406
|
___
|
|
2407
2407
|
|
|
@@ -2430,7 +2430,7 @@ ___
|
|
|
2430
2430
|
|
|
2431
2431
|
#### Defined in
|
|
2432
2432
|
|
|
2433
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2433
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/parsePath.ts#L6)
|
|
2434
2434
|
|
|
2435
2435
|
___
|
|
2436
2436
|
|
|
@@ -2453,7 +2453,7 @@ ___
|
|
|
2453
2453
|
|
|
2454
2454
|
#### Defined in
|
|
2455
2455
|
|
|
2456
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2456
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/parseQuery.ts#L8)
|
|
2457
2457
|
|
|
2458
2458
|
___
|
|
2459
2459
|
|
|
@@ -2483,7 +2483,7 @@ ___
|
|
|
2483
2483
|
|
|
2484
2484
|
#### Defined in
|
|
2485
2485
|
|
|
2486
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2486
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/parseQueryString.ts#L6)
|
|
2487
2487
|
|
|
2488
2488
|
___
|
|
2489
2489
|
|
|
@@ -2506,7 +2506,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2506
2506
|
|
|
2507
2507
|
#### Defined in
|
|
2508
2508
|
|
|
2509
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2509
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/pascalCase.ts#L8)
|
|
2510
2510
|
|
|
2511
2511
|
___
|
|
2512
2512
|
|
|
@@ -2536,7 +2536,7 @@ ___
|
|
|
2536
2536
|
|
|
2537
2537
|
#### Defined in
|
|
2538
2538
|
|
|
2539
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
2539
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/pick.ts#L4)
|
|
2540
2540
|
|
|
2541
2541
|
___
|
|
2542
2542
|
|
|
@@ -2559,7 +2559,7 @@ ___
|
|
|
2559
2559
|
|
|
2560
2560
|
#### Defined in
|
|
2561
2561
|
|
|
2562
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2562
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/replaceCrlf.ts#L4)
|
|
2563
2563
|
|
|
2564
2564
|
___
|
|
2565
2565
|
|
|
@@ -2583,7 +2583,7 @@ ___
|
|
|
2583
2583
|
|
|
2584
2584
|
#### Defined in
|
|
2585
2585
|
|
|
2586
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
2586
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/requestFullScreen.ts#L6)
|
|
2587
2587
|
|
|
2588
2588
|
___
|
|
2589
2589
|
|
|
@@ -2609,7 +2609,7 @@ reserve(0, '--') => 0
|
|
|
2609
2609
|
|
|
2610
2610
|
#### Defined in
|
|
2611
2611
|
|
|
2612
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
2612
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/69a123e/src/reserve.ts#L8)
|
|
2613
2613
|
|
|
2614
2614
|
___
|
|
2615
2615
|
|
|
@@ -2633,7 +2633,7 @@ ___
|
|
|
2633
2633
|
|
|
2634
2634
|
#### Defined in
|
|
2635
2635
|
|
|
2636
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
2636
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/rgbToHex.ts#L4)
|
|
2637
2637
|
|
|
2638
2638
|
___
|
|
2639
2639
|
|
|
@@ -2656,7 +2656,7 @@ ___
|
|
|
2656
2656
|
|
|
2657
2657
|
#### Defined in
|
|
2658
2658
|
|
|
2659
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
2659
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/round.ts#L6)
|
|
2660
2660
|
|
|
2661
2661
|
___
|
|
2662
2662
|
|
|
@@ -2672,7 +2672,7 @@ ___
|
|
|
2672
2672
|
|
|
2673
2673
|
#### Defined in
|
|
2674
2674
|
|
|
2675
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
2675
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/scrollToTop.ts#L4)
|
|
2676
2676
|
|
|
2677
2677
|
___
|
|
2678
2678
|
|
|
@@ -2695,7 +2695,7 @@ ___
|
|
|
2695
2695
|
|
|
2696
2696
|
#### Defined in
|
|
2697
2697
|
|
|
2698
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
2698
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/sleep.ts#L6)
|
|
2699
2699
|
|
|
2700
2700
|
___
|
|
2701
2701
|
|
|
@@ -2724,7 +2724,7 @@ ___
|
|
|
2724
2724
|
|
|
2725
2725
|
#### Defined in
|
|
2726
2726
|
|
|
2727
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
2727
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/splitArray.ts#L4)
|
|
2728
2728
|
|
|
2729
2729
|
___
|
|
2730
2730
|
|
|
@@ -2747,7 +2747,7 @@ ___
|
|
|
2747
2747
|
|
|
2748
2748
|
#### Defined in
|
|
2749
2749
|
|
|
2750
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
2750
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/stringTrim.ts#L6)
|
|
2751
2751
|
|
|
2752
2752
|
___
|
|
2753
2753
|
|
|
@@ -2769,7 +2769,7 @@ ___
|
|
|
2769
2769
|
|
|
2770
2770
|
#### Defined in
|
|
2771
2771
|
|
|
2772
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
2772
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/69a123e/src/stringifyQuery.ts#L7)
|
|
2773
2773
|
|
|
2774
2774
|
___
|
|
2775
2775
|
|
|
@@ -2793,7 +2793,7 @@ ___
|
|
|
2793
2793
|
|
|
2794
2794
|
#### Defined in
|
|
2795
2795
|
|
|
2796
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2796
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/stringifyQueryString.ts#L6)
|
|
2797
2797
|
|
|
2798
2798
|
___
|
|
2799
2799
|
|
|
@@ -2837,7 +2837,7 @@ ___
|
|
|
2837
2837
|
|
|
2838
2838
|
#### Defined in
|
|
2839
2839
|
|
|
2840
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
2840
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/69a123e/src/throttle.ts#L48)
|
|
2841
2841
|
|
|
2842
2842
|
___
|
|
2843
2843
|
|
|
@@ -2880,7 +2880,7 @@ ___
|
|
|
2880
2880
|
|
|
2881
2881
|
#### Defined in
|
|
2882
2882
|
|
|
2883
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
2883
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/69a123e/src/throttle.ts#L5)
|
|
2884
2884
|
|
|
2885
2885
|
___
|
|
2886
2886
|
|
|
@@ -2923,7 +2923,7 @@ ___
|
|
|
2923
2923
|
|
|
2924
2924
|
#### Defined in
|
|
2925
2925
|
|
|
2926
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
2926
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/69a123e/src/throttle.ts#L25)
|
|
2927
2927
|
|
|
2928
2928
|
___
|
|
2929
2929
|
|
|
@@ -2945,7 +2945,7 @@ ___
|
|
|
2945
2945
|
|
|
2946
2946
|
#### Defined in
|
|
2947
2947
|
|
|
2948
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
2948
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/toCDB.ts#L4)
|
|
2949
2949
|
|
|
2950
2950
|
___
|
|
2951
2951
|
|
|
@@ -2967,7 +2967,7 @@ ___
|
|
|
2967
2967
|
|
|
2968
2968
|
#### Defined in
|
|
2969
2969
|
|
|
2970
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
2970
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/toDBC.ts#L4)
|
|
2971
2971
|
|
|
2972
2972
|
___
|
|
2973
2973
|
|
|
@@ -2991,7 +2991,7 @@ ___
|
|
|
2991
2991
|
|
|
2992
2992
|
#### Defined in
|
|
2993
2993
|
|
|
2994
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
2994
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/69a123e/src/typeOf.ts#L6)
|
|
2995
2995
|
|
|
2996
2996
|
___
|
|
2997
2997
|
|
|
@@ -3020,4 +3020,4 @@ ___
|
|
|
3020
3020
|
|
|
3021
3021
|
#### Defined in
|
|
3022
3022
|
|
|
3023
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3023
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/69a123e/src/withPreventConsecutiveClicks.ts#L4)
|
package/es/formatMessage.js
CHANGED
|
@@ -7,7 +7,7 @@ import { parsePath } from './parsePath';
|
|
|
7
7
|
* formatMessage({ a: '123', b: { ba: '456' } }, ['a']) => '123'
|
|
8
8
|
* formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
9
9
|
*/
|
|
10
|
-
export function formatMessage(message, keys = ['message', 'msg', 'errorMsg']) {
|
|
10
|
+
export function formatMessage(message, keys = ['message', 'msg', 'errMsg', 'errorMsg']) {
|
|
11
11
|
if (isNull(message) || isUndefined(message)) {
|
|
12
12
|
return '';
|
|
13
13
|
}
|
package/lib/formatMessage.js
CHANGED
|
@@ -10,7 +10,7 @@ const parsePath_1 = require("./parsePath");
|
|
|
10
10
|
* formatMessage({ a: '123', b: { ba: '456' } }, ['a']) => '123'
|
|
11
11
|
* formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
12
12
|
*/
|
|
13
|
-
function formatMessage(message, keys = ['message', 'msg', 'errorMsg']) {
|
|
13
|
+
function formatMessage(message, keys = ['message', 'msg', 'errMsg', 'errorMsg']) {
|
|
14
14
|
if ((0, isNull_1.isNull)(message) || (0, isUndefined_1.isUndefined)(message)) {
|
|
15
15
|
return '';
|
|
16
16
|
}
|