@feathersjs/client 5.0.0-pre.0 → 5.0.0-pre.15

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +229 -0
  2. package/README.md +2 -2
  3. package/dist/core.d.ts +1 -0
  4. package/dist/core.js +1861 -3627
  5. package/dist/core.js.map +1 -1
  6. package/dist/core.min.js +1 -1
  7. package/dist/feathers.d.ts +8 -0
  8. package/dist/feathers.js +5106 -5755
  9. package/dist/feathers.js.map +1 -1
  10. package/dist/feathers.min.js +1 -1
  11. package/package.json +44 -38
  12. package/src/core.ts +1 -0
  13. package/src/feathers.ts +13 -0
  14. package/.babelrc +0 -8
  15. package/.cache/lasso/default/6a3076a5/dependencyFingerprints/cache +0 -0
  16. package/.cache/lasso/default/6a3076a5/key +0 -1
  17. package/.cache/lasso/default/6a3076a5/lasso-require/inspect-/5d47a286cdceb98f64bf9128488dd355fde40e81/cache +0 -0
  18. package/.cache/lasso/default/7be4a25c/dependencyFingerprints/cache +0 -0
  19. package/.cache/lasso/default/7be4a25c/key +0 -1
  20. package/.cache/lasso/default/7be4a25c/lasso-require/inspect/cache +0 -0
  21. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.0/lib/filter-query.js +0 -1998
  22. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.0/lib/index.js +0 -694
  23. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.0/lib/service.js +0 -1636
  24. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.0/lib/sort.js +0 -2259
  25. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.1/lib/filter-query.js +0 -98
  26. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.1/lib/index.js +0 -37
  27. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.1/lib/service.js +0 -94
  28. package/.mocha-puppeteer/test-page/@feathersjs/adapter-commons$4.5.1/lib/sort.js +0 -112
  29. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.0/browser/test-run.js +0 -1
  30. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.0/browser/test.js +0 -1037
  31. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.0/dist/feathers.js +0 -78377
  32. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.1/browser/test-run.js +0 -1
  33. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.1/browser/test.js +0 -102
  34. package/.mocha-puppeteer/test-page/@feathersjs/client$4.5.1/dist/feathers.js +0 -5231
  35. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.0/lib/hooks.js +0 -2626
  36. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.0/lib/index.js +0 -540
  37. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.0/lib/utils.js +0 -1991
  38. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.1/lib/hooks.js +0 -170
  39. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.1/lib/index.js +0 -17
  40. package/.mocha-puppeteer/test-page/@feathersjs/commons$4.5.1/lib/utils.js +0 -102
  41. package/.mocha-puppeteer/test-page/@feathersjs/errors$4.5.0/lib/index.js +0 -2262
  42. package/.mocha-puppeteer/test-page/@feathersjs/errors$4.5.1/lib/index.js +0 -251
  43. package/.mocha-puppeteer/test-page/@feathersjs/tests$4.5.0/lib/client.js +0 -1506
  44. package/.mocha-puppeteer/test-page/@feathersjs/tests$4.5.1/lib/client.js +0 -83
  45. package/.mocha-puppeteer/test-page/assert$1.5.0/assert.js +0 -508
  46. package/.mocha-puppeteer/test-page/debug$4.1.1/src/browser.js +0 -266
  47. package/.mocha-puppeteer/test-page/debug$4.1.1/src/common.js +0 -268
  48. package/.mocha-puppeteer/test-page/feathers-memory$4.1.0/lib/index.js +0 -143
  49. package/.mocha-puppeteer/test-page/inherits$2.0.1/inherits_browser.js +0 -25
  50. package/.mocha-puppeteer/test-page/lasso-modules-client$2.0.5/src/index.js +0 -592
  51. package/.mocha-puppeteer/test-page/lasso-modules-meta.js +0 -28
  52. package/.mocha-puppeteer/test-page/marko$4.18.35/src/runtime/components/boot-run.js +0 -1
  53. package/.mocha-puppeteer/test-page/marko$4.18.35/src/runtime/components/boot.js +0 -95
  54. package/.mocha-puppeteer/test-page/marko$4.18.42/src/runtime/components/boot-run.js +0 -1
  55. package/.mocha-puppeteer/test-page/marko$4.18.42/src/runtime/components/boot.js +0 -95
  56. package/.mocha-puppeteer/test-page/marko$4.19.0/src/runtime/components/boot-run.js +0 -1
  57. package/.mocha-puppeteer/test-page/marko$4.19.0/src/runtime/components/boot.js +0 -3
  58. package/.mocha-puppeteer/test-page/mocha$3.5.3/mocha.css +0 -326
  59. package/.mocha-puppeteer/test-page/mocha$3.5.3/mocha.js +0 -16590
  60. package/.mocha-puppeteer/test-page/mocha-puppeteer$0.14.0/lib/pages/test-page/run-tests-run.js +0 -1
  61. package/.mocha-puppeteer/test-page/mocha-puppeteer$0.14.0/lib/pages/test-page/run-tests.js +0 -53
  62. package/.mocha-puppeteer/test-page/mocha-puppeteer$0.14.0/lib/pages/test-page/setup-run.js +0 -1
  63. package/.mocha-puppeteer/test-page/mocha-puppeteer$0.14.0/lib/pages/test-page/setup.js +0 -10
  64. package/.mocha-puppeteer/test-page/ms$2.1.2/index.js +0 -164
  65. package/.mocha-puppeteer/test-page/object-assign$4.1.1/index.js +0 -92
  66. package/.mocha-puppeteer/test-page/process$0.11.10/browser.js +0 -186
  67. package/.mocha-puppeteer/test-page/sift$8.5.1/lib/index.js +0 -738
  68. package/.mocha-puppeteer/test-page/superagent$3.8.3/superagent.js +0 -2035
  69. package/.mocha-puppeteer/test-page/util$0.10.3/support/isBufferBrowser.js +0 -7
  70. package/.mocha-puppeteer/test-page/util$0.10.3/util.js +0 -588
  71. package/.nyc_output/coverage.json +0 -1
  72. package/authentication.js +0 -1
  73. package/dist/authentication.js +0 -2242
  74. package/dist/authentication.js.map +0 -1
  75. package/dist/authentication.min.js +0 -1
  76. package/dist/rest.js +0 -3287
  77. package/dist/rest.js.map +0 -1
  78. package/dist/rest.min.js +0 -1
  79. package/dist/socketio.js +0 -2384
  80. package/dist/socketio.js.map +0 -1
  81. package/dist/socketio.min.js +0 -1
  82. package/index.d.ts +0 -23
  83. package/index.js +0 -1
  84. package/rest.js +0 -1
  85. package/socketio.js +0 -1
  86. package/webpack.config.js +0 -69
