@feathersjs/client 5.0.23 → 5.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/feathers.js CHANGED
@@ -29,7 +29,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
29
29
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
30
  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, _toPropertyKey(descriptor.key), descriptor); } }
31
31
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
32
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
32
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
33
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34
34
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
35
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
@@ -46,11 +46,11 @@ exports.AuthenticationClient = void 0;
46
46
  var errors_1 = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
47
47
  var storage_1 = __webpack_require__(/*! ./storage */ "../authentication-client/lib/storage.js");
48
48
  var OauthError = /*#__PURE__*/function (_errors_1$FeathersErr) {
49
- _inherits(OauthError, _errors_1$FeathersErr);
50
49
  function OauthError(message, data) {
51
50
  _classCallCheck(this, OauthError);
52
51
  return _callSuper(this, OauthError, [message, 'OauthError', 401, 'oauth-error', data]);
53
52
  }
53
+ _inherits(OauthError, _errors_1$FeathersErr);
54
54
  return _createClass(OauthError);
55
55
  }(errors_1.FeathersError);
56
56
  var getMatch = function getMatch(location, key) {
@@ -76,7 +76,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
76
76
  this.handleSocket(socket);
77
77
  }
78
78
  }
79
- _createClass(AuthenticationClient, [{
79
+ return _createClass(AuthenticationClient, [{
80
80
  key: "service",
81
81
  get: function get() {
82
82
  return this.app.service(this.options.path);
@@ -277,7 +277,6 @@ var AuthenticationClient = /*#__PURE__*/function () {
277
277
  });
278
278
  }
279
279
  }]);
280
- return AuthenticationClient;
281
280
  }();
282
281
  exports.AuthenticationClient = AuthenticationClient;
283
282
 
@@ -359,7 +358,7 @@ Object.defineProperty(exports, "populateHeader", ({
359
358
 
360
359
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
361
360
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
362
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
361
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
363
362
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
364
363
  Object.defineProperty(exports, "__esModule", ({
365
364
  value: true
@@ -497,7 +496,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
497
496
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
498
497
  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, _toPropertyKey(descriptor.key), descriptor); } }
499
498
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
500
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
499
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
501
500
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
502
501
  Object.defineProperty(exports, "__esModule", ({
503
502
  value: true
@@ -508,7 +507,7 @@ var MemoryStorage = /*#__PURE__*/function () {
508
507
  _classCallCheck(this, MemoryStorage);
509
508
  this.store = {};
510
509
  }
511
- _createClass(MemoryStorage, [{
510
+ return _createClass(MemoryStorage, [{
512
511
  key: "getItem",
513
512
  value: function getItem(key) {
514
513
  return Promise.resolve(this.store[key]);
@@ -526,7 +525,6 @@ var MemoryStorage = /*#__PURE__*/function () {
526
525
  return Promise.resolve(value);
527
526
  }
528
527
  }]);
529
- return MemoryStorage;
530
528
  }();
531
529
  exports.MemoryStorage = MemoryStorage;
532
530
  var StorageWrapper = /*#__PURE__*/function () {
@@ -534,7 +532,7 @@ var StorageWrapper = /*#__PURE__*/function () {
534
532
  _classCallCheck(this, StorageWrapper);
535
533
  this.storage = storage;
536
534
  }
537
- _createClass(StorageWrapper, [{
535
+ return _createClass(StorageWrapper, [{
538
536
  key: "getItem",
539
537
  value: function getItem(key) {
540
538
  var _a;
@@ -553,7 +551,6 @@ var StorageWrapper = /*#__PURE__*/function () {
553
551
  return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.removeItem(key));
554
552
  }
555
553
  }]);
556
- return StorageWrapper;
557
554
  }();
558
555
  exports.StorageWrapper = StorageWrapper;
559
556
 
@@ -607,7 +604,7 @@ exports.createDebug = createDebug;
607
604
 
608
605
 
609
606
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
610
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
607
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
611
608
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
612
609
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
613
610
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -765,12 +762,12 @@ __exportStar(__webpack_require__(/*! ./debug */ "../commons/lib/debug.js"), expo
765
762
 
766
763
  var _excluded = ["message", "errors"];
767
764
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
768
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
765
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
769
766
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
770
767
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
771
768
  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, _toPropertyKey(descriptor.key), descriptor); } }
772
769
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
773
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
770
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
774
771
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
775
772
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
776
773
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -787,7 +784,6 @@ Object.defineProperty(exports, "__esModule", ({
787
784
  }));
788
785
  exports.convert = exports.errors = exports.Unavailable = exports.BadGateway = exports.NotImplemented = exports.GeneralError = exports.TooManyRequests = exports.Unprocessable = exports.LengthRequired = exports.Gone = exports.Conflict = exports.Timeout = exports.NotAcceptable = exports.MethodNotAllowed = exports.NotFound = exports.Forbidden = exports.PaymentError = exports.NotAuthenticated = exports.BadRequest = exports.FeathersError = void 0;
789
786
  var FeathersError = /*#__PURE__*/function (_Error) {
790
- _inherits(FeathersError, _Error);
791
787
  function FeathersError(err, name, code, className, _data) {
792
788
  var _this;
793
789
  _classCallCheck(this, FeathersError);
@@ -810,10 +806,11 @@ var FeathersError = /*#__PURE__*/function (_Error) {
810
806
  properties.data = rest;
811
807
  }
812
808
  _this = _callSuper(this, FeathersError, [msg]);
813
- Object.assign(_assertThisInitialized(_this), properties);
809
+ Object.assign(_this, properties);
814
810
  return _this;
815
811
  }
816
- _createClass(FeathersError, [{
812
+ _inherits(FeathersError, _Error);
813
+ return _createClass(FeathersError, [{
817
814
  key: "toJSON",
818
815
  value: function toJSON() {
819
816
  var result = {
@@ -831,175 +828,174 @@ var FeathersError = /*#__PURE__*/function (_Error) {
831
828
  return result;
832
829
  }
833
830
  }]);
834
- return FeathersError;
835
831
  }( /*#__PURE__*/_wrapNativeSuper(Error));
836
832
  exports.FeathersError = FeathersError;
837
833
  var BadRequest = /*#__PURE__*/function (_FeathersError) {
838
- _inherits(BadRequest, _FeathersError);
839
834
  function BadRequest(message, data) {
840
835
  _classCallCheck(this, BadRequest);
841
836
  return _callSuper(this, BadRequest, [message, 'BadRequest', 400, 'bad-request', data]);
842
837
  }
838
+ _inherits(BadRequest, _FeathersError);
843
839
  return _createClass(BadRequest);
844
840
  }(FeathersError);
845
841
  exports.BadRequest = BadRequest;
846
842
  // 401 - Not Authenticated
847
843
  var NotAuthenticated = /*#__PURE__*/function (_FeathersError2) {
848
- _inherits(NotAuthenticated, _FeathersError2);
849
844
  function NotAuthenticated(message, data) {
850
845
  _classCallCheck(this, NotAuthenticated);
851
846
  return _callSuper(this, NotAuthenticated, [message, 'NotAuthenticated', 401, 'not-authenticated', data]);
852
847
  }
848
+ _inherits(NotAuthenticated, _FeathersError2);
853
849
  return _createClass(NotAuthenticated);
854
850
  }(FeathersError);
855
851
  exports.NotAuthenticated = NotAuthenticated;
856
852
  // 402 - Payment Error
857
853
  var PaymentError = /*#__PURE__*/function (_FeathersError3) {
858
- _inherits(PaymentError, _FeathersError3);
859
854
  function PaymentError(message, data) {
860
855
  _classCallCheck(this, PaymentError);
861
856
  return _callSuper(this, PaymentError, [message, 'PaymentError', 402, 'payment-error', data]);
862
857
  }
858
+ _inherits(PaymentError, _FeathersError3);
863
859
  return _createClass(PaymentError);
864
860
  }(FeathersError);
865
861
  exports.PaymentError = PaymentError;
866
862
  // 403 - Forbidden
867
863
  var Forbidden = /*#__PURE__*/function (_FeathersError4) {
868
- _inherits(Forbidden, _FeathersError4);
869
864
  function Forbidden(message, data) {
870
865
  _classCallCheck(this, Forbidden);
871
866
  return _callSuper(this, Forbidden, [message, 'Forbidden', 403, 'forbidden', data]);
872
867
  }
868
+ _inherits(Forbidden, _FeathersError4);
873
869
  return _createClass(Forbidden);
874
870
  }(FeathersError);
875
871
  exports.Forbidden = Forbidden;
876
872
  // 404 - Not Found
877
873
  var NotFound = /*#__PURE__*/function (_FeathersError5) {
878
- _inherits(NotFound, _FeathersError5);
879
874
  function NotFound(message, data) {
880
875
  _classCallCheck(this, NotFound);
881
876
  return _callSuper(this, NotFound, [message, 'NotFound', 404, 'not-found', data]);
882
877
  }
878
+ _inherits(NotFound, _FeathersError5);
883
879
  return _createClass(NotFound);
884
880
  }(FeathersError);
885
881
  exports.NotFound = NotFound;
886
882
  // 405 - Method Not Allowed
887
883
  var MethodNotAllowed = /*#__PURE__*/function (_FeathersError6) {
888
- _inherits(MethodNotAllowed, _FeathersError6);
889
884
  function MethodNotAllowed(message, data) {
890
885
  _classCallCheck(this, MethodNotAllowed);
891
886
  return _callSuper(this, MethodNotAllowed, [message, 'MethodNotAllowed', 405, 'method-not-allowed', data]);
892
887
  }
888
+ _inherits(MethodNotAllowed, _FeathersError6);
893
889
  return _createClass(MethodNotAllowed);
894
890
  }(FeathersError);
895
891
  exports.MethodNotAllowed = MethodNotAllowed;
896
892
  // 406 - Not Acceptable
897
893
  var NotAcceptable = /*#__PURE__*/function (_FeathersError7) {
898
- _inherits(NotAcceptable, _FeathersError7);
899
894
  function NotAcceptable(message, data) {
900
895
  _classCallCheck(this, NotAcceptable);
901
896
  return _callSuper(this, NotAcceptable, [message, 'NotAcceptable', 406, 'not-acceptable', data]);
902
897
  }
898
+ _inherits(NotAcceptable, _FeathersError7);
903
899
  return _createClass(NotAcceptable);
904
900
  }(FeathersError);
905
901
  exports.NotAcceptable = NotAcceptable;
906
902
  // 408 - Timeout
907
903
  var Timeout = /*#__PURE__*/function (_FeathersError8) {
908
- _inherits(Timeout, _FeathersError8);
909
904
  function Timeout(message, data) {
910
905
  _classCallCheck(this, Timeout);
911
906
  return _callSuper(this, Timeout, [message, 'Timeout', 408, 'timeout', data]);
912
907
  }
908
+ _inherits(Timeout, _FeathersError8);
913
909
  return _createClass(Timeout);
914
910
  }(FeathersError);
915
911
  exports.Timeout = Timeout;
916
912
  // 409 - Conflict
917
913
  var Conflict = /*#__PURE__*/function (_FeathersError9) {
918
- _inherits(Conflict, _FeathersError9);
919
914
  function Conflict(message, data) {
920
915
  _classCallCheck(this, Conflict);
921
916
  return _callSuper(this, Conflict, [message, 'Conflict', 409, 'conflict', data]);
922
917
  }
918
+ _inherits(Conflict, _FeathersError9);
923
919
  return _createClass(Conflict);
924
920
  }(FeathersError);
925
921
  exports.Conflict = Conflict;
926
922
  // 410 - Gone
927
923
  var Gone = /*#__PURE__*/function (_FeathersError10) {
928
- _inherits(Gone, _FeathersError10);
929
924
  function Gone(message, data) {
930
925
  _classCallCheck(this, Gone);
931
926
  return _callSuper(this, Gone, [message, 'Gone', 410, 'gone', data]);
932
927
  }
928
+ _inherits(Gone, _FeathersError10);
933
929
  return _createClass(Gone);
934
930
  }(FeathersError);
935
931
  exports.Gone = Gone;
936
932
  // 411 - Length Required
937
933
  var LengthRequired = /*#__PURE__*/function (_FeathersError11) {
938
- _inherits(LengthRequired, _FeathersError11);
939
934
  function LengthRequired(message, data) {
940
935
  _classCallCheck(this, LengthRequired);
941
936
  return _callSuper(this, LengthRequired, [message, 'LengthRequired', 411, 'length-required', data]);
942
937
  }
938
+ _inherits(LengthRequired, _FeathersError11);
943
939
  return _createClass(LengthRequired);
944
940
  }(FeathersError);
945
941
  exports.LengthRequired = LengthRequired;
946
942
  // 422 Unprocessable
947
943
  var Unprocessable = /*#__PURE__*/function (_FeathersError12) {
948
- _inherits(Unprocessable, _FeathersError12);
949
944
  function Unprocessable(message, data) {
950
945
  _classCallCheck(this, Unprocessable);
951
946
  return _callSuper(this, Unprocessable, [message, 'Unprocessable', 422, 'unprocessable', data]);
952
947
  }
948
+ _inherits(Unprocessable, _FeathersError12);
953
949
  return _createClass(Unprocessable);
954
950
  }(FeathersError);
955
951
  exports.Unprocessable = Unprocessable;
956
952
  // 429 Too Many Requests
957
953
  var TooManyRequests = /*#__PURE__*/function (_FeathersError13) {
958
- _inherits(TooManyRequests, _FeathersError13);
959
954
  function TooManyRequests(message, data) {
960
955
  _classCallCheck(this, TooManyRequests);
961
956
  return _callSuper(this, TooManyRequests, [message, 'TooManyRequests', 429, 'too-many-requests', data]);
962
957
  }
958
+ _inherits(TooManyRequests, _FeathersError13);
963
959
  return _createClass(TooManyRequests);
964
960
  }(FeathersError);
965
961
  exports.TooManyRequests = TooManyRequests;
966
962
  // 500 - General Error
967
963
  var GeneralError = /*#__PURE__*/function (_FeathersError14) {
968
- _inherits(GeneralError, _FeathersError14);
969
964
  function GeneralError(message, data) {
970
965
  _classCallCheck(this, GeneralError);
971
966
  return _callSuper(this, GeneralError, [message, 'GeneralError', 500, 'general-error', data]);
972
967
  }
968
+ _inherits(GeneralError, _FeathersError14);
973
969
  return _createClass(GeneralError);
974
970
  }(FeathersError);
975
971
  exports.GeneralError = GeneralError;
976
972
  // 501 - Not Implemented
977
973
  var NotImplemented = /*#__PURE__*/function (_FeathersError15) {
978
- _inherits(NotImplemented, _FeathersError15);
979
974
  function NotImplemented(message, data) {
980
975
  _classCallCheck(this, NotImplemented);
981
976
  return _callSuper(this, NotImplemented, [message, 'NotImplemented', 501, 'not-implemented', data]);
982
977
  }
978
+ _inherits(NotImplemented, _FeathersError15);
983
979
  return _createClass(NotImplemented);
984
980
  }(FeathersError);
985
981
  exports.NotImplemented = NotImplemented;
986
982
  // 502 - Bad Gateway
987
983
  var BadGateway = /*#__PURE__*/function (_FeathersError16) {
988
- _inherits(BadGateway, _FeathersError16);
989
984
  function BadGateway(message, data) {
990
985
  _classCallCheck(this, BadGateway);
991
986
  return _callSuper(this, BadGateway, [message, 'BadGateway', 502, 'bad-gateway', data]);
992
987
  }
988
+ _inherits(BadGateway, _FeathersError16);
993
989
  return _createClass(BadGateway);
994
990
  }(FeathersError);
995
991
  exports.BadGateway = BadGateway;
996
992
  // 503 - Unavailable
997
993
  var Unavailable = /*#__PURE__*/function (_FeathersError17) {
998
- _inherits(Unavailable, _FeathersError17);
999
994
  function Unavailable(message, data) {
1000
995
  _classCallCheck(this, Unavailable);
1001
996
  return _callSuper(this, Unavailable, [message, 'Unavailable', 503, 'unavailable', data]);
1002
997
  }
998
+ _inherits(Unavailable, _FeathersError17);
1003
999
  return _createClass(Unavailable);
1004
1000
  }(FeathersError);
1005
1001
  exports.Unavailable = Unavailable;
@@ -1064,7 +1060,7 @@ exports.convert = convert;
1064
1060
 
1065
1061
 
1066
1062
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1067
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
1063
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
1068
1064
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
1069
1065
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
1070
1066
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
@@ -1073,13 +1069,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1073
1069
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1074
1070
  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, _toPropertyKey(descriptor.key), descriptor); } }
1075
1071
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1076
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1072
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1077
1073
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1078
1074
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1079
1075
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
1076
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1080
1077
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1081
1078
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1082
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1083
1079
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
1084
1080
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1085
1081
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1101,7 +1097,6 @@ var service_1 = __webpack_require__(/*! ./service */ "../feathers/lib/service.js
1101
1097
  var hooks_3 = __webpack_require__(/*! ./hooks */ "../feathers/lib/hooks.js");
1102
1098
  var debug = (0, commons_1.createDebug)('@feathersjs/feathers');
1103
1099
  var Feathers = /*#__PURE__*/function (_events_1$EventEmitte) {
1104
- _inherits(Feathers, _events_1$EventEmitte);
1105
1100
  function Feathers() {
1106
1101
  var _this;
1107
1102
  _classCallCheck(this, Feathers);
@@ -1111,13 +1106,14 @@ var Feathers = /*#__PURE__*/function (_events_1$EventEmitte) {
1111
1106
  _this.mixins = [hooks_2.hookMixin, events_2.eventMixin];
1112
1107
  _this.version = version_1.default;
1113
1108
  _this._isSetup = false;
1114
- _this.registerHooks = (0, hooks_3.enableHooks)(_assertThisInitialized(_this));
1109
+ _this.registerHooks = (0, hooks_3.enableHooks)(_this);
1115
1110
  _this.registerHooks({
1116
1111
  around: [events_2.eventHook]
1117
1112
  });
1118
1113
  return _this;
1119
1114
  }
1120
- _createClass(Feathers, [{
1115
+ _inherits(Feathers, _events_1$EventEmitte);
1116
+ return _createClass(Feathers, [{
1121
1117
  key: "get",
1122
1118
  value: function get(name) {
1123
1119
  return this.settings[name];
@@ -1298,7 +1294,6 @@ var Feathers = /*#__PURE__*/function (_events_1$EventEmitte) {
1298
1294
  return this;
1299
1295
  }
1300
1296
  }]);
1301
- return Feathers;
1302
1297
  }(events_1.EventEmitter);
1303
1298
  exports.Feathers = Feathers;
1304
1299
 
@@ -1374,7 +1369,7 @@ exports.eventMixin = eventMixin;
1374
1369
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1375
1370
  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, _toPropertyKey(descriptor.key), descriptor); } }
1376
1371
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1377
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1372
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1378
1373
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1379
1374
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1380
1375
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -1499,7 +1494,6 @@ function createContext(service, method) {
1499
1494
  }
1500
1495
  exports.createContext = createContext;
1501
1496
  var FeathersHookManager = /*#__PURE__*/function (_hooks_1$HookManager) {
1502
- _inherits(FeathersHookManager, _hooks_1$HookManager);
1503
1497
  function FeathersHookManager(app, method) {
1504
1498
  var _this;
1505
1499
  _classCallCheck(this, FeathersHookManager);
@@ -1509,7 +1503,8 @@ var FeathersHookManager = /*#__PURE__*/function (_hooks_1$HookManager) {
1509
1503
  _this._middleware = [];
1510
1504
  return _this;
1511
1505
  }
1512
- _createClass(FeathersHookManager, [{
1506
+ _inherits(FeathersHookManager, _hooks_1$HookManager);
1507
+ return _createClass(FeathersHookManager, [{
1513
1508
  key: "collectMiddleware",
1514
1509
  value: function collectMiddleware(self, args) {
1515
1510
  var appHooks = collectHooks(this.app, this.method);
@@ -1532,7 +1527,6 @@ var FeathersHookManager = /*#__PURE__*/function (_hooks_1$HookManager) {
1532
1527
  return this;
1533
1528
  }
1534
1529
  }]);
1535
- return FeathersHookManager;
1536
1530
  }(hooks_1.HookManager);
1537
1531
  exports.FeathersHookManager = FeathersHookManager;
1538
1532
  function hookMixin(service, path, options) {
@@ -1667,7 +1661,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1667
1661
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1668
1662
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1669
1663
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1670
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1664
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1671
1665
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1672
1666
  Object.defineProperty(exports, "__esModule", ({
1673
1667
  value: true
@@ -1770,7 +1764,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1770
1764
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1771
1765
  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, _toPropertyKey(descriptor.key), descriptor); } }
1772
1766
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1773
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1767
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1774
1768
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1775
1769
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1776
1770
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -1785,12 +1779,12 @@ Object.defineProperty(exports, "__esModule", ({
1785
1779
  exports.AxiosClient = void 0;
1786
1780
  var base_1 = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
1787
1781
  var AxiosClient = /*#__PURE__*/function (_base_1$Base) {
1788
- _inherits(AxiosClient, _base_1$Base);
1789
1782
  function AxiosClient() {
1790
1783
  _classCallCheck(this, AxiosClient);
1791
1784
  return _callSuper(this, AxiosClient, arguments);
1792
1785
  }
1793
- _createClass(AxiosClient, [{
1786
+ _inherits(AxiosClient, _base_1$Base);
1787
+ return _createClass(AxiosClient, [{
1794
1788
  key: "request",
1795
1789
  value: function request(options, params) {
1796
1790
  var config = Object.assign({
@@ -1809,7 +1803,6 @@ var AxiosClient = /*#__PURE__*/function (_base_1$Base) {
1809
1803
  });
1810
1804
  }
1811
1805
  }]);
1812
- return AxiosClient;
1813
1806
  }(base_1.Base);
1814
1807
  exports.AxiosClient = AxiosClient;
1815
1808
 
@@ -1828,7 +1821,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1828
1821
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1829
1822
  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, _toPropertyKey(descriptor.key), descriptor); } }
1830
1823
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1831
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1824
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1832
1825
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1833
1826
  var __importDefault = this && this.__importDefault || function (mod) {
1834
1827
  return mod && mod.__esModule ? mod : {
@@ -1856,7 +1849,7 @@ var Base = /*#__PURE__*/function () {
1856
1849
  this.connection = settings.connection;
1857
1850
  this.base = "".concat(settings.base, "/").concat(this.name);
1858
1851
  }
1859
- _createClass(Base, [{
1852
+ return _createClass(Base, [{
1860
1853
  key: "makeUrl",
1861
1854
  value: function makeUrl(query, id, route) {
1862
1855
  var url = this.base;
@@ -2014,7 +2007,6 @@ var Base = /*#__PURE__*/function () {
2014
2007
  return this._remove(id, params);
2015
2008
  }
2016
2009
  }]);
2017
- return Base;
2018
2010
  }();
2019
2011
  exports.Base = Base;
2020
2012
 
@@ -2033,7 +2025,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2033
2025
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2034
2026
  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, _toPropertyKey(descriptor.key), descriptor); } }
2035
2027
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2036
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2028
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
2037
2029
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2038
2030
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
2039
2031
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -2049,12 +2041,12 @@ exports.FetchClient = void 0;
2049
2041
  var errors_1 = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
2050
2042
  var base_1 = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
2051
2043
  var FetchClient = /*#__PURE__*/function (_base_1$Base) {
2052
- _inherits(FetchClient, _base_1$Base);
2053
2044
  function FetchClient() {
2054
2045
  _classCallCheck(this, FetchClient);
2055
2046
  return _callSuper(this, FetchClient, arguments);
2056
2047
  }
2057
- _createClass(FetchClient, [{
2048
+ _inherits(FetchClient, _base_1$Base);
2049
+ return _createClass(FetchClient, [{
2058
2050
  key: "request",
2059
2051
  value: function request(options, params) {
2060
2052
  var fetchOptions = Object.assign({}, options, params.connection);
@@ -2086,7 +2078,6 @@ var FetchClient = /*#__PURE__*/function (_base_1$Base) {
2086
2078
  });
2087
2079
  }
2088
2080
  }]);
2089
- return FetchClient;
2090
2081
  }(base_1.Base);
2091
2082
  exports.FetchClient = FetchClient;
2092
2083
 
@@ -2205,7 +2196,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2205
2196
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2206
2197
  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, _toPropertyKey(descriptor.key), descriptor); } }
2207
2198
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2208
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2199
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
2209
2200
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2210
2201
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
2211
2202
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -2220,12 +2211,12 @@ Object.defineProperty(exports, "__esModule", ({
2220
2211
  exports.SuperagentClient = void 0;
2221
2212
  var base_1 = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
2222
2213
  var SuperagentClient = /*#__PURE__*/function (_base_1$Base) {
2223
- _inherits(SuperagentClient, _base_1$Base);
2224
2214
  function SuperagentClient() {
2225
2215
  _classCallCheck(this, SuperagentClient);
2226
2216
  return _callSuper(this, SuperagentClient, arguments);
2227
2217
  }
2228
- _createClass(SuperagentClient, [{
2218
+ _inherits(SuperagentClient, _base_1$Base);
2219
+ return _createClass(SuperagentClient, [{
2229
2220
  key: "request",
2230
2221
  value: function request(options, params) {
2231
2222
  var superagent = this.connection(options.method, options.url).set(this.options.headers || {}).set('Accept', 'application/json').set(params.connection || {}).set(options.headers || {}).type(options.type || 'json');
@@ -2248,7 +2239,6 @@ var SuperagentClient = /*#__PURE__*/function (_base_1$Base) {
2248
2239
  });
2249
2240
  }
2250
2241
  }]);
2251
- return SuperagentClient;
2252
2242
  }(base_1.Base);
2253
2243
  exports.SuperagentClient = SuperagentClient;
2254
2244
 
@@ -2337,7 +2327,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2337
2327
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2338
2328
  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, _toPropertyKey(descriptor.key), descriptor); } }
2339
2329
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2340
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2330
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
2341
2331
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2342
2332
  Object.defineProperty(exports, "__esModule", ({
2343
2333
  value: true
@@ -2385,7 +2375,7 @@ var Service = /*#__PURE__*/function () {
2385
2375
  this.method = options.method;
2386
2376
  addEmitterMethods(this);
2387
2377
  }
2388
- _createClass(Service, [{
2378
+ return _createClass(Service, [{
2389
2379
  key: "send",
2390
2380
  value: function send(method) {
2391
2381
  var _this = this;
@@ -2394,6 +2384,7 @@ var Service = /*#__PURE__*/function () {
2394
2384
  }
2395
2385
  return new Promise(function (resolve, reject) {
2396
2386
  var _this$connection3;
2387
+ var _a, _b;
2397
2388
  var route = args.pop();
2398
2389
  var path = _this.path;
2399
2390
  if (route) {
@@ -2402,9 +2393,16 @@ var Service = /*#__PURE__*/function () {
2402
2393
  });
2403
2394
  }
2404
2395
  args.unshift(method, path);
2405
- args.push(function (error, data) {
2406
- return error ? reject((0, errors_1.convert)(error)) : resolve(data);
2407
- });
2396
+ var socketTimeout = ((_a = _this.connection.flags) === null || _a === void 0 ? void 0 : _a.timeout) || ((_b = _this.connection._opts) === null || _b === void 0 ? void 0 : _b.ackTimeout);
2397
+ if (socketTimeout !== undefined) {
2398
+ args.push(function (timeoutError, error, data) {
2399
+ return timeoutError || error ? reject((0, errors_1.convert)(timeoutError || error)) : resolve(data);
2400
+ });
2401
+ } else {
2402
+ args.push(function (error, data) {
2403
+ return error ? reject((0, errors_1.convert)(error)) : resolve(data);
2404
+ });
2405
+ }
2408
2406
  debug("Sending socket.".concat(_this.method), args);
2409
2407
  (_this$connection3 = _this.connection)[_this.method].apply(_this$connection3, args);
2410
2408
  });
@@ -2525,7 +2523,6 @@ var Service = /*#__PURE__*/function () {
2525
2523
  return this.removeListener.apply(this, [name].concat(args));
2526
2524
  }
2527
2525
  }]);
2528
- return Service;
2529
2526
  }();
2530
2527
  exports.Service = Service;
2531
2528
 
@@ -4579,15 +4576,18 @@ var isArray = Array.isArray;
4579
4576
 
4580
4577
  var defaults = {
4581
4578
  allowDots: false,
4579
+ allowEmptyArrays: false,
4582
4580
  allowPrototypes: false,
4583
4581
  allowSparse: false,
4584
4582
  arrayLimit: 20,
4585
4583
  charset: 'utf-8',
4586
4584
  charsetSentinel: false,
4587
4585
  comma: false,
4586
+ decodeDotInKeys: false,
4588
4587
  decoder: utils.decode,
4589
4588
  delimiter: '&',
4590
4589
  depth: 5,
4590
+ duplicates: 'combine',
4591
4591
  ignoreQueryPrefix: false,
4592
4592
  interpretNumericEntities: false,
4593
4593
  parameterLimit: 1000,
@@ -4675,9 +4675,10 @@ var parseValues = function parseQueryStringValues(str, options) {
4675
4675
  val = isArray(val) ? [val] : val;
4676
4676
  }
4677
4677
 
4678
- if (has.call(obj, key)) {
4678
+ var existing = has.call(obj, key);
4679
+ if (existing && options.duplicates === 'combine') {
4679
4680
  obj[key] = utils.combine(obj[key], val);
4680
- } else {
4681
+ } else if (!existing || options.duplicates === 'last') {
4681
4682
  obj[key] = val;
4682
4683
  }
4683
4684
  }
@@ -4693,24 +4694,25 @@ var parseObject = function (chain, val, options, valuesParsed) {
4693
4694
  var root = chain[i];
4694
4695
 
4695
4696
  if (root === '[]' && options.parseArrays) {
4696
- obj = [].concat(leaf);
4697
+ obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf);
4697
4698
  } else {
4698
4699
  obj = options.plainObjects ? Object.create(null) : {};
4699
4700
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
4700
- var index = parseInt(cleanRoot, 10);
4701
- if (!options.parseArrays && cleanRoot === '') {
4701
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
4702
+ var index = parseInt(decodedRoot, 10);
4703
+ if (!options.parseArrays && decodedRoot === '') {
4702
4704
  obj = { 0: leaf };
4703
4705
  } else if (
4704
4706
  !isNaN(index)
4705
- && root !== cleanRoot
4706
- && String(index) === cleanRoot
4707
+ && root !== decodedRoot
4708
+ && String(index) === decodedRoot
4707
4709
  && index >= 0
4708
4710
  && (options.parseArrays && index <= options.arrayLimit)
4709
4711
  ) {
4710
4712
  obj = [];
4711
4713
  obj[index] = leaf;
4712
- } else if (cleanRoot !== '__proto__') {
4713
- obj[cleanRoot] = leaf;
4714
+ } else if (decodedRoot !== '__proto__') {
4715
+ obj[decodedRoot] = leaf;
4714
4716
  }
4715
4717
  }
4716
4718
 
@@ -4779,7 +4781,15 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
4779
4781
  return defaults;
4780
4782
  }
4781
4783
 
4782
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
4784
+ if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
4785
+ throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
4786
+ }
4787
+
4788
+ if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
4789
+ throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
4790
+ }
4791
+
4792
+ if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
4783
4793
  throw new TypeError('Decoder has to be a function.');
4784
4794
  }
4785
4795
 
@@ -4788,18 +4798,29 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
4788
4798
  }
4789
4799
  var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
4790
4800
 
4801
+ var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
4802
+
4803
+ if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
4804
+ throw new TypeError('The duplicates option must be either combine, first, or last');
4805
+ }
4806
+
4807
+ var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
4808
+
4791
4809
  return {
4792
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
4810
+ allowDots: allowDots,
4811
+ allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
4793
4812
  allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
4794
4813
  allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
4795
4814
  arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
4796
4815
  charset: charset,
4797
4816
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
4798
4817
  comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
4818
+ decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
4799
4819
  decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
4800
4820
  delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
4801
4821
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
4802
4822
  depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
4823
+ duplicates: duplicates,
4803
4824
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
4804
4825
  interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
4805
4826
  parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
@@ -4877,10 +4898,13 @@ var defaultFormat = formats['default'];
4877
4898
  var defaults = {
4878
4899
  addQueryPrefix: false,
4879
4900
  allowDots: false,
4901
+ allowEmptyArrays: false,
4902
+ arrayFormat: 'indices',
4880
4903
  charset: 'utf-8',
4881
4904
  charsetSentinel: false,
4882
4905
  delimiter: '&',
4883
4906
  encode: true,
4907
+ encodeDotInKeys: false,
4884
4908
  encoder: utils.encode,
4885
4909
  encodeValuesOnly: false,
4886
4910
  format: defaultFormat,
@@ -4909,8 +4933,10 @@ var stringify = function stringify(
4909
4933
  prefix,
4910
4934
  generateArrayPrefix,
4911
4935
  commaRoundTrip,
4936
+ allowEmptyArrays,
4912
4937
  strictNullHandling,
4913
4938
  skipNulls,
4939
+ encodeDotInKeys,
4914
4940
  encoder,
4915
4941
  filter,
4916
4942
  sort,
@@ -4992,7 +5018,13 @@ var stringify = function stringify(
4992
5018
  objKeys = sort ? keys.sort(sort) : keys;
4993
5019
  }
4994
5020
 
4995
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
5021
+ var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
5022
+
5023
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
5024
+
5025
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
5026
+ return adjustedPrefix + '[]';
5027
+ }
4996
5028
 
4997
5029
  for (var j = 0; j < objKeys.length; ++j) {
4998
5030
  var key = objKeys[j];
@@ -5002,9 +5034,10 @@ var stringify = function stringify(
5002
5034
  continue;
5003
5035
  }
5004
5036
 
5037
+ var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
5005
5038
  var keyPrefix = isArray(obj)
5006
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
5007
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
5039
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
5040
+ : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
5008
5041
 
5009
5042
  sideChannel.set(object, step);
5010
5043
  var valueSideChannel = getSideChannel();
@@ -5014,8 +5047,10 @@ var stringify = function stringify(
5014
5047
  keyPrefix,
5015
5048
  generateArrayPrefix,
5016
5049
  commaRoundTrip,
5050
+ allowEmptyArrays,
5017
5051
  strictNullHandling,
5018
5052
  skipNulls,
5053
+ encodeDotInKeys,
5019
5054
  generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
5020
5055
  filter,
5021
5056
  sort,
@@ -5037,6 +5072,14 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
5037
5072
  return defaults;
5038
5073
  }
5039
5074
 
5075
+ if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
5076
+ throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
5077
+ }
5078
+
5079
+ if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
5080
+ throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
5081
+ }
5082
+
5040
5083
  if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
5041
5084
  throw new TypeError('Encoder has to be a function.');
5042
5085
  }
@@ -5060,13 +5103,32 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
5060
5103
  filter = opts.filter;
5061
5104
  }
5062
5105
 
5106
+ var arrayFormat;
5107
+ if (opts.arrayFormat in arrayPrefixGenerators) {
5108
+ arrayFormat = opts.arrayFormat;
5109
+ } else if ('indices' in opts) {
5110
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
5111
+ } else {
5112
+ arrayFormat = defaults.arrayFormat;
5113
+ }
5114
+
5115
+ if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
5116
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
5117
+ }
5118
+
5119
+ var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
5120
+
5063
5121
  return {
5064
5122
  addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
5065
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
5123
+ allowDots: allowDots,
5124
+ allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
5125
+ arrayFormat: arrayFormat,
5066
5126
  charset: charset,
5067
5127
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
5128
+ commaRoundTrip: opts.commaRoundTrip,
5068
5129
  delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
5069
5130
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
5131
+ encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
5070
5132
  encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
5071
5133
  encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
5072
5134
  filter: filter,
@@ -5100,20 +5162,8 @@ module.exports = function (object, opts) {
5100
5162
  return '';
5101
5163
  }
5102
5164
 
5103
- var arrayFormat;
5104
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
5105
- arrayFormat = opts.arrayFormat;
5106
- } else if (opts && 'indices' in opts) {
5107
- arrayFormat = opts.indices ? 'indices' : 'repeat';
5108
- } else {
5109
- arrayFormat = 'indices';
5110
- }
5111
-
5112
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
5113
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
5114
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
5115
- }
5116
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
5165
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
5166
+ var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
5117
5167
 
5118
5168
  if (!objKeys) {
5119
5169
  objKeys = Object.keys(obj);
@@ -5135,8 +5185,10 @@ module.exports = function (object, opts) {
5135
5185
  key,
5136
5186
  generateArrayPrefix,
5137
5187
  commaRoundTrip,
5188
+ options.allowEmptyArrays,
5138
5189
  options.strictNullHandling,
5139
5190
  options.skipNulls,
5191
+ options.encodeDotInKeys,
5140
5192
  options.encode ? options.encoder : null,
5141
5193
  options.filter,
5142
5194
  options.sort,
@@ -5300,6 +5352,10 @@ var decode = function (str, decoder, charset) {
5300
5352
  }
5301
5353
  };
5302
5354
 
5355
+ var limit = 1024;
5356
+
5357
+ /* eslint operator-linebreak: [2, "before"] */
5358
+
5303
5359
  var encode = function encode(str, defaultEncoder, charset, kind, format) {
5304
5360
  // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
5305
5361
  // It has been adapted here for stricter adherence to RFC 3986
@@ -5321,45 +5377,54 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
5321
5377
  }
5322
5378
 
5323
5379
  var out = '';
5324
- for (var i = 0; i < string.length; ++i) {
5325
- var c = string.charCodeAt(i);
5326
-
5327
- if (
5328
- c === 0x2D // -
5329
- || c === 0x2E // .
5330
- || c === 0x5F // _
5331
- || c === 0x7E // ~
5332
- || (c >= 0x30 && c <= 0x39) // 0-9
5333
- || (c >= 0x41 && c <= 0x5A) // a-z
5334
- || (c >= 0x61 && c <= 0x7A) // A-Z
5335
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
5336
- ) {
5337
- out += string.charAt(i);
5338
- continue;
5339
- }
5380
+ for (var j = 0; j < string.length; j += limit) {
5381
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
5382
+ var arr = [];
5383
+
5384
+ for (var i = 0; i < segment.length; ++i) {
5385
+ var c = segment.charCodeAt(i);
5386
+ if (
5387
+ c === 0x2D // -
5388
+ || c === 0x2E // .
5389
+ || c === 0x5F // _
5390
+ || c === 0x7E // ~
5391
+ || (c >= 0x30 && c <= 0x39) // 0-9
5392
+ || (c >= 0x41 && c <= 0x5A) // a-z
5393
+ || (c >= 0x61 && c <= 0x7A) // A-Z
5394
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
5395
+ ) {
5396
+ arr[arr.length] = segment.charAt(i);
5397
+ continue;
5398
+ }
5340
5399
 
5341
- if (c < 0x80) {
5342
- out = out + hexTable[c];
5343
- continue;
5344
- }
5400
+ if (c < 0x80) {
5401
+ arr[arr.length] = hexTable[c];
5402
+ continue;
5403
+ }
5345
5404
 
5346
- if (c < 0x800) {
5347
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
5348
- continue;
5349
- }
5405
+ if (c < 0x800) {
5406
+ arr[arr.length] = hexTable[0xC0 | (c >> 6)]
5407
+ + hexTable[0x80 | (c & 0x3F)];
5408
+ continue;
5409
+ }
5350
5410
 
5351
- if (c < 0xD800 || c >= 0xE000) {
5352
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
5353
- continue;
5411
+ if (c < 0xD800 || c >= 0xE000) {
5412
+ arr[arr.length] = hexTable[0xE0 | (c >> 12)]
5413
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
5414
+ + hexTable[0x80 | (c & 0x3F)];
5415
+ continue;
5416
+ }
5417
+
5418
+ i += 1;
5419
+ c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
5420
+
5421
+ arr[arr.length] = hexTable[0xF0 | (c >> 18)]
5422
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
5423
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
5424
+ + hexTable[0x80 | (c & 0x3F)];
5354
5425
  }
5355
5426
 
5356
- i += 1;
5357
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
5358
- /* eslint operator-linebreak: [2, "before"] */
5359
- out += hexTable[0xF0 | (c >> 18)]
5360
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
5361
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
5362
- + hexTable[0x80 | (c & 0x3F)];
5427
+ out += arr.join('');
5363
5428
  }
5364
5429
 
5365
5430
  return out;
@@ -5449,9 +5514,7 @@ var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
5449
5514
  var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
5450
5515
  var $floor = GetIntrinsic('%Math.floor%');
5451
5516
 
5452
- /** @typedef {(...args: unknown[]) => unknown} Func */
5453
-
5454
- /** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
5517
+ /** @type {import('.')} */
5455
5518
  module.exports = function setFunctionLength(fn, length) {
5456
5519
  if (typeof fn !== 'function') {
5457
5520
  throw new $TypeError('`fn` is not a function');
@@ -5516,42 +5579,54 @@ var $mapHas = callBound('Map.prototype.has', true);
5516
5579
  *
5517
5580
  * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
5518
5581
  */
5582
+ /** @type {import('.').listGetNode} */
5519
5583
  var listGetNode = function (list, key) { // eslint-disable-line consistent-return
5520
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
5584
+ /** @type {typeof list | NonNullable<(typeof list)['next']>} */
5585
+ var prev = list;
5586
+ /** @type {(typeof list)['next']} */
5587
+ var curr;
5588
+ for (; (curr = prev.next) !== null; prev = curr) {
5521
5589
  if (curr.key === key) {
5522
5590
  prev.next = curr.next;
5523
- curr.next = list.next;
5591
+ // eslint-disable-next-line no-extra-parens
5592
+ curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
5524
5593
  list.next = curr; // eslint-disable-line no-param-reassign
5525
5594
  return curr;
5526
5595
  }
5527
5596
  }
5528
5597
  };
5529
5598
 
5599
+ /** @type {import('.').listGet} */
5530
5600
  var listGet = function (objects, key) {
5531
5601
  var node = listGetNode(objects, key);
5532
5602
  return node && node.value;
5533
5603
  };
5604
+ /** @type {import('.').listSet} */
5534
5605
  var listSet = function (objects, key, value) {
5535
5606
  var node = listGetNode(objects, key);
5536
5607
  if (node) {
5537
5608
  node.value = value;
5538
5609
  } else {
5539
5610
  // Prepend the new node to the beginning of the list
5540
- objects.next = { // eslint-disable-line no-param-reassign
5611
+ objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
5541
5612
  key: key,
5542
5613
  next: objects.next,
5543
5614
  value: value
5544
- };
5615
+ });
5545
5616
  }
5546
5617
  };
5618
+ /** @type {import('.').listHas} */
5547
5619
  var listHas = function (objects, key) {
5548
5620
  return !!listGetNode(objects, key);
5549
5621
  };
5550
5622
 
5623
+ /** @type {import('.')} */
5551
5624
  module.exports = function getSideChannel() {
5552
- var $wm;
5553
- var $m;
5554
- var $o;
5625
+ /** @type {WeakMap<object, unknown>} */ var $wm;
5626
+ /** @type {Map<object, unknown>} */ var $m;
5627
+ /** @type {import('.').RootNode<unknown>} */ var $o;
5628
+
5629
+ /** @type {import('.').Channel} */
5555
5630
  var channel = {
5556
5631
  assert: function (key) {
5557
5632
  if (!channel.has(key)) {
@@ -5707,7 +5782,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5707
5782
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5708
5783
  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, _toPropertyKey(descriptor.key), descriptor); } }
5709
5784
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5710
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5785
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5711
5786
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5712
5787
  Object.defineProperty(exports, "__esModule", ({
5713
5788
  value: true
@@ -5730,7 +5805,7 @@ var BaseHookContext = /*#__PURE__*/function () {
5730
5805
  });
5731
5806
  Object.assign(this, data);
5732
5807
  }
5733
- _createClass(BaseHookContext, [{
5808
+ return _createClass(BaseHookContext, [{
5734
5809
  key: "toJSON",
5735
5810
  value: function toJSON() {
5736
5811
  var _this = this;
@@ -5746,7 +5821,6 @@ var BaseHookContext = /*#__PURE__*/function () {
5746
5821
  }, {});
5747
5822
  }
5748
5823
  }]);
5749
- return BaseHookContext;
5750
5824
  }();
5751
5825
  exports.BaseHookContext = BaseHookContext;
5752
5826
  var HookManager = /*#__PURE__*/function () {
@@ -5783,7 +5857,7 @@ var HookManager = /*#__PURE__*/function () {
5783
5857
  value: void 0
5784
5858
  });
5785
5859
  }
5786
- _createClass(HookManager, [{
5860
+ return _createClass(HookManager, [{
5787
5861
  key: "parent",
5788
5862
  value: function parent(_parent) {
5789
5863
  this._parent = _parent;
@@ -5875,11 +5949,11 @@ var HookManager = /*#__PURE__*/function () {
5875
5949
  value: function getContextClass() {
5876
5950
  var Base = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : BaseHookContext;
5877
5951
  var ContextClass = /*#__PURE__*/function (_Base) {
5878
- _inherits(ContextClass, _Base);
5879
5952
  function ContextClass(data) {
5880
5953
  _classCallCheck(this, ContextClass);
5881
5954
  return _callSuper(this, ContextClass, [data]);
5882
5955
  }
5956
+ _inherits(ContextClass, _Base);
5883
5957
  return _createClass(ContextClass);
5884
5958
  }(Base);
5885
5959
  var params = this.getParams();
@@ -5925,7 +5999,6 @@ var HookManager = /*#__PURE__*/function () {
5925
5999
  return ctx;
5926
6000
  }
5927
6001
  }]);
5928
- return HookManager;
5929
6002
  }();
5930
6003
  exports.HookManager = HookManager;
5931
6004
  function convertOptions() {
@@ -6257,7 +6330,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
6257
6330
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6258
6331
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6259
6332
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6260
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6333
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6261
6334
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6262
6335
  Object.defineProperty(exports, "__esModule", ({
6263
6336
  value: true