@feathersjs/client 4.5.11 → 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.5.12](https://github.com/feathersjs/feathers/compare/v4.5.11...v4.5.12) (2022-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Update all dependencies for crow release ([#2520](https://github.com/feathersjs/feathers/issues/2520)) ([1c63e6b](https://github.com/feathersjs/feathers/commit/1c63e6be37ff85edbe8dd318415ca6919864c033))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
7
18
 
8
19
  **Note:** Version bump only for package @feathersjs/client
@@ -12,7 +12,7 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
14
  /***/ "../../node_modules/debug/src/browser.js":
15
- /*!***********************************************!*
15
+ /*!***********************************************!*\
16
16
  !*** ../../node_modules/debug/src/browser.js ***!
17
17
  \***********************************************/
18
18
  /***/ (function(module, exports, __webpack_require__) {
@@ -202,7 +202,7 @@ formatters.j = function (v) {
202
202
  /***/ }),
203
203
 
204
204
  /***/ "../../node_modules/debug/src/common.js":
205
- /*!**********************************************!*
205
+ /*!**********************************************!*\
206
206
  !*** ../../node_modules/debug/src/common.js ***!
207
207
  \**********************************************/
208
208
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
@@ -213,7 +213,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
213
213
 
214
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); }
215
215
 
216
- 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); }
217
217
 
218
218
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
219
219
 
@@ -250,7 +250,7 @@ function setup(env) {
250
250
  createDebug.formatters = {};
251
251
  /**
252
252
  * Selects a color for a debug namespace
253
- * @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
254
254
  * @return {Number|String} An ANSI color code for the given namespace
255
255
  * @api private
256
256
  */
@@ -278,6 +278,8 @@ function setup(env) {
278
278
  function createDebug(namespace) {
279
279
  var prevTime;
280
280
  var enableOverride = null;
281
+ var namespacesCache;
282
+ var enabledCache;
281
283
 
282
284
  function debug() {
283
285
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -341,7 +343,16 @@ function setup(env) {
341
343
  enumerable: true,
342
344
  configurable: false,
343
345
  get: function get() {
344
- return enableOverride === null ? createDebug.enabled(namespace) : enableOverride;
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;
345
356
  },
346
357
  set: function set(v) {
347
358
  enableOverride = v;
@@ -371,6 +382,7 @@ function setup(env) {
371
382
 
372
383
  function enable(namespaces) {
373
384
  createDebug.save(namespaces);
385
+ createDebug.namespaces = namespaces;
374
386
  createDebug.names = [];
375
387
  createDebug.skips = [];
376
388
  var i;
@@ -485,7 +497,7 @@ module.exports = setup;
485
497
  /***/ }),
486
498
 
487
499
  /***/ "../authentication-client/lib/core.js":
488
- /*!********************************************!*
500
+ /*!********************************************!*\
489
501
  !*** ../authentication-client/lib/core.js ***!
490
502
  \********************************************/
491
503
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
@@ -497,7 +509,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
497
509
 
498
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); } }
499
511
 
500
- 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; }
501
513
 
502
514
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
503
515
 
@@ -507,7 +519,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
507
519
 
508
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; }
509
521
 
510
- 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; }
511
523
 
512
524
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
513
525
 
@@ -551,6 +563,16 @@ var AuthenticationClient = /*#__PURE__*/function () {
551
563
  }
552
564
 
553
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
+ }, {
554
576
  key: "handleSocket",
555
577
  value: function handleSocket(socket) {
556
578
  var _this = this;
@@ -715,16 +737,6 @@ var AuthenticationClient = /*#__PURE__*/function () {
715
737
  return _this6.handleError(error, 'logout');
716
738
  });
717
739
  }
718
- }, {
719
- key: "service",
720
- get: function get() {
721
- return this.app.service(this.options.path);
722
- }
723
- }, {
724
- key: "storage",
725
- get: function get() {
726
- return this.app.get('storage');
727
- }
728
740
  }]);
729
741
 
730
742
  return AuthenticationClient;
@@ -735,7 +747,7 @@ exports.AuthenticationClient = AuthenticationClient;
735
747
  /***/ }),
736
748
 
737
749
  /***/ "../authentication-client/lib/hooks/authentication.js":
