@pixwel/pixwel-sdk 2.1.36 → 2.1.37

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/dist/src/Model.js CHANGED
@@ -1,5 +1,2117 @@
1
1
  "use strict";
2
2
 
3
+ var cov_1q48vzeiba = function () {
4
+ var path = "/home/ec2-user/platform/pixwel-sdk/src/Model.js",
5
+ hash = "2c4f68ed8e3bc1f164fc5eaeec77afd73ee0fab8",
6
+ Function = function () {}.constructor,
7
+ global = new Function('return this')(),
8
+ gcv = "__coverage__",
9
+ coverageData = {
10
+ path: "/home/ec2-user/platform/pixwel-sdk/src/Model.js",
11
+ statementMap: {
12
+ "0": {
13
+ start: {
14
+ line: 20,
15
+ column: 17
16
+ },
17
+ end: {
18
+ line: 23,
19
+ column: 2
20
+ }
21
+ },
22
+ "1": {
23
+ start: {
24
+ line: 31,
25
+ column: 1
26
+ },
27
+ end: {
28
+ line: 38,
29
+ column: 5
30
+ }
31
+ },
32
+ "2": {
33
+ start: {
34
+ line: 44,
35
+ column: 2
36
+ },
37
+ end: {
38
+ line: 44,
39
+ column: 28
40
+ }
41
+ },
42
+ "3": {
43
+ start: {
44
+ line: 45,
45
+ column: 2
46
+ },
47
+ end: {
48
+ line: 45,
49
+ column: 35
50
+ }
51
+ },
52
+ "4": {
53
+ start: {
54
+ line: 46,
55
+ column: 2
56
+ },
57
+ end: {
58
+ line: 46,
59
+ column: 27
60
+ }
61
+ },
62
+ "5": {
63
+ start: {
64
+ line: 47,
65
+ column: 2
66
+ },
67
+ end: {
68
+ line: 47,
69
+ column: 23
70
+ }
71
+ },
72
+ "6": {
73
+ start: {
74
+ line: 48,
75
+ column: 2
76
+ },
77
+ end: {
78
+ line: 48,
79
+ column: 30
80
+ }
81
+ },
82
+ "7": {
83
+ start: {
84
+ line: 49,
85
+ column: 2
86
+ },
87
+ end: {
88
+ line: 49,
89
+ column: 25
90
+ }
91
+ },
92
+ "8": {
93
+ start: {
94
+ line: 58,
95
+ column: 2
96
+ },
97
+ end: {
98
+ line: 58,
99
+ column: 33
100
+ }
101
+ },
102
+ "9": {
103
+ start: {
104
+ line: 64,
105
+ column: 12
106
+ },
107
+ end: {
108
+ line: 64,
109
+ column: 52
110
+ }
111
+ },
112
+ "10": {
113
+ start: {
114
+ line: 65,
115
+ column: 2
116
+ },
117
+ end: {
118
+ line: 69,
119
+ column: 3
120
+ }
121
+ },
122
+ "11": {
123
+ start: {
124
+ line: 66,
125
+ column: 3
126
+ },
127
+ end: {
128
+ line: 66,
129
+ column: 31
130
+ }
131
+ },
132
+ "12": {
133
+ start: {
134
+ line: 68,
135
+ column: 3
136
+ },
137
+ end: {
138
+ line: 68,
139
+ column: 32
140
+ }
141
+ },
142
+ "13": {
143
+ start: {
144
+ line: 70,
145
+ column: 2
146
+ },
147
+ end: {
148
+ line: 70,
149
+ column: 43
150
+ }
151
+ },
152
+ "14": {
153
+ start: {
154
+ line: 73,
155
+ column: 2
156
+ },
157
+ end: {
158
+ line: 73,
159
+ column: 32
160
+ }
161
+ },
162
+ "15": {
163
+ start: {
164
+ line: 81,
165
+ column: 2
166
+ },
167
+ end: {
168
+ line: 81,
169
+ column: 35
170
+ }
171
+ },
172
+ "16": {
173
+ start: {
174
+ line: 87,
175
+ column: 13
176
+ },
177
+ end: {
178
+ line: 90,
179
+ column: 4
180
+ }
181
+ },
182
+ "17": {
183
+ start: {
184
+ line: 89,
185
+ column: 3
186
+ },
187
+ end: {
188
+ line: 89,
189
+ column: 24
190
+ }
191
+ },
192
+ "18": {
193
+ start: {
194
+ line: 92,
195
+ column: 2
196
+ },
197
+ end: {
198
+ line: 92,
199
+ column: 19
200
+ }
201
+ },
202
+ "19": {
203
+ start: {
204
+ line: 93,
205
+ column: 13
206
+ },
207
+ end: {
208
+ line: 93,
209
+ column: 15
210
+ }
211
+ },
212
+ "20": {
213
+ start: {
214
+ line: 94,
215
+ column: 2
216
+ },
217
+ end: {
218
+ line: 96,
219
+ column: 5
220
+ }
221
+ },
222
+ "21": {
223
+ start: {
224
+ line: 95,
225
+ column: 3
226
+ },
227
+ end: {
228
+ line: 95,
229
+ column: 25
230
+ }
231
+ },
232
+ "22": {
233
+ start: {
234
+ line: 97,
235
+ column: 2
236
+ },
237
+ end: {
238
+ line: 97,
239
+ column: 14
240
+ }
241
+ },
242
+ "23": {
243
+ start: {
244
+ line: 106,
245
+ column: 2
246
+ },
247
+ end: {
248
+ line: 106,
249
+ column: 35
250
+ }
251
+ },
252
+ "24": {
253
+ start: {
254
+ line: 115,
255
+ column: 14
256
+ },
257
+ end: {
258
+ line: 115,
259
+ column: 46
260
+ }
261
+ },
262
+ "25": {
263
+ start: {
264
+ line: 117,
265
+ column: 2
266
+ },
267
+ end: {
268
+ line: 122,
269
+ column: 3
270
+ }
271
+ },
272
+ "26": {
273
+ start: {
274
+ line: 118,
275
+ column: 19
276
+ },
277
+ end: {
278
+ line: 118,
279
+ column: 47
280
+ }
281
+ },
282
+ "27": {
283
+ start: {
284
+ line: 119,
285
+ column: 3
286
+ },
287
+ end: {
288
+ line: 119,
289
+ column: 61
290
+ }
291
+ },
292
+ "28": {
293
+ start: {
294
+ line: 121,
295
+ column: 3
296
+ },
297
+ end: {
298
+ line: 121,
299
+ column: 46
300
+ }
301
+ },
302
+ "29": {
303
+ start: {
304
+ line: 125,
305
+ column: 2
306
+ },
307
+ end: {
308
+ line: 127,
309
+ column: 5
310
+ }
311
+ },
312
+ "30": {
313
+ start: {
314
+ line: 126,
315
+ column: 3
316
+ },
317
+ end: {
318
+ line: 126,
319
+ column: 29
320
+ }
321
+ },
322
+ "31": {
323
+ start: {
324
+ line: 129,
325
+ column: 2
326
+ },
327
+ end: {
328
+ line: 129,
329
+ column: 25
330
+ }
331
+ },
332
+ "32": {
333
+ start: {
334
+ line: 137,
335
+ column: 2
336
+ },
337
+ end: {
338
+ line: 137,
339
+ column: 29
340
+ }
341
+ },
342
+ "33": {
343
+ start: {
344
+ line: 143,
345
+ column: 2
346
+ },
347
+ end: {
348
+ line: 143,
349
+ column: 25
350
+ }
351
+ },
352
+ "34": {
353
+ start: {
354
+ line: 151,
355
+ column: 2
356
+ },
357
+ end: {
358
+ line: 151,
359
+ column: 27
360
+ }
361
+ },
362
+ "35": {
363
+ start: {
364
+ line: 159,
365
+ column: 12
366
+ },
367
+ end: {
368
+ line: 159,
369
+ column: 24
370
+ }
371
+ },
372
+ "36": {
373
+ start: {
374
+ line: 161,
375
+ column: 2
376
+ },
377
+ end: {
378
+ line: 167,
379
+ column: 3
380
+ }
381
+ },
382
+ "37": {
383
+ start: {
384
+ line: 162,
385
+ column: 12
386
+ },
387
+ end: {
388
+ line: 162,
389
+ column: 18
390
+ }
391
+ },
392
+ "38": {
393
+ start: {
394
+ line: 163,
395
+ column: 3
396
+ },
397
+ end: {
398
+ line: 163,
399
+ column: 35
400
+ }
401
+ },
402
+ "39": {
403
+ start: {
404
+ line: 164,
405
+ column: 3
406
+ },
407
+ end: {
408
+ line: 164,
409
+ column: 15
410
+ }
411
+ },
412
+ "40": {
413
+ start: {
414
+ line: 166,
415
+ column: 3
416
+ },
417
+ end: {
418
+ line: 166,
419
+ column: 24
420
+ }
421
+ },
422
+ "41": {
423
+ start: {
424
+ line: 169,
425
+ column: 2
426
+ },
427
+ end: {
428
+ line: 173,
429
+ column: 3
430
+ }
431
+ },
432
+ "42": {
433
+ start: {
434
+ line: 170,
435
+ column: 13
436
+ },
437
+ end: {
438
+ line: 170,
439
+ column: 41
440
+ }
441
+ },
442
+ "43": {
443
+ start: {
444
+ line: 172,
445
+ column: 3
446
+ },
447
+ end: {
448
+ line: 172,
449
+ column: 74
450
+ }
451
+ },
452
+ "44": {
453
+ start: {
454
+ line: 176,
455
+ column: 2
456
+ },
457
+ end: {
458
+ line: 178,
459
+ column: 5
460
+ }
461
+ },
462
+ "45": {
463
+ start: {
464
+ line: 177,
465
+ column: 3
466
+ },
467
+ end: {
468
+ line: 177,
469
+ column: 22
470
+ }
471
+ },
472
+ "46": {
473
+ start: {
474
+ line: 180,
475
+ column: 2
476
+ },
477
+ end: {
478
+ line: 180,
479
+ column: 18
480
+ }
481
+ },
482
+ "47": {
483
+ start: {
484
+ line: 189,
485
+ column: 12
486
+ },
487
+ end: {
488
+ line: 189,
489
+ column: 49
490
+ }
491
+ },
492
+ "48": {
493
+ start: {
494
+ line: 190,
495
+ column: 12
496
+ },
497
+ end: {
498
+ line: 192,
499
+ column: 4
500
+ }
501
+ },
502
+ "49": {
503
+ start: {
504
+ line: 191,
505
+ column: 33
506
+ },
507
+ end: {
508
+ line: 191,
509
+ column: 44
510
+ }
511
+ },
512
+ "50": {
513
+ start: {
514
+ line: 193,
515
+ column: 2
516
+ },
517
+ end: {
518
+ line: 196,
519
+ column: 3
520
+ }
521
+ },
522
+ "51": {
523
+ start: {
524
+ line: 195,
525
+ column: 4
526
+ },
527
+ end: {
528
+ line: 195,
529
+ column: 85
530
+ }
531
+ },
532
+ "52": {
533
+ start: {
534
+ line: 197,
535
+ column: 2
536
+ },
537
+ end: {
538
+ line: 197,
539
+ column: 32
540
+ }
541
+ },
542
+ "53": {
543
+ start: {
544
+ line: 198,
545
+ column: 2
546
+ },
547
+ end: {
548
+ line: 198,
549
+ column: 18
550
+ }
551
+ },
552
+ "54": {
553
+ start: {
554
+ line: 207,
555
+ column: 18
556
+ },
557
+ end: {
558
+ line: 207,
559
+ column: 32
560
+ }
561
+ },
562
+ "55": {
563
+ start: {
564
+ line: 208,
565
+ column: 2
566
+ },
567
+ end: {
568
+ line: 210,
569
+ column: 3
570
+ }
571
+ },
572
+ "56": {
573
+ start: {
574
+ line: 209,
575
+ column: 3
576
+ },
577
+ end: {
578
+ line: 209,
579
+ column: 61
580
+ }
581
+ },
582
+ "57": {
583
+ start: {
584
+ line: 211,
585
+ column: 12
586
+ },
587
+ end: {
588
+ line: 211,
589
+ column: 62
590
+ }
591
+ },
592
+ "58": {
593
+ start: {
594
+ line: 212,
595
+ column: 12
596
+ },
597
+ end: {
598
+ line: 214,
599
+ column: 4
600
+ }
601
+ },
602
+ "59": {
603
+ start: {
604
+ line: 213,
605
+ column: 33
606
+ },
607
+ end: {
608
+ line: 213,
609
+ column: 44
610
+ }
611
+ },
612
+ "60": {
613
+ start: {
614
+ line: 215,
615
+ column: 2
616
+ },
617
+ end: {
618
+ line: 220,
619
+ column: 3
620
+ }
621
+ },
622
+ "61": {
623
+ start: {
624
+ line: 217,
625
+ column: 4
626
+ },
627
+ end: {
628
+ line: 217,
629
+ column: 86
630
+ }
631
+ },
632
+ "62": {
633
+ start: {
634
+ line: 219,
635
+ column: 4
636
+ },
637
+ end: {
638
+ line: 219,
639
+ column: 98
640
+ }
641
+ },
642
+ "63": {
643
+ start: {
644
+ line: 221,
645
+ column: 2
646
+ },
647
+ end: {
648
+ line: 221,
649
+ column: 32
650
+ }
651
+ },
652
+ "64": {
653
+ start: {
654
+ line: 222,
655
+ column: 2
656
+ },
657
+ end: {
658
+ line: 222,
659
+ column: 18
660
+ }
661
+ },
662
+ "65": {
663
+ start: {
664
+ line: 231,
665
+ column: 18
666
+ },
667
+ end: {
668
+ line: 231,
669
+ column: 32
670
+ }
671
+ },
672
+ "66": {
673
+ start: {
674
+ line: 232,
675
+ column: 2
676
+ },
677
+ end: {
678
+ line: 234,
679
+ column: 3
680
+ }
681
+ },
682
+ "67": {
683
+ start: {
684
+ line: 233,
685
+ column: 3
686
+ },
687
+ end: {
688
+ line: 233,
689
+ column: 59
690
+ }
691
+ },
692
+ "68": {
693
+ start: {
694
+ line: 235,
695
+ column: 12
696
+ },
697
+ end: {
698
+ line: 235,
699
+ column: 62
700
+ }
701
+ },
702
+ "69": {
703
+ start: {
704
+ line: 236,
705
+ column: 2
706
+ },
707
+ end: {
708
+ line: 236,
709
+ column: 56
710
+ }
711
+ },
712
+ "70": {
713
+ start: {
714
+ line: 236,
715
+ column: 46
716
+ },
717
+ end: {
718
+ line: 236,
719
+ column: 54
720
+ }
721
+ },
722
+ "71": {
723
+ start: {
724
+ line: 245,
725
+ column: 18
726
+ },
727
+ end: {
728
+ line: 245,
729
+ column: 32
730
+ }
731
+ },
732
+ "72": {
733
+ start: {
734
+ line: 246,
735
+ column: 2
736
+ },
737
+ end: {
738
+ line: 248,
739
+ column: 3
740
+ }
741
+ },
742
+ "73": {
743
+ start: {
744
+ line: 247,
745
+ column: 3
746
+ },
747
+ end: {
748
+ line: 247,
749
+ column: 61
750
+ }
751
+ },
752
+ "74": {
753
+ start: {
754
+ line: 249,
755
+ column: 12
756
+ },
757
+ end: {
758
+ line: 249,
759
+ column: 55
760
+ }
761
+ },
762
+ "75": {
763
+ start: {
764
+ line: 250,
765
+ column: 2
766
+ },
767
+ end: {
768
+ line: 250,
769
+ column: 53
770
+ }
771
+ },
772
+ "76": {
773
+ start: {
774
+ line: 250,
775
+ column: 43
776
+ },
777
+ end: {
778
+ line: 250,
779
+ column: 51
780
+ }
781
+ }
782
+ },
783
+ fnMap: {
784
+ "0": {
785
+ name: "connection",
786
+ decl: {
787
+ start: {
788
+ line: 30,
789
+ column: 9
790
+ },
791
+ end: {
792
+ line: 30,
793
+ column: 19
794
+ }
795
+ },
796
+ loc: {
797
+ start: {
798
+ line: 30,
799
+ column: 22
800
+ },
801
+ end: {
802
+ line: 39,
803
+ column: 1
804
+ }
805
+ },
806
+ line: 30
807
+ },
808
+ "1": {
809
+ name: "(anonymous_1)",
810
+ decl: {
811
+ start: {
812
+ line: 43,
813
+ column: 1
814
+ },
815
+ end: {
816
+ line: 43,
817
+ column: 2
818
+ }
819
+ },
820
+ loc: {
821
+ start: {
822
+ line: 43,
823
+ column: 19
824
+ },
825
+ end: {
826
+ line: 50,
827
+ column: 2
828
+ }
829
+ },
830
+ line: 43
831
+ },
832
+ "2": {
833
+ name: "(anonymous_2)",
834
+ decl: {
835
+ start: {
836
+ line: 57,
837
+ column: 1
838
+ },
839
+ end: {
840
+ line: 57,
841
+ column: 2
842
+ }
843
+ },
844
+ loc: {
845
+ start: {
846
+ line: 57,
847
+ column: 27
848
+ },
849
+ end: {
850
+ line: 59,
851
+ column: 2
852
+ }
853
+ },
854
+ line: 57
855
+ },
856
+ "3": {
857
+ name: "(anonymous_3)",
858
+ decl: {
859
+ start: {
860
+ line: 63,
861
+ column: 1
862
+ },
863
+ end: {
864
+ line: 63,
865
+ column: 2
866
+ }
867
+ },
868
+ loc: {
869
+ start: {
870
+ line: 63,
871
+ column: 13
872
+ },
873
+ end: {
874
+ line: 71,
875
+ column: 2
876
+ }
877
+ },
878
+ line: 63
879
+ },
880
+ "4": {
881
+ name: "(anonymous_4)",
882
+ decl: {
883
+ start: {
884
+ line: 72,
885
+ column: 1
886
+ },
887
+ end: {
888
+ line: 72,
889
+ column: 2
890
+ }
891
+ },
892
+ loc: {
893
+ start: {
894
+ line: 72,
895
+ column: 10
896
+ },
897
+ end: {
898
+ line: 74,
899
+ column: 2
900
+ }
901
+ },
902
+ line: 72
903
+ },
904
+ "5": {
905
+ name: "(anonymous_5)",
906
+ decl: {
907
+ start: {
908
+ line: 80,
909
+ column: 1
910
+ },
911
+ end: {
912
+ line: 80,
913
+ column: 2
914
+ }
915
+ },
916
+ loc: {
917
+ start: {
918
+ line: 80,
919
+ column: 23
920
+ },
921
+ end: {
922
+ line: 82,
923
+ column: 2
924
+ }
925
+ },
926
+ line: 80
927
+ },
928
+ "6": {
929
+ name: "(anonymous_6)",
930
+ decl: {
931
+ start: {
932
+ line: 86,
933
+ column: 1
934
+ },
935
+ end: {
936
+ line: 86,
937
+ column: 2
938
+ }
939
+ },
940
+ loc: {
941
+ start: {
942
+ line: 86,
943
+ column: 8
944
+ },
945
+ end: {
946
+ line: 98,
947
+ column: 2
948
+ }
949
+ },
950
+ line: 86
951
+ },
952
+ "7": {
953
+ name: "(anonymous_7)",
954
+ decl: {
955
+ start: {
956
+ line: 87,
957
+ column: 38
958
+ },
959
+ end: {
960
+ line: 87,
961
+ column: 39
962
+ }
963
+ },
964
+ loc: {
965
+ start: {
966
+ line: 87,
967
+ column: 45
968
+ },
969
+ end: {
970
+ line: 90,
971
+ column: 3
972
+ }
973
+ },
974
+ line: 87
975
+ },
976
+ "8": {
977
+ name: "(anonymous_8)",
978
+ decl: {
979
+ start: {
980
+ line: 94,
981
+ column: 15
982
+ },
983
+ end: {
984
+ line: 94,
985
+ column: 16
986
+ }
987
+ },
988
+ loc: {
989
+ start: {
990
+ line: 94,
991
+ column: 22
992
+ },
993
+ end: {
994
+ line: 96,
995
+ column: 3
996
+ }
997
+ },
998
+ line: 94
999
+ },
1000
+ "9": {
1001
+ name: "(anonymous_9)",
1002
+ decl: {
1003
+ start: {
1004
+ line: 105,
1005
+ column: 1
1006
+ },
1007
+ end: {
1008
+ line: 105,
1009
+ column: 2
1010
+ }
1011
+ },
1012
+ loc: {
1013
+ start: {
1014
+ line: 105,
1015
+ column: 43
1016
+ },
1017
+ end: {
1018
+ line: 107,
1019
+ column: 2
1020
+ }
1021
+ },
1022
+ line: 105
1023
+ },
1024
+ "10": {
1025
+ name: "(anonymous_10)",
1026
+ decl: {
1027
+ start: {
1028
+ line: 114,
1029
+ column: 1
1030
+ },
1031
+ end: {
1032
+ line: 114,
1033
+ column: 2
1034
+ }
1035
+ },
1036
+ loc: {
1037
+ start: {
1038
+ line: 114,
1039
+ column: 23
1040
+ },
1041
+ end: {
1042
+ line: 130,
1043
+ column: 2
1044
+ }
1045
+ },
1046
+ line: 114
1047
+ },
1048
+ "11": {
1049
+ name: "(anonymous_11)",
1050
+ decl: {
1051
+ start: {
1052
+ line: 125,
1053
+ column: 25
1054
+ },
1055
+ end: {
1056
+ line: 125,
1057
+ column: 26
1058
+ }
1059
+ },
1060
+ loc: {
1061
+ start: {
1062
+ line: 125,
1063
+ column: 37
1064
+ },
1065
+ end: {
1066
+ line: 127,
1067
+ column: 3
1068
+ }
1069
+ },
1070
+ line: 125
1071
+ },
1072
+ "12": {
1073
+ name: "(anonymous_12)",
1074
+ decl: {
1075
+ start: {
1076
+ line: 136,
1077
+ column: 1
1078
+ },
1079
+ end: {
1080
+ line: 136,
1081
+ column: 2
1082
+ }
1083
+ },
1084
+ loc: {
1085
+ start: {
1086
+ line: 136,
1087
+ column: 11
1088
+ },
1089
+ end: {
1090
+ line: 138,
1091
+ column: 2
1092
+ }
1093
+ },
1094
+ line: 136
1095
+ },
1096
+ "13": {
1097
+ name: "(anonymous_13)",
1098
+ decl: {
1099
+ start: {
1100
+ line: 142,
1101
+ column: 1
1102
+ },
1103
+ end: {
1104
+ line: 142,
1105
+ column: 2
1106
+ }
1107
+ },
1108
+ loc: {
1109
+ start: {
1110
+ line: 142,
1111
+ column: 9
1112
+ },
1113
+ end: {
1114
+ line: 144,
1115
+ column: 2
1116
+ }
1117
+ },
1118
+ line: 142
1119
+ },
1120
+ "14": {
1121
+ name: "(anonymous_14)",
1122
+ decl: {
1123
+ start: {
1124
+ line: 150,
1125
+ column: 1
1126
+ },
1127
+ end: {
1128
+ line: 150,
1129
+ column: 2
1130
+ }
1131
+ },
1132
+ loc: {
1133
+ start: {
1134
+ line: 150,
1135
+ column: 26
1136
+ },
1137
+ end: {
1138
+ line: 152,
1139
+ column: 2
1140
+ }
1141
+ },
1142
+ line: 150
1143
+ },
1144
+ "15": {
1145
+ name: "(anonymous_15)",
1146
+ decl: {
1147
+ start: {
1148
+ line: 158,
1149
+ column: 1
1150
+ },
1151
+ end: {
1152
+ line: 158,
1153
+ column: 2
1154
+ }
1155
+ },
1156
+ loc: {
1157
+ start: {
1158
+ line: 158,
1159
+ column: 32
1160
+ },
1161
+ end: {
1162
+ line: 181,
1163
+ column: 2
1164
+ }
1165
+ },
1166
+ line: 158
1167
+ },
1168
+ "16": {
1169
+ name: "(anonymous_16)",
1170
+ decl: {
1171
+ start: {
1172
+ line: 176,
1173
+ column: 25
1174
+ },
1175
+ end: {
1176
+ line: 176,
1177
+ column: 26
1178
+ }
1179
+ },
1180
+ loc: {
1181
+ start: {
1182
+ line: 176,
1183
+ column: 37
1184
+ },
1185
+ end: {
1186
+ line: 178,
1187
+ column: 3
1188
+ }
1189
+ },
1190
+ line: 176
1191
+ },
1192
+ "17": {
1193
+ name: "(anonymous_17)",
1194
+ decl: {
1195
+ start: {
1196
+ line: 188,
1197
+ column: 1
1198
+ },
1199
+ end: {
1200
+ line: 188,
1201
+ column: 2
1202
+ }
1203
+ },
1204
+ loc: {
1205
+ start: {
1206
+ line: 188,
1207
+ column: 20
1208
+ },
1209
+ end: {
1210
+ line: 199,
1211
+ column: 2
1212
+ }
1213
+ },
1214
+ line: 188
1215
+ },
1216
+ "18": {
1217
+ name: "(anonymous_18)",
1218
+ decl: {
1219
+ start: {
1220
+ line: 191,
1221
+ column: 19
1222
+ },
1223
+ end: {
1224
+ line: 191,
1225
+ column: 20
1226
+ }
1227
+ },
1228
+ loc: {
1229
+ start: {
1230
+ line: 191,
1231
+ column: 31
1232
+ },
1233
+ end: {
1234
+ line: 191,
1235
+ column: 46
1236
+ }
1237
+ },
1238
+ line: 191
1239
+ },
1240
+ "19": {
1241
+ name: "(anonymous_19)",
1242
+ decl: {
1243
+ start: {
1244
+ line: 206,
1245
+ column: 1
1246
+ },
1247
+ end: {
1248
+ line: 206,
1249
+ column: 2
1250
+ }
1251
+ },
1252
+ loc: {
1253
+ start: {
1254
+ line: 206,
1255
+ column: 29
1256
+ },
1257
+ end: {
1258
+ line: 223,
1259
+ column: 2
1260
+ }
1261
+ },
1262
+ line: 206
1263
+ },
1264
+ "20": {
1265
+ name: "(anonymous_20)",
1266
+ decl: {
1267
+ start: {
1268
+ line: 213,
1269
+ column: 19
1270
+ },
1271
+ end: {
1272
+ line: 213,
1273
+ column: 20
1274
+ }
1275
+ },
1276
+ loc: {
1277
+ start: {
1278
+ line: 213,
1279
+ column: 31
1280
+ },
1281
+ end: {
1282
+ line: 213,
1283
+ column: 46
1284
+ }
1285
+ },
1286
+ line: 213
1287
+ },
1288
+ "21": {
1289
+ name: "(anonymous_21)",
1290
+ decl: {
1291
+ start: {
1292
+ line: 230,
1293
+ column: 1
1294
+ },
1295
+ end: {
1296
+ line: 230,
1297
+ column: 2
1298
+ }
1299
+ },
1300
+ loc: {
1301
+ start: {
1302
+ line: 230,
1303
+ column: 32
1304
+ },
1305
+ end: {
1306
+ line: 237,
1307
+ column: 2
1308
+ }
1309
+ },
1310
+ line: 230
1311
+ },
1312
+ "22": {
1313
+ name: "(anonymous_22)",
1314
+ decl: {
1315
+ start: {
1316
+ line: 236,
1317
+ column: 39
1318
+ },
1319
+ end: {
1320
+ line: 236,
1321
+ column: 40
1322
+ }
1323
+ },
1324
+ loc: {
1325
+ start: {
1326
+ line: 236,
1327
+ column: 46
1328
+ },
1329
+ end: {
1330
+ line: 236,
1331
+ column: 54
1332
+ }
1333
+ },
1334
+ line: 236
1335
+ },
1336
+ "23": {
1337
+ name: "(anonymous_23)",
1338
+ decl: {
1339
+ start: {
1340
+ line: 244,
1341
+ column: 1
1342
+ },
1343
+ end: {
1344
+ line: 244,
1345
+ column: 2
1346
+ }
1347
+ },
1348
+ loc: {
1349
+ start: {
1350
+ line: 244,
1351
+ column: 23
1352
+ },
1353
+ end: {
1354
+ line: 251,
1355
+ column: 2
1356
+ }
1357
+ },
1358
+ line: 244
1359
+ },
1360
+ "24": {
1361
+ name: "(anonymous_24)",
1362
+ decl: {
1363
+ start: {
1364
+ line: 250,
1365
+ column: 36
1366
+ },
1367
+ end: {
1368
+ line: 250,
1369
+ column: 37
1370
+ }
1371
+ },
1372
+ loc: {
1373
+ start: {
1374
+ line: 250,
1375
+ column: 43
1376
+ },
1377
+ end: {
1378
+ line: 250,
1379
+ column: 51
1380
+ }
1381
+ },
1382
+ line: 250
1383
+ }
1384
+ },
1385
+ branchMap: {
1386
+ "0": {
1387
+ loc: {
1388
+ start: {
1389
+ line: 65,
1390
+ column: 2
1391
+ },
1392
+ end: {
1393
+ line: 69,
1394
+ column: 3
1395
+ }
1396
+ },
1397
+ type: "if",
1398
+ locations: [{
1399
+ start: {
1400
+ line: 65,
1401
+ column: 2
1402
+ },
1403
+ end: {
1404
+ line: 69,
1405
+ column: 3
1406
+ }
1407
+ }, {
1408
+ start: {
1409
+ line: 65,
1410
+ column: 2
1411
+ },
1412
+ end: {
1413
+ line: 69,
1414
+ column: 3
1415
+ }
1416
+ }],
1417
+ line: 65
1418
+ },
1419
+ "1": {
1420
+ loc: {
1421
+ start: {
1422
+ line: 70,
1423
+ column: 9
1424
+ },
1425
+ end: {
1426
+ line: 70,
1427
+ column: 42
1428
+ }
1429
+ },
1430
+ type: "cond-expr",
1431
+ locations: [{
1432
+ start: {
1433
+ line: 70,
1434
+ column: 30
1435
+ },
1436
+ end: {
1437
+ line: 70,
1438
+ column: 34
1439
+ }
1440
+ }, {
1441
+ start: {
1442
+ line: 70,
1443
+ column: 37
1444
+ },
1445
+ end: {
1446
+ line: 70,
1447
+ column: 42
1448
+ }
1449
+ }],
1450
+ line: 70
1451
+ },
1452
+ "2": {
1453
+ loc: {
1454
+ start: {
1455
+ line: 114,
1456
+ column: 12
1457
+ },
1458
+ end: {
1459
+ line: 114,
1460
+ column: 21
1461
+ }
1462
+ },
1463
+ type: "default-arg",
1464
+ locations: [{
1465
+ start: {
1466
+ line: 114,
1467
+ column: 19
1468
+ },
1469
+ end: {
1470
+ line: 114,
1471
+ column: 21
1472
+ }
1473
+ }],
1474
+ line: 114
1475
+ },
1476
+ "3": {
1477
+ loc: {
1478
+ start: {
1479
+ line: 115,
1480
+ column: 14
1481
+ },
1482
+ end: {
1483
+ line: 115,
1484
+ column: 46
1485
+ }
1486
+ },
1487
+ type: "cond-expr",
1488
+ locations: [{
1489
+ start: {
1490
+ line: 115,
1491
+ column: 28
1492
+ },
1493
+ end: {
1494
+ line: 115,
1495
+ column: 32
1496
+ }
1497
+ }, {
1498
+ start: {
1499
+ line: 115,
1500
+ column: 35
1501
+ },
1502
+ end: {
1503
+ line: 115,
1504
+ column: 46
1505
+ }
1506
+ }],
1507
+ line: 115
1508
+ },
1509
+ "4": {
1510
+ loc: {
1511
+ start: {
1512
+ line: 117,
1513
+ column: 2
1514
+ },
1515
+ end: {
1516
+ line: 122,
1517
+ column: 3
1518
+ }
1519
+ },
1520
+ type: "if",
1521
+ locations: [{
1522
+ start: {
1523
+ line: 117,
1524
+ column: 2
1525
+ },
1526
+ end: {
1527
+ line: 122,
1528
+ column: 3
1529
+ }
1530
+ }, {
1531
+ start: {
1532
+ line: 117,
1533
+ column: 2
1534
+ },
1535
+ end: {
1536
+ line: 122,
1537
+ column: 3
1538
+ }
1539
+ }],
1540
+ line: 117
1541
+ },
1542
+ "5": {
1543
+ loc: {
1544
+ start: {
1545
+ line: 150,
1546
+ column: 12
1547
+ },
1548
+ end: {
1549
+ line: 150,
1550
+ column: 23
1551
+ }
1552
+ },
1553
+ type: "default-arg",
1554
+ locations: [{
1555
+ start: {
1556
+ line: 150,
1557
+ column: 21
1558
+ },
1559
+ end: {
1560
+ line: 150,
1561
+ column: 23
1562
+ }
1563
+ }],
1564
+ line: 150
1565
+ },
1566
+ "6": {
1567
+ loc: {
1568
+ start: {
1569
+ line: 158,
1570
+ column: 19
1571
+ },
1572
+ end: {
1573
+ line: 158,
1574
+ column: 30
1575
+ }
1576
+ },
1577
+ type: "default-arg",
1578
+ locations: [{
1579
+ start: {
1580
+ line: 158,
1581
+ column: 28
1582
+ },
1583
+ end: {
1584
+ line: 158,
1585
+ column: 30
1586
+ }
1587
+ }],
1588
+ line: 158
1589
+ },
1590
+ "7": {
1591
+ loc: {
1592
+ start: {
1593
+ line: 161,
1594
+ column: 2
1595
+ },
1596
+ end: {
1597
+ line: 167,
1598
+ column: 3
1599
+ }
1600
+ },
1601
+ type: "if",
1602
+ locations: [{
1603
+ start: {
1604
+ line: 161,
1605
+ column: 2
1606
+ },
1607
+ end: {
1608
+ line: 167,
1609
+ column: 3
1610
+ }
1611
+ }, {
1612
+ start: {
1613
+ line: 161,
1614
+ column: 2
1615
+ },
1616
+ end: {
1617
+ line: 167,
1618
+ column: 3
1619
+ }
1620
+ }],
1621
+ line: 161
1622
+ },
1623
+ "8": {
1624
+ loc: {
1625
+ start: {
1626
+ line: 193,
1627
+ column: 2
1628
+ },
1629
+ end: {
1630
+ line: 196,
1631
+ column: 3
1632
+ }
1633
+ },
1634
+ type: "switch",
1635
+ locations: [{
1636
+ start: {
1637
+ line: 194,
1638
+ column: 3
1639
+ },
1640
+ end: {
1641
+ line: 195,
1642
+ column: 85
1643
+ }
1644
+ }],
1645
+ line: 193
1646
+ },
1647
+ "9": {
1648
+ loc: {
1649
+ start: {
1650
+ line: 206,
1651
+ column: 14
1652
+ },
1653
+ end: {
1654
+ line: 206,
1655
+ column: 21
1656
+ }
1657
+ },
1658
+ type: "default-arg",
1659
+ locations: [{
1660
+ start: {
1661
+ line: 206,
1662
+ column: 19
1663
+ },
1664
+ end: {
1665
+ line: 206,
1666
+ column: 21
1667
+ }
1668
+ }],
1669
+ line: 206
1670
+ },
1671
+ "10": {
1672
+ loc: {
1673
+ start: {
1674
+ line: 207,
1675
+ column: 18
1676
+ },
1677
+ end: {
1678
+ line: 207,
1679
+ column: 32
1680
+ }
1681
+ },
1682
+ type: "binary-expr",
1683
+ locations: [{
1684
+ start: {
1685
+ line: 207,
1686
+ column: 18
1687
+ },
1688
+ end: {
1689
+ line: 207,
1690
+ column: 20
1691
+ }
1692
+ }, {
1693
+ start: {
1694
+ line: 207,
1695
+ column: 24
1696
+ },
1697
+ end: {
1698
+ line: 207,
1699
+ column: 32
1700
+ }
1701
+ }],
1702
+ line: 207
1703
+ },
1704
+ "11": {
1705
+ loc: {
1706
+ start: {
1707
+ line: 208,
1708
+ column: 2
1709
+ },
1710
+ end: {
1711
+ line: 210,
1712
+ column: 3
1713
+ }
1714
+ },
1715
+ type: "if",
1716
+ locations: [{
1717
+ start: {
1718
+ line: 208,
1719
+ column: 2
1720
+ },
1721
+ end: {
1722
+ line: 210,
1723
+ column: 3
1724
+ }
1725
+ }, {
1726
+ start: {
1727
+ line: 208,
1728
+ column: 2
1729
+ },
1730
+ end: {
1731
+ line: 210,
1732
+ column: 3
1733
+ }
1734
+ }],
1735
+ line: 208
1736
+ },
1737
+ "12": {
1738
+ loc: {
1739
+ start: {
1740
+ line: 215,
1741
+ column: 2
1742
+ },
1743
+ end: {
1744
+ line: 220,
1745
+ column: 3
1746
+ }
1747
+ },
1748
+ type: "switch",
1749
+ locations: [{
1750
+ start: {
1751
+ line: 216,
1752
+ column: 3
1753
+ },
1754
+ end: {
1755
+ line: 217,
1756
+ column: 86
1757
+ }
1758
+ }, {
1759
+ start: {
1760
+ line: 218,
1761
+ column: 3
1762
+ },
1763
+ end: {
1764
+ line: 219,
1765
+ column: 98
1766
+ }
1767
+ }],
1768
+ line: 215
1769
+ },
1770
+ "13": {
1771
+ loc: {
1772
+ start: {
1773
+ line: 230,
1774
+ column: 12
1775
+ },
1776
+ end: {
1777
+ line: 230,
1778
+ column: 19
1779
+ }
1780
+ },
1781
+ type: "default-arg",
1782
+ locations: [{
1783
+ start: {
1784
+ line: 230,
1785
+ column: 17
1786
+ },
1787
+ end: {
1788
+ line: 230,
1789
+ column: 19
1790
+ }
1791
+ }],
1792
+ line: 230
1793
+ },
1794
+ "14": {
1795
+ loc: {
1796
+ start: {
1797
+ line: 230,
1798
+ column: 21
1799
+ },
1800
+ end: {
1801
+ line: 230,
1802
+ column: 30
1803
+ }
1804
+ },
1805
+ type: "default-arg",
1806
+ locations: [{
1807
+ start: {
1808
+ line: 230,
1809
+ column: 28
1810
+ },
1811
+ end: {
1812
+ line: 230,
1813
+ column: 30
1814
+ }
1815
+ }],
1816
+ line: 230
1817
+ },
1818
+ "15": {
1819
+ loc: {
1820
+ start: {
1821
+ line: 231,
1822
+ column: 18
1823
+ },
1824
+ end: {
1825
+ line: 231,
1826
+ column: 32
1827
+ }
1828
+ },
1829
+ type: "binary-expr",
1830
+ locations: [{
1831
+ start: {
1832
+ line: 231,
1833
+ column: 18
1834
+ },
1835
+ end: {
1836
+ line: 231,
1837
+ column: 20
1838
+ }
1839
+ }, {
1840
+ start: {
1841
+ line: 231,
1842
+ column: 24
1843
+ },
1844
+ end: {
1845
+ line: 231,
1846
+ column: 32
1847
+ }
1848
+ }],
1849
+ line: 231
1850
+ },
1851
+ "16": {
1852
+ loc: {
1853
+ start: {
1854
+ line: 232,
1855
+ column: 2
1856
+ },
1857
+ end: {
1858
+ line: 234,
1859
+ column: 3
1860
+ }
1861
+ },
1862
+ type: "if",
1863
+ locations: [{
1864
+ start: {
1865
+ line: 232,
1866
+ column: 2
1867
+ },
1868
+ end: {
1869
+ line: 234,
1870
+ column: 3
1871
+ }
1872
+ }, {
1873
+ start: {
1874
+ line: 232,
1875
+ column: 2
1876
+ },
1877
+ end: {
1878
+ line: 234,
1879
+ column: 3
1880
+ }
1881
+ }],
1882
+ line: 232
1883
+ },
1884
+ "17": {
1885
+ loc: {
1886
+ start: {
1887
+ line: 244,
1888
+ column: 14
1889
+ },
1890
+ end: {
1891
+ line: 244,
1892
+ column: 21
1893
+ }
1894
+ },
1895
+ type: "default-arg",
1896
+ locations: [{
1897
+ start: {
1898
+ line: 244,
1899
+ column: 19
1900
+ },
1901
+ end: {
1902
+ line: 244,
1903
+ column: 21
1904
+ }
1905
+ }],
1906
+ line: 244
1907
+ },
1908
+ "18": {
1909
+ loc: {
1910
+ start: {
1911
+ line: 245,
1912
+ column: 18
1913
+ },
1914
+ end: {
1915
+ line: 245,
1916
+ column: 32
1917
+ }
1918
+ },
1919
+ type: "binary-expr",
1920
+ locations: [{
1921
+ start: {
1922
+ line: 245,
1923
+ column: 18
1924
+ },
1925
+ end: {
1926
+ line: 245,
1927
+ column: 20
1928
+ }
1929
+ }, {
1930
+ start: {
1931
+ line: 245,
1932
+ column: 24
1933
+ },
1934
+ end: {
1935
+ line: 245,
1936
+ column: 32
1937
+ }
1938
+ }],
1939
+ line: 245
1940
+ },
1941
+ "19": {
1942
+ loc: {
1943
+ start: {
1944
+ line: 246,
1945
+ column: 2
1946
+ },
1947
+ end: {
1948
+ line: 248,
1949
+ column: 3
1950
+ }
1951
+ },
1952
+ type: "if",
1953
+ locations: [{
1954
+ start: {
1955
+ line: 246,
1956
+ column: 2
1957
+ },
1958
+ end: {
1959
+ line: 248,
1960
+ column: 3
1961
+ }
1962
+ }, {
1963
+ start: {
1964
+ line: 246,
1965
+ column: 2
1966
+ },
1967
+ end: {
1968
+ line: 248,
1969
+ column: 3
1970
+ }
1971
+ }],
1972
+ line: 246
1973
+ }
1974
+ },
1975
+ s: {
1976
+ "0": 0,
1977
+ "1": 0,
1978
+ "2": 0,
1979
+ "3": 0,
1980
+ "4": 0,
1981
+ "5": 0,
1982
+ "6": 0,
1983
+ "7": 0,
1984
+ "8": 0,
1985
+ "9": 0,
1986
+ "10": 0,
1987
+ "11": 0,
1988
+ "12": 0,
1989
+ "13": 0,
1990
+ "14": 0,
1991
+ "15": 0,
1992
+ "16": 0,
1993
+ "17": 0,
1994
+ "18": 0,
1995
+ "19": 0,
1996
+ "20": 0,
1997
+ "21": 0,
1998
+ "22": 0,
1999
+ "23": 0,
2000
+ "24": 0,
2001
+ "25": 0,
2002
+ "26": 0,
2003
+ "27": 0,
2004
+ "28": 0,
2005
+ "29": 0,
2006
+ "30": 0,
2007
+ "31": 0,
2008
+ "32": 0,
2009
+ "33": 0,
2010
+ "34": 0,
2011
+ "35": 0,
2012
+ "36": 0,
2013
+ "37": 0,
2014
+ "38": 0,
2015
+ "39": 0,
2016
+ "40": 0,
2017
+ "41": 0,
2018
+ "42": 0,
2019
+ "43": 0,
2020
+ "44": 0,
2021
+ "45": 0,
2022
+ "46": 0,
2023
+ "47": 0,
2024
+ "48": 0,
2025
+ "49": 0,
2026
+ "50": 0,
2027
+ "51": 0,
2028
+ "52": 0,
2029
+ "53": 0,
2030
+ "54": 0,
2031
+ "55": 0,
2032
+ "56": 0,
2033
+ "57": 0,
2034
+ "58": 0,
2035
+ "59": 0,
2036
+ "60": 0,
2037
+ "61": 0,
2038
+ "62": 0,
2039
+ "63": 0,
2040
+ "64": 0,
2041
+ "65": 0,
2042
+ "66": 0,
2043
+ "67": 0,
2044
+ "68": 0,
2045
+ "69": 0,
2046
+ "70": 0,
2047
+ "71": 0,
2048
+ "72": 0,
2049
+ "73": 0,
2050
+ "74": 0,
2051
+ "75": 0,
2052
+ "76": 0
2053
+ },
2054
+ f: {
2055
+ "0": 0,
2056
+ "1": 0,
2057
+ "2": 0,
2058
+ "3": 0,
2059
+ "4": 0,
2060
+ "5": 0,
2061
+ "6": 0,
2062
+ "7": 0,
2063
+ "8": 0,
2064
+ "9": 0,
2065
+ "10": 0,
2066
+ "11": 0,
2067
+ "12": 0,
2068
+ "13": 0,
2069
+ "14": 0,
2070
+ "15": 0,
2071
+ "16": 0,
2072
+ "17": 0,
2073
+ "18": 0,
2074
+ "19": 0,
2075
+ "20": 0,
2076
+ "21": 0,
2077
+ "22": 0,
2078
+ "23": 0,
2079
+ "24": 0
2080
+ },
2081
+ b: {
2082
+ "0": [0, 0],
2083
+ "1": [0, 0],
2084
+ "2": [0],
2085
+ "3": [0, 0],
2086
+ "4": [0, 0],
2087
+ "5": [0],
2088
+ "6": [0],
2089
+ "7": [0, 0],
2090
+ "8": [0],
2091
+ "9": [0],
2092
+ "10": [0, 0],
2093
+ "11": [0, 0],
2094
+ "12": [0, 0],
2095
+ "13": [0],
2096
+ "14": [0],
2097
+ "15": [0, 0],
2098
+ "16": [0, 0],
2099
+ "17": [0],
2100
+ "18": [0, 0],
2101
+ "19": [0, 0]
2102
+ },
2103
+ _coverageSchema: "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"
2104
+ },
2105
+ coverage = global[gcv] || (global[gcv] = {});
2106
+
2107
+ if (coverage[path] && coverage[path].hash === hash) {
2108
+ return coverage[path];
2109
+ }
2110
+
2111
+ coverageData.hash = hash;
2112
+ return coverage[path] = coverageData;
2113
+ }();
2114
+
3
2115
  Object.defineProperty(exports, "__esModule", {
4
2116
  value: true
5
2117
  });
