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