@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,694 +0,0 @@
1
- $_mod.def("/@feathersjs/adapter-commons$4.5.0/lib/index", function(require, exports, module, __filename, __dirname) { "use strict";
2
-
3
- var cov_w3vwktd8z = function () {
4
- var path = "/Users/daffl/Development/feathersjs/feathers/packages/client/index.js",
5
- hash = "6ce4322eb63394313f504e7b69c87dc6369c5181",
6
- Function = function () {}.constructor,
7
- global = new Function('return this')(),
8
- gcv = "__coverage__",
9
- coverageData = {
10
- path: "/Users/daffl/Development/feathersjs/feathers/packages/client/index.js",
11
- statementMap: {
12
- "0": {
13
- start: {
14
- line: 3,
15
- column: 4
16
- },
17
- end: {
18
- line: 3,
19
- column: 71
20
- }
21
- },
22
- "1": {
23
- start: {
24
- line: 3,
25
- column: 21
26
- },
27
- end: {
28
- line: 3,
29
- column: 71
30
- }
31
- },
32
- "2": {
33
- start: {
34
- line: 3,
35
- column: 53
36
- },
37
- end: {
38
- line: 3,
39
- column: 71
40
- }
41
- },
42
- "3": {
43
- start: {
44
- line: 5,
45
- column: 0
46
- },
47
- end: {
48
- line: 5,
49
- column: 62
50
- }
51
- },
52
- "4": {
53
- start: {
54
- line: 6,
55
- column: 18
56
- },
57
- end: {
58
- line: 6,
59
- column: 48
60
- }
61
- },
62
- "5": {
63
- start: {
64
- line: 7,
65
- column: 16
66
- },
67
- end: {
68
- line: 7,
69
- column: 36
70
- }
71
- },
72
- "6": {
73
- start: {
74
- line: 8,
75
- column: 0
76
- },
77
- end: {
78
- line: 8,
79
- column: 50
80
- }
81
- },
82
- "7": {
83
- start: {
84
- line: 9,
85
- column: 21
86
- },
87
- end: {
88
- line: 9,
89
- column: 46
90
- }
91
- },
92
- "8": {
93
- start: {
94
- line: 10,
95
- column: 0
96
- },
97
- end: {
98
- line: 10,
99
- column: 45
100
- }
101
- },
102
- "9": {
103
- start: {
104
- line: 11,
105
- column: 0
106
- },
107
- end: {
108
- line: 11,
109
- column: 41
110
- }
111
- },
112
- "10": {
113
- start: {
114
- line: 12,
115
- column: 0
116
- },
117
- end: {
118
- line: 12,
119
- column: 45
120
- }
121
- },
122
- "11": {
123
- start: {
124
- line: 13,
125
- column: 0
126
- },
127
- end: {
128
- line: 13,
129
- column: 28
130
- }
131
- },
132
- "12": {
133
- start: {
134
- line: 18,
135
- column: 19
136
- },
137
- end: {
138
- line: 18,
139
- column: 65
140
- }
141
- },
142
- "13": {
143
- start: {
144
- line: 19,
145
- column: 4
146
- },
147
- end: {
148
- line: 21,
149
- column: 5
150
- }
151
- },
152
- "14": {
153
- start: {
154
- line: 20,
155
- column: 8
156
- },
157
- end: {
158
- line: 20,
159
- column: 36
160
- }
161
- },
162
- "15": {
163
- start: {
164
- line: 22,
165
- column: 20
166
- },
167
- end: {
168
- line: 27,
169
- column: 5
170
- }
171
- },
172
- "16": {
173
- start: {
174
- line: 23,
175
- column: 8
176
- },
177
- end: {
178
- line: 25,
179
- column: 9
180
- }
181
- },
182
- "17": {
183
- start: {
184
- line: 24,
185
- column: 12
186
- },
187
- end: {
188
- line: 24,
189
- column: 26
190
- }
191
- },
192
- "18": {
193
- start: {
194
- line: 26,
195
- column: 8
196
- },
197
- end: {
198
- line: 26,
199
- column: 51
200
- }
201
- },
202
- "19": {
203
- start: {
204
- line: 28,
205
- column: 4
206
- },
207
- end: {
208
- line: 33,
209
- column: 6
210
- }
211
- },
212
- "20": {
213
- start: {
214
- line: 29,
215
- column: 8
216
- },
217
- end: {
218
- line: 31,
219
- column: 9
220
- }
221
- },
222
- "21": {
223
- start: {
224
- line: 30,
225
- column: 12
226
- },
227
- end: {
228
- line: 30,
229
- column: 39
230
- }
231
- },
232
- "22": {
233
- start: {
234
- line: 32,
235
- column: 8
236
- },
237
- end: {
238
- line: 32,
239
- column: 31
240
- }
241
- },
242
- "23": {
243
- start: {
244
- line: 35,
245
- column: 0
246
- },
247
- end: {
248
- line: 35,
249
- column: 24
250
- }
251
- }
252
- },
253
- fnMap: {
254
- "0": {
255
- name: "__export",
256
- decl: {
257
- start: {
258
- line: 2,
259
- column: 9
260
- },
261
- end: {
262
- line: 2,
263
- column: 17
264
- }
265
- },
266
- loc: {
267
- start: {
268
- line: 2,
269
- column: 21
270
- },
271
- end: {
272
- line: 4,
273
- column: 1
274
- }
275
- },
276
- line: 2
277
- },
278
- "1": {
279
- name: "select",
280
- decl: {
281
- start: {
282
- line: 17,
283
- column: 9
284
- },
285
- end: {
286
- line: 17,
287
- column: 15
288
- }
289
- },
290
- loc: {
291
- start: {
292
- line: 17,
293
- column: 40
294
- },
295
- end: {
296
- line: 34,
297
- column: 1
298
- }
299
- },
300
- line: 17
301
- },
302
- "2": {
303
- name: "(anonymous_2)",
304
- decl: {
305
- start: {
306
- line: 22,
307
- column: 20
308
- },
309
- end: {
310
- line: 22,
311
- column: 21
312
- }
313
- },
314
- loc: {
315
- start: {
316
- line: 22,
317
- column: 32
318
- },
319
- end: {
320
- line: 27,
321
- column: 5
322
- }
323
- },
324
- line: 22
325
- },
326
- "3": {
327
- name: "(anonymous_3)",
328
- decl: {
329
- start: {
330
- line: 28,
331
- column: 11
332
- },
333
- end: {
334
- line: 28,
335
- column: 12
336
- }
337
- },
338
- loc: {
339
- start: {
340
- line: 28,
341
- column: 23
342
- },
343
- end: {
344
- line: 33,
345
- column: 5
346
- }
347
- },
348
- line: 28
349
- }
350
- },
351
- branchMap: {
352
- "0": {
353
- loc: {
354
- start: {
355
- line: 3,
356
- column: 21
357
- },
358
- end: {
359
- line: 3,
360
- column: 71
361
- }
362
- },
363
- type: "if",
364
- locations: [{
365
- start: {
366
- line: 3,
367
- column: 21
368
- },
369
- end: {
370
- line: 3,
371
- column: 71
372
- }
373
- }, {
374
- start: {
375
- line: 3,
376
- column: 21
377
- },
378
- end: {
379
- line: 3,
380
- column: 71
381
- }
382
- }],
383
- line: 3
384
- },
385
- "1": {
386
- loc: {
387
- start: {
388
- line: 18,
389
- column: 19
390
- },
391
- end: {
392
- line: 18,
393
- column: 65
394
- }
395
- },
396
- type: "binary-expr",
397
- locations: [{
398
- start: {
399
- line: 18,
400
- column: 19
401
- },
402
- end: {
403
- line: 18,
404
- column: 25
405
- }
406
- }, {
407
- start: {
408
- line: 18,
409
- column: 29
410
- },
411
- end: {
412
- line: 18,
413
- column: 41
414
- }
415
- }, {
416
- start: {
417
- line: 18,
418
- column: 45
419
- },
420
- end: {
421
- line: 18,
422
- column: 65
423
- }
424
- }],
425
- line: 18
426
- },
427
- "2": {
428
- loc: {
429
- start: {
430
- line: 19,
431
- column: 4
432
- },
433
- end: {
434
- line: 21,
435
- column: 5
436
- }
437
- },
438
- type: "if",
439
- locations: [{
440
- start: {
441
- line: 19,
442
- column: 4
443
- },
444
- end: {
445
- line: 21,
446
- column: 5
447
- }
448
- }, {
449
- start: {
450
- line: 19,
451
- column: 4
452
- },
453
- end: {
454
- line: 21,
455
- column: 5
456
- }
457
- }],
458
- line: 19
459
- },
460
- "3": {
461
- loc: {
462
- start: {
463
- line: 19,
464
- column: 8
465
- },
466
- end: {
467
- line: 19,
468
- column: 51
469
- }
470
- },
471
- type: "binary-expr",
472
- locations: [{
473
- start: {
474
- line: 19,
475
- column: 8
476
- },
477
- end: {
478
- line: 19,
479
- column: 29
480
- }
481
- }, {
482
- start: {
483
- line: 19,
484
- column: 33
485
- },
486
- end: {
487
- line: 19,
488
- column: 51
489
- }
490
- }],
491
- line: 19
492
- },
493
- "4": {
494
- loc: {
495
- start: {
496
- line: 23,
497
- column: 8
498
- },
499
- end: {
500
- line: 25,
501
- column: 9
502
- }
503
- },
504
- type: "if",
505
- locations: [{
506
- start: {
507
- line: 23,
508
- column: 8
509
- },
510
- end: {
511
- line: 25,
512
- column: 9
513
- }
514
- }, {
515
- start: {
516
- line: 23,
517
- column: 8
518
- },
519
- end: {
520
- line: 25,
521
- column: 9
522
- }
523
- }],
524
- line: 23
525
- },
526
- "5": {
527
- loc: {
528
- start: {
529
- line: 29,
530
- column: 8
531
- },
532
- end: {
533
- line: 31,
534
- column: 9
535
- }
536
- },
537
- type: "if",
538
- locations: [{
539
- start: {
540
- line: 29,
541
- column: 8
542
- },
543
- end: {
544
- line: 31,
545
- column: 9
546
- }
547
- }, {
548
- start: {
549
- line: 29,
550
- column: 8
551
- },
552
- end: {
553
- line: 31,
554
- column: 9
555
- }
556
- }],
557
- line: 29
558
- }
559
- },
560
- s: {
561
- "0": 0,
562
- "1": 0,
563
- "2": 0,
564
- "3": 0,
565
- "4": 0,
566
- "5": 0,
567
- "6": 0,
568
- "7": 0,
569
- "8": 0,
570
- "9": 0,
571
- "10": 0,
572
- "11": 0,
573
- "12": 0,
574
- "13": 0,
575
- "14": 0,
576
- "15": 0,
577
- "16": 0,
578
- "17": 0,
579
- "18": 0,
580
- "19": 0,
581
- "20": 0,
582
- "21": 0,
583
- "22": 0,
584
- "23": 0
585
- },
586
- f: {
587
- "0": 0,
588
- "1": 0,
589
- "2": 0,
590
- "3": 0
591
- },
592
- b: {
593
- "0": [0, 0],
594
- "1": [0, 0, 0],
595
- "2": [0, 0],
596
- "3": [0, 0],
597
- "4": [0, 0],
598
- "5": [0, 0]
599
- },
600
- _coverageSchema: "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"
601
- },
602
- coverage = global[gcv] || (global[gcv] = {});
603
-
604
- if (coverage[path] && coverage[path].hash === hash) {
605
- return coverage[path];
606
- }
607
-
608
- coverageData.hash = hash;
609
- return coverage[path] = coverageData;
610
- }();
611
-
612
- function __export(m) {
613
- cov_w3vwktd8z.f[0]++;
614
- cov_w3vwktd8z.s[0]++;
615
-
616
- for (var p in m) {
617
- cov_w3vwktd8z.s[1]++;
618
- if (!exports.hasOwnProperty(p)) {
619
- cov_w3vwktd8z.b[0][0]++;
620
- cov_w3vwktd8z.s[2]++;
621
- exports[p] = m[p];
622
- } else {
623
- cov_w3vwktd8z.b[0][1]++;
624
- }
625
- }
626
- }
627
- cov_w3vwktd8z.s[3]++;
628
- Object.defineProperty(exports, "__esModule", { value: true });
629
- const commons_1 = (cov_w3vwktd8z.s[4]++, require('/@feathersjs/commons$4.5.0/lib/index'/*"@feathersjs/commons"*/));
630
- var service_1 = (cov_w3vwktd8z.s[5]++, require('/@feathersjs/adapter-commons$4.5.0/lib/service'/*"./service"*/));
631
- cov_w3vwktd8z.s[6]++;
632
- exports.AdapterService = service_1.AdapterService;
633
- var filter_query_1 = (cov_w3vwktd8z.s[7]++, require('/@feathersjs/adapter-commons$4.5.0/lib/filter-query'/*"./filter-query"*/));
634
- cov_w3vwktd8z.s[8]++;
635
- exports.filterQuery = filter_query_1.default;
636
- cov_w3vwktd8z.s[9]++;
637
- exports.FILTERS = filter_query_1.FILTERS;
638
- cov_w3vwktd8z.s[10]++;
639
- exports.OPERATORS = filter_query_1.OPERATORS;
640
- cov_w3vwktd8z.s[11]++;
641
- __export(require('/@feathersjs/adapter-commons$4.5.0/lib/sort'/*"./sort"*/));
642
- // Return a function that filters a result object or array
643
- // and picks only the fields passed as `params.query.$select`
644
- // and additional `otherFields`
645
- function select(params, ...otherFields) {
646
- cov_w3vwktd8z.f[1]++;
647
-
648
- const fields = (cov_w3vwktd8z.s[12]++, (cov_w3vwktd8z.b[1][0]++, params) && (cov_w3vwktd8z.b[1][1]++, params.query) && (cov_w3vwktd8z.b[1][2]++, params.query.$select));
649
- cov_w3vwktd8z.s[13]++;
650
- if ((cov_w3vwktd8z.b[3][0]++, Array.isArray(fields)) && (cov_w3vwktd8z.b[3][1]++, otherFields.length)) {
651
- cov_w3vwktd8z.b[2][0]++;
652
- cov_w3vwktd8z.s[14]++;
653
-
654
- fields.push(...otherFields);
655
- } else {
656
- cov_w3vwktd8z.b[2][1]++;
657
- }
658
- cov_w3vwktd8z.s[15]++;
659
- const convert = result => {
660
- cov_w3vwktd8z.f[2]++;
661
- cov_w3vwktd8z.s[16]++;
662
-
663
- if (!Array.isArray(fields)) {
664
- cov_w3vwktd8z.b[4][0]++;
665
- cov_w3vwktd8z.s[17]++;
666
-
667
- return result;
668
- } else {
669
- cov_w3vwktd8z.b[4][1]++;
670
- }
671
- cov_w3vwktd8z.s[18]++;
672
- return commons_1._.pick(result, ...fields);
673
- };
674
- cov_w3vwktd8z.s[19]++;
675
- return result => {
676
- cov_w3vwktd8z.f[3]++;
677
- cov_w3vwktd8z.s[20]++;
678
-
679
- if (Array.isArray(result)) {
680
- cov_w3vwktd8z.b[5][0]++;
681
- cov_w3vwktd8z.s[21]++;
682
-
683
- return result.map(convert);
684
- } else {
685
- cov_w3vwktd8z.b[5][1]++;
686
- }
687
- cov_w3vwktd8z.s[22]++;
688
- return convert(result);
689
- };
690
- }
691
- cov_w3vwktd8z.s[23]++;
692
- exports.select = select;
693
- //# sourceMappingURL=index.js.map
694
- });