738
- /*!************************************************************!*
750
+ /*!************************************************************!*\
739
751
  !*** ../authentication-client/lib/hooks/authentication.js ***!
740
752
  \************************************************************/
741
753
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
@@ -758,7 +770,7 @@ var authentication = function authentication() {
758
770
  method = context.method,
759
771
  service = context.app.authentication;
760
772
 
761
- if (commons_1.stripSlashes(service.options.path) === path && method === 'create') {
773
+ if ((0, commons_1.stripSlashes)(service.options.path) === path && method === 'create') {
762
774
  return context;
763
775
  }
764
776
 
@@ -777,7 +789,7 @@ exports.authentication = authentication;
777
789
  /***/ }),
778
790
 
779
791
  /***/ "../authentication-client/lib/hooks/index.js":
780
- /*!***************************************************!*
792
+ /*!***************************************************!*\
781
793
  !*** ../authentication-client/lib/hooks/index.js ***!
782
794
  \***************************************************/
783
795
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
@@ -811,7 +823,7 @@ Object.defineProperty(exports, "populateHeader", ({
811
823
  /***/ }),
812
824
 
813
825
  /***/ "../authentication-client/lib/hooks/populate-header.js":
814
- /*!*************************************************************!*
826
+ /*!*************************************************************!*\
815
827
  !*** ../authentication-client/lib/hooks/populate-header.js ***!
816
828
  \*************************************************************/
817
829
  /***/ (function(__unused_webpack_module, exports) {
@@ -849,7 +861,7 @@ exports.populateHeader = populateHeader;
849
861
  /***/ }),
850
862
 
851
863
  /***/ "../authentication-client/lib/index.js":
852
- /*!*********************************************!*
864
+ /*!*********************************************!*\
853
865
  !*** ../authentication-client/lib/index.js ***!
854
866
  \*********************************************/
855
867
  /***/ (function(module, exports, __webpack_require__) {
@@ -927,7 +939,7 @@ var getDefaultStorage = function getDefaultStorage() {
927
939
  };
928
940
 
929
941
  exports.getDefaultStorage = getDefaultStorage;
930
- exports.defaultStorage = exports.getDefaultStorage();
942
+ exports.defaultStorage = (0, exports.getDefaultStorage)();
931
943
  exports.defaults = {
932
944
  header: 'Authorization',
933
945
  scheme: 'Bearer',
@@ -959,7 +971,7 @@ var init = function init() {
959
971
  };
960
972
  };
961
973
 
962
- exports.default = init;
974
+ exports["default"] = init;
963
975
 
964
976
  if (true) {
965
977
  module.exports = Object.assign(init, module.exports);
@@ -968,7 +980,7 @@ if (true) {
968
980
  /***/ }),
969
981
 
970
982
  /***/ "../authentication-client/lib/storage.js":
971
- /*!***********************************************!*
983
+ /*!***********************************************!*\
972
984
  !*** ../authentication-client/lib/storage.js ***!
973
985
  \***********************************************/
974
986
  /***/ (function(__unused_webpack_module, exports) {
@@ -980,7 +992,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
980
992
 
981
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); } }
982
994
 
983
- 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; }
984
996
 
985
997
  Object.defineProperty(exports, "__esModule", ({
986
998
  value: true
@@ -1050,7 +1062,7 @@ exports.StorageWrapper = StorageWrapper;
1050
1062
  /***/ }),
1051
1063
 
1052
1064
  /***/ "./src/authentication.js":
1053
- /*!*******************************!*
1065
+ /*!*******************************!*\
1054
1066
  !*** ./src/authentication.js ***!
1055
1067
  \*******************************/
1056
1068
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
@@ -1060,7 +1072,7 @@ module.exports = __webpack_require__(/*! @feathersjs/authentication-client */ ".
1060
1072
  /***/ }),
1061
1073
 
1062
1074
  /***/ "../commons/lib/hooks.js":
1063
- /*!*******************************!*
1075
+ /*!*******************************!*\
1064
1076
  !*** ../commons/lib/hooks.js ***!
1065
1077
  \*******************************/
1066
1078
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
@@ -1068,7 +1080,7 @@ module.exports = __webpack_require__(/*! @feathersjs/authentication-client */ ".
1068
1080
  "use strict";
1069
1081
 
1070
1082
 
1071
- 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); }
1072
1084
 
