@bigbinary/neeto-commons-frontend 2.0.65 → 2.0.67
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/cypress-utils.d.ts +15 -0
- package/initializers.cjs.js +124 -156
- package/initializers.cjs.js.map +1 -1
- package/initializers.js +124 -156
- package/initializers.js.map +1 -1
- package/package.json +1 -1
- package/react-utils.d.ts +419 -154
package/initializers.cjs.js
CHANGED
|
@@ -114,7 +114,7 @@ var HEADERS_KEYS = (cov_1ugerkjpgx().s[0]++, {
|
|
|
114
114
|
|
|
115
115
|
function cov_p2quoilal() {
|
|
116
116
|
var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/initializers/axios.js";
|
|
117
|
-
var hash = "
|
|
117
|
+
var hash = "9d9e591d2c32ca53f567eba87588581d60f00361";
|
|
118
118
|
var global = new Function("return this")();
|
|
119
119
|
var gcv = "__coverage__";
|
|
120
120
|
var coverageData = {
|
|
@@ -757,7 +757,7 @@ function cov_p2quoilal() {
|
|
|
757
757
|
},
|
|
758
758
|
end: {
|
|
759
759
|
line: 122,
|
|
760
|
-
column:
|
|
760
|
+
column: 70
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
"64": {
|
|
@@ -771,26 +771,6 @@ function cov_p2quoilal() {
|
|
|
771
771
|
}
|
|
772
772
|
},
|
|
773
773
|
"65": {
|
|
774
|
-
start: {
|
|
775
|
-
line: 125,
|
|
776
|
-
column: 4
|
|
777
|
-
},
|
|
778
|
-
end: {
|
|
779
|
-
line: 125,
|
|
780
|
-
column: 70
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
"66": {
|
|
784
|
-
start: {
|
|
785
|
-
line: 126,
|
|
786
|
-
column: 9
|
|
787
|
-
},
|
|
788
|
-
end: {
|
|
789
|
-
line: 129,
|
|
790
|
-
column: 3
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
"67": {
|
|
794
774
|
start: {
|
|
795
775
|
line: 128,
|
|
796
776
|
column: 4
|
|
@@ -800,7 +780,7 @@ function cov_p2quoilal() {
|
|
|
800
780
|
column: 24
|
|
801
781
|
}
|
|
802
782
|
},
|
|
803
|
-
"
|
|
783
|
+
"66": {
|
|
804
784
|
start: {
|
|
805
785
|
line: 131,
|
|
806
786
|
column: 2
|
|
@@ -810,7 +790,7 @@ function cov_p2quoilal() {
|
|
|
810
790
|
column: 15
|
|
811
791
|
}
|
|
812
792
|
},
|
|
813
|
-
"
|
|
793
|
+
"67": {
|
|
814
794
|
start: {
|
|
815
795
|
line: 134,
|
|
816
796
|
column: 31
|
|
@@ -820,7 +800,7 @@ function cov_p2quoilal() {
|
|
|
820
800
|
column: 1
|
|
821
801
|
}
|
|
822
802
|
},
|
|
823
|
-
"
|
|
803
|
+
"68": {
|
|
824
804
|
start: {
|
|
825
805
|
line: 136,
|
|
826
806
|
column: 4
|
|
@@ -830,7 +810,7 @@ function cov_p2quoilal() {
|
|
|
830
810
|
column: 22
|
|
831
811
|
}
|
|
832
812
|
},
|
|
833
|
-
"
|
|
813
|
+
"69": {
|
|
834
814
|
start: {
|
|
835
815
|
line: 138,
|
|
836
816
|
column: 17
|
|
@@ -840,7 +820,7 @@ function cov_p2quoilal() {
|
|
|
840
820
|
column: 39
|
|
841
821
|
}
|
|
842
822
|
},
|
|
843
|
-
"
|
|
823
|
+
"70": {
|
|
844
824
|
start: {
|
|
845
825
|
line: 139,
|
|
846
826
|
column: 2
|
|
@@ -850,7 +830,7 @@ function cov_p2quoilal() {
|
|
|
850
830
|
column: 3
|
|
851
831
|
}
|
|
852
832
|
},
|
|
853
|
-
"
|
|
833
|
+
"71": {
|
|
854
834
|
start: {
|
|
855
835
|
line: 143,
|
|
856
836
|
column: 4
|
|
@@ -860,7 +840,7 @@ function cov_p2quoilal() {
|
|
|
860
840
|
column: 79
|
|
861
841
|
}
|
|
862
842
|
},
|
|
863
|
-
"
|
|
843
|
+
"72": {
|
|
864
844
|
start: {
|
|
865
845
|
line: 146,
|
|
866
846
|
column: 2
|
|
@@ -870,7 +850,7 @@ function cov_p2quoilal() {
|
|
|
870
850
|
column: 15
|
|
871
851
|
}
|
|
872
852
|
},
|
|
873
|
-
"
|
|
853
|
+
"73": {
|
|
874
854
|
start: {
|
|
875
855
|
line: 149,
|
|
876
856
|
column: 34
|
|
@@ -880,7 +860,7 @@ function cov_p2quoilal() {
|
|
|
880
860
|
column: 1
|
|
881
861
|
}
|
|
882
862
|
},
|
|
883
|
-
"
|
|
863
|
+
"74": {
|
|
884
864
|
start: {
|
|
885
865
|
line: 150,
|
|
886
866
|
column: 23
|
|
@@ -890,7 +870,7 @@ function cov_p2quoilal() {
|
|
|
890
870
|
column: 25
|
|
891
871
|
}
|
|
892
872
|
},
|
|
893
|
-
"
|
|
873
|
+
"75": {
|
|
894
874
|
start: {
|
|
895
875
|
line: 151,
|
|
896
876
|
column: 2
|
|
@@ -900,7 +880,7 @@ function cov_p2quoilal() {
|
|
|
900
880
|
column: 77
|
|
901
881
|
}
|
|
902
882
|
},
|
|
903
|
-
"
|
|
883
|
+
"76": {
|
|
904
884
|
start: {
|
|
905
885
|
line: 151,
|
|
906
886
|
column: 28
|
|
@@ -910,7 +890,7 @@ function cov_p2quoilal() {
|
|
|
910
890
|
column: 77
|
|
911
891
|
}
|
|
912
892
|
},
|
|
913
|
-
"
|
|
893
|
+
"77": {
|
|
914
894
|
start: {
|
|
915
895
|
line: 153,
|
|
916
896
|
column: 2
|
|
@@ -920,7 +900,7 @@ function cov_p2quoilal() {
|
|
|
920
900
|
column: 73
|
|
921
901
|
}
|
|
922
902
|
},
|
|
923
|
-
"
|
|
903
|
+
"78": {
|
|
924
904
|
start: {
|
|
925
905
|
line: 153,
|
|
926
906
|
column: 31
|
|
@@ -930,7 +910,7 @@ function cov_p2quoilal() {
|
|
|
930
910
|
column: 73
|
|
931
911
|
}
|
|
932
912
|
},
|
|
933
|
-
"
|
|
913
|
+
"79": {
|
|
934
914
|
start: {
|
|
935
915
|
line: 155,
|
|
936
916
|
column: 2
|
|
@@ -940,7 +920,7 @@ function cov_p2quoilal() {
|
|
|
940
920
|
column: 77
|
|
941
921
|
}
|
|
942
922
|
},
|
|
943
|
-
"
|
|
923
|
+
"80": {
|
|
944
924
|
start: {
|
|
945
925
|
line: 155,
|
|
946
926
|
column: 26
|
|
@@ -950,7 +930,7 @@ function cov_p2quoilal() {
|
|
|
950
930
|
column: 77
|
|
951
931
|
}
|
|
952
932
|
},
|
|
953
|
-
"
|
|
933
|
+
"81": {
|
|
954
934
|
start: {
|
|
955
935
|
line: 157,
|
|
956
936
|
column: 2
|
|
@@ -960,7 +940,7 @@ function cov_p2quoilal() {
|
|
|
960
940
|
column: 60
|
|
961
941
|
}
|
|
962
942
|
},
|
|
963
|
-
"
|
|
943
|
+
"82": {
|
|
964
944
|
start: {
|
|
965
945
|
line: 157,
|
|
966
946
|
column: 25
|
|
@@ -970,7 +950,7 @@ function cov_p2quoilal() {
|
|
|
970
950
|
column: 60
|
|
971
951
|
}
|
|
972
952
|
},
|
|
973
|
-
"
|
|
953
|
+
"83": {
|
|
974
954
|
start: {
|
|
975
955
|
line: 159,
|
|
976
956
|
column: 2
|
|
@@ -980,7 +960,7 @@ function cov_p2quoilal() {
|
|
|
980
960
|
column: 50
|
|
981
961
|
}
|
|
982
962
|
},
|
|
983
|
-
"
|
|
963
|
+
"84": {
|
|
984
964
|
start: {
|
|
985
965
|
line: 161,
|
|
986
966
|
column: 2
|
|
@@ -990,7 +970,7 @@ function cov_p2quoilal() {
|
|
|
990
970
|
column: 34
|
|
991
971
|
}
|
|
992
972
|
},
|
|
993
|
-
"
|
|
973
|
+
"85": {
|
|
994
974
|
start: {
|
|
995
975
|
line: 164,
|
|
996
976
|
column: 41
|
|
@@ -1000,7 +980,7 @@ function cov_p2quoilal() {
|
|
|
1000
980
|
column: 1
|
|
1001
981
|
}
|
|
1002
982
|
},
|
|
1003
|
-
"
|
|
983
|
+
"86": {
|
|
1004
984
|
start: {
|
|
1005
985
|
line: 165,
|
|
1006
986
|
column: 2
|
|
@@ -1010,7 +990,7 @@ function cov_p2quoilal() {
|
|
|
1010
990
|
column: 51
|
|
1011
991
|
}
|
|
1012
992
|
},
|
|
1013
|
-
"
|
|
993
|
+
"87": {
|
|
1014
994
|
start: {
|
|
1015
995
|
line: 165,
|
|
1016
996
|
column: 36
|
|
@@ -1020,7 +1000,7 @@ function cov_p2quoilal() {
|
|
|
1020
1000
|
column: 51
|
|
1021
1001
|
}
|
|
1022
1002
|
},
|
|
1023
|
-
"
|
|
1003
|
+
"88": {
|
|
1024
1004
|
start: {
|
|
1025
1005
|
line: 167,
|
|
1026
1006
|
column: 2
|
|
@@ -1030,7 +1010,7 @@ function cov_p2quoilal() {
|
|
|
1030
1010
|
column: 69
|
|
1031
1011
|
}
|
|
1032
1012
|
},
|
|
1033
|
-
"
|
|
1013
|
+
"89": {
|
|
1034
1014
|
start: {
|
|
1035
1015
|
line: 167,
|
|
1036
1016
|
column: 54
|
|
@@ -1040,7 +1020,7 @@ function cov_p2quoilal() {
|
|
|
1040
1020
|
column: 69
|
|
1041
1021
|
}
|
|
1042
1022
|
},
|
|
1043
|
-
"
|
|
1023
|
+
"90": {
|
|
1044
1024
|
start: {
|
|
1045
1025
|
line: 169,
|
|
1046
1026
|
column: 2
|
|
@@ -1050,7 +1030,7 @@ function cov_p2quoilal() {
|
|
|
1050
1030
|
column: 14
|
|
1051
1031
|
}
|
|
1052
1032
|
},
|
|
1053
|
-
"
|
|
1033
|
+
"91": {
|
|
1054
1034
|
start: {
|
|
1055
1035
|
line: 174,
|
|
1056
1036
|
column: 33
|
|
@@ -1060,7 +1040,7 @@ function cov_p2quoilal() {
|
|
|
1060
1040
|
column: 1
|
|
1061
1041
|
}
|
|
1062
1042
|
},
|
|
1063
|
-
"
|
|
1043
|
+
"92": {
|
|
1064
1044
|
start: {
|
|
1065
1045
|
line: 175,
|
|
1066
1046
|
column: 42
|
|
@@ -1070,7 +1050,7 @@ function cov_p2quoilal() {
|
|
|
1070
1050
|
column: 49
|
|
1071
1051
|
}
|
|
1072
1052
|
},
|
|
1073
|
-
"
|
|
1053
|
+
"93": {
|
|
1074
1054
|
start: {
|
|
1075
1055
|
line: 177,
|
|
1076
1056
|
column: 2
|
|
@@ -1080,7 +1060,7 @@ function cov_p2quoilal() {
|
|
|
1080
1060
|
column: 44
|
|
1081
1061
|
}
|
|
1082
1062
|
},
|
|
1083
|
-
"
|
|
1063
|
+
"94": {
|
|
1084
1064
|
start: {
|
|
1085
1065
|
line: 177,
|
|
1086
1066
|
column: 29
|
|
@@ -1090,7 +1070,7 @@ function cov_p2quoilal() {
|
|
|
1090
1070
|
column: 44
|
|
1091
1071
|
}
|
|
1092
1072
|
},
|
|
1093
|
-
"
|
|
1073
|
+
"95": {
|
|
1094
1074
|
start: {
|
|
1095
1075
|
line: 179,
|
|
1096
1076
|
column: 2
|
|
@@ -1100,7 +1080,7 @@ function cov_p2quoilal() {
|
|
|
1100
1080
|
column: 4
|
|
1101
1081
|
}
|
|
1102
1082
|
},
|
|
1103
|
-
"
|
|
1083
|
+
"96": {
|
|
1104
1084
|
start: {
|
|
1105
1085
|
line: 185,
|
|
1106
1086
|
column: 31
|
|
@@ -1110,7 +1090,7 @@ function cov_p2quoilal() {
|
|
|
1110
1090
|
column: 1
|
|
1111
1091
|
}
|
|
1112
1092
|
},
|
|
1113
|
-
"
|
|
1093
|
+
"97": {
|
|
1114
1094
|
start: {
|
|
1115
1095
|
line: 186,
|
|
1116
1096
|
column: 2
|
|
@@ -1120,7 +1100,7 @@ function cov_p2quoilal() {
|
|
|
1120
1100
|
column: 3
|
|
1121
1101
|
}
|
|
1122
1102
|
},
|
|
1123
|
-
"
|
|
1103
|
+
"98": {
|
|
1124
1104
|
start: {
|
|
1125
1105
|
line: 187,
|
|
1126
1106
|
column: 4
|
|
@@ -1130,7 +1110,7 @@ function cov_p2quoilal() {
|
|
|
1130
1110
|
column: 69
|
|
1131
1111
|
}
|
|
1132
1112
|
},
|
|
1133
|
-
"
|
|
1113
|
+
"99": {
|
|
1134
1114
|
start: {
|
|
1135
1115
|
line: 190,
|
|
1136
1116
|
column: 2
|
|
@@ -1140,7 +1120,7 @@ function cov_p2quoilal() {
|
|
|
1140
1120
|
column: 3
|
|
1141
1121
|
}
|
|
1142
1122
|
},
|
|
1143
|
-
"
|
|
1123
|
+
"100": {
|
|
1144
1124
|
start: {
|
|
1145
1125
|
line: 191,
|
|
1146
1126
|
column: 4
|
|
@@ -1150,7 +1130,7 @@ function cov_p2quoilal() {
|
|
|
1150
1130
|
column: 61
|
|
1151
1131
|
}
|
|
1152
1132
|
},
|
|
1153
|
-
"
|
|
1133
|
+
"101": {
|
|
1154
1134
|
start: {
|
|
1155
1135
|
line: 195,
|
|
1156
1136
|
column: 32
|
|
@@ -1160,7 +1140,7 @@ function cov_p2quoilal() {
|
|
|
1160
1140
|
column: 1
|
|
1161
1141
|
}
|
|
1162
1142
|
},
|
|
1163
|
-
"
|
|
1143
|
+
"102": {
|
|
1164
1144
|
start: {
|
|
1165
1145
|
line: 196,
|
|
1166
1146
|
column: 2
|
|
@@ -1170,7 +1150,7 @@ function cov_p2quoilal() {
|
|
|
1170
1150
|
column: 4
|
|
1171
1151
|
}
|
|
1172
1152
|
},
|
|
1173
|
-
"
|
|
1153
|
+
"103": {
|
|
1174
1154
|
start: {
|
|
1175
1155
|
line: 202,
|
|
1176
1156
|
column: 27
|
|
@@ -1180,7 +1160,7 @@ function cov_p2quoilal() {
|
|
|
1180
1160
|
column: 1
|
|
1181
1161
|
}
|
|
1182
1162
|
},
|
|
1183
|
-
"
|
|
1163
|
+
"104": {
|
|
1184
1164
|
start: {
|
|
1185
1165
|
line: 203,
|
|
1186
1166
|
column: 2
|
|
@@ -1190,7 +1170,7 @@ function cov_p2quoilal() {
|
|
|
1190
1170
|
column: 70
|
|
1191
1171
|
}
|
|
1192
1172
|
},
|
|
1193
|
-
"
|
|
1173
|
+
"105": {
|
|
1194
1174
|
start: {
|
|
1195
1175
|
line: 203,
|
|
1196
1176
|
column: 32
|
|
@@ -1200,7 +1180,7 @@ function cov_p2quoilal() {
|
|
|
1200
1180
|
column: 70
|
|
1201
1181
|
}
|
|
1202
1182
|
},
|
|
1203
|
-
"
|
|
1183
|
+
"106": {
|
|
1204
1184
|
start: {
|
|
1205
1185
|
line: 205,
|
|
1206
1186
|
column: 2
|
|
@@ -1210,7 +1190,7 @@ function cov_p2quoilal() {
|
|
|
1210
1190
|
column: 73
|
|
1211
1191
|
}
|
|
1212
1192
|
},
|
|
1213
|
-
"
|
|
1193
|
+
"107": {
|
|
1214
1194
|
start: {
|
|
1215
1195
|
line: 205,
|
|
1216
1196
|
column: 33
|
|
@@ -1220,7 +1200,7 @@ function cov_p2quoilal() {
|
|
|
1220
1200
|
column: 73
|
|
1221
1201
|
}
|
|
1222
1202
|
},
|
|
1223
|
-
"
|
|
1203
|
+
"108": {
|
|
1224
1204
|
start: {
|
|
1225
1205
|
line: 209,
|
|
1226
1206
|
column: 2
|
|
@@ -1230,7 +1210,7 @@ function cov_p2quoilal() {
|
|
|
1230
1210
|
column: 51
|
|
1231
1211
|
}
|
|
1232
1212
|
},
|
|
1233
|
-
"
|
|
1213
|
+
"109": {
|
|
1234
1214
|
start: {
|
|
1235
1215
|
line: 209,
|
|
1236
1216
|
column: 22
|
|
@@ -1240,7 +1220,7 @@ function cov_p2quoilal() {
|
|
|
1240
1220
|
column: 51
|
|
1241
1221
|
}
|
|
1242
1222
|
},
|
|
1243
|
-
"
|
|
1223
|
+
"110": {
|
|
1244
1224
|
start: {
|
|
1245
1225
|
line: 211,
|
|
1246
1226
|
column: 2
|
|
@@ -1250,7 +1230,7 @@ function cov_p2quoilal() {
|
|
|
1250
1230
|
column: 43
|
|
1251
1231
|
}
|
|
1252
1232
|
},
|
|
1253
|
-
"
|
|
1233
|
+
"111": {
|
|
1254
1234
|
start: {
|
|
1255
1235
|
line: 211,
|
|
1256
1236
|
column: 26
|
|
@@ -1260,7 +1240,7 @@ function cov_p2quoilal() {
|
|
|
1260
1240
|
column: 43
|
|
1261
1241
|
}
|
|
1262
1242
|
},
|
|
1263
|
-
"
|
|
1243
|
+
"112": {
|
|
1264
1244
|
start: {
|
|
1265
1245
|
line: 213,
|
|
1266
1246
|
column: 2
|
|
@@ -1270,7 +1250,7 @@ function cov_p2quoilal() {
|
|
|
1270
1250
|
column: 76
|
|
1271
1251
|
}
|
|
1272
1252
|
},
|
|
1273
|
-
"
|
|
1253
|
+
"113": {
|
|
1274
1254
|
start: {
|
|
1275
1255
|
line: 213,
|
|
1276
1256
|
column: 37
|
|
@@ -2789,12 +2769,12 @@ function cov_p2quoilal() {
|
|
|
2789
2769
|
}
|
|
2790
2770
|
}, {
|
|
2791
2771
|
start: {
|
|
2792
|
-
line:
|
|
2793
|
-
column:
|
|
2772
|
+
line: undefined,
|
|
2773
|
+
column: undefined
|
|
2794
2774
|
},
|
|
2795
2775
|
end: {
|
|
2796
|
-
line:
|
|
2797
|
-
column:
|
|
2776
|
+
line: undefined,
|
|
2777
|
+
column: undefined
|
|
2798
2778
|
}
|
|
2799
2779
|
}],
|
|
2800
2780
|
line: 123
|
|
@@ -2802,35 +2782,35 @@ function cov_p2quoilal() {
|
|
|
2802
2782
|
"31": {
|
|
2803
2783
|
loc: {
|
|
2804
2784
|
start: {
|
|
2805
|
-
line:
|
|
2806
|
-
column:
|
|
2785
|
+
line: 124,
|
|
2786
|
+
column: 4
|
|
2807
2787
|
},
|
|
2808
2788
|
end: {
|
|
2809
|
-
line:
|
|
2810
|
-
column:
|
|
2789
|
+
line: 125,
|
|
2790
|
+
column: 26
|
|
2811
2791
|
}
|
|
2812
2792
|
},
|
|
2813
|
-
type: "
|
|
2793
|
+
type: "binary-expr",
|
|
2814
2794
|
locations: [{
|
|
2815
2795
|
start: {
|
|
2816
|
-
line:
|
|
2817
|
-
column:
|
|
2796
|
+
line: 124,
|
|
2797
|
+
column: 4
|
|
2818
2798
|
},
|
|
2819
2799
|
end: {
|
|
2820
|
-
line:
|
|
2821
|
-
column:
|
|
2800
|
+
line: 124,
|
|
2801
|
+
column: 48
|
|
2822
2802
|
}
|
|
2823
2803
|
}, {
|
|
2824
2804
|
start: {
|
|
2825
|
-
line:
|
|
2826
|
-
column:
|
|
2805
|
+
line: 125,
|
|
2806
|
+
column: 4
|
|
2827
2807
|
},
|
|
2828
2808
|
end: {
|
|
2829
|
-
line:
|
|
2830
|
-
column:
|
|
2809
|
+
line: 125,
|
|
2810
|
+
column: 26
|
|
2831
2811
|
}
|
|
2832
2812
|
}],
|
|
2833
|
-
line:
|
|
2813
|
+
line: 124
|
|
2834
2814
|
},
|
|
2835
2815
|
"32": {
|
|
2836
2816
|
loc: {
|
|
@@ -3598,9 +3578,7 @@ function cov_p2quoilal() {
|
|
|
3598
3578
|
"110": 0,
|
|
3599
3579
|
"111": 0,
|
|
3600
3580
|
"112": 0,
|
|
3601
|
-
"113": 0
|
|
3602
|
-
"114": 0,
|
|
3603
|
-
"115": 0
|
|
3581
|
+
"113": 0
|
|
3604
3582
|
},
|
|
3605
3583
|
f: {
|
|
3606
3584
|
"0": 0,
|
|
@@ -3681,7 +3659,7 @@ function cov_p2quoilal() {
|
|
|
3681
3659
|
"51": [0, 0]
|
|
3682
3660
|
},
|
|
3683
3661
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
3684
|
-
hash: "
|
|
3662
|
+
hash: "9d9e591d2c32ca53f567eba87588581d60f00361"
|
|
3685
3663
|
};
|
|
3686
3664
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
3687
3665
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -3923,50 +3901,41 @@ var showErrorToastr = function showErrorToastr(error) {
|
|
|
3923
3901
|
cov_p2quoilal().b[28][1]++;
|
|
3924
3902
|
}
|
|
3925
3903
|
cov_p2quoilal().s[62]++;
|
|
3926
|
-
if (
|
|
3904
|
+
if (error.message === "Network Error") {
|
|
3927
3905
|
cov_p2quoilal().b[29][0]++;
|
|
3928
3906
|
cov_p2quoilal().s[63]++;
|
|
3929
3907
|
// @ts-ignore
|
|
3930
|
-
neetoui.Toastr.error(i18next__default["default"].t("neetoCommons.toastr.error.
|
|
3908
|
+
neetoui.Toastr.error(i18next__default["default"].t("neetoCommons.toastr.error.networkError"));
|
|
3931
3909
|
} else {
|
|
3910
|
+
var _error$response3;
|
|
3932
3911
|
cov_p2quoilal().b[29][1]++;
|
|
3933
3912
|
cov_p2quoilal().s[64]++;
|
|
3934
|
-
if (error.
|
|
3913
|
+
if ((cov_p2quoilal().b[31][0]++, ![403, 404].includes((_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.status)) && (cov_p2quoilal().b[31][1]++, !axios__default["default"].isCancel(error))) {
|
|
3935
3914
|
cov_p2quoilal().b[30][0]++;
|
|
3936
3915
|
cov_p2quoilal().s[65]++;
|
|
3937
|
-
//
|
|
3938
|
-
neetoui.Toastr.error(
|
|
3916
|
+
// we already display a page in case of 403 & 404 and we don't want to show a toastr for cancelled requests.
|
|
3917
|
+
neetoui.Toastr.error(error);
|
|
3939
3918
|
} else {
|
|
3940
|
-
var _error$response3;
|
|
3941
3919
|
cov_p2quoilal().b[30][1]++;
|
|
3942
|
-
cov_p2quoilal().s[66]++;
|
|
3943
|
-
if (![403, 404].includes((_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.status)) {
|
|
3944
|
-
cov_p2quoilal().b[31][0]++;
|
|
3945
|
-
cov_p2quoilal().s[67]++;
|
|
3946
|
-
// we already display a page in case of 403 & 404
|
|
3947
|
-
neetoui.Toastr.error(error);
|
|
3948
|
-
} else {
|
|
3949
|
-
cov_p2quoilal().b[31][1]++;
|
|
3950
|
-
}
|
|
3951
3920
|
}
|
|
3952
3921
|
}
|
|
3953
|
-
cov_p2quoilal().s[
|
|
3922
|
+
cov_p2quoilal().s[66]++;
|
|
3954
3923
|
return error;
|
|
3955
3924
|
};
|
|
3956
|
-
cov_p2quoilal().s[
|
|
3925
|
+
cov_p2quoilal().s[67]++;
|
|
3957
3926
|
var handle404ErrorResponse = function handle404ErrorResponse(error) {
|
|
3958
3927
|
var _ref11, _error$response4;
|
|
3959
3928
|
cov_p2quoilal().f[14]++;
|
|
3960
|
-
var _ref10 = (cov_p2quoilal().s[
|
|
3929
|
+
var _ref10 = (cov_p2quoilal().s[68]++, (_ref11 = (cov_p2quoilal().b[34][0]++, error.config)) !== null && _ref11 !== void 0 ? _ref11 : (cov_p2quoilal().b[34][1]++, {})),
|
|
3961
3930
|
_ref10$show404ErrorPa = _ref10.show404ErrorPage,
|
|
3962
3931
|
show404ErrorPage = _ref10$show404ErrorPa === void 0 ? (cov_p2quoilal().b[32][0]++, true) : _ref10$show404ErrorPa,
|
|
3963
3932
|
_ref10$show403ErrorPa = _ref10.show403ErrorPage,
|
|
3964
3933
|
show403ErrorPage = _ref10$show403ErrorPa === void 0 ? (cov_p2quoilal().b[33][0]++, true) : _ref10$show403ErrorPa;
|
|
3965
|
-
var status = (cov_p2quoilal().s[
|
|
3966
|
-
cov_p2quoilal().s[
|
|
3934
|
+
var status = (cov_p2quoilal().s[69]++, (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : _error$response4.status);
|
|
3935
|
+
cov_p2quoilal().s[70]++;
|
|
3967
3936
|
if ((cov_p2quoilal().b[36][0]++, status === 404) && (cov_p2quoilal().b[36][1]++, show404ErrorPage) || (cov_p2quoilal().b[36][2]++, status === 403) && (cov_p2quoilal().b[36][3]++, show403ErrorPage)) {
|
|
3968
3937
|
cov_p2quoilal().b[35][0]++;
|
|
3969
|
-
cov_p2quoilal().s[
|
|
3938
|
+
cov_p2quoilal().s[71]++;
|
|
3970
3939
|
reactUtils.useErrorDisplayStore.setState({
|
|
3971
3940
|
showErrorPage: true,
|
|
3972
3941
|
statusCode: status
|
|
@@ -3974,135 +3943,135 @@ var handle404ErrorResponse = function handle404ErrorResponse(error) {
|
|
|
3974
3943
|
} else {
|
|
3975
3944
|
cov_p2quoilal().b[35][1]++;
|
|
3976
3945
|
}
|
|
3977
|
-
cov_p2quoilal().s[
|
|
3946
|
+
cov_p2quoilal().s[72]++;
|
|
3978
3947
|
return error;
|
|
3979
3948
|
};
|
|
3980
|
-
cov_p2quoilal().s[
|
|
3949
|
+
cov_p2quoilal().s[73]++;
|
|
3981
3950
|
var buildErrorResponseHandler = function buildErrorResponseHandler(skip) {
|
|
3982
3951
|
cov_p2quoilal().f[15]++;
|
|
3983
|
-
var interceptors = (cov_p2quoilal().s[
|
|
3984
|
-
cov_p2quoilal().s[
|
|
3952
|
+
var interceptors = (cov_p2quoilal().s[74]++, []);
|
|
3953
|
+
cov_p2quoilal().s[75]++;
|
|
3985
3954
|
if (!(skip !== null && skip !== void 0 && skip.transformCase)) {
|
|
3986
3955
|
cov_p2quoilal().b[37][0]++;
|
|
3987
|
-
cov_p2quoilal().s[
|
|
3956
|
+
cov_p2quoilal().s[76]++;
|
|
3988
3957
|
interceptors.push(transformErrorKeysToCamelCase);
|
|
3989
3958
|
} else {
|
|
3990
3959
|
cov_p2quoilal().b[37][1]++;
|
|
3991
3960
|
}
|
|
3992
|
-
cov_p2quoilal().s[
|
|
3961
|
+
cov_p2quoilal().s[77]++;
|
|
3993
3962
|
if (!(skip !== null && skip !== void 0 && skip.show404ErrorPage)) {
|
|
3994
3963
|
cov_p2quoilal().b[38][0]++;
|
|
3995
|
-
cov_p2quoilal().s[
|
|
3964
|
+
cov_p2quoilal().s[78]++;
|
|
3996
3965
|
interceptors.push(handle404ErrorResponse);
|
|
3997
3966
|
} else {
|
|
3998
3967
|
cov_p2quoilal().b[38][1]++;
|
|
3999
3968
|
}
|
|
4000
|
-
cov_p2quoilal().s[
|
|
3969
|
+
cov_p2quoilal().s[79]++;
|
|
4001
3970
|
if (!(skip !== null && skip !== void 0 && skip.logoutOn401)) {
|
|
4002
3971
|
cov_p2quoilal().b[39][0]++;
|
|
4003
|
-
cov_p2quoilal().s[
|
|
3972
|
+
cov_p2quoilal().s[80]++;
|
|
4004
3973
|
interceptors.push(handleUnauthorizedErrorResponse);
|
|
4005
3974
|
} else {
|
|
4006
3975
|
cov_p2quoilal().b[39][1]++;
|
|
4007
3976
|
}
|
|
4008
|
-
cov_p2quoilal().s[
|
|
3977
|
+
cov_p2quoilal().s[81]++;
|
|
4009
3978
|
if (!(skip !== null && skip !== void 0 && skip.showToastr)) {
|
|
4010
3979
|
cov_p2quoilal().b[40][0]++;
|
|
4011
|
-
cov_p2quoilal().s[
|
|
3980
|
+
cov_p2quoilal().s[82]++;
|
|
4012
3981
|
interceptors.push(showErrorToastr);
|
|
4013
3982
|
} else {
|
|
4014
3983
|
cov_p2quoilal().b[40][1]++;
|
|
4015
3984
|
}
|
|
4016
|
-
cov_p2quoilal().s[
|
|
3985
|
+
cov_p2quoilal().s[83]++;
|
|
4017
3986
|
interceptors.push(Promise.reject.bind(Promise));
|
|
4018
|
-
cov_p2quoilal().s[
|
|
3987
|
+
cov_p2quoilal().s[84]++;
|
|
4019
3988
|
return createPipe(interceptors);
|
|
4020
3989
|
};
|
|
4021
|
-
cov_p2quoilal().s[
|
|
3990
|
+
cov_p2quoilal().s[85]++;
|
|
4022
3991
|
var cleanupCredentialsForCrossOrigin = function cleanupCredentialsForCrossOrigin(request) {
|
|
4023
3992
|
cov_p2quoilal().f[16]++;
|
|
4024
|
-
cov_p2quoilal().s[
|
|
3993
|
+
cov_p2quoilal().s[86]++;
|
|
4025
3994
|
if (!request.url.includes("://")) {
|
|
4026
3995
|
cov_p2quoilal().b[41][0]++;
|
|
4027
|
-
cov_p2quoilal().s[
|
|
3996
|
+
cov_p2quoilal().s[87]++;
|
|
4028
3997
|
return request;
|
|
4029
3998
|
} else {
|
|
4030
3999
|
cov_p2quoilal().b[41][1]++;
|
|
4031
4000
|
}
|
|
4032
|
-
cov_p2quoilal().s[
|
|
4001
|
+
cov_p2quoilal().s[88]++;
|
|
4033
4002
|
if (request.url.includes(window.location.hostname)) {
|
|
4034
4003
|
cov_p2quoilal().b[42][0]++;
|
|
4035
|
-
cov_p2quoilal().s[
|
|
4004
|
+
cov_p2quoilal().s[89]++;
|
|
4036
4005
|
return request;
|
|
4037
4006
|
} else {
|
|
4038
4007
|
cov_p2quoilal().b[42][1]++;
|
|
4039
4008
|
}
|
|
4040
|
-
cov_p2quoilal().s[
|
|
4009
|
+
cov_p2quoilal().s[90]++;
|
|
4041
4010
|
return ramda.evolve({
|
|
4042
4011
|
headers: ramda.omit(ramda.values(HEADERS_KEYS))
|
|
4043
4012
|
})(request);
|
|
4044
4013
|
};
|
|
4045
|
-
cov_p2quoilal().s[
|
|
4014
|
+
cov_p2quoilal().s[91]++;
|
|
4046
4015
|
var transformDataToSnakeCase = function transformDataToSnakeCase(request) {
|
|
4047
4016
|
cov_p2quoilal().f[17]++;
|
|
4048
|
-
var _ref12 = (cov_p2quoilal().s[
|
|
4017
|
+
var _ref12 = (cov_p2quoilal().s[92]++, request),
|
|
4049
4018
|
_ref12$transformReque = _ref12.transformRequestCase,
|
|
4050
4019
|
transformRequestCase = _ref12$transformReque === void 0 ? (cov_p2quoilal().b[43][0]++, true) : _ref12$transformReque;
|
|
4051
|
-
cov_p2quoilal().s[
|
|
4020
|
+
cov_p2quoilal().s[93]++;
|
|
4052
4021
|
if (!transformRequestCase) {
|
|
4053
4022
|
cov_p2quoilal().b[44][0]++;
|
|
4054
|
-
cov_p2quoilal().s[
|
|
4023
|
+
cov_p2quoilal().s[94]++;
|
|
4055
4024
|
return request;
|
|
4056
4025
|
} else {
|
|
4057
4026
|
cov_p2quoilal().b[44][1]++;
|
|
4058
4027
|
}
|
|
4059
|
-
cov_p2quoilal().s[
|
|
4028
|
+
cov_p2quoilal().s[95]++;
|
|
4060
4029
|
return ramda.evolve({
|
|
4061
4030
|
data: pure.serializeKeysToSnakeCase,
|
|
4062
4031
|
params: pure.serializeKeysToSnakeCase
|
|
4063
4032
|
}, request);
|
|
4064
4033
|
};
|
|
4065
|
-
cov_p2quoilal().s[
|
|
4034
|
+
cov_p2quoilal().s[96]++;
|
|
4066
4035
|
var addRequestInterceptors = function addRequestInterceptors(skip) {
|
|
4067
4036
|
cov_p2quoilal().f[18]++;
|
|
4068
|
-
cov_p2quoilal().s[
|
|
4037
|
+
cov_p2quoilal().s[97]++;
|
|
4069
4038
|
if (!(skip !== null && skip !== void 0 && skip.cleanCredentialsForCrossOrigin)) {
|
|
4070
4039
|
cov_p2quoilal().b[45][0]++;
|
|
4071
|
-
cov_p2quoilal().s[
|
|
4040
|
+
cov_p2quoilal().s[98]++;
|
|
4072
4041
|
axios__default["default"].interceptors.request.use(cleanupCredentialsForCrossOrigin);
|
|
4073
4042
|
} else {
|
|
4074
4043
|
cov_p2quoilal().b[45][1]++;
|
|
4075
4044
|
}
|
|
4076
|
-
cov_p2quoilal().s[
|
|
4045
|
+
cov_p2quoilal().s[99]++;
|
|
4077
4046
|
if (!(skip !== null && skip !== void 0 && skip.transformCase)) {
|
|
4078
4047
|
cov_p2quoilal().b[46][0]++;
|
|
4079
|
-
cov_p2quoilal().s[
|
|
4048
|
+
cov_p2quoilal().s[100]++;
|
|
4080
4049
|
axios__default["default"].interceptors.request.use(transformDataToSnakeCase);
|
|
4081
4050
|
} else {
|
|
4082
4051
|
cov_p2quoilal().b[46][1]++;
|
|
4083
4052
|
}
|
|
4084
4053
|
};
|
|
4085
|
-
cov_p2quoilal().s[
|
|
4054
|
+
cov_p2quoilal().s[101]++;
|
|
4086
4055
|
var addResponseInterceptors = function addResponseInterceptors(skip) {
|
|
4087
4056
|
cov_p2quoilal().f[19]++;
|
|
4088
|
-
cov_p2quoilal().s[
|
|
4057
|
+
cov_p2quoilal().s[102]++;
|
|
4089
4058
|
axios__default["default"].interceptors.response.use(buildSuccessResponseHandler(skip), buildErrorResponseHandler(skip));
|
|
4090
4059
|
};
|
|
4091
|
-
cov_p2quoilal().s[
|
|
4060
|
+
cov_p2quoilal().s[103]++;
|
|
4092
4061
|
var registerIntercepts = function registerIntercepts(skip) {
|
|
4093
4062
|
cov_p2quoilal().f[20]++;
|
|
4094
|
-
cov_p2quoilal().s[
|
|
4063
|
+
cov_p2quoilal().s[104]++;
|
|
4095
4064
|
if (shouldNot(skip === null || skip === void 0 ? void 0 : skip.request)) {
|
|
4096
4065
|
cov_p2quoilal().b[47][0]++;
|
|
4097
|
-
cov_p2quoilal().s[
|
|
4066
|
+
cov_p2quoilal().s[105]++;
|
|
4098
4067
|
addRequestInterceptors(skip === null || skip === void 0 ? void 0 : skip.request);
|
|
4099
4068
|
} else {
|
|
4100
4069
|
cov_p2quoilal().b[47][1]++;
|
|
4101
4070
|
}
|
|
4102
|
-
cov_p2quoilal().s[
|
|
4071
|
+
cov_p2quoilal().s[106]++;
|
|
4103
4072
|
if (shouldNot(skip === null || skip === void 0 ? void 0 : skip.response)) {
|
|
4104
4073
|
cov_p2quoilal().b[48][0]++;
|
|
4105
|
-
cov_p2quoilal().s[
|
|
4074
|
+
cov_p2quoilal().s[107]++;
|
|
4106
4075
|
addResponseInterceptors(skip === null || skip === void 0 ? void 0 : skip.response);
|
|
4107
4076
|
} else {
|
|
4108
4077
|
cov_p2quoilal().b[48][1]++;
|
|
@@ -4110,26 +4079,26 @@ var registerIntercepts = function registerIntercepts(skip) {
|
|
|
4110
4079
|
};
|
|
4111
4080
|
function initializeAxios(skip) {
|
|
4112
4081
|
cov_p2quoilal().f[21]++;
|
|
4113
|
-
cov_p2quoilal().s[
|
|
4082
|
+
cov_p2quoilal().s[108]++;
|
|
4114
4083
|
if (!(skip !== null && skip !== void 0 && skip.baseURL)) {
|
|
4115
4084
|
cov_p2quoilal().b[49][0]++;
|
|
4116
|
-
cov_p2quoilal().s[
|
|
4085
|
+
cov_p2quoilal().s[109]++;
|
|
4117
4086
|
axios__default["default"].defaults.baseURL = "/";
|
|
4118
4087
|
} else {
|
|
4119
4088
|
cov_p2quoilal().b[49][1]++;
|
|
4120
4089
|
}
|
|
4121
|
-
cov_p2quoilal().s[
|
|
4090
|
+
cov_p2quoilal().s[110]++;
|
|
4122
4091
|
if (!(skip !== null && skip !== void 0 && skip.authHeaders)) {
|
|
4123
4092
|
cov_p2quoilal().b[50][0]++;
|
|
4124
|
-
cov_p2quoilal().s[
|
|
4093
|
+
cov_p2quoilal().s[111]++;
|
|
4125
4094
|
setAuthHeaders();
|
|
4126
4095
|
} else {
|
|
4127
4096
|
cov_p2quoilal().b[50][1]++;
|
|
4128
4097
|
}
|
|
4129
|
-
cov_p2quoilal().s[
|
|
4098
|
+
cov_p2quoilal().s[112]++;
|
|
4130
4099
|
if (shouldNot(skip === null || skip === void 0 ? void 0 : skip.interceptors)) {
|
|
4131
4100
|
cov_p2quoilal().b[51][0]++;
|
|
4132
|
-
cov_p2quoilal().s[
|
|
4101
|
+
cov_p2quoilal().s[113]++;
|
|
4133
4102
|
registerIntercepts(skip === null || skip === void 0 ? void 0 : skip.interceptors);
|
|
4134
4103
|
} else {
|
|
4135
4104
|
cov_p2quoilal().b[51][1]++;
|
|
@@ -4403,7 +4372,6 @@ var neetoCommons = {
|
|
|
4403
4372
|
copiedToClipboard: "Copied to clipboard!"
|
|
4404
4373
|
},
|
|
4405
4374
|
error: {
|
|
4406
|
-
requestCanceled: "Request cancelled",
|
|
4407
4375
|
networkError: "No Internet Connection"
|
|
4408
4376
|
}
|
|
4409
4377
|
},
|