@@ -1,1636 +0,0 @@
1
- $_mod.def("/@feathersjs/adapter-commons$4.5.0/lib/service", function(require, exports, module, __filename, __dirname) { "use strict";
2
-
3
- var cov_1k5798ds01 = function () {
4
- var path = "service.js",
5
- hash = "fc6f8830dc5640436cb1cfd0c91c9429efa3f031",
6
- Function = function () {}.constructor,
7
- global = new Function('return this')(),
8
- gcv = "__coverage__",
9
- coverageData = {
10
- path: "service.js",
11
- statementMap: {
12
- "0": {
13
- start: {
14
- line: 2,
15
- column: 22
16
- },
17
- end: {
18
- line: 4,
19
- column: 1
20
- }
21
- },
22
- "1": {
23
- start: {
24
- line: 3,
25
- column: 4
26
- },
27
- end: {
28
- line: 3,
29
- column: 62
30
- }
31
- },
32
- "2": {
33
- start: {
34
- line: 5,
35
- column: 0
36
- },
37
- end: {
38
- line: 5,
39
- column: 62
40
- }
41
- },
42
- "3": {
43
- start: {
44
- line: 6,
45
- column: 17
46
- },
47
- end: {
48
- line: 6,
49
- column: 46
50
- }
51
- },
52
- "4": {
53
- start: {
54
- line: 7,
55
- column: 23
56
- },
57
- end: {
58
- line: 7,
59
- column: 65
60
- }
61
- },
62
- "5": {
63
- start: {
64
- line: 8,
65
- column: 19
66
- },
67
- end: {
68
- line: 13,
69
- column: 1
70
- }
71
- },
72
- "6": {
73
- start: {
74
- line: 9,
75
- column: 4
76
- },
77
- end: {
78
- line: 11,
79
- column: 5
80
- }
81
- },
82
- "7": {
83
- start: {
84
- line: 10,
85
- column: 8
86
- },
87
- end: {
88
- line: 10,
89
- column: 91
90
- }
91
- },
92
- "8": {
93
- start: {
94
- line: 12,
95
- column: 4
96
- },
97
- end: {
98
- line: 12,
99
- column: 31
100
- }
101
- },
102
- "9": {
103
- start: {
104
- line: 14,
105
- column: 20
106
- },
107
- end: {
108
- line: 18,
109
- column: 1
110
- }
111
- },
112
- "10": {
113
- start: {
114
- line: 21,
115
- column: 8
116
- },
117
- end: {
118
- line: 28,
119
- column: 20
120
- }
121
- },
122
- "11": {
123
- start: {
124
- line: 31,
125
- column: 8
126
- },
127
- end: {
128
- line: 31,
129
- column: 31
130
- }
131
- },
132
- "12": {
133
- start: {
134
- line: 34,
135
- column: 8
136
- },
137
- end: {
138
- line: 34,
139
- column: 35
140
- }
141
- },
142
- "13": {
143
- start: {
144
- line: 37,
145
- column: 25
146
- },
147
- end: {
148
- line: 38,
149
- column: 53
150
- }
151
- },
152
- "14": {
153
- start: {
154
- line: 39,
155
- column: 31
156
- },
157
- end: {
158
- line: 39,
159
- column: 37
160
- }
161
- },
162
- "15": {
163
- start: {
164
- line: 40,
165
- column: 24
166
- },
167
- end: {
168
- line: 44,
169
- column: 16
170
- }
171
- },
172
- "16": {
173
- start: {
174
- line: 45,
175
- column: 23
176
- },
177
- end: {
178
- line: 45,
179
- column: 61
180
- }
181
- },
182
- "17": {
183
- start: {
184
- line: 46,
185
- column: 8
186
- },
187
- end: {
188
- line: 46,
189
- column: 51
190
- }
191
- },
192
- "18": {
193
- start: {
194
- line: 49,
195
- column: 23
196
- },
197
- end: {
198
- line: 49,
199
- column: 42
200
- }
201
- },
202
- "19": {
203
- start: {
204
- line: 50,
205
- column: 8
206
- },
207
- end: {
208
- line: 52,
209
- column: 9
210
- }
211
- },
212
- "20": {
213
- start: {
214
- line: 51,
215
- column: 12
216
- },
217
- end: {
218
- line: 51,
219
- column: 26
220
- }
221
- },
222
- "21": {
223
- start: {
224
- line: 53,
225
- column: 23
226
- },
227
- end: {
228
- line: 53,
229
- column: 41
230
- }
231
- },
232
- "22": {
233
- start: {
234
- line: 54,
235
- column: 8
236
- },
237
- end: {
238
- line: 59,
239
- column: 9
240
- }
241
- },
242
- "23": {
243
- start: {
244
- line: 55,
245
- column: 12
246
- },
247
- end: {
248
- line: 55,
249
- column: 26
250
- }
251
- },
252
- "24": {
253
- start: {
254
- line: 58,
255
- column: 12
256
- },
257
- end: {
258
- line: 58,
259
- column: 43
260
- }
261
- },
262
- "25": {
263
- start: {
264
- line: 62,
265
- column: 8
266
- },
267
- end: {
268
- line: 62,
269
- column: 49
270
- }
271
- },
272
- "26": {
273
- start: {
274
- line: 65,
275
- column: 8
276
- },
277
- end: {
278
- line: 65,
279
- column: 52
280
- }
281
- },
282
- "27": {
283
- start: {
284
- line: 68,
285
- column: 8
286
- },
287
- end: {
288
- line: 70,
289
- column: 9
290
- }
291
- },
292
- "28": {
293
- start: {
294
- line: 69,
295
- column: 12
296
- },
297
- end: {
298
- line: 69,
299
- column: 100
300
- }
301
- },
302
- "29": {
303
- start: {
304
- line: 71,
305
- column: 8
306
- },
307
- end: {
308
- line: 71,
309
- column: 57
310
- }
311
- },
312
- "30": {
313
- start: {
314
- line: 74,
315
- column: 8
316
- },
317
- end: {
318
- line: 76,
319
- column: 9
320
- }
321
- },
322
- "31": {
323
- start: {
324
- line: 75,
325
- column: 12
326
- },
327
- end: {
328
- line: 75,
329
- column: 124
330
- }
331
- },
332
- "32": {
333
- start: {
334
- line: 77,
335
- column: 8
336
- },
337
- end: {
338
- line: 77,
339
- column: 61
340
- }
341
- },
342
- "33": {
343
- start: {
344
- line: 80,
345
- column: 8
346
- },
347
- end: {
348
- line: 82,
349
- column: 9
350
- }
351
- },
352
- "34": {
353
- start: {
354
- line: 81,
355
- column: 12
356
- },
357
- end: {
358
- line: 81,
359
- column: 99
360
- }
361
- },
362
- "35": {
363
- start: {
364
- line: 83,
365
- column: 8
366
- },
367
- end: {
368
- line: 83,
369
- column: 60
370
- }
371
- },
372
- "36": {
373
- start: {
374
- line: 86,
375
- column: 8
376
- },
377
- end: {
378
- line: 88,
379
- column: 9
380
- }
381
- },
382
- "37": {
383
- start: {
384
- line: 87,
385
- column: 12
386
- },
387
- end: {
388
- line: 87,
389
- column: 100
390
- }
391
- },
392
- "38": {
393
- start: {
394
- line: 89,
395
- column: 8
396
- },
397
- end: {
398
- line: 89,
399
- column: 55
400
- }
401
- },
402
- "39": {
403
- start: {
404
- line: 92,
405
- column: 0
406
- },
407
- end: {
408
- line: 92,
409
- column: 40
410
- }
411
- }
412
- },
413
- fnMap: {
414
- "0": {
415
- name: "(anonymous_0)",
416
- decl: {
417
- start: {
418
- line: 2,
419
- column: 56
420
- },
421
- end: {
422
- line: 2,
423
- column: 57
424
- }
425
- },
426
- loc: {
427
- start: {
428
- line: 2,
429
- column: 71
430
- },
431
- end: {
432
- line: 4,
433
- column: 1
434
- }
435
- },
436
- line: 2
437
- },
438
- "1": {
439
- name: "(anonymous_1)",
440
- decl: {
441
- start: {
442
- line: 8,
443
- column: 19
444
- },
445
- end: {
446
- line: 8,
447
- column: 20
448
- }
449
- },
450
- loc: {
451
- start: {
452
- line: 8,
453
- column: 44
454
- },
455
- end: {
456
- line: 13,
457
- column: 1
458
- }
459
- },
460
- line: 8
461
- },
462
- "2": {
463
- name: "(anonymous_2)",
464
- decl: {
465
- start: {
466
- line: 20,
467
- column: 4
468
- },
469
- end: {
470
- line: 20,
471
- column: 5
472
- }
473
- },
474
- loc: {
475
- start: {
476
- line: 20,
477
- column: 25
478
- },
479
- end: {
480
- line: 29,
481
- column: 5
482
- }
483
- },
484
- line: 20
485
- },
486
- "3": {
487
- name: "(anonymous_3)",
488
- decl: {
489
- start: {
490
- line: 30,
491
- column: 4
492
- },
493
- end: {
494
- line: 30,
495
- column: 5
496
- }
497
- },
498
- loc: {
499
- start: {
500
- line: 30,
501
- column: 13
502
- },
503
- end: {
504
- line: 32,
505
- column: 5
506
- }
507
- },
508
- line: 30
509
- },
510
- "4": {
511
- name: "(anonymous_4)",
512
- decl: {
513
- start: {
514
- line: 33,
515
- column: 4
516
- },
517
- end: {
518
- line: 33,
519
- column: 5
520
- }
521
- },
522
- loc: {
523
- start: {
524
- line: 33,
525
- column: 17
526
- },
527
- end: {
528
- line: 35,
529
- column: 5
530
- }
531
- },
532
- line: 33
533
- },
534
- "5": {
535
- name: "(anonymous_5)",
536
- decl: {
537
- start: {
538
- line: 36,
539
- column: 4
540
- },
541
- end: {
542
- line: 36,
543
- column: 5
544
- }
545
- },
546
- loc: {
547
- start: {
548
- line: 36,
549
- column: 40
550
- },
551
- end: {
552
- line: 47,
553
- column: 5
554
- }
555
- },
556
- line: 36
557
- },
558
- "6": {
559
- name: "(anonymous_6)",
560
- decl: {
561
- start: {
562
- line: 48,
563
- column: 4
564
- },
565
- end: {
566
- line: 48,
567
- column: 5
568
- }
569
- },
570
- loc: {
571
- start: {
572
- line: 48,
573
- column: 24
574
- },
575
- end: {
576
- line: 60,
577
- column: 5
578
- }
579
- },
580
- line: 48
581
- },
582
- "7": {
583
- name: "(anonymous_7)",
584
- decl: {
585
- start: {
586
- line: 61,
587
- column: 4
588
- },
589
- end: {
590
- line: 61,
591
- column: 5
592
- }
593
- },
594
- loc: {
595
- start: {
596
- line: 61,
597
- column: 17
598
- },
599
- end: {
600
- line: 63,
601
- column: 5
602
- }
603
- },
604
- line: 61
605
- },
606
- "8": {
607
- name: "(anonymous_8)",
608
- decl: {
609
- start: {
610
- line: 64,
611
- column: 4
612
- },
613
- end: {
614
- line: 64,
615
- column: 5
616
- }
617
- },
618
- loc: {
619
- start: {
620
- line: 64,
621
- column: 20
622
- },
623
- end: {
624
- line: 66,
625
- column: 5
626
- }
627
- },
628
- line: 64
629
- },
630
- "9": {
631
- name: "(anonymous_9)",
632
- decl: {
633
- start: {
634
- line: 67,
635
- column: 4
636
- },
637
- end: {
638
- line: 67,
639
- column: 5
640
- }
641
- },
642
- loc: {
643
- start: {
644
- line: 67,
645
- column: 25
646
- },
647
- end: {
648
- line: 72,
649
- column: 5
650
- }
651
- },
652
- line: 67
653
- },
654
- "10": {
655
- name: "(anonymous_10)",
656
- decl: {
657
- start: {
658
- line: 73,
659
- column: 4
660
- },
661
- end: {
662
- line: 73,
663
- column: 5
664
- }
665
- },
666
- loc: {
667
- start: {
668
- line: 73,
669
- column: 29
670
- },
671
- end: {
672
- line: 78,
673
- column: 5
674
- }
675
- },
676
- line: 73
677
- },
678
- "11": {
679
- name: "(anonymous_11)",
680
- decl: {
681
- start: {
682
- line: 79,
683
- column: 4
684
- },
685
- end: {
686
- line: 79,
687
- column: 5
688
- }
689
- },
690
- loc: {
691
- start: {
692
- line: 79,
693
- column: 28
694
- },
695
- end: {
696
- line: 84,
697
- column: 5
698
- }
699
- },
700
- line: 79
701
- },
702
- "12": {
703
- name: "(anonymous_12)",
704
- decl: {
705
- start: {
706
- line: 85,
707
- column: 4
708
- },
709
- end: {
710
- line: 85,
711
- column: 5
712
- }
713
- },
714
- loc: {
715
- start: {
716
- line: 85,
717
- column: 23
718
- },
719
- end: {
720
- line: 90,
721
- column: 5
722
- }
723
- },
724
- line: 85
725
- }
726
- },
727
- branchMap: {
728
- "0": {
729
- loc: {
730
- start: {
731
- line: 2,
732
- column: 22
733
- },
734
- end: {
735
- line: 4,
736
- column: 1
737
- }
738
- },
739
- type: "binary-expr",
740
- locations: [{
741
- start: {
742
- line: 2,
743
- column: 23
744
- },
745
- end: {
746
- line: 2,
747
- column: 27
748
- }
749
- }, {
750
- start: {
751
- line: 2,
752
- column: 31
753
- },
754
- end: {
755
- line: 2,
756
- column: 51
757
- }
758
- }, {
759
- start: {
760
- line: 2,
761
- column: 56
762
- },
763
- end: {
764
- line: 4,
765
- column: 1
766
- }
767
- }],
768
- line: 2
769
- },
770
- "1": {
771
- loc: {
772
- start: {
773
- line: 3,
774
- column: 11
775
- },
776
- end: {
777
- line: 3,
778
- column: 61
779
- }
780
- },
781
- type: "cond-expr",
782
- locations: [{
783
- start: {
784
- line: 3,
785
- column: 37
786
- },
787
- end: {
788
- line: 3,
789
- column: 40
790
- }
791
- }, {
792
- start: {
793
- line: 3,
794
- column: 43
795
- },
796
- end: {
797
- line: 3,
798
- column: 61
799
- }
800
- }],
801
- line: 3
802
- },
803
- "2": {
804
- loc: {
805
- start: {
806
- line: 3,
807
- column: 12
808
- },
809
- end: {
810
- line: 3,
811
- column: 33
812
- }
813
- },
814
- type: "binary-expr",
815
- locations: [{
816
- start: {
817
- line: 3,
818
- column: 12
819
- },
820
- end: {
821
- line: 3,
822
- column: 15
823
- }
824
- }, {
825
- start: {
826
- line: 3,
827
- column: 19
828
- },
829
- end: {
830
- line: 3,
831
- column: 33
832
- }
833
- }],
834
- line: 3
835
- },
836
- "3": {
837
- loc: {
838
- start: {
839
- line: 9,
840
- column: 4
841
- },
842
- end: {
843
- line: 11,
844
- column: 5
845
- }
846
- },
847
- type: "if",
848
- locations: [{
849
- start: {
850
- line: 9,
851
- column: 4
852
- },
853
- end: {
854
- line: 11,
855
- column: 5
856
- }
857
- }, {
858
- start: {
859
- line: 9,
860
- column: 4
861
- },
862
- end: {
863
- line: 11,
864
- column: 5
865
- }
866
- }],
867
- line: 9
868
- },
869
- "4": {
870
- loc: {
871
- start: {
872
- line: 36,
873
- column: 16
874
- },
875
- end: {
876
- line: 36,
877
- column: 27
878
- }
879
- },
880
- type: "default-arg",
881
- locations: [{
882
- start: {
883
- line: 36,
884
- column: 25
885
- },
886
- end: {
887
- line: 36,
888
- column: 27
889
- }
890
- }],
891
- line: 36
892
- },
893
- "5": {
894
- loc: {
895
- start: {
896
- line: 36,
897
- column: 29
898
- },
899
- end: {
900
- line: 36,
901
- column: 38
902
- }
903
- },
904
- type: "default-arg",
905
- locations: [{
906
- start: {
907
- line: 36,
908
- column: 36
909
- },
910
- end: {
911
- line: 36,
912
- column: 38
913
- }
914
- }],
915
- line: 36
916
- },
917
- "6": {
918
- loc: {
919
- start: {
920
- line: 37,
921
- column: 25
922
- },
923
- end: {
924
- line: 38,
925
- column: 53
926
- }
927
- },
928
- type: "cond-expr",
929
- locations: [{
930
- start: {
931
- line: 38,
932
- column: 14
933
- },
934
- end: {
935
- line: 38,
936
- column: 29
937
- }
938
- }, {
939
- start: {
940
- line: 38,
941
- column: 32
942
- },
943
- end: {
944
- line: 38,
945
- column: 53
946
- }
947
- }],
948
- line: 37
949
- },
950
- "7": {
951
- loc: {
952
- start: {
953
- line: 39,
954
- column: 16
955
- },
956
- end: {
957
- line: 39,
958
- column: 26
959
- }
960
- },
961
- type: "default-arg",
962
- locations: [{
963
- start: {
964
- line: 39,
965
- column: 24
966
- },
967
- end: {
968
- line: 39,
969
- column: 26
970
- }
971
- }],
972
- line: 39
973
- },
974
- "8": {
975
- loc: {
976
- start: {
977
- line: 41,
978
- column: 23
979
- },
980
- end: {
981
- line: 41,
982
- column: 51
983
- }
984
- },
985
- type: "binary-expr",
986
- locations: [{
987
- start: {
988
- line: 41,
989
- column: 23
990
- },
991
- end: {
992
- line: 41,
993
- column: 45
994
- }
995
- }, {
996
- start: {
997
- line: 41,
998
- column: 49
999
- },
1000
- end: {
1001
- line: 41,
1002
- column: 51
1003
- }
1004
- }],
1005
- line: 41
1006
- },
1007
- "9": {
1008
- loc: {
1009
- start: {
1010
- line: 50,
1011
- column: 8
1012
- },
1013
- end: {
1014
- line: 52,
1015
- column: 9
1016
- }
1017
- },
1018
- type: "if",
1019
- locations: [{
1020
- start: {
1021
- line: 50,
1022
- column: 8
1023
- },
1024
- end: {
1025
- line: 52,
1026
- column: 9
1027
- }
1028
- }, {
1029
- start: {
1030
- line: 50,
1031
- column: 8
1032
- },
1033
- end: {
1034
- line: 52,
1035
- column: 9
1036
- }
1037
- }],
1038
- line: 50
1039
- },
1040
- "10": {
1041
- loc: {
1042
- start: {
1043
- line: 54,
1044
- column: 8
1045
- },
1046
- end: {
1047
- line: 59,
1048
- column: 9
1049
- }
1050
- },
1051
- type: "if",
1052
- locations: [{
1053
- start: {
1054
- line: 54,
1055
- column: 8
1056
- },
1057
- end: {
1058
- line: 59,
1059
- column: 9
1060
- }
1061
- }, {
1062
- start: {
1063
- line: 54,
1064
- column: 8
1065
- },
1066
- end: {
1067
- line: 59,
1068
- column: 9
1069
- }
1070
- }],
1071
- line: 54
1072
- },
1073
- "11": {
1074
- loc: {
1075
- start: {
1076
- line: 54,
1077
- column: 12
1078
- },
1079
- end: {
1080
- line: 54,
1081
- column: 47
1082
- }
1083
- },
1084
- type: "binary-expr",
1085
- locations: [{
1086
- start: {
1087
- line: 54,
1088
- column: 12
1089
- },
1090
- end: {
1091
- line: 54,
1092
- column: 27
1093
- }
1094
- }, {
1095
- start: {
1096
- line: 54,
1097
- column: 31
1098
- },
1099
- end: {
1100
- line: 54,
1101
- column: 47
1102
- }
1103
- }],
1104
- line: 54
1105
- },
1106
- "12": {
1107
- loc: {
1108
- start: {
1109
- line: 68,
1110
- column: 8
1111
- },
1112
- end: {
1113
- line: 70,
1114
- column: 9
1115
- }
1116
- },
1117
- type: "if",
1118
- locations: [{
1119
- start: {
1120
- line: 68,
1121
- column: 8
1122
- },
1123
- end: {
1124
- line: 70,
1125
- column: 9
1126
- }
1127
- }, {
1128
- start: {
1129
- line: 68,
1130
- column: 8
1131
- },
1132
- end: {
1133
- line: 70,
1134
- column: 9
1135
- }
1136
- }],
1137
- line: 68
1138
- },
1139
- "13": {
1140
- loc: {
1141
- start: {
1142
- line: 68,
1143
- column: 12
1144
- },
1145
- end: {
1146
- line: 68,
1147
- column: 62
1148
- }
1149
- },
1150
- type: "binary-expr",
1151
- locations: [{
1152
- start: {
1153
- line: 68,
1154
- column: 12
1155
- },
1156
- end: {
1157
- line: 68,
1158
- column: 31
1159
- }
1160
- }, {
1161
- start: {
1162
- line: 68,
1163
- column: 35
1164
- },
1165
- end: {
1166
- line: 68,
1167
- column: 62
1168
- }
1169
- }],
1170
- line: 68
1171
- },
1172
- "14": {
1173
- loc: {
1174
- start: {
1175
- line: 74,
1176
- column: 8
1177
- },
1178
- end: {
1179
- line: 76,
1180
- column: 9
1181
- }
1182
- },
1183
- type: "if",
1184
- locations: [{
1185
- start: {
1186
- line: 74,
1187
- column: 8
1188
- },
1189
- end: {
1190
- line: 76,
1191
- column: 9
1192
- }
1193
- }, {
1194
- start: {
1195
- line: 74,
1196
- column: 8
1197
- },
1198
- end: {
1199
- line: 76,
1200
- column: 9
1201
- }
1202
- }],
1203
- line: 74
1204
- },
1205
- "15": {
1206
- loc: {
1207
- start: {
1208
- line: 74,
1209
- column: 12
1210
- },
1211
- end: {
1212
- line: 74,
1213
- column: 46
1214
- }
1215
- },
1216
- type: "binary-expr",
1217
- locations: [{
1218
- start: {
1219
- line: 74,
1220
- column: 12
1221
- },
1222
- end: {
1223
- line: 74,
1224
- column: 23
1225
- }
1226
- }, {
1227
- start: {
1228
- line: 74,
1229
- column: 27
1230
- },
1231
- end: {
1232
- line: 74,
1233
- column: 46
1234
- }
1235
- }],
1236
- line: 74
1237
- },
1238
- "16": {
1239
- loc: {
1240
- start: {
1241
- line: 80,
1242
- column: 8
1243
- },
1244
- end: {
1245
- line: 82,
1246
- column: 9
1247
- }
1248
- },
1249
- type: "if",
1250
- locations: [{
1251
- start: {
1252
- line: 80,
1253
- column: 8
1254
- },
1255
- end: {
1256
- line: 82,
1257
- column: 9
1258
- }
1259
- }, {
1260
- start: {
1261
- line: 80,
1262
- column: 8
1263
- },
1264
- end: {
1265
- line: 82,
1266
- column: 9
1267
- }
1268
- }],
1269
- line: 80
1270
- },
1271
- "17": {
1272
- loc: {
1273
- start: {
1274
- line: 80,
1275
- column: 12
1276
- },
1277
- end: {
1278
- line: 80,
1279
- column: 53
1280
- }
1281
- },
1282
- type: "binary-expr",
1283
- locations: [{
1284
- start: {
1285
- line: 80,
1286
- column: 12
1287
- },
1288
- end: {
1289
- line: 80,
1290
- column: 23
1291
- }
1292
- }, {
1293
- start: {
1294
- line: 80,
1295
- column: 27
1296
- },
1297
- end: {
1298
- line: 80,
1299
- column: 53
1300
- }
1301
- }],
1302
- line: 80
1303
- },
1304
- "18": {
1305
- loc: {
1306
- start: {
1307
- line: 86,
1308
- column: 8
1309
- },
1310
- end: {
1311
- line: 88,
1312
- column: 9
1313
- }
1314
- },
1315
- type: "if",
1316
- locations: [{
1317
- start: {
1318
- line: 86,
1319
- column: 8
1320
- },
1321
- end: {
1322
- line: 88,
1323
- column: 9
1324
- }
1325
- }, {
1326
- start: {
1327
- line: 86,
1328
- column: 8
1329
- },
1330
- end: {
1331
- line: 88,
1332
- column: 9
1333
- }
1334
- }],
1335
- line: 86
1336
- },
1337
- "19": {
1338
- loc: {
1339
- start: {
1340
- line: 86,
1341
- column: 12
1342
- },
1343
- end: {
1344
- line: 86,
1345
- column: 54
1346
- }
1347
- },
1348
- type: "binary-expr",
1349
- locations: [{
1350
- start: {
1351
- line: 86,
1352
- column: 12
1353
- },
1354
- end: {
1355
- line: 86,
1356
- column: 23
1357
- }
1358
- }, {
1359
- start: {
1360
- line: 86,
1361
- column: 27
1362
- },
1363
- end: {
1364
- line: 86,
1365
- column: 54
1366
- }
1367
- }],
1368
- line: 86
1369
- }
1370
- },
1371
- s: {
1372
- "0": 0,
1373
- "1": 0,
1374
- "2": 0,
1375
- "3": 0,
1376
- "4": 0,
1377
- "5": 0,
1378
- "6": 0,
1379
- "7": 0,
1380
- "8": 0,
1381
- "9": 0,
1382
- "10": 0,
1383
- "11": 0,
1384
- "12": 0,
1385
- "13": 0,
1386
- "14": 0,
1387
- "15": 0,
1388
- "16": 0,
1389
- "17": 0,
1390
- "18": 0,
1391
- "19": 0,
1392
- "20": 0,
1393
- "21": 0,
1394
- "22": 0,
1395
- "23": 0,
1396
- "24": 0,
1397
- "25": 0,
1398
- "26": 0,
1399
- "27": 0,
1400
- "28": 0,
1401
- "29": 0,
1402
- "30": 0,
1403
- "31": 0,
1404
- "32": 0,
1405
- "33": 0,
1406
- "34": 0,
1407
- "35": 0,
1408
- "36": 0,
1409
- "37": 0,
1410
- "38": 0,
1411
- "39": 0
1412
- },
1413
- f: {
1414
- "0": 0,
1415
- "1": 0,
1416
- "2": 0,
1417
- "3": 0,
1418
- "4": 0,
1419
- "5": 0,
1420
- "6": 0,
1421
- "7": 0,
1422
- "8": 0,
1423
- "9": 0,
1424
- "10": 0,
1425
- "11": 0,
1426
- "12": 0
1427
- },
1428
- b: {
1429
- "0": [0, 0, 0],
1430
- "1": [0, 0],
1431
- "2": [0, 0],
1432
- "3": [0, 0],
1433
- "4": [0],
1434
- "5": [0],
1435
- "6": [0, 0],
1436
- "7": [0],
1437
- "8": [0, 0],
1438
- "9": [0, 0],
1439
- "10": [0, 0],
1440
- "11": [0, 0],
1441
- "12": [0, 0],
1442
- "13": [0, 0],
1443
- "14": [0, 0],
1444
- "15": [0, 0],
1445
- "16": [0, 0],
1446
- "17": [0, 0],
1447
- "18": [0, 0],
1448
- "19": [0, 0]
1449
- },
1450
- _coverageSchema: "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"
1451
- },
1452
- coverage = global[gcv] || (global[gcv] = {});
1453
-
1454
- if (coverage[path] && coverage[path].hash === hash) {
1455
- return coverage[path];
1456
- }
1457
-
1458
- coverageData.hash = hash;
1459
- return coverage[path] = coverageData;
1460
- }();
1461
-
1462
- var __importDefault = (cov_1k5798ds01.s[0]++, (cov_1k5798ds01.b[0][0]++, this) && (cov_1k5798ds01.b[0][1]++, this.__importDefault) || (cov_1k5798ds01.b[0][2]++, function (mod) {
1463
- cov_1k5798ds01.f[0]++;
1464
- cov_1k5798ds01.s[1]++;
1465
-
1466
- return (cov_1k5798ds01.b[2][0]++, mod) && (cov_1k5798ds01.b[2][1]++, mod.__esModule) ? (cov_1k5798ds01.b[1][0]++, mod) : (cov_1k5798ds01.b[1][1]++, { "default": mod });
1467
- }));
1468
- cov_1k5798ds01.s[2]++;
1469
- Object.defineProperty(exports, "__esModule", { value: true });
1470
- const errors_1 = (cov_1k5798ds01.s[3]++, require('/@feathersjs/errors$4.5.0/lib/index'/*"@feathersjs/errors"*/));
1471
- const filter_query_1 = (cov_1k5798ds01.s[4]++, __importDefault(require('/@feathersjs/adapter-commons$4.5.0/lib/filter-query'/*"./filter-query"*/)));
1472
- cov_1k5798ds01.s[5]++;
1473
- const callMethod = (self, name, ...args) => {
1474
- cov_1k5798ds01.f[1]++;
1475
- cov_1k5798ds01.s[6]++;
1476
-
1477
- if (typeof self[name] !== 'function') {
1478
- cov_1k5798ds01.b[3][0]++;
1479
- cov_1k5798ds01.s[7]++;
1480
-
1481
- return Promise.reject(new errors_1.NotImplemented(`Method ${name} not available`));
1482
- } else {
1483
- cov_1k5798ds01.b[3][1]++;
1484
- }
1485
- cov_1k5798ds01.s[8]++;
1486
- return self[name](...args);
1487
- };
1488
- const alwaysMulti = (cov_1k5798ds01.s[9]++, {
1489
- find: true,
1490
- get: false,
1491
- update: false
1492
- });
1493
- class AdapterService {
1494
- constructor(options) {
1495
- cov_1k5798ds01.f[2]++;
1496
- cov_1k5798ds01.s[10]++;
1497
-
1498
- this.options = Object.assign({
1499
- id: 'id',
1500
- events: [],
1501
- paginate: {},
1502
- multi: false,
1503
- filters: [],
1504
- whitelist: []
1505
- }, options);
1506
- }
1507
- get id() {
1508
- cov_1k5798ds01.f[3]++;
1509
- cov_1k5798ds01.s[11]++;
1510
-
1511
- return this.options.id;
1512
- }
1513
- get events() {
1514
- cov_1k5798ds01.f[4]++;
1515
- cov_1k5798ds01.s[12]++;
1516
-
1517
- return this.options.events;
1518
- }
1519
- filterQuery(params = (cov_1k5798ds01.b[4][0]++, {}), opts = (cov_1k5798ds01.b[5][0]++, {})) {
1520
- cov_1k5798ds01.f[5]++;
1521
-
1522
- const paginate = (cov_1k5798ds01.s[13]++, typeof params.paginate !== 'undefined' ? (cov_1k5798ds01.b[6][0]++, params.paginate) : (cov_1k5798ds01.b[6][1]++, this.options.paginate));
1523
- const { query = (cov_1k5798ds01.b[7][0]++, {}) } = (cov_1k5798ds01.s[14]++, params);
1524
- const options = (cov_1k5798ds01.s[15]++, Object.assign({
1525
- operators: (cov_1k5798ds01.b[8][0]++, this.options.whitelist) || (cov_1k5798ds01.b[8][1]++, []),
1526
- filters: this.options.filters,
1527
- paginate
1528
- }, opts));
1529
- const result = (cov_1k5798ds01.s[16]++, filter_query_1.default(query, options));
1530
- cov_1k5798ds01.s[17]++;
1531
- return Object.assign(result, { paginate });
1532
- }
1533
- allowsMulti(method) {
1534
- cov_1k5798ds01.f[6]++;
1535
-
1536
- const always = (cov_1k5798ds01.s[18]++, alwaysMulti[method]);
1537
- cov_1k5798ds01.s[19]++;
1538
- if (typeof always !== 'undefined') {
1539
- cov_1k5798ds01.b[9][0]++;
1540
- cov_1k5798ds01.s[20]++;
1541
-
1542
- return always;
1543
- } else {
1544
- cov_1k5798ds01.b[9][1]++;
1545
- }
1546
- const option = (cov_1k5798ds01.s[21]++, this.options.multi);
1547
- cov_1k5798ds01.s[22]++;
1548
- if ((cov_1k5798ds01.b[11][0]++, option === true) || (cov_1k5798ds01.b[11][1]++, option === false)) {
1549
- cov_1k5798ds01.b[10][0]++;
1550
- cov_1k5798ds01.s[23]++;
1551
-
1552
- return option;
1553
- } else {
1554
- cov_1k5798ds01.b[10][1]++;
1555
- cov_1k5798ds01.s[24]++;
1556
-
1557
- return option.includes(method);
1558
- }
1559
- }
1560
- find(params) {
1561
- cov_1k5798ds01.f[7]++;
1562
- cov_1k5798ds01.s[25]++;
1563
-
1564
- return callMethod(this, '_find', params);
1565
- }
1566
- get(id, params) {
1567
- cov_1k5798ds01.f[8]++;
1568
- cov_1k5798ds01.s[26]++;
1569
-
1570
- return callMethod(this, '_get', id, params);
1571
- }
1572
- create(data, params) {
1573
- cov_1k5798ds01.f[9]++;
1574
- cov_1k5798ds01.s[27]++;
1575
-
1576
- if ((cov_1k5798ds01.b[13][0]++, Array.isArray(data)) && (cov_1k5798ds01.b[13][1]++, !this.allowsMulti('create'))) {
1577
- cov_1k5798ds01.b[12][0]++;
1578
- cov_1k5798ds01.s[28]++;
1579
-
1580
- return Promise.reject(new errors_1.MethodNotAllowed(`Can not create multiple entries`));
1581
- } else {
1582
- cov_1k5798ds01.b[12][1]++;
1583
- }
1584
- cov_1k5798ds01.s[29]++;
1585
- return callMethod(this, '_create', data, params);
1586
- }
1587
- update(id, data, params) {
1588
- cov_1k5798ds01.f[10]++;
1589
- cov_1k5798ds01.s[30]++;
1590
-
1591
- if ((cov_1k5798ds01.b[15][0]++, id === null) || (cov_1k5798ds01.b[15][1]++, Array.isArray(data))) {
1592
- cov_1k5798ds01.b[14][0]++;
1593
- cov_1k5798ds01.s[31]++;
1594
-
1595
- return Promise.reject(new errors_1.BadRequest(`You can not replace multiple instances. Did you mean 'patch'?`));
1596
- } else {
1597
- cov_1k5798ds01.b[14][1]++;
1598
- }
1599
- cov_1k5798ds01.s[32]++;
1600
- return callMethod(this, '_update', id, data, params);
1601
- }
1602
- patch(id, data, params) {
1603
- cov_1k5798ds01.f[11]++;
1604
- cov_1k5798ds01.s[33]++;
1605
-
1606
- if ((cov_1k5798ds01.b[17][0]++, id === null) && (cov_1k5798ds01.b[17][1]++, !this.allowsMulti('patch'))) {
1607
- cov_1k5798ds01.b[16][0]++;
1608
- cov_1k5798ds01.s[34]++;
1609
-
1610
- return Promise.reject(new errors_1.MethodNotAllowed(`Can not patch multiple entries`));
1611
- } else {
1612
- cov_1k5798ds01.b[16][1]++;
1613
- }
1614
- cov_1k5798ds01.s[35]++;
1615
- return callMethod(this, '_patch', id, data, params);
1616
- }
1617
- remove(id, params) {
1618
- cov_1k5798ds01.f[12]++;
1619
- cov_1k5798ds01.s[36]++;
1620
-
1621
- if ((cov_1k5798ds01.b[19][0]++, id === null) && (cov_1k5798ds01.b[19][1]++, !this.allowsMulti('remove'))) {
1622
- cov_1k5798ds01.b[18][0]++;
1623
- cov_1k5798ds01.s[37]++;
1624
-
1625
- return Promise.reject(new errors_1.MethodNotAllowed(`Can not remove multiple entries`));
1626
- } else {
1627
- cov_1k5798ds01.b[18][1]++;
1628
- }
1629
- cov_1k5798ds01.s[38]++;
1630
- return callMethod(this, '_remove', id, params);
1631
- }
1632
- }
1633
- cov_1k5798ds01.s[39]++;
1634
- exports.AdapterService = AdapterService;
1635
- //# sourceMappingURL=service.js.map
1636
- });