@feathersjs/client 4.5.8 → 4.5.12

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.
@@ -8,118 +8,40 @@
8
8
  else
9
9
  root["feathers"] = factory();
10
10
  })(this, function() {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = "./src/authentication.js");
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
98
13
 
99
14
  /***/ "../../node_modules/debug/src/browser.js":
100
- /*!**************************************************************************************!*\
101
- !*** /Users/daffl/Development/feathersjs/feathers/node_modules/debug/src/browser.js ***!
102
- \**************************************************************************************/
103
- /*! no static exports found */
15
+ /*!***********************************************!*\
16
+ !*** ../../node_modules/debug/src/browser.js ***!
17
+ \***********************************************/
104
18
  /***/ (function(module, exports, __webpack_require__) {
105
19
 
106
- /* WEBPACK VAR INJECTION */(function(process) {function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
107
-
108
20
  /* eslint-env browser */
109
21
 
110
22
  /**
111
23
  * This is the web browser implementation of `debug()`.
112
24
  */
113
- exports.log = log;
114
25
  exports.formatArgs = formatArgs;
115
26
  exports.save = save;
116
27
  exports.load = load;
117
28
  exports.useColors = useColors;
118
29
  exports.storage = localstorage();
30
+
31
+ exports.destroy = function () {
32
+ var warned = false;
33
+ return function () {
34
+ if (!warned) {
35
+ warned = true;
36
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
37
+ }
38
+ };
39
+ }();
119
40
  /**
120
41
  * Colors.
121
42
  */
122
43
 
44
+
123
45
  exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
124
46
  /**
125
47
  * Currently only WebKit-based Web Inspectors, Firefox >= v31,
@@ -188,20 +110,16 @@ function formatArgs(args) {
188
110
  args.splice(lastC, 0, c);
189
111
  }
190
112
  /**
191
- * Invokes `console.log()` when available.
192
- * No-op when `console.log` is not a "function".
113
+ * Invokes `console.debug()` when available.
114
+ * No-op when `console.debug` is not a "function".
115
+ * If `console.debug` is not available, falls back
116
+ * to `console.log`.
193
117
  *
194
118
  * @api public
195
119
  */
196
120
 
197
121
 
198
- function log() {
199
- var _console;
200
-
201
- // This hackery is required for IE8/9, where
202
- // the `console.log` function doesn't have 'apply'
203
- return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
204
- }
122
+ exports.log = console.debug || console.log || function () {};
205
123
  /**
206
124
  * Save `namespaces`.
207
125
  *
@@ -280,16 +198,14 @@ formatters.j = function (v) {
280
198
  return '[UnexpectedJSONParseError]: ' + error.message;
281
199
  }
282
200
  };
283
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "../../node_modules/process/browser.js")))
284
201
 
285
202
  /***/ }),
286
203
 
287
204
  /***/ "../../node_modules/debug/src/common.js":
288
- /*!*************************************************************************************!*\
289
- !*** /Users/daffl/Development/feathersjs/feathers/node_modules/debug/src/common.js ***!
290
- \*************************************************************************************/
291
- /*! no static exports found */
292
- /***/ (function(module, exports, __webpack_require__) {
205
+ /*!**********************************************!*\
206
+ !*** ../../node_modules/debug/src/common.js ***!
207
+ \**********************************************/
208
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
293
209
 
294
210
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
295
211
 
@@ -297,7 +213,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
297
213
 
298
214
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
299
215
 
300
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
216
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
301
217
 
302
218
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
303
219
 
@@ -315,15 +231,11 @@ function setup(env) {
315
231
  createDebug.enable = enable;
316
232
  createDebug.enabled = enabled;
317
233
  createDebug.humanize = __webpack_require__(/*! ms */ "../../node_modules/ms/index.js");
234
+ createDebug.destroy = destroy;
318
235
  Object.keys(env).forEach(function (key) {
319
236
  createDebug[key] = env[key];
320
237
  });
321
238
  /**
322
- * Active `debug` instances.
323
- */
324
-
325
- createDebug.instances = [];
326
- /**
327
239
  * The currently active debug mode names, and names to skip.
328
240
  */
329
241
 
@@ -338,7 +250,7 @@ function setup(env) {
338
250
  createDebug.formatters = {};
339
251
  /**
340
252
  * Selects a color for a debug namespace
341
- * @param {String} namespace The namespace string for the for the debug instance to be colored
253
+ * @param {String} namespace The namespace string for the debug instance to be colored
342
254
  * @return {Number|String} An ANSI color code for the given namespace
343
255
  * @api private
344
256
  */
@@ -365,6 +277,9 @@ function setup(env) {
365
277
 
366
278
  function createDebug(namespace) {
367
279
  var prevTime;
280
+ var enableOverride = null;
281
+ var namespacesCache;
282
+ var enabledCache;
368
283
 
369
284
  function debug() {
370
285
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -396,7 +311,7 @@ function setup(env) {
396
311
  args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
397
312
  // If we encounter an escaped % then don't increase the array index
398
313
  if (match === '%%') {
399
- return match;
314
+ return '%';
400
315
  }
401
316
 
402
317
  index++;
@@ -419,33 +334,38 @@ function setup(env) {
419
334
  }
420
335
 
421
336
  debug.namespace = namespace;
422
- debug.enabled = createDebug.enabled(namespace);
423
337
  debug.useColors = createDebug.useColors();
424
- debug.color = selectColor(namespace);
425
- debug.destroy = destroy;
426
- debug.extend = extend; // Debug.formatArgs = formatArgs;
427
- // debug.rawLog = rawLog;
428
- // env-specific initialization logic for debug instances
338
+ debug.color = createDebug.selectColor(namespace);
339
+ debug.extend = extend;
340
+ debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
341
+
342
+ Object.defineProperty(debug, 'enabled', {
343
+ enumerable: true,
344
+ configurable: false,
345
+ get: function get() {
346
+ if (enableOverride !== null) {
347
+ return enableOverride;
348
+ }
349
+
350
+ if (namespacesCache !== createDebug.namespaces) {
351
+ namespacesCache = createDebug.namespaces;
352
+ enabledCache = createDebug.enabled(namespace);
353
+ }
354
+
355
+ return enabledCache;
356
+ },
357
+ set: function set(v) {
358
+ enableOverride = v;
359
+ }
360
+ }); // Env-specific initialization logic for debug instances
429
361
 
430
362
  if (typeof createDebug.init === 'function') {
431
363
  createDebug.init(debug);
432
364
  }
433
365
 
434
- createDebug.instances.push(debug);
435
366
  return debug;
436
367
  }
437
368
 
438
- function destroy() {
439
- var index = createDebug.instances.indexOf(this);
440
-
441
- if (index !== -1) {
442
- createDebug.instances.splice(index, 1);
443
- return true;
444
- }
445
-
446
- return false;
447
- }
448
-
449
369
  function extend(namespace, delimiter) {
450
370
  var newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
451
371
  newDebug.log = this.log;
@@ -462,6 +382,7 @@ function setup(env) {
462
382
 
463
383
  function enable(namespaces) {
464
384
  createDebug.save(namespaces);
385
+ createDebug.namespaces = namespaces;
465
386
  createDebug.names = [];
466
387
  createDebug.skips = [];
467
388
  var i;
@@ -482,11 +403,6 @@ function setup(env) {
482
403
  createDebug.names.push(new RegExp('^' + namespaces + '$'));
483
404
  }
484
405
  }
485
-
486
- for (i = 0; i < createDebug.instances.length; i++) {
487
- var instance = createDebug.instances[i];
488
- instance.enabled = createDebug.enabled(instance.namespace);
489
- }
490
406
  }
491
407
  /**
492
408
  * Disable debug output.
@@ -560,382 +476,23 @@ function setup(env) {
560
476
  return val.stack || val.message;
561
477
  }
562
478
 
563
- return val;
564
- }
565
-
566
- createDebug.enable(createDebug.load());
567
- return createDebug;
568
- }
569
-
570
- module.exports = setup;
571
-
572
- /***/ }),
573
-
574
- /***/ "../../node_modules/ms/index.js":
575
- /*!*****************************************************************************!*\
576
- !*** /Users/daffl/Development/feathersjs/feathers/node_modules/ms/index.js ***!
577
- \*****************************************************************************/
578
- /*! no static exports found */
579
- /***/ (function(module, exports) {
580
-
581
- /**
582
- * Helpers.
583
- */
584
-
585
- var s = 1000;
586
- var m = s * 60;
587
- var h = m * 60;
588
- var d = h * 24;
589
- var w = d * 7;
590
- var y = d * 365.25;
591
-
592
- /**
593
- * Parse or format the given `val`.
594
- *
595
- * Options:
596
- *
597
- * - `long` verbose formatting [false]
598
- *
599
- * @param {String|Number} val
600
- * @param {Object} [options]
601
- * @throws {Error} throw an error if val is not a non-empty string or a number
602
- * @return {String|Number}
603
- * @api public
604
- */
605
-
606
- module.exports = function(val, options) {
607
- options = options || {};
608
- var type = typeof val;
609
- if (type === 'string' && val.length > 0) {
610
- return parse(val);
611
- } else if (type === 'number' && isFinite(val)) {
612
- return options.long ? fmtLong(val) : fmtShort(val);
613
- }
614
- throw new Error(
615
- 'val is not a non-empty string or a valid number. val=' +
616
- JSON.stringify(val)
617
- );
618
- };
619
-
620
- /**
621
- * Parse the given `str` and return milliseconds.
622
- *
623
- * @param {String} str
624
- * @return {Number}
625
- * @api private
626
- */
627
-
628
- function parse(str) {
629
- str = String(str);
630
- if (str.length > 100) {
631
- return;
632
- }
633
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
634
- str
635
- );
636
- if (!match) {
637
- return;
638
- }
639
- var n = parseFloat(match[1]);
640
- var type = (match[2] || 'ms').toLowerCase();
641
- switch (type) {
642
- case 'years':
643
- case 'year':
644
- case 'yrs':
645
- case 'yr':
646
- case 'y':
647
- return n * y;
648
- case 'weeks':
649
- case 'week':
650
- case 'w':
651
- return n * w;
652
- case 'days':
653
- case 'day':
654
- case 'd':
655
- return n * d;
656
- case 'hours':
657
- case 'hour':
658
- case 'hrs':
659
- case 'hr':
660
- case 'h':
661
- return n * h;
662
- case 'minutes':
663
- case 'minute':
664
- case 'mins':
665
- case 'min':
666
- case 'm':
667
- return n * m;
668
- case 'seconds':
669
- case 'second':
670
- case 'secs':
671
- case 'sec':
672
- case 's':
673
- return n * s;
674
- case 'milliseconds':
675
- case 'millisecond':
676
- case 'msecs':
677
- case 'msec':
678
- case 'ms':
679
- return n;
680
- default:
681
- return undefined;
682
- }
683
- }
684
-
685
- /**
686
- * Short format for `ms`.
687
- *
688
- * @param {Number} ms
689
- * @return {String}
690
- * @api private
691
- */
692
-
693
- function fmtShort(ms) {
694
- var msAbs = Math.abs(ms);
695
- if (msAbs >= d) {
696
- return Math.round(ms / d) + 'd';
697
- }
698
- if (msAbs >= h) {
699
- return Math.round(ms / h) + 'h';
700
- }
701
- if (msAbs >= m) {
702
- return Math.round(ms / m) + 'm';
703
- }
704
- if (msAbs >= s) {
705
- return Math.round(ms / s) + 's';
706
- }
707
- return ms + 'ms';
708
- }
709
-
710
- /**
711
- * Long format for `ms`.
712
- *
713
- * @param {Number} ms
714
- * @return {String}
715
- * @api private
716
- */
717
-
718
- function fmtLong(ms) {
719
- var msAbs = Math.abs(ms);
720
- if (msAbs >= d) {
721
- return plural(ms, msAbs, d, 'day');
722
- }
723
- if (msAbs >= h) {
724
- return plural(ms, msAbs, h, 'hour');
725
- }
726
- if (msAbs >= m) {
727
- return plural(ms, msAbs, m, 'minute');
728
- }
729
- if (msAbs >= s) {
730
- return plural(ms, msAbs, s, 'second');
731
- }
732
- return ms + ' ms';
733
- }
734
-
735
- /**
736
- * Pluralization helper.
737
- */
738
-
739
- function plural(ms, msAbs, n, name) {
740
- var isPlural = msAbs >= n * 1.5;
741
- return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
742
- }
743
-
744
-
745
- /***/ }),
746
-
747
- /***/ "../../node_modules/process/browser.js":
748
- /*!************************************************************************************!*\
749
- !*** /Users/daffl/Development/feathersjs/feathers/node_modules/process/browser.js ***!
750
- \************************************************************************************/
751
- /*! no static exports found */
752
- /***/ (function(module, exports) {
753
-
754
- // shim for using process in browser
755
- var process = module.exports = {};
756
-
757
- // cached from whatever global is present so that test runners that stub it
758
- // don't break things. But we need to wrap it in a try catch in case it is
759
- // wrapped in strict mode code which doesn't define any globals. It's inside a
760
- // function because try/catches deoptimize in certain engines.
761
-
762
- var cachedSetTimeout;
763
- var cachedClearTimeout;
764
-
765
- function defaultSetTimout() {
766
- throw new Error('setTimeout has not been defined');
767
- }
768
- function defaultClearTimeout () {
769
- throw new Error('clearTimeout has not been defined');
770
- }
771
- (function () {
772
- try {
773
- if (typeof setTimeout === 'function') {
774
- cachedSetTimeout = setTimeout;
775
- } else {
776
- cachedSetTimeout = defaultSetTimout;
777
- }
778
- } catch (e) {
779
- cachedSetTimeout = defaultSetTimout;
780
- }
781
- try {
782
- if (typeof clearTimeout === 'function') {
783
- cachedClearTimeout = clearTimeout;
784
- } else {
785
- cachedClearTimeout = defaultClearTimeout;
786
- }
787
- } catch (e) {
788
- cachedClearTimeout = defaultClearTimeout;
789
- }
790
- } ())
791
- function runTimeout(fun) {
792
- if (cachedSetTimeout === setTimeout) {
793
- //normal enviroments in sane situations
794
- return setTimeout(fun, 0);
795
- }
796
- // if setTimeout wasn't available but was latter defined
797
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
798
- cachedSetTimeout = setTimeout;
799
- return setTimeout(fun, 0);
800
- }
801
- try {
802
- // when when somebody has screwed with setTimeout but no I.E. maddness
803
- return cachedSetTimeout(fun, 0);
804
- } catch(e){
805
- try {
806
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
807
- return cachedSetTimeout.call(null, fun, 0);
808
- } catch(e){
809
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
810
- return cachedSetTimeout.call(this, fun, 0);
811
- }
812
- }
813
-
814
-
815
- }
816
- function runClearTimeout(marker) {
817
- if (cachedClearTimeout === clearTimeout) {
818
- //normal enviroments in sane situations
819
- return clearTimeout(marker);
820
- }
821
- // if clearTimeout wasn't available but was latter defined
822
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
823
- cachedClearTimeout = clearTimeout;
824
- return clearTimeout(marker);
825
- }
826
- try {
827
- // when when somebody has screwed with setTimeout but no I.E. maddness
828
- return cachedClearTimeout(marker);
829
- } catch (e){
830
- try {
831
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
832
- return cachedClearTimeout.call(null, marker);
833
- } catch (e){
834
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
835
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
836
- return cachedClearTimeout.call(this, marker);
837
- }
838
- }
839
-
840
-
841
-
842
- }
843
- var queue = [];
844
- var draining = false;
845
- var currentQueue;
846
- var queueIndex = -1;
847
-
848
- function cleanUpNextTick() {
849
- if (!draining || !currentQueue) {
850
- return;
851
- }
852
- draining = false;
853
- if (currentQueue.length) {
854
- queue = currentQueue.concat(queue);
855
- } else {
856
- queueIndex = -1;
857
- }
858
- if (queue.length) {
859
- drainQueue();
860
- }
861
- }
862
-
863
- function drainQueue() {
864
- if (draining) {
865
- return;
866
- }
867
- var timeout = runTimeout(cleanUpNextTick);
868
- draining = true;
869
-
870
- var len = queue.length;
871
- while(len) {
872
- currentQueue = queue;
873
- queue = [];
874
- while (++queueIndex < len) {
875
- if (currentQueue) {
876
- currentQueue[queueIndex].run();
877
- }
878
- }
879
- queueIndex = -1;
880
- len = queue.length;
881
- }
882
- currentQueue = null;
883
- draining = false;
884
- runClearTimeout(timeout);
885
- }
886
-
887
- process.nextTick = function (fun) {
888
- var args = new Array(arguments.length - 1);
889
- if (arguments.length > 1) {
890
- for (var i = 1; i < arguments.length; i++) {
891
- args[i - 1] = arguments[i];
892
- }
893
- }
894
- queue.push(new Item(fun, args));
895
- if (queue.length === 1 && !draining) {
896
- runTimeout(drainQueue);
897
- }
898
- };
899
-
900
- // v8 likes predictible objects
901
- function Item(fun, array) {
902
- this.fun = fun;
903
- this.array = array;
904
- }
905
- Item.prototype.run = function () {
906
- this.fun.apply(null, this.array);
907
- };
908
- process.title = 'browser';
909
- process.browser = true;
910
- process.env = {};
911
- process.argv = [];
912
- process.version = ''; // empty string to avoid regexp issues
913
- process.versions = {};
914
-
915
- function noop() {}
916
-
917
- process.on = noop;
918
- process.addListener = noop;
919
- process.once = noop;
920
- process.off = noop;
921
- process.removeListener = noop;
922
- process.removeAllListeners = noop;
923
- process.emit = noop;
924
- process.prependListener = noop;
925
- process.prependOnceListener = noop;
926
-
927
- process.listeners = function (name) { return [] }
928
-
929
- process.binding = function (name) {
930
- throw new Error('process.binding is not supported');
931
- };
479
+ return val;
480
+ }
481
+ /**
482
+ * XXX DO NOT USE. This is a temporary stub function.
483
+ * XXX It WILL be removed in the next major release.
484
+ */
932
485
 
933
- process.cwd = function () { return '/' };
934
- process.chdir = function (dir) {
935
- throw new Error('process.chdir is not supported');
936
- };
937
- process.umask = function() { return 0; };
938
486
 
487
+ function destroy() {
488
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
489
+ }
490
+
491
+ createDebug.enable(createDebug.load());
492
+ return createDebug;
493
+ }
494
+
495
+ module.exports = setup;
939
496
 
940
497
  /***/ }),
941
498
 
@@ -943,8 +500,7 @@ process.umask = function() { return 0; };
943
500
  /*!********************************************!*\
944
501
  !*** ../authentication-client/lib/core.js ***!
945
502
  \********************************************/
946
- /*! no static exports found */
947
- /***/ (function(module, exports, __webpack_require__) {
503
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
948
504
 
949
505
  "use strict";
950
506
 
@@ -953,7 +509,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
953
509
 
954
510
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
955
511
 
956
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
512
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
957
513
 
958
514
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
959
515
 
@@ -963,13 +519,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
963
519
 
964
520
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
965
521
 
966
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
522
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
967
523
 
968
524
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
969
525
 
970
- Object.defineProperty(exports, "__esModule", {
526
+ Object.defineProperty(exports, "__esModule", ({
971
527
  value: true
972
- });
528
+ }));
973
529
  exports.AuthenticationClient = void 0;
974
530
 
975
531
  var errors_1 = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
@@ -1007,6 +563,16 @@ var AuthenticationClient = /*#__PURE__*/function () {
1007
563
  }
1008
564
 
1009
565
  _createClass(AuthenticationClient, [{
566
+ key: "service",
567
+ get: function get() {
568
+ return this.app.service(this.options.path);
569
+ }
570
+ }, {
571
+ key: "storage",
572
+ get: function get() {
573
+ return this.app.get('storage');
574
+ }
575
+ }, {
1010
576
  key: "handleSocket",
1011
577
  value: function handleSocket(socket) {
1012
578
  var _this = this;
@@ -1016,8 +582,8 @@ var AuthenticationClient = /*#__PURE__*/function () {
1016
582
  var disconnected = this.app.io ? 'disconnect' : 'disconnection';
1017
583
  socket.on(disconnected, function () {
1018
584
  var authPromise = new Promise(function (resolve) {
1019
- return socket.once(connected, function () {
1020
- return resolve();
585
+ return socket.once(connected, function (data) {
586
+ return resolve(data);
1021
587
  });
1022
588
  }) // Only reconnect when `reAuthenticate()` or `authenticate()`
1023
589
  // has been called explicitly first
@@ -1106,6 +672,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
1106
672
  var _this4 = this;
1107
673
 
1108
674
  var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
675
+ var strategy = arguments.length > 1 ? arguments[1] : undefined;
1109
676
  // Either returns the authentication state or
1110
677
  // tries to re-authenticate with the stored JWT and strategy
1111
678
  var authPromise = this.app.get('authentication');
@@ -1117,7 +684,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
1117
684
  }
1118
685
 
1119
686
  return _this4.authenticate({
1120
- strategy: _this4.options.jwtStrategy,
687
+ strategy: strategy || _this4.options.jwtStrategy,
1121
688
  accessToken: accessToken
1122
689
  });
1123
690
  });
@@ -1170,16 +737,6 @@ var AuthenticationClient = /*#__PURE__*/function () {
1170
737
  return _this6.handleError(error, 'logout');
1171
738
  });
1172
739
  }
1173
- }, {
1174
- key: "service",
1175
- get: function get() {
1176
- return this.app.service(this.options.path);
1177
- }
1178
- }, {
1179
- key: "storage",
1180
- get: function get() {
1181
- return this.app.get('storage');
1182
- }
1183
740
  }]);
1184
741
 
1185
742
  return AuthenticationClient;
@@ -1193,20 +750,19 @@ exports.AuthenticationClient = AuthenticationClient;
1193
750
  /*!************************************************************!*\
1194
751
  !*** ../authentication-client/lib/hooks/authentication.js ***!
1195
752
  \************************************************************/
1196
- /*! no static exports found */
1197
- /***/ (function(module, exports, __webpack_require__) {
753
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1198
754
 
1199
755
  "use strict";
1200
756
 
1201
757
 
1202
- Object.defineProperty(exports, "__esModule", {
758
+ Object.defineProperty(exports, "__esModule", ({
1203
759
  value: true
1204
- });
760
+ }));
1205
761
  exports.authentication = void 0;
1206
762
 
1207
763
  var commons_1 = __webpack_require__(/*! @feathersjs/commons */ "../commons/lib/index.js");
1208
764
 
1209
- exports.authentication = function () {
765
+ var authentication = function authentication() {
1210
766
  return function (context) {
1211
767
  var app = context.app,
1212
768
  params = context.params,
@@ -1214,7 +770,7 @@ exports.authentication = function () {
1214
770
  method = context.method,
1215
771
  service = context.app.authentication;
1216
772
 
1217
- if (commons_1.stripSlashes(service.options.path) === path && method === 'create') {
773
+ if ((0, commons_1.stripSlashes)(service.options.path) === path && method === 'create') {
1218
774
  return context;
1219
775
  }
1220
776
 
@@ -1228,39 +784,41 @@ exports.authentication = function () {
1228
784
  };
1229
785
  };
1230
786
 
787
+ exports.authentication = authentication;
788
+
1231
789
  /***/ }),
1232
790
 
1233
791
  /***/ "../authentication-client/lib/hooks/index.js":
1234
792
  /*!***************************************************!*\
1235
793
  !*** ../authentication-client/lib/hooks/index.js ***!
1236
794
  \***************************************************/
1237
- /*! no static exports found */
1238
- /***/ (function(module, exports, __webpack_require__) {
795
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1239
796
 
1240
797
  "use strict";
1241
798
 
1242
799
 
1243
- Object.defineProperty(exports, "__esModule", {
800
+ Object.defineProperty(exports, "__esModule", ({
1244
801
  value: true
1245
- });
802
+ }));
803
+ exports.populateHeader = exports.authentication = void 0;
1246
804
 
1247
805
  var authentication_1 = __webpack_require__(/*! ./authentication */ "../authentication-client/lib/hooks/authentication.js");
1248
806
 
1249
- Object.defineProperty(exports, "authentication", {
807
+ Object.defineProperty(exports, "authentication", ({
1250
808
  enumerable: true,
1251
809
  get: function get() {
1252
810
  return authentication_1.authentication;
1253
811
  }
1254
- });
812
+ }));
1255
813
 
1256
814
  var populate_header_1 = __webpack_require__(/*! ./populate-header */ "../authentication-client/lib/hooks/populate-header.js");
1257
815
 
1258
- Object.defineProperty(exports, "populateHeader", {
816
+ Object.defineProperty(exports, "populateHeader", ({
1259
817
  enumerable: true,
1260
818
  get: function get() {
1261
819
  return populate_header_1.populateHeader;
1262
820
  }
1263
- });
821
+ }));
1264
822
 
1265
823
  /***/ }),
1266
824
 
@@ -1268,20 +826,19 @@ Object.defineProperty(exports, "populateHeader", {
1268
826
  /*!*************************************************************!*\
1269
827
  !*** ../authentication-client/lib/hooks/populate-header.js ***!
1270
828
  \*************************************************************/
1271
- /*! no static exports found */
1272
- /***/ (function(module, exports, __webpack_require__) {
829
+ /***/ (function(__unused_webpack_module, exports) {
1273
830
 
1274
831
  "use strict";
1275
832
 
1276
833
 
1277
834
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1278
835
 
1279
- Object.defineProperty(exports, "__esModule", {
836
+ Object.defineProperty(exports, "__esModule", ({
1280
837
  value: true
1281
- });
838
+ }));
1282
839
  exports.populateHeader = void 0;
1283
840
 
1284
- exports.populateHeader = function () {
841
+ var populateHeader = function populateHeader() {
1285
842
  return function (context) {
1286
843
  var app = context.app,
1287
844
  accessToken = context.params.accessToken;
@@ -1299,13 +856,14 @@ exports.populateHeader = function () {
1299
856
  };
1300
857
  };
1301
858
 
859
+ exports.populateHeader = populateHeader;
860
+
1302
861
  /***/ }),
1303
862
 
1304
863
  /***/ "../authentication-client/lib/index.js":
1305
864
  /*!*********************************************!*\
1306
865
  !*** ../authentication-client/lib/index.js ***!
1307
866
  \*********************************************/
1308
- /*! no static exports found */
1309
867
  /***/ (function(module, exports, __webpack_require__) {
1310
868
 
1311
869
  "use strict";
@@ -1337,7 +895,7 @@ var __importStar = this && this.__importStar || function (mod) {
1337
895
  if (mod && mod.__esModule) return mod;
1338
896
  var result = {};
1339
897
  if (mod != null) for (var k in mod) {
1340
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
898
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1341
899
  }
1342
900
 
1343
901
  __setModuleDefault(result, mod);
@@ -1345,19 +903,19 @@ var __importStar = this && this.__importStar || function (mod) {
1345
903
  return result;
1346
904
  };
1347
905
 
1348
- Object.defineProperty(exports, "__esModule", {
906
+ Object.defineProperty(exports, "__esModule", ({
1349
907
  value: true
1350
- });
908
+ }));
1351
909
  exports.defaults = exports.defaultStorage = exports.hooks = exports.MemoryStorage = exports.AuthenticationClient = exports.getDefaultStorage = void 0;
1352
910
 
1353
911
  var core_1 = __webpack_require__(/*! ./core */ "../authentication-client/lib/core.js");
1354
912
 
1355
- Object.defineProperty(exports, "AuthenticationClient", {
913
+ Object.defineProperty(exports, "AuthenticationClient", ({
1356
914
  enumerable: true,
1357
915
  get: function get() {
1358
916
  return core_1.AuthenticationClient;
1359
917
  }
1360
- });
918
+ }));
1361
919
 
1362
920
  var hooks = __importStar(__webpack_require__(/*! ./hooks */ "../authentication-client/lib/hooks/index.js"));
1363
921
 
@@ -1365,14 +923,14 @@ exports.hooks = hooks;
1365
923
 
1366
924
  var storage_1 = __webpack_require__(/*! ./storage */ "../authentication-client/lib/storage.js");
1367
925
 
1368
- Object.defineProperty(exports, "MemoryStorage", {
926
+ Object.defineProperty(exports, "MemoryStorage", ({
1369
927
  enumerable: true,
1370
928
  get: function get() {
1371
929
  return storage_1.MemoryStorage;
1372
930
  }
1373
- });
931
+ }));
1374
932
 
1375
- exports.getDefaultStorage = function () {
933
+ var getDefaultStorage = function getDefaultStorage() {
1376
934
  try {
1377
935
  return new storage_1.StorageWrapper(window.localStorage);
1378
936
  } catch (error) {}
@@ -1380,7 +938,8 @@ exports.getDefaultStorage = function () {
1380
938
  return new storage_1.MemoryStorage();
1381
939
  };
1382
940
 
1383
- exports.defaultStorage = exports.getDefaultStorage();
941
+ exports.getDefaultStorage = getDefaultStorage;
942
+ exports.defaultStorage = (0, exports.getDefaultStorage)();
1384
943
  exports.defaults = {
1385
944
  header: 'Authorization',
1386
945
  scheme: 'Bearer',
@@ -1412,7 +971,7 @@ var init = function init() {
1412
971
  };
1413
972
  };
1414
973
 
1415
- exports.default = init;
974
+ exports["default"] = init;
1416
975
 
1417
976
  if (true) {
1418
977
  module.exports = Object.assign(init, module.exports);
@@ -1424,8 +983,7 @@ if (true) {
1424
983
  /*!***********************************************!*\
1425
984
  !*** ../authentication-client/lib/storage.js ***!
1426
985
  \***********************************************/
1427
- /*! no static exports found */
1428
- /***/ (function(module, exports, __webpack_require__) {
986
+ /***/ (function(__unused_webpack_module, exports) {
1429
987
 
1430
988
  "use strict";
1431
989
 
@@ -1434,11 +992,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
1434
992
 
1435
993
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1436
994
 
1437
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
995
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1438
996
 
1439
- Object.defineProperty(exports, "__esModule", {
997
+ Object.defineProperty(exports, "__esModule", ({
1440
998
  value: true
1441
- });
999
+ }));
1442
1000
  exports.StorageWrapper = exports.MemoryStorage = void 0;
1443
1001
 
1444
1002
  var MemoryStorage = /*#__PURE__*/function () {
@@ -1503,21 +1061,30 @@ exports.StorageWrapper = StorageWrapper;
1503
1061
 
1504
1062
  /***/ }),
1505
1063
 
1064
+ /***/ "./src/authentication.js":
1065
+ /*!*******************************!*\
1066
+ !*** ./src/authentication.js ***!
1067
+ \*******************************/
1068
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1069
+
1070
+ module.exports = __webpack_require__(/*! @feathersjs/authentication-client */ "../authentication-client/lib/index.js");
1071
+
1072
+ /***/ }),
1073
+
1506
1074
  /***/ "../commons/lib/hooks.js":
1507
1075
  /*!*******************************!*\
1508
1076
  !*** ../commons/lib/hooks.js ***!
1509
1077
  \*******************************/
1510
- /*! no static exports found */
1511
- /***/ (function(module, exports, __webpack_require__) {
1078
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1512
1079
 
1513
1080
  "use strict";
1514
1081
 
1515
1082
 
1516
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1083
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1517
1084
 
1518
- Object.defineProperty(exports, "__esModule", {
1085
+ Object.defineProperty(exports, "__esModule", ({
1519
1086
  value: true
1520
- });
1087
+ }));
1521
1088
  exports.enableHooks = exports.processHooks = exports.getHooks = exports.isHookObject = exports.convertHookData = exports.makeArguments = exports.defaultMakeArguments = exports.createHookObject = exports.ACTIVATE_HOOKS = void 0;
1522
1089
 
1523
1090
  var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
@@ -1525,7 +1092,7 @@ var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
1525
1092
  var _utils_1$_ = utils_1._,
1526
1093
  each = _utils_1$_.each,
1527
1094
  pick = _utils_1$_.pick;
1528
- exports.ACTIVATE_HOOKS = utils_1.createSymbol('__feathersActivateHooks');
1095
+ exports.ACTIVATE_HOOKS = (0, utils_1.createSymbol)('__feathersActivateHooks');
1529
1096
 
1530
1097
  function createHookObject(method) {
1531
1098
  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1741,8 +1308,7 @@ exports.enableHooks = enableHooks;
1741
1308
  /*!*******************************!*\
1742
1309
  !*** ../commons/lib/index.js ***!
1743
1310
  \*******************************/
1744
- /*! no static exports found */
1745
- /***/ (function(module, exports, __webpack_require__) {
1311
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1746
1312
 
1747
1313
  "use strict";
1748
1314
 
@@ -1773,7 +1339,7 @@ var __importStar = this && this.__importStar || function (mod) {
1773
1339
  if (mod && mod.__esModule) return mod;
1774
1340
  var result = {};
1775
1341
  if (mod != null) for (var k in mod) {
1776
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1342
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1777
1343
  }
1778
1344
 
1779
1345
  __setModuleDefault(result, mod);
@@ -1783,13 +1349,13 @@ var __importStar = this && this.__importStar || function (mod) {
1783
1349
 
1784
1350
  var __exportStar = this && this.__exportStar || function (m, exports) {
1785
1351
  for (var p in m) {
1786
- if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
1352
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1787
1353
  }
1788
1354
  };
1789
1355
 
1790
- Object.defineProperty(exports, "__esModule", {
1356
+ Object.defineProperty(exports, "__esModule", ({
1791
1357
  value: true
1792
- });
1358
+ }));
1793
1359
  exports.hooks = void 0;
1794
1360
 
1795
1361
  var hookUtils = __importStar(__webpack_require__(/*! ./hooks */ "../commons/lib/hooks.js"));
@@ -1804,15 +1370,14 @@ exports.hooks = hookUtils;
1804
1370
  /*!*******************************!*\
1805
1371
  !*** ../commons/lib/utils.js ***!
1806
1372
  \*******************************/
1807
- /*! no static exports found */
1808
- /***/ (function(module, exports, __webpack_require__) {
1373
+ /***/ (function(__unused_webpack_module, exports) {
1809
1374
 
1810
1375
  "use strict";
1811
- /* WEBPACK VAR INJECTION */(function(process) {
1376
+
1812
1377
 
1813
1378
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1814
1379
 
1815
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1380
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1816
1381
 
1817
1382
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1818
1383
 
@@ -1822,13 +1387,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
1822
1387
 
1823
1388
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1824
1389
 
1825
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1390
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1826
1391
 
1827
1392
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1828
1393
 
1829
- Object.defineProperty(exports, "__esModule", {
1394
+ Object.defineProperty(exports, "__esModule", ({
1830
1395
  value: true
1831
- });
1396
+ }));
1832
1397
  exports.createSymbol = exports.makeUrl = exports.isPromise = exports._ = exports.stripSlashes = void 0; // Removes all leading and trailing slashes from a path
1833
1398
 
1834
1399
  function stripSlashes(name) {
@@ -1968,7 +1533,6 @@ function createSymbol(name) {
1968
1533
  }
1969
1534
 
1970
1535
  exports.createSymbol = createSymbol;
1971
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/process/browser.js */ "../../node_modules/process/browser.js")))
1972
1536
 
1973
1537
  /***/ }),
1974
1538
 
@@ -1976,10 +1540,9 @@ exports.createSymbol = createSymbol;
1976
1540
  /*!******************************!*\
1977
1541
  !*** ../errors/lib/index.js ***!
1978
1542
  \******************************/
1979
- /*! no static exports found */
1980
- /***/ (function(module, exports, __webpack_require__) {
1543
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1981
1544
 
1982
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1545
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1983
1546
 
1984
1547
  var debug = __webpack_require__(/*! debug */ "../../node_modules/debug/src/browser.js")('@feathersjs/errors');
1985
1548
 
@@ -2222,17 +1785,213 @@ module.exports = Object.assign({
2222
1785
 
2223
1786
  /***/ }),
2224
1787
 
2225
- /***/ "./src/authentication.js":
2226
- /*!*******************************!*\
2227
- !*** ./src/authentication.js ***!
2228
- \*******************************/
2229
- /*! no static exports found */
2230
- /***/ (function(module, exports, __webpack_require__) {
1788
+ /***/ "../../node_modules/ms/index.js":
1789
+ /*!**************************************!*\
1790
+ !*** ../../node_modules/ms/index.js ***!
1791
+ \**************************************/
1792
+ /***/ (function(module) {
1793
+
1794
+ /**
1795
+ * Helpers.
1796
+ */
1797
+
1798
+ var s = 1000;
1799
+ var m = s * 60;
1800
+ var h = m * 60;
1801
+ var d = h * 24;
1802
+ var w = d * 7;
1803
+ var y = d * 365.25;
1804
+
1805
+ /**
1806
+ * Parse or format the given `val`.
1807
+ *
1808
+ * Options:
1809
+ *
1810
+ * - `long` verbose formatting [false]
1811
+ *
1812
+ * @param {String|Number} val
1813
+ * @param {Object} [options]
1814
+ * @throws {Error} throw an error if val is not a non-empty string or a number
1815
+ * @return {String|Number}
1816
+ * @api public
1817
+ */
1818
+
1819
+ module.exports = function(val, options) {
1820
+ options = options || {};
1821
+ var type = typeof val;
1822
+ if (type === 'string' && val.length > 0) {
1823
+ return parse(val);
1824
+ } else if (type === 'number' && isFinite(val)) {
1825
+ return options.long ? fmtLong(val) : fmtShort(val);
1826
+ }
1827
+ throw new Error(
1828
+ 'val is not a non-empty string or a valid number. val=' +
1829
+ JSON.stringify(val)
1830
+ );
1831
+ };
1832
+
1833
+ /**
1834
+ * Parse the given `str` and return milliseconds.
1835
+ *
1836
+ * @param {String} str
1837
+ * @return {Number}
1838
+ * @api private
1839
+ */
1840
+
1841
+ function parse(str) {
1842
+ str = String(str);
1843
+ if (str.length > 100) {
1844
+ return;
1845
+ }
1846
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
1847
+ str
1848
+ );
1849
+ if (!match) {
1850
+ return;
1851
+ }
1852
+ var n = parseFloat(match[1]);
1853
+ var type = (match[2] || 'ms').toLowerCase();
1854
+ switch (type) {
1855
+ case 'years':
1856
+ case 'year':
1857
+ case 'yrs':
1858
+ case 'yr':
1859
+ case 'y':
1860
+ return n * y;
1861
+ case 'weeks':
1862
+ case 'week':
1863
+ case 'w':
1864
+ return n * w;
1865
+ case 'days':
1866
+ case 'day':
1867
+ case 'd':
1868
+ return n * d;
1869
+ case 'hours':
1870
+ case 'hour':
1871
+ case 'hrs':
1872
+ case 'hr':
1873
+ case 'h':
1874
+ return n * h;
1875
+ case 'minutes':
1876
+ case 'minute':
1877
+ case 'mins':
1878
+ case 'min':
1879
+ case 'm':
1880
+ return n * m;
1881
+ case 'seconds':
1882
+ case 'second':
1883
+ case 'secs':
1884
+ case 'sec':
1885
+ case 's':
1886
+ return n * s;
1887
+ case 'milliseconds':
1888
+ case 'millisecond':
1889
+ case 'msecs':
1890
+ case 'msec':
1891
+ case 'ms':
1892
+ return n;
1893
+ default:
1894
+ return undefined;
1895
+ }
1896
+ }
1897
+
1898
+ /**
1899
+ * Short format for `ms`.
1900
+ *
1901
+ * @param {Number} ms
1902
+ * @return {String}
1903
+ * @api private
1904
+ */
1905
+
1906
+ function fmtShort(ms) {
1907
+ var msAbs = Math.abs(ms);
1908
+ if (msAbs >= d) {
1909
+ return Math.round(ms / d) + 'd';
1910
+ }
1911
+ if (msAbs >= h) {
1912
+ return Math.round(ms / h) + 'h';
1913
+ }
1914
+ if (msAbs >= m) {
1915
+ return Math.round(ms / m) + 'm';
1916
+ }
1917
+ if (msAbs >= s) {
1918
+ return Math.round(ms / s) + 's';
1919
+ }
1920
+ return ms + 'ms';
1921
+ }
1922
+
1923
+ /**
1924
+ * Long format for `ms`.
1925
+ *
1926
+ * @param {Number} ms
1927
+ * @return {String}
1928
+ * @api private
1929
+ */
1930
+
1931
+ function fmtLong(ms) {
1932
+ var msAbs = Math.abs(ms);
1933
+ if (msAbs >= d) {
1934
+ return plural(ms, msAbs, d, 'day');
1935
+ }
1936
+ if (msAbs >= h) {
1937
+ return plural(ms, msAbs, h, 'hour');
1938
+ }
1939
+ if (msAbs >= m) {
1940
+ return plural(ms, msAbs, m, 'minute');
1941
+ }
1942
+ if (msAbs >= s) {
1943
+ return plural(ms, msAbs, s, 'second');
1944
+ }
1945
+ return ms + ' ms';
1946
+ }
1947
+
1948
+ /**
1949
+ * Pluralization helper.
1950
+ */
1951
+
1952
+ function plural(ms, msAbs, n, name) {
1953
+ var isPlural = msAbs >= n * 1.5;
1954
+ return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
1955
+ }
2231
1956
 
2232
- module.exports = __webpack_require__(/*! @feathersjs/authentication-client */ "../authentication-client/lib/index.js");
2233
1957
 
2234
1958
  /***/ })
2235
1959
 
2236
- /******/ });
1960
+ /******/ });
1961
+ /************************************************************************/
1962
+ /******/ // The module cache
1963
+ /******/ var __webpack_module_cache__ = {};
1964
+ /******/
1965
+ /******/ // The require function
1966
+ /******/ function __webpack_require__(moduleId) {
1967
+ /******/ // Check if module is in cache
1968
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1969
+ /******/ if (cachedModule !== undefined) {
1970
+ /******/ return cachedModule.exports;
1971
+ /******/ }
1972
+ /******/ // Create a new module (and put it into the cache)
1973
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1974
+ /******/ // no module.id needed
1975
+ /******/ // no module.loaded needed
1976
+ /******/ exports: {}
1977
+ /******/ };
1978
+ /******/
1979
+ /******/ // Execute the module function
1980
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1981
+ /******/
1982
+ /******/ // Return the exports of the module
1983
+ /******/ return module.exports;
1984
+ /******/ }
1985
+ /******/
1986
+ /************************************************************************/
1987
+ /******/
1988
+ /******/ // startup
1989
+ /******/ // Load entry module and return exports
1990
+ /******/ // This entry module used 'module' so it can't be inlined
1991
+ /******/ var __webpack_exports__ = __webpack_require__("./src/authentication.js");
1992
+ /******/
1993
+ /******/ return __webpack_exports__;
1994
+ /******/ })()
1995
+ ;
2237
1996
  });
2238
1997
  //# sourceMappingURL=authentication.js.map