@powersync/service-core 0.0.0-dev-20260223080959 → 0.0.0-dev-20260223082111
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/CHANGELOG.md +5 -7
- package/dist/api/diagnostics.js +4 -11
- package/dist/api/diagnostics.js.map +1 -1
- package/dist/routes/configure-fastify.d.ts +0 -84
- package/dist/routes/endpoints/admin.d.ts +0 -168
- package/package.json +5 -5
- package/src/api/diagnostics.ts +4 -12
- package/test/src/routes/mocks.ts +1 -22
- package/tsconfig.tsbuildinfo +1 -1
- package/test/src/routes/admin.test.ts +0 -48
|
@@ -73,10 +73,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
73
73
|
errors: {
|
|
74
74
|
message: string;
|
|
75
75
|
level: "warning" | "fatal";
|
|
76
|
-
location?: {
|
|
77
|
-
start_offset: number;
|
|
78
|
-
end_offset: number;
|
|
79
|
-
} | undefined;
|
|
80
76
|
ts?: string | undefined;
|
|
81
77
|
}[];
|
|
82
78
|
id: string;
|
|
@@ -87,10 +83,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
87
83
|
errors: {
|
|
88
84
|
level: "warning" | "fatal";
|
|
89
85
|
message: string;
|
|
90
|
-
location?: {
|
|
91
|
-
start_offset: number;
|
|
92
|
-
end_offset: number;
|
|
93
|
-
} | undefined;
|
|
94
86
|
ts?: string | undefined;
|
|
95
87
|
}[];
|
|
96
88
|
connections: {
|
|
@@ -107,10 +99,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
107
99
|
errors: {
|
|
108
100
|
level: "warning" | "fatal";
|
|
109
101
|
message: string;
|
|
110
|
-
location?: {
|
|
111
|
-
start_offset: number;
|
|
112
|
-
end_offset: number;
|
|
113
|
-
} | undefined;
|
|
114
102
|
ts?: string | undefined;
|
|
115
103
|
}[];
|
|
116
104
|
pattern?: string | undefined;
|
|
@@ -126,10 +114,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
126
114
|
errors: {
|
|
127
115
|
level: "warning" | "fatal";
|
|
128
116
|
message: string;
|
|
129
|
-
location?: {
|
|
130
|
-
start_offset: number;
|
|
131
|
-
end_offset: number;
|
|
132
|
-
} | undefined;
|
|
133
117
|
ts?: string | undefined;
|
|
134
118
|
}[];
|
|
135
119
|
connections: {
|
|
@@ -146,10 +130,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
146
130
|
errors: {
|
|
147
131
|
level: "warning" | "fatal";
|
|
148
132
|
message: string;
|
|
149
|
-
location?: {
|
|
150
|
-
start_offset: number;
|
|
151
|
-
end_offset: number;
|
|
152
|
-
} | undefined;
|
|
153
133
|
ts?: string | undefined;
|
|
154
134
|
}[];
|
|
155
135
|
pattern?: string | undefined;
|
|
@@ -170,10 +150,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
170
150
|
errors: {
|
|
171
151
|
message: string;
|
|
172
152
|
level: "warning" | "fatal";
|
|
173
|
-
location?: {
|
|
174
|
-
start_offset: number;
|
|
175
|
-
end_offset: number;
|
|
176
|
-
} | undefined;
|
|
177
153
|
ts?: string | undefined;
|
|
178
154
|
}[];
|
|
179
155
|
id: string;
|
|
@@ -184,10 +160,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
184
160
|
errors: {
|
|
185
161
|
level: "warning" | "fatal";
|
|
186
162
|
message: string;
|
|
187
|
-
location?: {
|
|
188
|
-
start_offset: number;
|
|
189
|
-
end_offset: number;
|
|
190
|
-
} | undefined;
|
|
191
163
|
ts?: string | undefined;
|
|
192
164
|
}[];
|
|
193
165
|
connections: {
|
|
@@ -204,10 +176,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
204
176
|
errors: {
|
|
205
177
|
level: "warning" | "fatal";
|
|
206
178
|
message: string;
|
|
207
|
-
location?: {
|
|
208
|
-
start_offset: number;
|
|
209
|
-
end_offset: number;
|
|
210
|
-
} | undefined;
|
|
211
179
|
ts?: string | undefined;
|
|
212
180
|
}[];
|
|
213
181
|
pattern?: string | undefined;
|
|
@@ -223,10 +191,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
223
191
|
errors: {
|
|
224
192
|
level: "warning" | "fatal";
|
|
225
193
|
message: string;
|
|
226
|
-
location?: {
|
|
227
|
-
start_offset: number;
|
|
228
|
-
end_offset: number;
|
|
229
|
-
} | undefined;
|
|
230
194
|
ts?: string | undefined;
|
|
231
195
|
}[];
|
|
232
196
|
connections: {
|
|
@@ -243,10 +207,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
243
207
|
errors: {
|
|
244
208
|
level: "warning" | "fatal";
|
|
245
209
|
message: string;
|
|
246
|
-
location?: {
|
|
247
|
-
start_offset: number;
|
|
248
|
-
end_offset: number;
|
|
249
|
-
} | undefined;
|
|
250
210
|
ts?: string | undefined;
|
|
251
211
|
}[];
|
|
252
212
|
pattern?: string | undefined;
|
|
@@ -278,10 +238,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
278
238
|
errors: {
|
|
279
239
|
message: string;
|
|
280
240
|
level: "warning" | "fatal";
|
|
281
|
-
location?: {
|
|
282
|
-
start_offset: number;
|
|
283
|
-
end_offset: number;
|
|
284
|
-
} | undefined;
|
|
285
241
|
ts?: string | undefined;
|
|
286
242
|
}[];
|
|
287
243
|
id: string;
|
|
@@ -292,10 +248,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
292
248
|
errors: {
|
|
293
249
|
level: "warning" | "fatal";
|
|
294
250
|
message: string;
|
|
295
|
-
location?: {
|
|
296
|
-
start_offset: number;
|
|
297
|
-
end_offset: number;
|
|
298
|
-
} | undefined;
|
|
299
251
|
ts?: string | undefined;
|
|
300
252
|
}[];
|
|
301
253
|
connections: {
|
|
@@ -312,10 +264,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
312
264
|
errors: {
|
|
313
265
|
level: "warning" | "fatal";
|
|
314
266
|
message: string;
|
|
315
|
-
location?: {
|
|
316
|
-
start_offset: number;
|
|
317
|
-
end_offset: number;
|
|
318
|
-
} | undefined;
|
|
319
267
|
ts?: string | undefined;
|
|
320
268
|
}[];
|
|
321
269
|
pattern?: string | undefined;
|
|
@@ -331,10 +279,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
331
279
|
errors: {
|
|
332
280
|
level: "warning" | "fatal";
|
|
333
281
|
message: string;
|
|
334
|
-
location?: {
|
|
335
|
-
start_offset: number;
|
|
336
|
-
end_offset: number;
|
|
337
|
-
} | undefined;
|
|
338
282
|
ts?: string | undefined;
|
|
339
283
|
}[];
|
|
340
284
|
connections: {
|
|
@@ -351,10 +295,6 @@ export declare const diagnostics: router.Endpoint<{
|
|
|
351
295
|
errors: {
|
|
352
296
|
level: "warning" | "fatal";
|
|
353
297
|
message: string;
|
|
354
|
-
location?: {
|
|
355
|
-
start_offset: number;
|
|
356
|
-
end_offset: number;
|
|
357
|
-
} | undefined;
|
|
358
298
|
ts?: string | undefined;
|
|
359
299
|
}[];
|
|
360
300
|
pattern?: string | undefined;
|
|
@@ -481,10 +421,6 @@ export declare const validate: router.Endpoint<{
|
|
|
481
421
|
errors: {
|
|
482
422
|
message: string;
|
|
483
423
|
level: "warning" | "fatal";
|
|
484
|
-
location?: {
|
|
485
|
-
start_offset: number;
|
|
486
|
-
end_offset: number;
|
|
487
|
-
} | undefined;
|
|
488
424
|
ts?: string | undefined;
|
|
489
425
|
}[];
|
|
490
426
|
connections: {
|
|
@@ -496,10 +432,6 @@ export declare const validate: router.Endpoint<{
|
|
|
496
432
|
errors: {
|
|
497
433
|
message: string;
|
|
498
434
|
level: "warning" | "fatal";
|
|
499
|
-
location?: {
|
|
500
|
-
start_offset: number;
|
|
501
|
-
end_offset: number;
|
|
502
|
-
} | undefined;
|
|
503
435
|
ts?: string | undefined;
|
|
504
436
|
}[];
|
|
505
437
|
name: string;
|
|
@@ -523,10 +455,6 @@ export declare const validate: router.Endpoint<{
|
|
|
523
455
|
errors: {
|
|
524
456
|
message: string;
|
|
525
457
|
level: "warning" | "fatal";
|
|
526
|
-
location?: {
|
|
527
|
-
start_offset: number;
|
|
528
|
-
end_offset: number;
|
|
529
|
-
} | undefined;
|
|
530
458
|
ts?: string | undefined;
|
|
531
459
|
}[];
|
|
532
460
|
connections: {
|
|
@@ -538,10 +466,6 @@ export declare const validate: router.Endpoint<{
|
|
|
538
466
|
errors: {
|
|
539
467
|
message: string;
|
|
540
468
|
level: "warning" | "fatal";
|
|
541
|
-
location?: {
|
|
542
|
-
start_offset: number;
|
|
543
|
-
end_offset: number;
|
|
544
|
-
} | undefined;
|
|
545
469
|
ts?: string | undefined;
|
|
546
470
|
}[];
|
|
547
471
|
name: string;
|
|
@@ -576,10 +500,6 @@ export declare const validate: router.Endpoint<{
|
|
|
576
500
|
errors: {
|
|
577
501
|
message: string;
|
|
578
502
|
level: "warning" | "fatal";
|
|
579
|
-
location?: {
|
|
580
|
-
start_offset: number;
|
|
581
|
-
end_offset: number;
|
|
582
|
-
} | undefined;
|
|
583
503
|
ts?: string | undefined;
|
|
584
504
|
}[];
|
|
585
505
|
connections: {
|
|
@@ -591,10 +511,6 @@ export declare const validate: router.Endpoint<{
|
|
|
591
511
|
errors: {
|
|
592
512
|
message: string;
|
|
593
513
|
level: "warning" | "fatal";
|
|
594
|
-
location?: {
|
|
595
|
-
start_offset: number;
|
|
596
|
-
end_offset: number;
|
|
597
|
-
} | undefined;
|
|
598
514
|
ts?: string | undefined;
|
|
599
515
|
}[];
|
|
600
516
|
name: string;
|
|
@@ -682,10 +598,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
682
598
|
errors: {
|
|
683
599
|
message: string;
|
|
684
600
|
level: "warning" | "fatal";
|
|
685
|
-
location?: {
|
|
686
|
-
start_offset: number;
|
|
687
|
-
end_offset: number;
|
|
688
|
-
} | undefined;
|
|
689
601
|
ts?: string | undefined;
|
|
690
602
|
}[];
|
|
691
603
|
id: string;
|
|
@@ -696,10 +608,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
696
608
|
errors: {
|
|
697
609
|
level: "warning" | "fatal";
|
|
698
610
|
message: string;
|
|
699
|
-
location?: {
|
|
700
|
-
start_offset: number;
|
|
701
|
-
end_offset: number;
|
|
702
|
-
} | undefined;
|
|
703
611
|
ts?: string | undefined;
|
|
704
612
|
}[];
|
|
705
613
|
connections: {
|
|
@@ -716,10 +624,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
716
624
|
errors: {
|
|
717
625
|
level: "warning" | "fatal";
|
|
718
626
|
message: string;
|
|
719
|
-
location?: {
|
|
720
|
-
start_offset: number;
|
|
721
|
-
end_offset: number;
|
|
722
|
-
} | undefined;
|
|
723
627
|
ts?: string | undefined;
|
|
724
628
|
}[];
|
|
725
629
|
pattern?: string | undefined;
|
|
@@ -735,10 +639,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
735
639
|
errors: {
|
|
736
640
|
level: "warning" | "fatal";
|
|
737
641
|
message: string;
|
|
738
|
-
location?: {
|
|
739
|
-
start_offset: number;
|
|
740
|
-
end_offset: number;
|
|
741
|
-
} | undefined;
|
|
742
642
|
ts?: string | undefined;
|
|
743
643
|
}[];
|
|
744
644
|
connections: {
|
|
@@ -755,10 +655,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
755
655
|
errors: {
|
|
756
656
|
level: "warning" | "fatal";
|
|
757
657
|
message: string;
|
|
758
|
-
location?: {
|
|
759
|
-
start_offset: number;
|
|
760
|
-
end_offset: number;
|
|
761
|
-
} | undefined;
|
|
762
658
|
ts?: string | undefined;
|
|
763
659
|
}[];
|
|
764
660
|
pattern?: string | undefined;
|
|
@@ -779,10 +675,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
779
675
|
errors: {
|
|
780
676
|
message: string;
|
|
781
677
|
level: "warning" | "fatal";
|
|
782
|
-
location?: {
|
|
783
|
-
start_offset: number;
|
|
784
|
-
end_offset: number;
|
|
785
|
-
} | undefined;
|
|
786
678
|
ts?: string | undefined;
|
|
787
679
|
}[];
|
|
788
680
|
id: string;
|
|
@@ -793,10 +685,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
793
685
|
errors: {
|
|
794
686
|
level: "warning" | "fatal";
|
|
795
687
|
message: string;
|
|
796
|
-
location?: {
|
|
797
|
-
start_offset: number;
|
|
798
|
-
end_offset: number;
|
|
799
|
-
} | undefined;
|
|
800
688
|
ts?: string | undefined;
|
|
801
689
|
}[];
|
|
802
690
|
connections: {
|
|
@@ -813,10 +701,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
813
701
|
errors: {
|
|
814
702
|
level: "warning" | "fatal";
|
|
815
703
|
message: string;
|
|
816
|
-
location?: {
|
|
817
|
-
start_offset: number;
|
|
818
|
-
end_offset: number;
|
|
819
|
-
} | undefined;
|
|
820
704
|
ts?: string | undefined;
|
|
821
705
|
}[];
|
|
822
706
|
pattern?: string | undefined;
|
|
@@ -832,10 +716,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
832
716
|
errors: {
|
|
833
717
|
level: "warning" | "fatal";
|
|
834
718
|
message: string;
|
|
835
|
-
location?: {
|
|
836
|
-
start_offset: number;
|
|
837
|
-
end_offset: number;
|
|
838
|
-
} | undefined;
|
|
839
719
|
ts?: string | undefined;
|
|
840
720
|
}[];
|
|
841
721
|
connections: {
|
|
@@ -852,10 +732,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
852
732
|
errors: {
|
|
853
733
|
level: "warning" | "fatal";
|
|
854
734
|
message: string;
|
|
855
|
-
location?: {
|
|
856
|
-
start_offset: number;
|
|
857
|
-
end_offset: number;
|
|
858
|
-
} | undefined;
|
|
859
735
|
ts?: string | undefined;
|
|
860
736
|
}[];
|
|
861
737
|
pattern?: string | undefined;
|
|
@@ -887,10 +763,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
887
763
|
errors: {
|
|
888
764
|
message: string;
|
|
889
765
|
level: "warning" | "fatal";
|
|
890
|
-
location?: {
|
|
891
|
-
start_offset: number;
|
|
892
|
-
end_offset: number;
|
|
893
|
-
} | undefined;
|
|
894
766
|
ts?: string | undefined;
|
|
895
767
|
}[];
|
|
896
768
|
id: string;
|
|
@@ -901,10 +773,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
901
773
|
errors: {
|
|
902
774
|
level: "warning" | "fatal";
|
|
903
775
|
message: string;
|
|
904
|
-
location?: {
|
|
905
|
-
start_offset: number;
|
|
906
|
-
end_offset: number;
|
|
907
|
-
} | undefined;
|
|
908
776
|
ts?: string | undefined;
|
|
909
777
|
}[];
|
|
910
778
|
connections: {
|
|
@@ -921,10 +789,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
921
789
|
errors: {
|
|
922
790
|
level: "warning" | "fatal";
|
|
923
791
|
message: string;
|
|
924
|
-
location?: {
|
|
925
|
-
start_offset: number;
|
|
926
|
-
end_offset: number;
|
|
927
|
-
} | undefined;
|
|
928
792
|
ts?: string | undefined;
|
|
929
793
|
}[];
|
|
930
794
|
pattern?: string | undefined;
|
|
@@ -940,10 +804,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
940
804
|
errors: {
|
|
941
805
|
level: "warning" | "fatal";
|
|
942
806
|
message: string;
|
|
943
|
-
location?: {
|
|
944
|
-
start_offset: number;
|
|
945
|
-
end_offset: number;
|
|
946
|
-
} | undefined;
|
|
947
807
|
ts?: string | undefined;
|
|
948
808
|
}[];
|
|
949
809
|
connections: {
|
|
@@ -960,10 +820,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
960
820
|
errors: {
|
|
961
821
|
level: "warning" | "fatal";
|
|
962
822
|
message: string;
|
|
963
|
-
location?: {
|
|
964
|
-
start_offset: number;
|
|
965
|
-
end_offset: number;
|
|
966
|
-
} | undefined;
|
|
967
823
|
ts?: string | undefined;
|
|
968
824
|
}[];
|
|
969
825
|
pattern?: string | undefined;
|
|
@@ -1087,10 +943,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1087
943
|
errors: {
|
|
1088
944
|
message: string;
|
|
1089
945
|
level: "warning" | "fatal";
|
|
1090
|
-
location?: {
|
|
1091
|
-
start_offset: number;
|
|
1092
|
-
end_offset: number;
|
|
1093
|
-
} | undefined;
|
|
1094
946
|
ts?: string | undefined;
|
|
1095
947
|
}[];
|
|
1096
948
|
connections: {
|
|
@@ -1102,10 +954,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1102
954
|
errors: {
|
|
1103
955
|
message: string;
|
|
1104
956
|
level: "warning" | "fatal";
|
|
1105
|
-
location?: {
|
|
1106
|
-
start_offset: number;
|
|
1107
|
-
end_offset: number;
|
|
1108
|
-
} | undefined;
|
|
1109
957
|
ts?: string | undefined;
|
|
1110
958
|
}[];
|
|
1111
959
|
name: string;
|
|
@@ -1129,10 +977,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1129
977
|
errors: {
|
|
1130
978
|
message: string;
|
|
1131
979
|
level: "warning" | "fatal";
|
|
1132
|
-
location?: {
|
|
1133
|
-
start_offset: number;
|
|
1134
|
-
end_offset: number;
|
|
1135
|
-
} | undefined;
|
|
1136
980
|
ts?: string | undefined;
|
|
1137
981
|
}[];
|
|
1138
982
|
connections: {
|
|
@@ -1144,10 +988,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1144
988
|
errors: {
|
|
1145
989
|
message: string;
|
|
1146
990
|
level: "warning" | "fatal";
|
|
1147
|
-
location?: {
|
|
1148
|
-
start_offset: number;
|
|
1149
|
-
end_offset: number;
|
|
1150
|
-
} | undefined;
|
|
1151
991
|
ts?: string | undefined;
|
|
1152
992
|
}[];
|
|
1153
993
|
name: string;
|
|
@@ -1182,10 +1022,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1182
1022
|
errors: {
|
|
1183
1023
|
message: string;
|
|
1184
1024
|
level: "warning" | "fatal";
|
|
1185
|
-
location?: {
|
|
1186
|
-
start_offset: number;
|
|
1187
|
-
end_offset: number;
|
|
1188
|
-
} | undefined;
|
|
1189
1025
|
ts?: string | undefined;
|
|
1190
1026
|
}[];
|
|
1191
1027
|
connections: {
|
|
@@ -1197,10 +1033,6 @@ export declare const ADMIN_ROUTES: ((router.Endpoint<{
|
|
|
1197
1033
|
errors: {
|
|
1198
1034
|
message: string;
|
|
1199
1035
|
level: "warning" | "fatal";
|
|
1200
|
-
location?: {
|
|
1201
|
-
start_offset: number;
|
|
1202
|
-
end_offset: number;
|
|
1203
|
-
} | undefined;
|
|
1204
1036
|
ts?: string | undefined;
|
|
1205
1037
|
}[];
|
|
1206
1038
|
name: string;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.0.0-dev-
|
|
8
|
+
"version": "0.0.0-dev-20260223082111",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"license": "FSL-1.1-ALv2",
|
|
11
11
|
"type": "module",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"uuid": "^11.1.0",
|
|
34
34
|
"winston": "^3.13.0",
|
|
35
35
|
"yaml": "^2.3.2",
|
|
36
|
-
"@powersync/lib-services-framework": "0.0.0-dev-
|
|
36
|
+
"@powersync/lib-services-framework": "0.0.0-dev-20260223082111",
|
|
37
37
|
"@powersync/service-jsonbig": "0.17.12",
|
|
38
|
-
"@powersync/service-rsocket-router": "0.0.0-dev-
|
|
39
|
-
"@powersync/service-sync-rules": "0.0.0-dev-
|
|
40
|
-
"@powersync/service-types": "0.
|
|
38
|
+
"@powersync/service-rsocket-router": "0.0.0-dev-20260223082111",
|
|
39
|
+
"@powersync/service-sync-rules": "0.0.0-dev-20260223082111",
|
|
40
|
+
"@powersync/service-types": "0.14.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/async": "^3.2.24",
|
package/src/api/diagnostics.ts
CHANGED
|
@@ -132,20 +132,12 @@ export async function getSyncRulesStatus(
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
errors.push(
|
|
135
|
-
...syncRuleErrors.map((
|
|
136
|
-
|
|
137
|
-
level: type,
|
|
138
|
-
message,
|
|
135
|
+
...syncRuleErrors.map((e) => {
|
|
136
|
+
return {
|
|
137
|
+
level: e.type,
|
|
138
|
+
message: e.message,
|
|
139
139
|
ts: now
|
|
140
140
|
};
|
|
141
|
-
if (location != null) {
|
|
142
|
-
error.location = {
|
|
143
|
-
start_offset: location.start,
|
|
144
|
-
end_offset: location.end
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return error;
|
|
149
141
|
})
|
|
150
142
|
);
|
|
151
143
|
|
package/test/src/routes/mocks.ts
CHANGED
|
@@ -41,29 +41,8 @@ export function mockServiceContext(storage: Partial<SyncRulesBucketStorage> | nu
|
|
|
41
41
|
return {
|
|
42
42
|
getParseSyncRulesOptions() {
|
|
43
43
|
return { defaultSchema: 'public' };
|
|
44
|
-
},
|
|
45
|
-
async getSourceConfig() {
|
|
46
|
-
return {
|
|
47
|
-
tag: 'test_tag',
|
|
48
|
-
id: 'test_id',
|
|
49
|
-
type: 'test_type'
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
async getConnectionSchema() {
|
|
53
|
-
return [];
|
|
54
|
-
},
|
|
55
|
-
async getConnectionStatus() {
|
|
56
|
-
return {
|
|
57
|
-
id: 'test_id',
|
|
58
|
-
uri: 'http://example.org/',
|
|
59
|
-
connected: true,
|
|
60
|
-
errors: []
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
async getDebugTablesInfo() {
|
|
64
|
-
return [];
|
|
65
44
|
}
|
|
66
|
-
}
|
|
45
|
+
} as Partial<RouteAPI>;
|
|
67
46
|
},
|
|
68
47
|
addStopHandler() {
|
|
69
48
|
return () => {};
|