@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 +11 -0
- package/dist/authentication.js +58 -42
- package/dist/authentication.js.map +1 -1
- package/dist/authentication.min.js +1 -1
- package/dist/core.js +84 -47
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +1512 -159
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/dist/primus.js +36 -20
- package/dist/primus.js.map +1 -1
- package/dist/primus.min.js +1 -1
- package/dist/rest.js +1432 -100
- package/dist/rest.js.map +1 -1
- package/dist/rest.min.js +1 -1
- package/dist/socketio.js +36 -20
- package/dist/socketio.js.map +1 -1
- package/dist/socketio.min.js +1 -1
- package/package.json +21 -21
package/dist/core.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
/***/ "./src/core.js":
|
|
488
|
-
|
|
500
|
+
/*!*********************!*\
|
|
489
501
|
!*** ./src/core.js ***!
|
|
490
502
|
\*********************/
|
|
491
503
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -495,7 +507,7 @@ module.exports = __webpack_require__(/*! @feathersjs/feathers */ "../feathers/li
|
|
|
495
507
|
/***/ }),
|
|
496
508
|
|
|
497
509
|
/***/ "../commons/lib/hooks.js":
|
|
498
|
-
|
|
510
|
+
/*!*******************************!*\
|
|
499
511
|
!*** ../commons/lib/hooks.js ***!
|
|
500
512
|
\*******************************/
|
|
501
513
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -503,7 +515,7 @@ module.exports = __webpack_require__(/*! @feathersjs/feathers */ "../feathers/li
|
|
|
503
515
|
"use strict";
|
|
504
516
|
|
|
505
517
|
|
|
506
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
518
|
+
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); }
|
|
507
519
|
|
|
508
520
|
Object.defineProperty(exports, "__esModule", ({
|
|
509
521
|
value: true
|
|
@@ -515,7 +527,7 @@ var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
|
|
|
515
527
|
var _utils_1$_ = utils_1._,
|
|
516
528
|
each = _utils_1$_.each,
|
|
517
529
|
pick = _utils_1$_.pick;
|
|
518
|
-
exports.ACTIVATE_HOOKS = utils_1.createSymbol('__feathersActivateHooks');
|
|
530
|
+
exports.ACTIVATE_HOOKS = (0, utils_1.createSymbol)('__feathersActivateHooks');
|
|
519
531
|
|
|
520
532
|
function createHookObject(method) {
|
|
521
533
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -728,7 +740,7 @@ exports.enableHooks = enableHooks;
|
|
|
728
740
|
/***/ }),
|
|
729
741
|
|
|
730
742
|
/***/ "../commons/lib/index.js":
|
|
731
|
-
|
|
743
|
+
/*!*******************************!*\
|
|
732
744
|
!*** ../commons/lib/index.js ***!
|
|
733
745
|
\*******************************/
|
|
734
746
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -790,7 +802,7 @@ exports.hooks = hookUtils;
|
|
|
790
802
|
/***/ }),
|
|
791
803
|
|
|
792
804
|
/***/ "../commons/lib/utils.js":
|
|
793
|
-
|
|
805
|
+
/*!*******************************!*\
|
|
794
806
|
!*** ../commons/lib/utils.js ***!
|
|
795
807
|
\*******************************/
|
|
796
808
|
/***/ (function(__unused_webpack_module, exports) {
|
|
@@ -800,7 +812,7 @@ exports.hooks = hookUtils;
|
|
|
800
812
|
|
|
801
813
|
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; }
|
|
802
814
|
|
|
803
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
815
|
+
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); }
|
|
804
816
|
|
|
805
817
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
806
818
|
|
|
@@ -810,7 +822,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
810
822
|
|
|
811
823
|
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; }
|
|
812
824
|
|
|
813
|
-
function _iterableToArrayLimit(arr, i) {
|
|
825
|
+
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; }
|
|
814
826
|
|
|
815
827
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
816
828
|
|
|
@@ -960,7 +972,7 @@ exports.createSymbol = createSymbol;
|
|
|
960
972
|
/***/ }),
|
|
961
973
|
|
|
962
974
|
/***/ "../feathers/lib/application.js":
|
|
963
|
-
|
|
975
|
+
/*!**************************************!*\
|
|
964
976
|
!*** ../feathers/lib/application.js ***!
|
|
965
977
|
\**************************************/
|
|
966
978
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1107,7 +1119,7 @@ module.exports = application;
|
|
|
1107
1119
|
/***/ }),
|
|
1108
1120
|
|
|
1109
1121
|
/***/ "../feathers/lib/events.js":
|
|
1110
|
-
|
|
1122
|
+
/*!*********************************!*\
|
|
1111
1123
|
!*** ../feathers/lib/events.js ***!
|
|
1112
1124
|
\*********************************/
|
|
1113
1125
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1199,7 +1211,7 @@ module.exports = function () {
|
|
|
1199
1211
|
/***/ }),
|
|
1200
1212
|
|
|
1201
1213
|
/***/ "../feathers/lib/hooks/base.js":
|
|
1202
|
-
|
|
1214
|
+
/*!*************************************!*\
|
|
1203
1215
|
!*** ../feathers/lib/hooks/base.js ***!
|
|
1204
1216
|
\*************************************/
|
|
1205
1217
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1244,7 +1256,7 @@ module.exports = [assignArguments, validate];
|
|
|
1244
1256
|
/***/ }),
|
|
1245
1257
|
|
|
1246
1258
|
/***/ "../feathers/lib/hooks/index.js":
|
|
1247
|
-
|
|
1259
|
+
/*!**************************************!*\
|
|
1248
1260
|
!*** ../feathers/lib/hooks/index.js ***!
|
|
1249
1261
|
\**************************************/
|
|
1250
1262
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1255,7 +1267,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
1255
1267
|
|
|
1256
1268
|
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); }
|
|
1257
1269
|
|
|
1258
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
1270
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
1259
1271
|
|
|
1260
1272
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
1261
1273
|
|
|
@@ -1455,7 +1467,7 @@ module.exports.activateHooks = function activateHooks(args) {
|
|
|
1455
1467
|
/***/ }),
|
|
1456
1468
|
|
|
1457
1469
|
/***/ "../feathers/lib/index.js":
|
|
1458
|
-
|
|
1470
|
+
/*!********************************!*\
|
|
1459
1471
|
!*** ../feathers/lib/index.js ***!
|
|
1460
1472
|
\********************************/
|
|
1461
1473
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1487,22 +1499,22 @@ createApplication.ACTIVATE_HOOKS = ACTIVATE_HOOKS;
|
|
|
1487
1499
|
createApplication.activateHooks = activateHooks;
|
|
1488
1500
|
module.exports = createApplication; // For better ES module (TypeScript) compatibility
|
|
1489
1501
|
|
|
1490
|
-
module.exports
|
|
1502
|
+
module.exports["default"] = createApplication;
|
|
1491
1503
|
|
|
1492
1504
|
/***/ }),
|
|
1493
1505
|
|
|
1494
1506
|
/***/ "../feathers/lib/version.js":
|
|
1495
|
-
|
|
1507
|
+
/*!**********************************!*\
|
|
1496
1508
|
!*** ../feathers/lib/version.js ***!
|
|
1497
1509
|
\**********************************/
|
|
1498
1510
|
/***/ (function(module) {
|
|
1499
1511
|
|
|
1500
|
-
module.exports = '4.5.
|
|
1512
|
+
module.exports = '4.5.12';
|
|
1501
1513
|
|
|
1502
1514
|
/***/ }),
|
|
1503
1515
|
|
|
1504
1516
|
/***/ "../../node_modules/events/events.js":
|
|
1505
|
-
|
|
1517
|
+
/*!*******************************************!*\
|
|
1506
1518
|
!*** ../../node_modules/events/events.js ***!
|
|
1507
1519
|
\*******************************************/
|
|
1508
1520
|
/***/ (function(module) {
|
|
@@ -1958,38 +1970,59 @@ function unwrapListeners(arr) {
|
|
|
1958
1970
|
|
|
1959
1971
|
function once(emitter, name) {
|
|
1960
1972
|
return new Promise(function (resolve, reject) {
|
|
1961
|
-
function
|
|
1962
|
-
|
|
1973
|
+
function errorListener(err) {
|
|
1974
|
+
emitter.removeListener(name, resolver);
|
|
1975
|
+
reject(err);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
function resolver() {
|
|
1979
|
+
if (typeof emitter.removeListener === 'function') {
|
|
1963
1980
|
emitter.removeListener('error', errorListener);
|
|
1964
1981
|
}
|
|
1965
1982
|
resolve([].slice.call(arguments));
|
|
1966
1983
|
};
|
|
1967
|
-
var errorListener;
|
|
1968
|
-
|
|
1969
|
-
// Adding an error listener is not optional because
|
|
1970
|
-
// if an error is thrown on an event emitter we cannot
|
|
1971
|
-
// guarantee that the actual event we are waiting will
|
|
1972
|
-
// be fired. The result could be a silent way to create
|
|
1973
|
-
// memory or file descriptor leaks, which is something
|
|
1974
|
-
// we should avoid.
|
|
1975
|
-
if (name !== 'error') {
|
|
1976
|
-
errorListener = function errorListener(err) {
|
|
1977
|
-
emitter.removeListener(name, eventListener);
|
|
1978
|
-
reject(err);
|
|
1979
|
-
};
|
|
1980
1984
|
|
|
1981
|
-
|
|
1985
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
1986
|
+
if (name !== 'error') {
|
|
1987
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
1982
1988
|
}
|
|
1983
|
-
|
|
1984
|
-
emitter.once(name, eventListener);
|
|
1985
1989
|
});
|
|
1986
1990
|
}
|
|
1987
1991
|
|
|
1992
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
1993
|
+
if (typeof emitter.on === 'function') {
|
|
1994
|
+
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
1999
|
+
if (typeof emitter.on === 'function') {
|
|
2000
|
+
if (flags.once) {
|
|
2001
|
+
emitter.once(name, listener);
|
|
2002
|
+
} else {
|
|
2003
|
+
emitter.on(name, listener);
|
|
2004
|
+
}
|
|
2005
|
+
} else if (typeof emitter.addEventListener === 'function') {
|
|
2006
|
+
// EventTarget does not have `error` event semantics like Node
|
|
2007
|
+
// EventEmitters, we do not listen for `error` events here.
|
|
2008
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
2009
|
+
// IE does not have builtin `{ once: true }` support so we
|
|
2010
|
+
// have to do it manually.
|
|
2011
|
+
if (flags.once) {
|
|
2012
|
+
emitter.removeEventListener(name, wrapListener);
|
|
2013
|
+
}
|
|
2014
|
+
listener(arg);
|
|
2015
|
+
});
|
|
2016
|
+
} else {
|
|
2017
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1988
2021
|
|
|
1989
2022
|
/***/ }),
|
|
1990
2023
|
|
|
1991
2024
|
/***/ "../../node_modules/ms/index.js":
|
|
1992
|
-
|
|
2025
|
+
/*!**************************************!*\
|
|
1993
2026
|
!*** ../../node_modules/ms/index.js ***!
|
|
1994
2027
|
\**************************************/
|
|
1995
2028
|
/***/ (function(module) {
|
|
@@ -2161,7 +2194,7 @@ function plural(ms, msAbs, n, name) {
|
|
|
2161
2194
|
/***/ }),
|
|
2162
2195
|
|
|
2163
2196
|
/***/ "../../node_modules/uberproto/lib/proto.js":
|
|
2164
|
-
|
|
2197
|
+
/*!*************************************************!*\
|
|
2165
2198
|
!*** ../../node_modules/uberproto/lib/proto.js ***!
|
|
2166
2199
|
\*************************************************/
|
|
2167
2200
|
/***/ (function(module, exports) {
|
|
@@ -2317,8 +2350,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2317
2350
|
/******/ // The require function
|
|
2318
2351
|
/******/ function __webpack_require__(moduleId) {
|
|
2319
2352
|
/******/ // Check if module is in cache
|
|
2320
|
-
/******/
|
|
2321
|
-
/******/
|
|
2353
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2354
|
+
/******/ if (cachedModule !== undefined) {
|
|
2355
|
+
/******/ return cachedModule.exports;
|
|
2322
2356
|
/******/ }
|
|
2323
2357
|
/******/ // Create a new module (and put it into the cache)
|
|
2324
2358
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -2335,10 +2369,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2335
2369
|
/******/ }
|
|
2336
2370
|
/******/
|
|
2337
2371
|
/************************************************************************/
|
|
2338
|
-
/******/
|
|
2372
|
+
/******/
|
|
2339
2373
|
/******/ // startup
|
|
2340
2374
|
/******/ // Load entry module and return exports
|
|
2341
|
-
/******/
|
|
2375
|
+
/******/ // This entry module used 'module' so it can't be inlined
|
|
2376
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/core.js");
|
|
2377
|
+
/******/
|
|
2378
|
+
/******/ return __webpack_exports__;
|
|
2342
2379
|
/******/ })()
|
|
2343
2380
|
;
|
|
2344
2381
|
});
|