1073
1085
  Object.defineProperty(exports, "__esModule", ({
1074
1086
  value: true
@@ -1080,7 +1092,7 @@ var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
1080
1092
  var _utils_1$_ = utils_1._,
1081
1093
  each = _utils_1$_.each,
1082
1094
  pick = _utils_1$_.pick;
1083
- exports.ACTIVATE_HOOKS = utils_1.createSymbol('__feathersActivateHooks');
1095
+ exports.ACTIVATE_HOOKS = (0, utils_1.createSymbol)('__feathersActivateHooks');
1084
1096
 
1085
1097
  function createHookObject(method) {
1086
1098
  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1293,7 +1305,7 @@ exports.enableHooks = enableHooks;
1293
1305
  /***/ }),
1294
1306
 
1295
1307
  /***/ "../commons/lib/index.js":
1296
- /*!*******************************!*
1308
+ /*!*******************************!*\
1297
1309
  !*** ../commons/lib/index.js ***!
1298
1310
  \*******************************/
1299
1311
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
@@ -1355,7 +1367,7 @@ exports.hooks = hookUtils;
1355
1367
  /***/ }),
1356
1368
 
1357
1369
  /***/ "../commons/lib/utils.js":
1358
- /*!*******************************!*
1370
+ /*!*******************************!*\
1359
1371
  !*** ../commons/lib/utils.js ***!
1360
1372
  \*******************************/
1361
1373
  /***/ (function(__unused_webpack_module, exports) {
@@ -1365,7 +1377,7 @@ exports.hooks = hookUtils;
1365
1377
 
1366
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; }
1367
1379
 
1368
- 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); }
1369
1381
 
1370
1382
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1371
1383
 
@@ -1375,7 +1387,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
1375
1387
 
1376
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; }
1377
1389
 
1378
- 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; }
1379
1391
 
1380
1392
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1381
1393
 
@@ -1525,12 +1537,12 @@ exports.createSymbol = createSymbol;
1525
1537
  /***/ }),
1526
1538
 
1527
1539
  /***/ "../errors/lib/index.js":
1528
- /*!******************************!*
1540
+ /*!******************************!*\
1529
1541
  !*** ../errors/lib/index.js ***!
1530
1542
  \******************************/
1531
1543
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1532
1544
 
1533
- 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); }
1534
1546
 
1535
1547
  var debug = __webpack_require__(/*! debug */ "../../node_modules/debug/src/browser.js")('@feathersjs/errors');
1536
1548
 
@@ -1774,7 +1786,7 @@ module.exports = Object.assign({
1774
1786
  /***/ }),
1775
1787
 
1776
1788
  /***/ "../../node_modules/ms/index.js":
1777
- /*!**************************************!*
1789
+ /*!**************************************!*\
1778
1790
  !*** ../../node_modules/ms/index.js ***!
1779
1791
  \**************************************/
1780
1792
  /***/ (function(module) {
@@ -1953,8 +1965,9 @@ function plural(ms, msAbs, n, name) {
1953
1965
  /******/ // The require function
1954
1966
  /******/ function __webpack_require__(moduleId) {
1955
1967
  /******/ // Check if module is in cache
1956
- /******/ if(__webpack_module_cache__[moduleId]) {
1957
- /******/ return __webpack_module_cache__[moduleId].exports;
1968
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1969
+ /******/ if (cachedModule !== undefined) {
1970
+ /******/ return cachedModule.exports;
1958
1971
  /******/ }
1959
1972
  /******/ // Create a new module (and put it into the cache)
1960
1973
  /******/ var module = __webpack_module_cache__[moduleId] = {
@@ -1971,10 +1984,13 @@ function plural(ms, msAbs, n, name) {
1971
1984
  /******/ }
1972
1985
  /******/
1973
1986
  /************************************************************************/
1974
- /******/ // module exports must be returned from runtime so entry inlining is disabled
1987
+ /******/
1975
1988
  /******/ // startup
1976
1989
  /******/ // Load entry module and return exports
1977
- /******/ return __webpack_require__("./src/authentication.js");
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__;
1978
1994
  /******/ })()
1979
1995
  ;
1980
1996
  });