@@ -62,10 +2174,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
62
2174
  *
63
2175
  */
64
2176
 
65
- var _bindings = {
2177
+ var _bindings = (cov_1q48vzeiba.s[0]++, {
66
2178
  find: [],
67
2179
  save: []
68
- };
2180
+ });
69
2181
 
70
2182
  /**
71
2183
  * This exists outside the class, solely because I have not
@@ -73,6 +2185,9 @@ var _bindings = {
73
2185
  * and also from a static function.
74
2186
  */
75
2187
  function connection() {
2188
+ cov_1q48vzeiba.f[0]++;
2189
+ cov_1q48vzeiba.s[1]++;
2190
+
76
2191
  return _axios2.default.create({
77
2192
  baseURL: _index.Pixwel.endpoint,
78
2193
  headers: {
@@ -86,12 +2201,19 @@ function connection() {
86
2201
  var Model = function () {
87
2202
  function Model(data) {
88
2203
  (0, _classCallCheck3.default)(this, Model);
2204
+ cov_1q48vzeiba.f[1]++;
2205
+ cov_1q48vzeiba.s[2]++;
89
2206
 
90
2207
  (0, _assign2.default)(this, data);
2208
+ cov_1q48vzeiba.s[3]++;
91
2209
  this._endpoint = _index.Pixwel.endpoint;
2210
+ cov_1q48vzeiba.s[4]++;
92
2211
  this._api = connection();
2212
+ cov_1q48vzeiba.s[5]++;
93
2213
  this._lastState = {};
2214
+ cov_1q48vzeiba.s[6]++;
94
2215
  this._validationErrors = [];
2216
+ cov_1q48vzeiba.s[7]++;
95
2217
  this._constraints = {};
96
2218
  }
97
2219
  /**
@@ -105,6 +2227,9 @@ var Model = function () {
105
2227
  (0, _createClass3.default)(Model, [{
106
2228
  key: "addConstraint",
107
2229
  value: function addConstraint(name, data) {
2230
+ cov_1q48vzeiba.f[2]++;
2231
+ cov_1q48vzeiba.s[8]++;
2232
+
108
2233
  this._constraints[name] = data;
109
2234
  }
110
2235
  /**
@@ -114,17 +2239,30 @@ var Model = function () {
114
2239
  }, {
115
2240
  key: "validates",
116
2241
  value: function validates() {
117
- var res = (0, _validate2.default)(this.data(), this._constraints);
2242
+ cov_1q48vzeiba.f[3]++;
2243
+
2244
+ var res = (cov_1q48vzeiba.s[9]++, (0, _validate2.default)(this.data(), this._constraints));
2245
+ cov_1q48vzeiba.s[10]++;
118
2246
  if (res == undefined) {
2247
+ cov_1q48vzeiba.b[0][0]++;
2248
+ cov_1q48vzeiba.s[11]++;
2249
+
119
2250
  this._validationErrors = [];
120
2251
  } else {
2252
+ cov_1q48vzeiba.b[0][1]++;
2253
+ cov_1q48vzeiba.s[12]++;
2254
+
121
2255
  this._validationErrors = res;
122
2256
  }
123
- return res == undefined ? true : false;
2257
+ cov_1q48vzeiba.s[13]++;
2258
+ return res == undefined ? (cov_1q48vzeiba.b[1][0]++, true) : (cov_1q48vzeiba.b[1][1]++, false);
124
2259
  }
125
2260
  }, {
126
2261
  key: "errors",
127
2262
  value: function errors() {
2263
+ cov_1q48vzeiba.f[4]++;
2264
+ cov_1q48vzeiba.s[14]++;
2265
+
128
2266
  return this._validationErrors;
129
2267
  }
130
2268
  /**
@@ -141,9 +2279,11 @@ var Model = function () {
141
2279
  while (1) {
142
2280
  switch (_context.prev = _context.next) {
143
2281
  case 0:
2282
+ cov_1q48vzeiba.f[5]++;
2283
+ cov_1q48vzeiba.s[15]++;
144
2284
  return _context.abrupt("return", this._api.request(config));
145
2285
 
146
- case 1:
2286
+ case 3:
147
2287
  case "end":
148
2288
  return _context.stop();
149
2289
  }
@@ -166,16 +2306,27 @@ var Model = function () {
166
2306
  value: function data() {
167
2307
  var _this = this;
168
2308
 
169
- var keys = (0, _keys2.default)(this).filter(function (key) {
2309
+ cov_1q48vzeiba.f[6]++;
2310
+
2311
+ var keys = (cov_1q48vzeiba.s[16]++, (0, _keys2.default)(this).filter(function (key) {
2312
+ cov_1q48vzeiba.f[7]++;
2313
+ cov_1q48vzeiba.s[17]++;
2314
+
170
2315
  // using underscore convention to not include private data
171
2316
  return key[0] != '_';
172
- });
2317
+ }));
173
2318
  // deliberately adding _id back in even though it's "private"
2319
+ cov_1q48vzeiba.s[18]++;
174
2320
  keys.push('_id');
175
- var data = {};
2321
+ var data = (cov_1q48vzeiba.s[19]++, {});
2322
+ cov_1q48vzeiba.s[20]++;
176
2323
  keys.forEach(function (key) {
2324
+ cov_1q48vzeiba.f[8]++;
2325
+ cov_1q48vzeiba.s[21]++;
2326
+
177
2327
  data[key] = _this[key];
178
2328
  });
2329
+ cov_1q48vzeiba.s[22]++;
179
2330
  return data;
180
2331
  }
181
2332
  /**
@@ -198,45 +2349,57 @@ var Model = function () {
198
2349
  var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
199
2350
  var _this2 = this;
200
2351
 
201
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2352
+ var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[2][0]++, {});
202
2353
  var input, inputDiff;
203
2354
  return _regenerator2.default.wrap(function _callee2$(_context2) {
204
2355
  while (1) {
205
2356
  switch (_context2.prev = _context2.next) {
206
2357
  case 0:
207
- input = data.length ? data : this.data();
2358
+ cov_1q48vzeiba.f[10]++;
2359
+ input = (cov_1q48vzeiba.s[24]++, data.length ? (cov_1q48vzeiba.b[3][0]++, data) : (cov_1q48vzeiba.b[3][1]++, this.data()));
2360
+ cov_1q48vzeiba.s[25]++;
208
2361
 
209
2362
  if (!input._id) {
210
- _context2.next = 8;
2363
+ _context2.next = 12;
211
2364
  break;
212
2365
  }
213
2366
 
214
- inputDiff = (0, _deepObjectDiff.diff)(this._lastState, input);
215
- _context2.next = 5;
2367
+ cov_1q48vzeiba.b[4][0]++;
2368
+ inputDiff = (cov_1q48vzeiba.s[26]++, (0, _deepObjectDiff.diff)(this._lastState, input));
2369
+ cov_1q48vzeiba.s[27]++;
2370
+ _context2.next = 9;
216
2371
  return this.update(input._id, inputDiff);
217
2372
 
218
- case 5:
2373
+ case 9:
219
2374
  this._lastState = _context2.sent;
220
- _context2.next = 11;
2375
+ _context2.next = 17;
221
2376
  break;
222
2377
 
223
- case 8:
224
- _context2.next = 10;
2378
+ case 12:
2379
+ cov_1q48vzeiba.b[4][1]++;
2380
+ cov_1q48vzeiba.s[28]++;
2381
+ _context2.next = 16;
225
2382
  return this.create(input);
226
2383
 
227
- case 10:
2384
+ case 16:
228
2385
  this._lastState = _context2.sent;
229
2386
 
230
- case 11:
2387
+ case 17:
2388
+ cov_1q48vzeiba.s[29]++;
2389
+
231
2390
 
232
2391
  // fires events with the result
233
2392
  _bindings.save.forEach(function (callback) {
2393
+ cov_1q48vzeiba.f[11]++;
2394
+ cov_1q48vzeiba.s[30]++;
2395
+
234
2396
  callback(_this2._lastState);
235
2397
  });
236
2398
 
2399
+ cov_1q48vzeiba.s[31]++;
237
2400
  return _context2.abrupt("return", this._lastState);
238
2401
 
239
- case 13:
2402
+ case 21:
240
2403
  case "end":
241
2404
  return _context2.stop();
242
2405
  }
@@ -259,6 +2422,9 @@ var Model = function () {
259
2422
  }, {
260
2423
  key: "set",
261
2424
  value: function set(data) {
2425
+ cov_1q48vzeiba.f[12]++;
2426
+ cov_1q48vzeiba.s[32]++;
2427
+
262
2428
  return _lodash2.default.merge(this, data);
263
2429
  }
264
2430
  /**
@@ -268,6 +2434,9 @@ var Model = function () {
268
2434
  }, {
269
2435
  key: "clone",
270
2436
  value: function clone() {
2437
+ cov_1q48vzeiba.f[13]++;
2438
+ cov_1q48vzeiba.s[33]++;
2439
+
271
2440
  return (0, _lodash.cloneDeep)(this);
272
2441
  }
273
2442
  /**
@@ -292,28 +2461,38 @@ var Model = function () {
292
2461
  while (1) {
293
2462
  switch (_context3.prev = _context3.next) {
294
2463
  case 0:
295
- url = this._endpoint + "/" + this._resource;
296
- _context3.next = 3;
2464
+ cov_1q48vzeiba.f[17]++;
2465
+ url = (cov_1q48vzeiba.s[47]++, this._endpoint + "/" + this._resource);
2466
+ cov_1q48vzeiba.s[48]++;
2467
+ _context3.next = 5;
297
2468
  return this._api.post(url, data, {
298
2469
  validateStatus: function validateStatus(status) {
2470
+ cov_1q48vzeiba.f[18]++;
2471
+ cov_1q48vzeiba.s[49]++;
299
2472
  return true;
300
2473
  }
301
2474
  });
302
2475
 
303
- case 3:
2476
+ case 5:
304
2477
  res = _context3.sent;
2478
+ cov_1q48vzeiba.s[50]++;
305
2479
  _context3.t0 = res.status;
306
- _context3.next = _context3.t0 === 500 ? 7 : 8;
2480
+ _context3.next = _context3.t0 === 500 ? 10 : 13;
307
2481
  break;
308
2482
 
309
- case 7:
2483
+ case 10:
2484
+ cov_1q48vzeiba.b[8][0]++;
2485
+ cov_1q48vzeiba.s[51]++;
310
2486
  throw new Error("HTTP 500: POST " + url + ": " + res.data.type + " - " + res.data.message);
311
2487
 
312
- case 8:
2488
+ case 13:
2489
+ cov_1q48vzeiba.s[52]++;
2490
+
313
2491
  (0, _assign2.default)(this, res.data);
2492
+ cov_1q48vzeiba.s[53]++;
314
2493
  return _context3.abrupt("return", res.data);
315
2494
 
316
- case 10:
2495
+ case 17:
317
2496
  case "end":
318
2497
  return _context3.stop();
319
2498
  }
@@ -338,48 +2517,66 @@ var Model = function () {
338
2517
  key: "update",
339
2518
  value: function () {
340
2519
  var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
341
- var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2520
+ var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[9][0]++, '');
342
2521
  var data = arguments[1];
343
2522
  var currentId, url, res;
344
2523
  return _regenerator2.default.wrap(function _callee4$(_context4) {
345
2524
  while (1) {
346
2525
  switch (_context4.prev = _context4.next) {
347
2526
  case 0:
348
- currentId = id || this._id;
2527
+ cov_1q48vzeiba.f[19]++;
2528
+ currentId = (cov_1q48vzeiba.s[54]++, (cov_1q48vzeiba.b[10][0]++, id) || (cov_1q48vzeiba.b[10][1]++, this._id));
2529
+ cov_1q48vzeiba.s[55]++;
349
2530
 
350
2531
  if (currentId) {
351
- _context4.next = 3;
2532
+ _context4.next = 9;
352
2533
  break;
353
2534
  }
354
2535
 
2536
+ cov_1q48vzeiba.b[11][0]++;
2537
+ cov_1q48vzeiba.s[56]++;
355
2538
  throw new Error("unable to update record without an _id");
356
2539
 
357
- case 3:
358
- url = this._endpoint + "/" + this._resource + "/" + currentId;
359
- _context4.next = 6;
2540
+ case 9:
2541
+ cov_1q48vzeiba.b[11][1]++;
2542
+
2543
+ case 10:
2544
+ url = (cov_1q48vzeiba.s[57]++, this._endpoint + "/" + this._resource + "/" + currentId);
2545
+ cov_1q48vzeiba.s[58]++;
2546
+ _context4.next = 14;
360
2547
  return this._api.patch(url, data, {
361
2548
  validateStatus: function validateStatus(status) {
2549
+ cov_1q48vzeiba.f[20]++;
2550
+ cov_1q48vzeiba.s[59]++;
362
2551
  return true;
363
2552
  }
364
2553
  });
365
2554
 
366
- case 6:
2555
+ case 14:
367
2556
  res = _context4.sent;
2557
+ cov_1q48vzeiba.s[60]++;
368
2558
  _context4.t0 = res.status;
369
- _context4.next = _context4.t0 === 500 ? 10 : _context4.t0 === 400 ? 11 : 12;
2559
+ _context4.next = _context4.t0 === 500 ? 19 : _context4.t0 === 400 ? 22 : 25;
370
2560
  break;
371
2561
 
372
- case 10:
2562
+ case 19:
2563
+ cov_1q48vzeiba.b[12][0]++;
2564
+ cov_1q48vzeiba.s[61]++;
373
2565
  throw new Error("HTTP 500: PATCH " + url + ": " + res.data.type + " - " + res.data.message);
374
2566
 
375
- case 11:
2567
+ case 22:
2568
+ cov_1q48vzeiba.b[12][1]++;
2569
+ cov_1q48vzeiba.s[62]++;
376
2570
  throw new Error("HTTP 400: PATCH " + url + ": " + res.data.info.message + " - " + (0, _stringify2.default)(data));
377
2571
 
378
- case 12:
2572
+ case 25:
2573
+ cov_1q48vzeiba.s[63]++;
2574
+
379
2575
  (0, _assign2.default)(this, res.data);
2576
+ cov_1q48vzeiba.s[64]++;
380
2577
  return _context4.abrupt("return", res.data);
381
2578
 
382
- case 14:
2579
+ case 29:
383
2580
  case "end":
384
2581
  return _context4.stop();
385
2582
  }
@@ -404,29 +2601,39 @@ var Model = function () {
404
2601
  key: "read",
405
2602
  value: function () {
406
2603
  var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
407
- var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
408
- var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2604
+ var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[13][0]++, '');
2605
+ var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_1q48vzeiba.b[14][0]++, {});
409
2606
  var currentId, url;
410
2607
  return _regenerator2.default.wrap(function _callee5$(_context5) {
411
2608
  while (1) {
412
2609
  switch (_context5.prev = _context5.next) {
413
2610
  case 0:
414
- currentId = id || this._id;
2611
+ cov_1q48vzeiba.f[21]++;
2612
+ currentId = (cov_1q48vzeiba.s[65]++, (cov_1q48vzeiba.b[15][0]++, id) || (cov_1q48vzeiba.b[15][1]++, this._id));
2613
+ cov_1q48vzeiba.s[66]++;
415
2614
 
416
2615
  if (currentId) {
417
- _context5.next = 3;
2616
+ _context5.next = 9;
418
2617
  break;
419
2618
  }
420
2619
 
2620
+ cov_1q48vzeiba.b[16][0]++;
2621
+ cov_1q48vzeiba.s[67]++;
421
2622
  throw new Error("unable to read record without an _id");
422
2623
 
423
- case 3:
424
- url = this._endpoint + "/" + this._resource + "/" + currentId;
2624
+ case 9:
2625
+ cov_1q48vzeiba.b[16][1]++;
2626
+
2627
+ case 10:
2628
+ url = (cov_1q48vzeiba.s[68]++, this._endpoint + "/" + this._resource + "/" + currentId);
2629
+ cov_1q48vzeiba.s[69]++;
425
2630
  return _context5.abrupt("return", this._api.get(url, opts).then(function (res) {
2631
+ cov_1q48vzeiba.f[22]++;
2632
+ cov_1q48vzeiba.s[70]++;
426
2633
  return res.data;
427
2634
  }));
428
2635
 
429
- case 5:
2636
+ case 13:
430
2637
  case "end":
431
2638
  return _context5.stop();
432
2639
  }
@@ -451,28 +2658,38 @@ var Model = function () {
451
2658
  key: "delete",
452
2659
  value: function () {
453
2660
  var _ref6 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
454
- var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2661
+ var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[17][0]++, '');
455
2662
  var currentId, url;
456
2663
  return _regenerator2.default.wrap(function _callee6$(_context6) {
457
2664
  while (1) {
458
2665
  switch (_context6.prev = _context6.next) {
459
2666
  case 0:
460
- currentId = id || this._id;
2667
+ cov_1q48vzeiba.f[23]++;
2668
+ currentId = (cov_1q48vzeiba.s[71]++, (cov_1q48vzeiba.b[18][0]++, id) || (cov_1q48vzeiba.b[18][1]++, this._id));
2669
+ cov_1q48vzeiba.s[72]++;
461
2670
 
462
2671
  if (currentId) {
463
- _context6.next = 3;
2672
+ _context6.next = 9;
464
2673
  break;
465
2674
  }
466
2675
 
2676
+ cov_1q48vzeiba.b[19][0]++;
2677
+ cov_1q48vzeiba.s[73]++;
467
2678
  throw new Error("unable to delete record without an _id");
468
2679
 
469
- case 3:
470
- url = this._endpoint + "/" + this._resource + "/" + id;
2680
+ case 9:
2681
+ cov_1q48vzeiba.b[19][1]++;
2682
+
2683
+ case 10:
2684
+ url = (cov_1q48vzeiba.s[74]++, this._endpoint + "/" + this._resource + "/" + id);
2685
+ cov_1q48vzeiba.s[75]++;
471
2686
  return _context6.abrupt("return", this._api.delete(url).then(function (res) {
2687
+ cov_1q48vzeiba.f[24]++;
2688
+ cov_1q48vzeiba.s[76]++;
472
2689
  return res.data;
473
2690
  }));
474
2691
 
475
- case 5:
2692
+ case 13:
476
2693
  case "end":
477
2694
  return _context6.stop();
478
2695
  }
@@ -489,12 +2706,17 @@ var Model = function () {
489
2706
  }], [{
490
2707
  key: "registerCallback",
491
2708
  value: function registerCallback(method, callback) {
2709
+ cov_1q48vzeiba.f[9]++;
2710
+ cov_1q48vzeiba.s[23]++;
2711
+
492
2712
  _bindings[method].push(callback);
493
2713
  }
494
2714
  }, {
495
2715
  key: "all",
496
2716
  value: function all() {
497
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2717
+ var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[5][0]++, {});
2718
+ cov_1q48vzeiba.f[14]++;
2719
+ cov_1q48vzeiba.s[34]++;
498
2720
 
499
2721
  return this.find(params);
500
2722
  }
@@ -508,53 +2730,70 @@ var Model = function () {
508
2730
  key: "find",
509
2731
  value: function () {
510
2732
  var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
511
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2733
+ var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1q48vzeiba.b[6][0]++, {});
512
2734
  var api, url, id, res;
513
2735
  return _regenerator2.default.wrap(function _callee7$(_context7) {
514
2736
  while (1) {
515
2737
  switch (_context7.prev = _context7.next) {
516
2738
  case 0:
517
- api = connection();
2739
+ cov_1q48vzeiba.f[15]++;
2740
+ api = (cov_1q48vzeiba.s[35]++, connection());
518
2741
  url = void 0;
2742
+ cov_1q48vzeiba.s[36]++;
519
2743
 
520
2744
  if (typeof params === 'string') {
521
- id = params;
2745
+ cov_1q48vzeiba.b[7][0]++;
2746
+ id = (cov_1q48vzeiba.s[37]++, params);
2747
+ cov_1q48vzeiba.s[38]++;
522
2748
 
523
2749
  url = this._resource + "/" + id;
2750
+ cov_1q48vzeiba.s[39]++;
524
2751
  params = {};
525
2752
  } else {
2753
+ cov_1q48vzeiba.b[7][1]++;
2754
+ cov_1q48vzeiba.s[40]++;
2755
+
526
2756
  url = this._resource;
527
2757
  }
528
2758
 
529
- _context7.prev = 3;
530
- _context7.next = 6;
2759
+ cov_1q48vzeiba.s[41]++;
2760
+ _context7.prev = 6;
2761
+ cov_1q48vzeiba.s[42]++;
2762
+ _context7.next = 10;
531
2763
  return api.get(url, { params: params });
532
2764
 
533
- case 6:
2765
+ case 10:
534
2766
  res = _context7.sent;
535
- _context7.next = 12;
2767
+ _context7.next = 17;
536
2768
  break;
537
2769
 
538
- case 9:
539
- _context7.prev = 9;
540
- _context7.t0 = _context7["catch"](3);
2770
+ case 13:
2771
+ _context7.prev = 13;
2772
+ _context7.t0 = _context7["catch"](6);
2773
+ cov_1q48vzeiba.s[43]++;
541
2774
  throw new Error(_context7.t0.message + ": GET /" + url + " " + (0, _stringify2.default)(params));
542
2775
 
543
- case 12:
2776
+ case 17:
2777
+ cov_1q48vzeiba.s[44]++;
2778
+
544
2779
 
545
2780
  // fires events with the result
546
2781
  _bindings.find.forEach(function (callback) {
2782
+ cov_1q48vzeiba.f[16]++;
2783
+ cov_1q48vzeiba.s[45]++;
2784
+
547
2785
  callback(res.data);
548
2786
  });
549
2787
 
2788
+ cov_1q48vzeiba.s[46]++;
550
2789
  return _context7.abrupt("return", res.data);
551
2790
 
552
- case 14:
2791
+ case 21:
553
2792
  case "end":
554
2793
  return _context7.stop();
555
2794
  }
556
2795
  }
557
- }, _callee7, this, [[3, 9]]);
2796
+ }, _callee7, this, [[6, 13]]);
558
2797
  }));
559
2798
 
560
2799
  function find() {