@feathersjs/client 4.5.11 → 4.5.14
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 +27 -0
- package/dist/authentication.js +82 -54
- package/dist/authentication.js.map +1 -1
- package/dist/authentication.min.js +1 -1
- package/dist/core.js +96 -53
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +1540 -173
- 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 +1448 -108
- 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/feathers.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
|
/***/ "../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) {
|
|
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__) {
|
|
@@ -859,12 +871,18 @@ exports.populateHeader = populateHeader;
|
|
|
859
871
|
|
|
860
872
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
861
873
|
if (k2 === undefined) k2 = k;
|
|
862
|
-
Object.
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
874
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
875
|
+
|
|
876
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
877
|
+
desc = {
|
|
878
|
+
enumerable: true,
|
|
879
|
+
get: function get() {
|
|
880
|
+
return m[k];
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
Object.defineProperty(o, k2, desc);
|
|
868
886
|
} : function (o, m, k, k2) {
|
|
869
887
|
if (k2 === undefined) k2 = k;
|
|
870
888
|
o[k2] = m[k];
|
|
@@ -927,7 +945,7 @@ var getDefaultStorage = function getDefaultStorage() {
|
|
|
927
945
|
};
|
|
928
946
|
|
|
929
947
|
exports.getDefaultStorage = getDefaultStorage;
|
|
930
|
-
exports.defaultStorage = exports.getDefaultStorage();
|
|
948
|
+
exports.defaultStorage = (0, exports.getDefaultStorage)();
|
|
931
949
|
exports.defaults = {
|
|
932
950
|
header: 'Authorization',
|
|
933
951
|
scheme: 'Bearer',
|
|
@@ -959,7 +977,7 @@ var init = function init() {
|
|
|
959
977
|
};
|
|
960
978
|
};
|
|
961
979
|
|
|
962
|
-
exports
|
|
980
|
+
exports["default"] = init;
|
|
963
981
|
|
|
964
982
|
if (true) {
|
|
965
983
|
module.exports = Object.assign(init, module.exports);
|
|
@@ -968,7 +986,7 @@ if (true) {
|
|
|
968
986
|
/***/ }),
|
|
969
987
|
|
|
970
988
|
/***/ "../authentication-client/lib/storage.js":
|
|
971
|
-
|
|
989
|
+
/*!***********************************************!*\
|
|
972
990
|
!*** ../authentication-client/lib/storage.js ***!
|
|
973
991
|
\***********************************************/
|
|
974
992
|
/***/ (function(__unused_webpack_module, exports) {
|
|
@@ -980,7 +998,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
980
998
|
|
|
981
999
|
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
1000
|
|
|
983
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1001
|
+
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
1002
|
|
|
985
1003
|
Object.defineProperty(exports, "__esModule", ({
|
|
986
1004
|
value: true
|
|
@@ -1050,7 +1068,7 @@ exports.StorageWrapper = StorageWrapper;
|
|
|
1050
1068
|
/***/ }),
|
|
1051
1069
|
|
|
1052
1070
|
/***/ "./src/index.js":
|
|
1053
|
-
|
|
1071
|
+
/*!**********************!*\
|
|
1054
1072
|
!*** ./src/index.js ***!
|
|
1055
1073
|
\**********************/
|
|
1056
1074
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1079,7 +1097,7 @@ module.exports = feathers;
|
|
|
1079
1097
|
/***/ }),
|
|
1080
1098
|
|
|
1081
1099
|
/***/ "../commons/lib/hooks.js":
|
|
1082
|
-
|
|
1100
|
+
/*!*******************************!*\
|
|
1083
1101
|
!*** ../commons/lib/hooks.js ***!
|
|
1084
1102
|
\*******************************/
|
|
1085
1103
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -1087,7 +1105,7 @@ module.exports = feathers;
|
|
|
1087
1105
|
"use strict";
|
|
1088
1106
|
|
|
1089
1107
|
|
|
1090
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1108
|
+
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); }
|
|
1091
1109
|
|
|
1092
1110
|
Object.defineProperty(exports, "__esModule", ({
|
|
1093
1111
|
value: true
|
|
@@ -1099,7 +1117,7 @@ var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
|
|
|
1099
1117
|
var _utils_1$_ = utils_1._,
|
|
1100
1118
|
each = _utils_1$_.each,
|
|
1101
1119
|
pick = _utils_1$_.pick;
|
|
1102
|
-
exports.ACTIVATE_HOOKS = utils_1.createSymbol('__feathersActivateHooks');
|
|
1120
|
+
exports.ACTIVATE_HOOKS = (0, utils_1.createSymbol)('__feathersActivateHooks');
|
|
1103
1121
|
|
|
1104
1122
|
function createHookObject(method) {
|
|
1105
1123
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -1312,7 +1330,7 @@ exports.enableHooks = enableHooks;
|
|
|
1312
1330
|
/***/ }),
|
|
1313
1331
|
|
|
1314
1332
|
/***/ "../commons/lib/index.js":
|
|
1315
|
-
|
|
1333
|
+
/*!*******************************!*\
|
|
1316
1334
|
!*** ../commons/lib/index.js ***!
|
|
1317
1335
|
\*******************************/
|
|
1318
1336
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -1322,12 +1340,18 @@ exports.enableHooks = enableHooks;
|
|
|
1322
1340
|
|
|
1323
1341
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1324
1342
|
if (k2 === undefined) k2 = k;
|
|
1325
|
-
Object.
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1343
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1344
|
+
|
|
1345
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1346
|
+
desc = {
|
|
1347
|
+
enumerable: true,
|
|
1348
|
+
get: function get() {
|
|
1349
|
+
return m[k];
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
Object.defineProperty(o, k2, desc);
|
|
1331
1355
|
} : function (o, m, k, k2) {
|
|
1332
1356
|
if (k2 === undefined) k2 = k;
|
|
1333
1357
|
o[k2] = m[k];
|
|
@@ -1374,7 +1398,7 @@ exports.hooks = hookUtils;
|
|
|
1374
1398
|
/***/ }),
|
|
1375
1399
|
|
|
1376
1400
|
/***/ "../commons/lib/utils.js":
|
|
1377
|
-
|
|
1401
|
+
/*!*******************************!*\
|
|
1378
1402
|
!*** ../commons/lib/utils.js ***!
|
|
1379
1403
|
\*******************************/
|
|
1380
1404
|
/***/ (function(__unused_webpack_module, exports) {
|
|
@@ -1384,7 +1408,7 @@ exports.hooks = hookUtils;
|
|
|
1384
1408
|
|
|
1385
1409
|
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; }
|
|
1386
1410
|
|
|
1387
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1411
|
+
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); }
|
|
1388
1412
|
|
|
1389
1413
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1390
1414
|
|
|
@@ -1394,7 +1418,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
1394
1418
|
|
|
1395
1419
|
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; }
|
|
1396
1420
|
|
|
1397
|
-
function _iterableToArrayLimit(arr, i) {
|
|
1421
|
+
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; }
|
|
1398
1422
|
|
|
1399
1423
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1400
1424
|
|
|
@@ -1544,12 +1568,12 @@ exports.createSymbol = createSymbol;
|
|
|
1544
1568
|
/***/ }),
|
|
1545
1569
|
|
|
1546
1570
|
/***/ "../errors/lib/index.js":
|
|
1547
|
-
|
|
1571
|
+
/*!******************************!*\
|
|
1548
1572
|
!*** ../errors/lib/index.js ***!
|
|
1549
1573
|
\******************************/
|
|
1550
1574
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1551
1575
|
|
|
1552
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1576
|
+
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); }
|
|
1553
1577
|
|
|
1554
1578
|
var debug = __webpack_require__(/*! debug */ "../../node_modules/debug/src/browser.js")('@feathersjs/errors');
|
|
1555
1579
|
|
|
@@ -1793,7 +1817,7 @@ module.exports = Object.assign({
|
|
|
1793
1817
|
/***/ }),
|
|
1794
1818
|
|
|
1795
1819
|
/***/ "../feathers/lib/application.js":
|
|
1796
|
-
|
|
1820
|
+
/*!**************************************!*\
|
|
1797
1821
|
!*** ../feathers/lib/application.js ***!
|
|
1798
1822
|
\**************************************/
|
|
1799
1823
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1940,7 +1964,7 @@ module.exports = application;
|
|
|
1940
1964
|
/***/ }),
|
|
1941
1965
|
|
|
1942
1966
|
/***/ "../feathers/lib/events.js":
|
|
1943
|
-
|
|
1967
|
+
/*!*********************************!*\
|
|
1944
1968
|
!*** ../feathers/lib/events.js ***!
|
|
1945
1969
|
\*********************************/
|
|
1946
1970
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -2032,7 +2056,7 @@ module.exports = function () {
|
|
|
2032
2056
|
/***/ }),
|
|
2033
2057
|
|
|
2034
2058
|
/***/ "../feathers/lib/hooks/base.js":
|
|
2035
|
-
|
|
2059
|
+
/*!*************************************!*\
|
|
2036
2060
|
!*** ../feathers/lib/hooks/base.js ***!
|
|
2037
2061
|
\*************************************/
|
|
2038
2062
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2077,7 +2101,7 @@ module.exports = [assignArguments, validate];
|
|
|
2077
2101
|
/***/ }),
|
|
2078
2102
|
|
|
2079
2103
|
/***/ "../feathers/lib/hooks/index.js":
|
|
2080
|
-
|
|
2104
|
+
/*!**************************************!*\
|
|
2081
2105
|
!*** ../feathers/lib/hooks/index.js ***!
|
|
2082
2106
|
\**************************************/
|
|
2083
2107
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -2088,7 +2112,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
2088
2112
|
|
|
2089
2113
|
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); }
|
|
2090
2114
|
|
|
2091
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
2115
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
2092
2116
|
|
|
2093
2117
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
2094
2118
|
|
|
@@ -2288,7 +2312,7 @@ module.exports.activateHooks = function activateHooks(args) {
|
|
|
2288
2312
|
/***/ }),
|
|
2289
2313
|
|
|
2290
2314
|
/***/ "../feathers/lib/index.js":
|
|
2291
|
-
|
|
2315
|
+
/*!********************************!*\
|
|
2292
2316
|
!*** ../feathers/lib/index.js ***!
|
|
2293
2317
|
\********************************/
|
|
2294
2318
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2320,22 +2344,22 @@ createApplication.ACTIVATE_HOOKS = ACTIVATE_HOOKS;
|
|
|
2320
2344
|
createApplication.activateHooks = activateHooks;
|
|
2321
2345
|
module.exports = createApplication; // For better ES module (TypeScript) compatibility
|
|
2322
2346
|
|
|
2323
|
-
module.exports
|
|
2347
|
+
module.exports["default"] = createApplication;
|
|
2324
2348
|
|
|
2325
2349
|
/***/ }),
|
|
2326
2350
|
|
|
2327
2351
|
/***/ "../feathers/lib/version.js":
|
|
2328
|
-
|
|
2352
|
+
/*!**********************************!*\
|
|
2329
2353
|
!*** ../feathers/lib/version.js ***!
|
|
2330
2354
|
\**********************************/
|
|
2331
2355
|
/***/ (function(module) {
|
|
2332
2356
|
|
|
2333
|
-
module.exports = '
|
|
2357
|
+
module.exports = 'development';
|
|
2334
2358
|
|
|
2335
2359
|
/***/ }),
|
|
2336
2360
|
|
|
2337
2361
|
/***/ "../primus-client/lib/index.js":
|
|
2338
|
-
|
|
2362
|
+
/*!*************************************!*\
|
|
2339
2363
|
!*** ../primus-client/lib/index.js ***!
|
|
2340
2364
|
\*************************************/
|
|
2341
2365
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2370,35 +2394,35 @@ function primusClient(connection, options) {
|
|
|
2370
2394
|
}
|
|
2371
2395
|
|
|
2372
2396
|
module.exports = primusClient;
|
|
2373
|
-
module.exports
|
|
2397
|
+
module.exports["default"] = primusClient;
|
|
2374
2398
|
|
|
2375
2399
|
/***/ }),
|
|
2376
2400
|
|
|
2377
2401
|
/***/ "../rest-client/lib/angular-http-client.js":
|
|
2378
|
-
|
|
2402
|
+
/*!*************************************************!*\
|
|
2379
2403
|
!*** ../rest-client/lib/angular-http-client.js ***!
|
|
2380
2404
|
\*************************************************/
|
|
2381
2405
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2382
2406
|
|
|
2383
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
2407
|
+
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); }
|
|
2384
2408
|
|
|
2385
2409
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2386
2410
|
|
|
2387
2411
|
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); } }
|
|
2388
2412
|
|
|
2389
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2413
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2390
2414
|
|
|
2391
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2415
|
+
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); }
|
|
2392
2416
|
|
|
2393
2417
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2394
2418
|
|
|
2395
2419
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2396
2420
|
|
|
2397
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2421
|
+
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); }
|
|
2398
2422
|
|
|
2399
2423
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2400
2424
|
|
|
2401
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
2425
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2402
2426
|
|
|
2403
2427
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2404
2428
|
|
|
@@ -2459,30 +2483,30 @@ module.exports = AngularHttpService;
|
|
|
2459
2483
|
/***/ }),
|
|
2460
2484
|
|
|
2461
2485
|
/***/ "../rest-client/lib/angular.js":
|
|
2462
|
-
|
|
2486
|
+
/*!*************************************!*\
|
|
2463
2487
|
!*** ../rest-client/lib/angular.js ***!
|
|
2464
2488
|
\*************************************/
|
|
2465
2489
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2466
2490
|
|
|
2467
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
2491
|
+
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); }
|
|
2468
2492
|
|
|
2469
2493
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2470
2494
|
|
|
2471
2495
|
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); } }
|
|
2472
2496
|
|
|
2473
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2497
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2474
2498
|
|
|
2475
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2499
|
+
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); }
|
|
2476
2500
|
|
|
2477
2501
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2478
2502
|
|
|
2479
2503
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2480
2504
|
|
|
2481
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2505
|
+
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); }
|
|
2482
2506
|
|
|
2483
2507
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2484
2508
|
|
|
2485
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
2509
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2486
2510
|
|
|
2487
2511
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2488
2512
|
|
|
@@ -2540,30 +2564,30 @@ module.exports = AngularService;
|
|
|
2540
2564
|
/***/ }),
|
|
2541
2565
|
|
|
2542
2566
|
/***/ "../rest-client/lib/axios.js":
|
|
2543
|
-
|
|
2567
|
+
/*!***********************************!*\
|
|
2544
2568
|
!*** ../rest-client/lib/axios.js ***!
|
|
2545
2569
|
\***********************************/
|
|
2546
2570
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2547
2571
|
|
|
2548
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
2572
|
+
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); }
|
|
2549
2573
|
|
|
2550
2574
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2551
2575
|
|
|
2552
2576
|
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); } }
|
|
2553
2577
|
|
|
2554
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2578
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2555
2579
|
|
|
2556
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2580
|
+
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); }
|
|
2557
2581
|
|
|
2558
2582
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2559
2583
|
|
|
2560
2584
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2561
2585
|
|
|
2562
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2586
|
+
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); }
|
|
2563
2587
|
|
|
2564
2588
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2565
2589
|
|
|
2566
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
2590
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2567
2591
|
|
|
2568
2592
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2569
2593
|
|
|
@@ -2608,7 +2632,7 @@ module.exports = AxiosService;
|
|
|
2608
2632
|
/***/ }),
|
|
2609
2633
|
|
|
2610
2634
|
/***/ "../rest-client/lib/base.js":
|
|
2611
|
-
|
|
2635
|
+
/*!**********************************!*\
|
|
2612
2636
|
!*** ../rest-client/lib/base.js ***!
|
|
2613
2637
|
\**********************************/
|
|
2614
2638
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2617,7 +2641,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
2617
2641
|
|
|
2618
2642
|
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); } }
|
|
2619
2643
|
|
|
2620
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2644
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2621
2645
|
|
|
2622
2646
|
var qs = __webpack_require__(/*! qs */ "../../node_modules/qs/lib/index.js");
|
|
2623
2647
|
|
|
@@ -2772,35 +2796,37 @@ module.exports = Base;
|
|
|
2772
2796
|
/***/ }),
|
|
2773
2797
|
|
|
2774
2798
|
/***/ "../rest-client/lib/fetch.js":
|
|
2775
|
-
|
|
2799
|
+
/*!***********************************!*\
|
|
2776
2800
|
!*** ../rest-client/lib/fetch.js ***!
|
|
2777
2801
|
\***********************************/
|
|
2778
2802
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2779
2803
|
|
|
2780
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
2804
|
+
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); }
|
|
2781
2805
|
|
|
2782
2806
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2783
2807
|
|
|
2784
2808
|
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); } }
|
|
2785
2809
|
|
|
2786
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2810
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2787
2811
|
|
|
2788
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2812
|
+
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); }
|
|
2789
2813
|
|
|
2790
2814
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2791
2815
|
|
|
2792
2816
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2793
2817
|
|
|
2794
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2818
|
+
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); }
|
|
2795
2819
|
|
|
2796
2820
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2797
2821
|
|
|
2798
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
2822
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2799
2823
|
|
|
2800
2824
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2801
2825
|
|
|
2802
2826
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2803
2827
|
|
|
2828
|
+
var errors = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
2829
|
+
|
|
2804
2830
|
var FetchService = /*#__PURE__*/function (_Base) {
|
|
2805
2831
|
_inherits(FetchService, _Base);
|
|
2806
2832
|
|
|
@@ -2858,7 +2884,7 @@ module.exports = FetchService;
|
|
|
2858
2884
|
/***/ }),
|
|
2859
2885
|
|
|
2860
2886
|
/***/ "../rest-client/lib/index.js":
|
|
2861
|
-
|
|
2887
|
+
/*!***********************************!*\
|
|
2862
2888
|
!*** ../rest-client/lib/index.js ***!
|
|
2863
2889
|
\***********************************/
|
|
2864
2890
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2943,35 +2969,35 @@ module.exports = Object.assign(restClient, {
|
|
|
2943
2969
|
AngularClient: AngularClient,
|
|
2944
2970
|
AngularHttpClient: AngularHttpClient
|
|
2945
2971
|
});
|
|
2946
|
-
module.exports
|
|
2972
|
+
module.exports["default"] = restClient;
|
|
2947
2973
|
|
|
2948
2974
|
/***/ }),
|
|
2949
2975
|
|
|
2950
2976
|
/***/ "../rest-client/lib/jquery.js":
|
|
2951
|
-
|
|
2977
|
+
/*!************************************!*\
|
|
2952
2978
|
!*** ../rest-client/lib/jquery.js ***!
|
|
2953
2979
|
\************************************/
|
|
2954
2980
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2955
2981
|
|
|
2956
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
2982
|
+
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); }
|
|
2957
2983
|
|
|
2958
2984
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2959
2985
|
|
|
2960
2986
|
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); } }
|
|
2961
2987
|
|
|
2962
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2988
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2963
2989
|
|
|
2964
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2990
|
+
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); }
|
|
2965
2991
|
|
|
2966
2992
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2967
2993
|
|
|
2968
2994
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2969
2995
|
|
|
2970
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2996
|
+
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); }
|
|
2971
2997
|
|
|
2972
2998
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2973
2999
|
|
|
2974
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
3000
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2975
3001
|
|
|
2976
3002
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2977
3003
|
|
|
@@ -3034,30 +3060,30 @@ module.exports = JQueryService;
|
|
|
3034
3060
|
/***/ }),
|
|
3035
3061
|
|
|
3036
3062
|
/***/ "../rest-client/lib/request.js":
|
|
3037
|
-
|
|
3063
|
+
/*!*************************************!*\
|
|
3038
3064
|
!*** ../rest-client/lib/request.js ***!
|
|
3039
3065
|
\*************************************/
|
|
3040
3066
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3041
3067
|
|
|
3042
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3068
|
+
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); }
|
|
3043
3069
|
|
|
3044
3070
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3045
3071
|
|
|
3046
3072
|
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); } }
|
|
3047
3073
|
|
|
3048
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3074
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
3049
3075
|
|
|
3050
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3076
|
+
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); }
|
|
3051
3077
|
|
|
3052
3078
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3053
3079
|
|
|
3054
3080
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3055
3081
|
|
|
3056
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3082
|
+
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); }
|
|
3057
3083
|
|
|
3058
3084
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3059
3085
|
|
|
3060
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
3086
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3061
3087
|
|
|
3062
3088
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3063
3089
|
|
|
@@ -3116,30 +3142,30 @@ module.exports = RequestService;
|
|
|
3116
3142
|
/***/ }),
|
|
3117
3143
|
|
|
3118
3144
|
/***/ "../rest-client/lib/superagent.js":
|
|
3119
|
-
|
|
3145
|
+
/*!****************************************!*\
|
|
3120
3146
|
!*** ../rest-client/lib/superagent.js ***!
|
|
3121
3147
|
\****************************************/
|
|
3122
3148
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3123
3149
|
|
|
3124
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3150
|
+
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); }
|
|
3125
3151
|
|
|
3126
3152
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3127
3153
|
|
|
3128
3154
|
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); } }
|
|
3129
3155
|
|
|
3130
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3156
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
3131
3157
|
|
|
3132
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3158
|
+
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); }
|
|
3133
3159
|
|
|
3134
3160
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3135
3161
|
|
|
3136
3162
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3137
3163
|
|
|
3138
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3164
|
+
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); }
|
|
3139
3165
|
|
|
3140
3166
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3141
3167
|
|
|
3142
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
3168
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3143
3169
|
|
|
3144
3170
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3145
3171
|
|
|
@@ -3192,7 +3218,7 @@ module.exports = SuperagentService;
|
|
|
3192
3218
|
/***/ }),
|
|
3193
3219
|
|
|
3194
3220
|
/***/ "../socketio-client/lib/index.js":
|
|
3195
|
-
|
|
3221
|
+
/*!***************************************!*\
|
|
3196
3222
|
!*** ../socketio-client/lib/index.js ***!
|
|
3197
3223
|
\***************************************/
|
|
3198
3224
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -3240,12 +3266,12 @@ function socketioClient(connection, options) {
|
|
|
3240
3266
|
}
|
|
3241
3267
|
|
|
3242
3268
|
module.exports = socketioClient;
|
|
3243
|
-
module.exports
|
|
3269
|
+
module.exports["default"] = socketioClient;
|
|
3244
3270
|
|
|
3245
3271
|
/***/ }),
|
|
3246
3272
|
|
|
3247
3273
|
/***/ "../transport-commons/client.js":
|
|
3248
|
-
|
|
3274
|
+
/*!**************************************!*\
|
|
3249
3275
|
!*** ../transport-commons/client.js ***!
|
|
3250
3276
|
\**************************************/
|
|
3251
3277
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -3255,7 +3281,7 @@ module.exports = __webpack_require__(/*! ./lib/client */ "../transport-commons/l
|
|
|
3255
3281
|
/***/ }),
|
|
3256
3282
|
|
|
3257
3283
|
/***/ "../transport-commons/lib/client.js":
|
|
3258
|
-
|
|
3284
|
+
/*!******************************************!*\
|
|
3259
3285
|
!*** ../transport-commons/lib/client.js ***!
|
|
3260
3286
|
\******************************************/
|
|
3261
3287
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -3267,7 +3293,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
3267
3293
|
|
|
3268
3294
|
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); } }
|
|
3269
3295
|
|
|
3270
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3296
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
3271
3297
|
|
|
3272
3298
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
3273
3299
|
return mod && mod.__esModule ? mod : {
|
|
@@ -3284,7 +3310,7 @@ var debug_1 = __importDefault(__webpack_require__(/*! debug */ "../../node_modul
|
|
|
3284
3310
|
|
|
3285
3311
|
var errors_1 = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
3286
3312
|
|
|
3287
|
-
var debug = debug_1.default('@feathersjs/transport-commons/client');
|
|
3313
|
+
var debug = (0, debug_1.default)('@feathersjs/transport-commons/client');
|
|
3288
3314
|
var namespacedEmitterMethods = ['addListener', 'emit', 'listenerCount', 'listeners', 'on', 'once', 'prependListener', 'prependOnceListener', 'removeAllListeners', 'removeListener'];
|
|
3289
3315
|
var otherEmitterMethods = ['eventNames', 'getMaxListeners', 'setMaxListeners'];
|
|
3290
3316
|
|
|
@@ -3356,7 +3382,7 @@ var Service = /*#__PURE__*/function () {
|
|
|
3356
3382
|
}, _this.timeout);
|
|
3357
3383
|
args.unshift(method, _this.path);
|
|
3358
3384
|
args.push(function (error, data) {
|
|
3359
|
-
error = errors_1.convert(error);
|
|
3385
|
+
error = (0, errors_1.convert)(error);
|
|
3360
3386
|
clearTimeout(timeoutId);
|
|
3361
3387
|
return error ? reject(error) : resolve(data);
|
|
3362
3388
|
});
|
|
@@ -3432,10 +3458,94 @@ var Service = /*#__PURE__*/function () {
|
|
|
3432
3458
|
|
|
3433
3459
|
exports.Service = Service;
|
|
3434
3460
|
|
|
3461
|
+
/***/ }),
|
|
3462
|
+
|
|
3463
|
+
/***/ "../../node_modules/call-bind/callBound.js":
|
|
3464
|
+
/*!*************************************************!*\
|
|
3465
|
+
!*** ../../node_modules/call-bind/callBound.js ***!
|
|
3466
|
+
\*************************************************/
|
|
3467
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3468
|
+
|
|
3469
|
+
"use strict";
|
|
3470
|
+
|
|
3471
|
+
|
|
3472
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
3473
|
+
|
|
3474
|
+
var callBind = __webpack_require__(/*! ./ */ "../../node_modules/call-bind/index.js");
|
|
3475
|
+
|
|
3476
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
3477
|
+
|
|
3478
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
3479
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
3480
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
3481
|
+
return callBind(intrinsic);
|
|
3482
|
+
}
|
|
3483
|
+
return intrinsic;
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
|
|
3487
|
+
/***/ }),
|
|
3488
|
+
|
|
3489
|
+
/***/ "../../node_modules/call-bind/index.js":
|
|
3490
|
+
/*!*********************************************!*\
|
|
3491
|
+
!*** ../../node_modules/call-bind/index.js ***!
|
|
3492
|
+
\*********************************************/
|
|
3493
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3494
|
+
|
|
3495
|
+
"use strict";
|
|
3496
|
+
|
|
3497
|
+
|
|
3498
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
3499
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
3500
|
+
|
|
3501
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
3502
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
3503
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
3504
|
+
|
|
3505
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
3506
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
3507
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
3508
|
+
|
|
3509
|
+
if ($defineProperty) {
|
|
3510
|
+
try {
|
|
3511
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
3512
|
+
} catch (e) {
|
|
3513
|
+
// IE 8 has a broken defineProperty
|
|
3514
|
+
$defineProperty = null;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
module.exports = function callBind(originalFunction) {
|
|
3519
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
3520
|
+
if ($gOPD && $defineProperty) {
|
|
3521
|
+
var desc = $gOPD(func, 'length');
|
|
3522
|
+
if (desc.configurable) {
|
|
3523
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
3524
|
+
$defineProperty(
|
|
3525
|
+
func,
|
|
3526
|
+
'length',
|
|
3527
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
3528
|
+
);
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
return func;
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
var applyBind = function applyBind() {
|
|
3535
|
+
return $reflectApply(bind, $apply, arguments);
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3538
|
+
if ($defineProperty) {
|
|
3539
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
3540
|
+
} else {
|
|
3541
|
+
module.exports.apply = applyBind;
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
|
|
3435
3545
|
/***/ }),
|
|
3436
3546
|
|
|
3437
3547
|
/***/ "../../node_modules/events/events.js":
|
|
3438
|
-
|
|
3548
|
+
/*!*******************************************!*\
|
|
3439
3549
|
!*** ../../node_modules/events/events.js ***!
|
|
3440
3550
|
\*******************************************/
|
|
3441
3551
|
/***/ (function(module) {
|
|
@@ -3891,38 +4001,572 @@ function unwrapListeners(arr) {
|
|
|
3891
4001
|
|
|
3892
4002
|
function once(emitter, name) {
|
|
3893
4003
|
return new Promise(function (resolve, reject) {
|
|
3894
|
-
function
|
|
3895
|
-
|
|
4004
|
+
function errorListener(err) {
|
|
4005
|
+
emitter.removeListener(name, resolver);
|
|
4006
|
+
reject(err);
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
function resolver() {
|
|
4010
|
+
if (typeof emitter.removeListener === 'function') {
|
|
3896
4011
|
emitter.removeListener('error', errorListener);
|
|
3897
4012
|
}
|
|
3898
4013
|
resolve([].slice.call(arguments));
|
|
3899
4014
|
};
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
// Adding an error listener is not optional because
|
|
3903
|
-
// if an error is thrown on an event emitter we cannot
|
|
3904
|
-
// guarantee that the actual event we are waiting will
|
|
3905
|
-
// be fired. The result could be a silent way to create
|
|
3906
|
-
// memory or file descriptor leaks, which is something
|
|
3907
|
-
// we should avoid.
|
|
4015
|
+
|
|
4016
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
3908
4017
|
if (name !== 'error') {
|
|
3909
|
-
errorListener
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
4018
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
4019
|
+
}
|
|
4020
|
+
});
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
4024
|
+
if (typeof emitter.on === 'function') {
|
|
4025
|
+
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
4030
|
+
if (typeof emitter.on === 'function') {
|
|
4031
|
+
if (flags.once) {
|
|
4032
|
+
emitter.once(name, listener);
|
|
4033
|
+
} else {
|
|
4034
|
+
emitter.on(name, listener);
|
|
4035
|
+
}
|
|
4036
|
+
} else if (typeof emitter.addEventListener === 'function') {
|
|
4037
|
+
// EventTarget does not have `error` event semantics like Node
|
|
4038
|
+
// EventEmitters, we do not listen for `error` events here.
|
|
4039
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
4040
|
+
// IE does not have builtin `{ once: true }` support so we
|
|
4041
|
+
// have to do it manually.
|
|
4042
|
+
if (flags.once) {
|
|
4043
|
+
emitter.removeEventListener(name, wrapListener);
|
|
4044
|
+
}
|
|
4045
|
+
listener(arg);
|
|
4046
|
+
});
|
|
4047
|
+
} else {
|
|
4048
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
4049
|
+
}
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
|
|
4053
|
+
/***/ }),
|
|
4054
|
+
|
|
4055
|
+
/***/ "../../node_modules/function-bind/implementation.js":
|
|
4056
|
+
/*!**********************************************************!*\
|
|
4057
|
+
!*** ../../node_modules/function-bind/implementation.js ***!
|
|
4058
|
+
\**********************************************************/
|
|
4059
|
+
/***/ (function(module) {
|
|
4060
|
+
|
|
4061
|
+
"use strict";
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
/* eslint no-invalid-this: 1 */
|
|
3913
4065
|
|
|
3914
|
-
|
|
4066
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
4067
|
+
var slice = Array.prototype.slice;
|
|
4068
|
+
var toStr = Object.prototype.toString;
|
|
4069
|
+
var funcType = '[object Function]';
|
|
4070
|
+
|
|
4071
|
+
module.exports = function bind(that) {
|
|
4072
|
+
var target = this;
|
|
4073
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
4074
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
3915
4075
|
}
|
|
4076
|
+
var args = slice.call(arguments, 1);
|
|
3916
4077
|
|
|
3917
|
-
|
|
3918
|
-
|
|
4078
|
+
var bound;
|
|
4079
|
+
var binder = function () {
|
|
4080
|
+
if (this instanceof bound) {
|
|
4081
|
+
var result = target.apply(
|
|
4082
|
+
this,
|
|
4083
|
+
args.concat(slice.call(arguments))
|
|
4084
|
+
);
|
|
4085
|
+
if (Object(result) === result) {
|
|
4086
|
+
return result;
|
|
4087
|
+
}
|
|
4088
|
+
return this;
|
|
4089
|
+
} else {
|
|
4090
|
+
return target.apply(
|
|
4091
|
+
that,
|
|
4092
|
+
args.concat(slice.call(arguments))
|
|
4093
|
+
);
|
|
4094
|
+
}
|
|
4095
|
+
};
|
|
4096
|
+
|
|
4097
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
4098
|
+
var boundArgs = [];
|
|
4099
|
+
for (var i = 0; i < boundLength; i++) {
|
|
4100
|
+
boundArgs.push('$' + i);
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
4104
|
+
|
|
4105
|
+
if (target.prototype) {
|
|
4106
|
+
var Empty = function Empty() {};
|
|
4107
|
+
Empty.prototype = target.prototype;
|
|
4108
|
+
bound.prototype = new Empty();
|
|
4109
|
+
Empty.prototype = null;
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
return bound;
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
/***/ }),
|
|
4117
|
+
|
|
4118
|
+
/***/ "../../node_modules/function-bind/index.js":
|
|
4119
|
+
/*!*************************************************!*\
|
|
4120
|
+
!*** ../../node_modules/function-bind/index.js ***!
|
|
4121
|
+
\*************************************************/
|
|
4122
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4123
|
+
|
|
4124
|
+
"use strict";
|
|
4125
|
+
|
|
4126
|
+
|
|
4127
|
+
var implementation = __webpack_require__(/*! ./implementation */ "../../node_modules/function-bind/implementation.js");
|
|
4128
|
+
|
|
4129
|
+
module.exports = Function.prototype.bind || implementation;
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
/***/ }),
|
|
4133
|
+
|
|
4134
|
+
/***/ "../../node_modules/get-intrinsic/index.js":
|
|
4135
|
+
/*!*************************************************!*\
|
|
4136
|
+
!*** ../../node_modules/get-intrinsic/index.js ***!
|
|
4137
|
+
\*************************************************/
|
|
4138
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4139
|
+
|
|
4140
|
+
"use strict";
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
var undefined;
|
|
4144
|
+
|
|
4145
|
+
var $SyntaxError = SyntaxError;
|
|
4146
|
+
var $Function = Function;
|
|
4147
|
+
var $TypeError = TypeError;
|
|
4148
|
+
|
|
4149
|
+
// eslint-disable-next-line consistent-return
|
|
4150
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
4151
|
+
try {
|
|
4152
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
4153
|
+
} catch (e) {}
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
4157
|
+
if ($gOPD) {
|
|
4158
|
+
try {
|
|
4159
|
+
$gOPD({}, '');
|
|
4160
|
+
} catch (e) {
|
|
4161
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
4162
|
+
}
|
|
3919
4163
|
}
|
|
3920
4164
|
|
|
4165
|
+
var throwTypeError = function () {
|
|
4166
|
+
throw new $TypeError();
|
|
4167
|
+
};
|
|
4168
|
+
var ThrowTypeError = $gOPD
|
|
4169
|
+
? (function () {
|
|
4170
|
+
try {
|
|
4171
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
4172
|
+
arguments.callee; // IE 8 does not throw here
|
|
4173
|
+
return throwTypeError;
|
|
4174
|
+
} catch (calleeThrows) {
|
|
4175
|
+
try {
|
|
4176
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
4177
|
+
return $gOPD(arguments, 'callee').get;
|
|
4178
|
+
} catch (gOPDthrows) {
|
|
4179
|
+
return throwTypeError;
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
}())
|
|
4183
|
+
: throwTypeError;
|
|
4184
|
+
|
|
4185
|
+
var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
|
|
4186
|
+
|
|
4187
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
4188
|
+
|
|
4189
|
+
var needsEval = {};
|
|
4190
|
+
|
|
4191
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
4192
|
+
|
|
4193
|
+
var INTRINSICS = {
|
|
4194
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
4195
|
+
'%Array%': Array,
|
|
4196
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
4197
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
4198
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
4199
|
+
'%AsyncFunction%': needsEval,
|
|
4200
|
+
'%AsyncGenerator%': needsEval,
|
|
4201
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
4202
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
4203
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
4204
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
4205
|
+
'%Boolean%': Boolean,
|
|
4206
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
4207
|
+
'%Date%': Date,
|
|
4208
|
+
'%decodeURI%': decodeURI,
|
|
4209
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
4210
|
+
'%encodeURI%': encodeURI,
|
|
4211
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
4212
|
+
'%Error%': Error,
|
|
4213
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
4214
|
+
'%EvalError%': EvalError,
|
|
4215
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
4216
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
4217
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
4218
|
+
'%Function%': $Function,
|
|
4219
|
+
'%GeneratorFunction%': needsEval,
|
|
4220
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
4221
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
4222
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
4223
|
+
'%isFinite%': isFinite,
|
|
4224
|
+
'%isNaN%': isNaN,
|
|
4225
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
4226
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
4227
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
4228
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
4229
|
+
'%Math%': Math,
|
|
4230
|
+
'%Number%': Number,
|
|
4231
|
+
'%Object%': Object,
|
|
4232
|
+
'%parseFloat%': parseFloat,
|
|
4233
|
+
'%parseInt%': parseInt,
|
|
4234
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
4235
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
4236
|
+
'%RangeError%': RangeError,
|
|
4237
|
+
'%ReferenceError%': ReferenceError,
|
|
4238
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
4239
|
+
'%RegExp%': RegExp,
|
|
4240
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
4241
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
4242
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
4243
|
+
'%String%': String,
|
|
4244
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
4245
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
4246
|
+
'%SyntaxError%': $SyntaxError,
|
|
4247
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
4248
|
+
'%TypedArray%': TypedArray,
|
|
4249
|
+
'%TypeError%': $TypeError,
|
|
4250
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
4251
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
4252
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
4253
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
4254
|
+
'%URIError%': URIError,
|
|
4255
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
4256
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
4257
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
4258
|
+
};
|
|
4259
|
+
|
|
4260
|
+
var doEval = function doEval(name) {
|
|
4261
|
+
var value;
|
|
4262
|
+
if (name === '%AsyncFunction%') {
|
|
4263
|
+
value = getEvalledConstructor('async function () {}');
|
|
4264
|
+
} else if (name === '%GeneratorFunction%') {
|
|
4265
|
+
value = getEvalledConstructor('function* () {}');
|
|
4266
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
4267
|
+
value = getEvalledConstructor('async function* () {}');
|
|
4268
|
+
} else if (name === '%AsyncGenerator%') {
|
|
4269
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
4270
|
+
if (fn) {
|
|
4271
|
+
value = fn.prototype;
|
|
4272
|
+
}
|
|
4273
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
4274
|
+
var gen = doEval('%AsyncGenerator%');
|
|
4275
|
+
if (gen) {
|
|
4276
|
+
value = getProto(gen.prototype);
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
|
|
4280
|
+
INTRINSICS[name] = value;
|
|
4281
|
+
|
|
4282
|
+
return value;
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
var LEGACY_ALIASES = {
|
|
4286
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
4287
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
4288
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
4289
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
4290
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
4291
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
4292
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
4293
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
4294
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
4295
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
4296
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
4297
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
4298
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
4299
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
4300
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
4301
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
4302
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
4303
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
4304
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
4305
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
4306
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
4307
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
4308
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
4309
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
4310
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
4311
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
4312
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
4313
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
4314
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
4315
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
4316
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
4317
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
4318
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
4319
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
4320
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
4321
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
4322
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
4323
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
4324
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
4325
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
4326
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
4327
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
4328
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
4329
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
4330
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
4331
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
4332
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
4333
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
4334
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
4335
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
4336
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
4337
|
+
};
|
|
4338
|
+
|
|
4339
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
4340
|
+
var hasOwn = __webpack_require__(/*! has */ "../../node_modules/has/src/index.js");
|
|
4341
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
4342
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
4343
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
4344
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
4345
|
+
|
|
4346
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
4347
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
4348
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
4349
|
+
var stringToPath = function stringToPath(string) {
|
|
4350
|
+
var first = $strSlice(string, 0, 1);
|
|
4351
|
+
var last = $strSlice(string, -1);
|
|
4352
|
+
if (first === '%' && last !== '%') {
|
|
4353
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
4354
|
+
} else if (last === '%' && first !== '%') {
|
|
4355
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
4356
|
+
}
|
|
4357
|
+
var result = [];
|
|
4358
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
4359
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
4360
|
+
});
|
|
4361
|
+
return result;
|
|
4362
|
+
};
|
|
4363
|
+
/* end adaptation */
|
|
4364
|
+
|
|
4365
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
4366
|
+
var intrinsicName = name;
|
|
4367
|
+
var alias;
|
|
4368
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
4369
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
4370
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
4374
|
+
var value = INTRINSICS[intrinsicName];
|
|
4375
|
+
if (value === needsEval) {
|
|
4376
|
+
value = doEval(intrinsicName);
|
|
4377
|
+
}
|
|
4378
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
4379
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
return {
|
|
4383
|
+
alias: alias,
|
|
4384
|
+
name: intrinsicName,
|
|
4385
|
+
value: value
|
|
4386
|
+
};
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
4390
|
+
};
|
|
4391
|
+
|
|
4392
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
4393
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
4394
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
4395
|
+
}
|
|
4396
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
4397
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
var parts = stringToPath(name);
|
|
4401
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
4402
|
+
|
|
4403
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
4404
|
+
var intrinsicRealName = intrinsic.name;
|
|
4405
|
+
var value = intrinsic.value;
|
|
4406
|
+
var skipFurtherCaching = false;
|
|
4407
|
+
|
|
4408
|
+
var alias = intrinsic.alias;
|
|
4409
|
+
if (alias) {
|
|
4410
|
+
intrinsicBaseName = alias[0];
|
|
4411
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
4415
|
+
var part = parts[i];
|
|
4416
|
+
var first = $strSlice(part, 0, 1);
|
|
4417
|
+
var last = $strSlice(part, -1);
|
|
4418
|
+
if (
|
|
4419
|
+
(
|
|
4420
|
+
(first === '"' || first === "'" || first === '`')
|
|
4421
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
4422
|
+
)
|
|
4423
|
+
&& first !== last
|
|
4424
|
+
) {
|
|
4425
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
4426
|
+
}
|
|
4427
|
+
if (part === 'constructor' || !isOwn) {
|
|
4428
|
+
skipFurtherCaching = true;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
intrinsicBaseName += '.' + part;
|
|
4432
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
4433
|
+
|
|
4434
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
4435
|
+
value = INTRINSICS[intrinsicRealName];
|
|
4436
|
+
} else if (value != null) {
|
|
4437
|
+
if (!(part in value)) {
|
|
4438
|
+
if (!allowMissing) {
|
|
4439
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4440
|
+
}
|
|
4441
|
+
return void undefined;
|
|
4442
|
+
}
|
|
4443
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
4444
|
+
var desc = $gOPD(value, part);
|
|
4445
|
+
isOwn = !!desc;
|
|
4446
|
+
|
|
4447
|
+
// By convention, when a data property is converted to an accessor
|
|
4448
|
+
// property to emulate a data property that does not suffer from
|
|
4449
|
+
// the override mistake, that accessor's getter is marked with
|
|
4450
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
4451
|
+
// uphold the illusion by pretending to see that original data
|
|
4452
|
+
// property, i.e., returning the value rather than the getter
|
|
4453
|
+
// itself.
|
|
4454
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
4455
|
+
value = desc.get;
|
|
4456
|
+
} else {
|
|
4457
|
+
value = value[part];
|
|
4458
|
+
}
|
|
4459
|
+
} else {
|
|
4460
|
+
isOwn = hasOwn(value, part);
|
|
4461
|
+
value = value[part];
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
if (isOwn && !skipFurtherCaching) {
|
|
4465
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
return value;
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
|
|
4473
|
+
/***/ }),
|
|
4474
|
+
|
|
4475
|
+
/***/ "../../node_modules/has-symbols/index.js":
|
|
4476
|
+
/*!***********************************************!*\
|
|
4477
|
+
!*** ../../node_modules/has-symbols/index.js ***!
|
|
4478
|
+
\***********************************************/
|
|
4479
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4480
|
+
|
|
4481
|
+
"use strict";
|
|
4482
|
+
|
|
4483
|
+
|
|
4484
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4485
|
+
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../../node_modules/has-symbols/shams.js");
|
|
4486
|
+
|
|
4487
|
+
module.exports = function hasNativeSymbols() {
|
|
4488
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
4489
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
4490
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
4491
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
4492
|
+
|
|
4493
|
+
return hasSymbolSham();
|
|
4494
|
+
};
|
|
4495
|
+
|
|
4496
|
+
|
|
4497
|
+
/***/ }),
|
|
4498
|
+
|
|
4499
|
+
/***/ "../../node_modules/has-symbols/shams.js":
|
|
4500
|
+
/*!***********************************************!*\
|
|
4501
|
+
!*** ../../node_modules/has-symbols/shams.js ***!
|
|
4502
|
+
\***********************************************/
|
|
4503
|
+
/***/ (function(module) {
|
|
4504
|
+
|
|
4505
|
+
"use strict";
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4509
|
+
module.exports = function hasSymbols() {
|
|
4510
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
4511
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
4512
|
+
|
|
4513
|
+
var obj = {};
|
|
4514
|
+
var sym = Symbol('test');
|
|
4515
|
+
var symObj = Object(sym);
|
|
4516
|
+
if (typeof sym === 'string') { return false; }
|
|
4517
|
+
|
|
4518
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
4519
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
4520
|
+
|
|
4521
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
4522
|
+
// if (sym instanceof Symbol) { return false; }
|
|
4523
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
4524
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
4525
|
+
|
|
4526
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
4527
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
4528
|
+
|
|
4529
|
+
var symVal = 42;
|
|
4530
|
+
obj[sym] = symVal;
|
|
4531
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
4532
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
4533
|
+
|
|
4534
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
4535
|
+
|
|
4536
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
4537
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
4538
|
+
|
|
4539
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
4540
|
+
|
|
4541
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
4542
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
4543
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4546
|
+
return true;
|
|
4547
|
+
};
|
|
4548
|
+
|
|
4549
|
+
|
|
4550
|
+
/***/ }),
|
|
4551
|
+
|
|
4552
|
+
/***/ "../../node_modules/has/src/index.js":
|
|
4553
|
+
/*!*******************************************!*\
|
|
4554
|
+
!*** ../../node_modules/has/src/index.js ***!
|
|
4555
|
+
\*******************************************/
|
|
4556
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4557
|
+
|
|
4558
|
+
"use strict";
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
4562
|
+
|
|
4563
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
4564
|
+
|
|
3921
4565
|
|
|
3922
4566
|
/***/ }),
|
|
3923
4567
|
|
|
3924
4568
|
/***/ "../../node_modules/ms/index.js":
|
|
3925
|
-
|
|
4569
|
+
/*!**************************************!*\
|
|
3926
4570
|
!*** ../../node_modules/ms/index.js ***!
|
|
3927
4571
|
\**************************************/
|
|
3928
4572
|
/***/ (function(module) {
|
|
@@ -4091,13 +4735,534 @@ function plural(ms, msAbs, n, name) {
|
|
|
4091
4735
|
}
|
|
4092
4736
|
|
|
4093
4737
|
|
|
4738
|
+
/***/ }),
|
|
4739
|
+
|
|
4740
|
+
/***/ "../../node_modules/object-inspect/index.js":
|
|
4741
|
+
/*!**************************************************!*\
|
|
4742
|
+
!*** ../../node_modules/object-inspect/index.js ***!
|
|
4743
|
+
\**************************************************/
|
|
4744
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4745
|
+
|
|
4746
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
4747
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
4748
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
4749
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
4750
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
4751
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
4752
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
4753
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
4754
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
4755
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
4756
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
4757
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
4758
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
4759
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
4760
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
4761
|
+
var objectToString = Object.prototype.toString;
|
|
4762
|
+
var functionToString = Function.prototype.toString;
|
|
4763
|
+
var $match = String.prototype.match;
|
|
4764
|
+
var $slice = String.prototype.slice;
|
|
4765
|
+
var $replace = String.prototype.replace;
|
|
4766
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
4767
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
4768
|
+
var $test = RegExp.prototype.test;
|
|
4769
|
+
var $concat = Array.prototype.concat;
|
|
4770
|
+
var $join = Array.prototype.join;
|
|
4771
|
+
var $arrSlice = Array.prototype.slice;
|
|
4772
|
+
var $floor = Math.floor;
|
|
4773
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
4774
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
4775
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
4776
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
4777
|
+
// ie, `has-tostringtag/shams
|
|
4778
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
4779
|
+
? Symbol.toStringTag
|
|
4780
|
+
: null;
|
|
4781
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4782
|
+
|
|
4783
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
4784
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
4785
|
+
? function (O) {
|
|
4786
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
4787
|
+
}
|
|
4788
|
+
: null
|
|
4789
|
+
);
|
|
4790
|
+
|
|
4791
|
+
function addNumericSeparator(num, str) {
|
|
4792
|
+
if (
|
|
4793
|
+
num === Infinity
|
|
4794
|
+
|| num === -Infinity
|
|
4795
|
+
|| num !== num
|
|
4796
|
+
|| (num && num > -1000 && num < 1000)
|
|
4797
|
+
|| $test.call(/e/, str)
|
|
4798
|
+
) {
|
|
4799
|
+
return str;
|
|
4800
|
+
}
|
|
4801
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
4802
|
+
if (typeof num === 'number') {
|
|
4803
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
4804
|
+
if (int !== num) {
|
|
4805
|
+
var intStr = String(int);
|
|
4806
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
4807
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
var inspectCustom = (__webpack_require__(/*! ./util.inspect */ "?c95a").custom);
|
|
4814
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
4815
|
+
|
|
4816
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
4817
|
+
var opts = options || {};
|
|
4818
|
+
|
|
4819
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
4820
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
4821
|
+
}
|
|
4822
|
+
if (
|
|
4823
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
4824
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
4825
|
+
: opts.maxStringLength !== null
|
|
4826
|
+
)
|
|
4827
|
+
) {
|
|
4828
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
4829
|
+
}
|
|
4830
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
4831
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
4832
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
if (
|
|
4836
|
+
has(opts, 'indent')
|
|
4837
|
+
&& opts.indent !== null
|
|
4838
|
+
&& opts.indent !== '\t'
|
|
4839
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
4840
|
+
) {
|
|
4841
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
4842
|
+
}
|
|
4843
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
4844
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
4845
|
+
}
|
|
4846
|
+
var numericSeparator = opts.numericSeparator;
|
|
4847
|
+
|
|
4848
|
+
if (typeof obj === 'undefined') {
|
|
4849
|
+
return 'undefined';
|
|
4850
|
+
}
|
|
4851
|
+
if (obj === null) {
|
|
4852
|
+
return 'null';
|
|
4853
|
+
}
|
|
4854
|
+
if (typeof obj === 'boolean') {
|
|
4855
|
+
return obj ? 'true' : 'false';
|
|
4856
|
+
}
|
|
4857
|
+
|
|
4858
|
+
if (typeof obj === 'string') {
|
|
4859
|
+
return inspectString(obj, opts);
|
|
4860
|
+
}
|
|
4861
|
+
if (typeof obj === 'number') {
|
|
4862
|
+
if (obj === 0) {
|
|
4863
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
4864
|
+
}
|
|
4865
|
+
var str = String(obj);
|
|
4866
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
4867
|
+
}
|
|
4868
|
+
if (typeof obj === 'bigint') {
|
|
4869
|
+
var bigIntStr = String(obj) + 'n';
|
|
4870
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
4871
|
+
}
|
|
4872
|
+
|
|
4873
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
4874
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
4875
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
4876
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
var indent = getIndent(opts, depth);
|
|
4880
|
+
|
|
4881
|
+
if (typeof seen === 'undefined') {
|
|
4882
|
+
seen = [];
|
|
4883
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
4884
|
+
return '[Circular]';
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
function inspect(value, from, noIndent) {
|
|
4888
|
+
if (from) {
|
|
4889
|
+
seen = $arrSlice.call(seen);
|
|
4890
|
+
seen.push(from);
|
|
4891
|
+
}
|
|
4892
|
+
if (noIndent) {
|
|
4893
|
+
var newOpts = {
|
|
4894
|
+
depth: opts.depth
|
|
4895
|
+
};
|
|
4896
|
+
if (has(opts, 'quoteStyle')) {
|
|
4897
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
4898
|
+
}
|
|
4899
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
4900
|
+
}
|
|
4901
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4904
|
+
if (typeof obj === 'function') {
|
|
4905
|
+
var name = nameOf(obj);
|
|
4906
|
+
var keys = arrObjKeys(obj, inspect);
|
|
4907
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
4908
|
+
}
|
|
4909
|
+
if (isSymbol(obj)) {
|
|
4910
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
4911
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
4912
|
+
}
|
|
4913
|
+
if (isElement(obj)) {
|
|
4914
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
4915
|
+
var attrs = obj.attributes || [];
|
|
4916
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
4917
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
4918
|
+
}
|
|
4919
|
+
s += '>';
|
|
4920
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
4921
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
4922
|
+
return s;
|
|
4923
|
+
}
|
|
4924
|
+
if (isArray(obj)) {
|
|
4925
|
+
if (obj.length === 0) { return '[]'; }
|
|
4926
|
+
var xs = arrObjKeys(obj, inspect);
|
|
4927
|
+
if (indent && !singleLineValues(xs)) {
|
|
4928
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
4929
|
+
}
|
|
4930
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
4931
|
+
}
|
|
4932
|
+
if (isError(obj)) {
|
|
4933
|
+
var parts = arrObjKeys(obj, inspect);
|
|
4934
|
+
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
4935
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
4936
|
+
}
|
|
4937
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
4938
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
4939
|
+
}
|
|
4940
|
+
if (typeof obj === 'object' && customInspect) {
|
|
4941
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
4942
|
+
return obj[inspectSymbol]();
|
|
4943
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
4944
|
+
return obj.inspect();
|
|
4945
|
+
}
|
|
4946
|
+
}
|
|
4947
|
+
if (isMap(obj)) {
|
|
4948
|
+
var mapParts = [];
|
|
4949
|
+
mapForEach.call(obj, function (value, key) {
|
|
4950
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
4951
|
+
});
|
|
4952
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
4953
|
+
}
|
|
4954
|
+
if (isSet(obj)) {
|
|
4955
|
+
var setParts = [];
|
|
4956
|
+
setForEach.call(obj, function (value) {
|
|
4957
|
+
setParts.push(inspect(value, obj));
|
|
4958
|
+
});
|
|
4959
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
4960
|
+
}
|
|
4961
|
+
if (isWeakMap(obj)) {
|
|
4962
|
+
return weakCollectionOf('WeakMap');
|
|
4963
|
+
}
|
|
4964
|
+
if (isWeakSet(obj)) {
|
|
4965
|
+
return weakCollectionOf('WeakSet');
|
|
4966
|
+
}
|
|
4967
|
+
if (isWeakRef(obj)) {
|
|
4968
|
+
return weakCollectionOf('WeakRef');
|
|
4969
|
+
}
|
|
4970
|
+
if (isNumber(obj)) {
|
|
4971
|
+
return markBoxed(inspect(Number(obj)));
|
|
4972
|
+
}
|
|
4973
|
+
if (isBigInt(obj)) {
|
|
4974
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
4975
|
+
}
|
|
4976
|
+
if (isBoolean(obj)) {
|
|
4977
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
4978
|
+
}
|
|
4979
|
+
if (isString(obj)) {
|
|
4980
|
+
return markBoxed(inspect(String(obj)));
|
|
4981
|
+
}
|
|
4982
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
4983
|
+
var ys = arrObjKeys(obj, inspect);
|
|
4984
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
4985
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
4986
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
4987
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
4988
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
4989
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
4990
|
+
if (indent) {
|
|
4991
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
4992
|
+
}
|
|
4993
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
4994
|
+
}
|
|
4995
|
+
return String(obj);
|
|
4996
|
+
};
|
|
4997
|
+
|
|
4998
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
4999
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
5000
|
+
return quoteChar + s + quoteChar;
|
|
5001
|
+
}
|
|
5002
|
+
|
|
5003
|
+
function quote(s) {
|
|
5004
|
+
return $replace.call(String(s), /"/g, '"');
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5008
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5009
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5010
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5011
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5012
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5013
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5014
|
+
|
|
5015
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
5016
|
+
function isSymbol(obj) {
|
|
5017
|
+
if (hasShammedSymbols) {
|
|
5018
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
5019
|
+
}
|
|
5020
|
+
if (typeof obj === 'symbol') {
|
|
5021
|
+
return true;
|
|
5022
|
+
}
|
|
5023
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
5024
|
+
return false;
|
|
5025
|
+
}
|
|
5026
|
+
try {
|
|
5027
|
+
symToString.call(obj);
|
|
5028
|
+
return true;
|
|
5029
|
+
} catch (e) {}
|
|
5030
|
+
return false;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
function isBigInt(obj) {
|
|
5034
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
5035
|
+
return false;
|
|
5036
|
+
}
|
|
5037
|
+
try {
|
|
5038
|
+
bigIntValueOf.call(obj);
|
|
5039
|
+
return true;
|
|
5040
|
+
} catch (e) {}
|
|
5041
|
+
return false;
|
|
5042
|
+
}
|
|
5043
|
+
|
|
5044
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
5045
|
+
function has(obj, key) {
|
|
5046
|
+
return hasOwn.call(obj, key);
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
function toStr(obj) {
|
|
5050
|
+
return objectToString.call(obj);
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
function nameOf(f) {
|
|
5054
|
+
if (f.name) { return f.name; }
|
|
5055
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
5056
|
+
if (m) { return m[1]; }
|
|
5057
|
+
return null;
|
|
5058
|
+
}
|
|
5059
|
+
|
|
5060
|
+
function indexOf(xs, x) {
|
|
5061
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
5062
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
5063
|
+
if (xs[i] === x) { return i; }
|
|
5064
|
+
}
|
|
5065
|
+
return -1;
|
|
5066
|
+
}
|
|
5067
|
+
|
|
5068
|
+
function isMap(x) {
|
|
5069
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
5070
|
+
return false;
|
|
5071
|
+
}
|
|
5072
|
+
try {
|
|
5073
|
+
mapSize.call(x);
|
|
5074
|
+
try {
|
|
5075
|
+
setSize.call(x);
|
|
5076
|
+
} catch (s) {
|
|
5077
|
+
return true;
|
|
5078
|
+
}
|
|
5079
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
5080
|
+
} catch (e) {}
|
|
5081
|
+
return false;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
function isWeakMap(x) {
|
|
5085
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
5086
|
+
return false;
|
|
5087
|
+
}
|
|
5088
|
+
try {
|
|
5089
|
+
weakMapHas.call(x, weakMapHas);
|
|
5090
|
+
try {
|
|
5091
|
+
weakSetHas.call(x, weakSetHas);
|
|
5092
|
+
} catch (s) {
|
|
5093
|
+
return true;
|
|
5094
|
+
}
|
|
5095
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
5096
|
+
} catch (e) {}
|
|
5097
|
+
return false;
|
|
5098
|
+
}
|
|
5099
|
+
|
|
5100
|
+
function isWeakRef(x) {
|
|
5101
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
5102
|
+
return false;
|
|
5103
|
+
}
|
|
5104
|
+
try {
|
|
5105
|
+
weakRefDeref.call(x);
|
|
5106
|
+
return true;
|
|
5107
|
+
} catch (e) {}
|
|
5108
|
+
return false;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
function isSet(x) {
|
|
5112
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
5113
|
+
return false;
|
|
5114
|
+
}
|
|
5115
|
+
try {
|
|
5116
|
+
setSize.call(x);
|
|
5117
|
+
try {
|
|
5118
|
+
mapSize.call(x);
|
|
5119
|
+
} catch (m) {
|
|
5120
|
+
return true;
|
|
5121
|
+
}
|
|
5122
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
5123
|
+
} catch (e) {}
|
|
5124
|
+
return false;
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
function isWeakSet(x) {
|
|
5128
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
5129
|
+
return false;
|
|
5130
|
+
}
|
|
5131
|
+
try {
|
|
5132
|
+
weakSetHas.call(x, weakSetHas);
|
|
5133
|
+
try {
|
|
5134
|
+
weakMapHas.call(x, weakMapHas);
|
|
5135
|
+
} catch (s) {
|
|
5136
|
+
return true;
|
|
5137
|
+
}
|
|
5138
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
5139
|
+
} catch (e) {}
|
|
5140
|
+
return false;
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
function isElement(x) {
|
|
5144
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
5145
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
5146
|
+
return true;
|
|
5147
|
+
}
|
|
5148
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5151
|
+
function inspectString(str, opts) {
|
|
5152
|
+
if (str.length > opts.maxStringLength) {
|
|
5153
|
+
var remaining = str.length - opts.maxStringLength;
|
|
5154
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
5155
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
5156
|
+
}
|
|
5157
|
+
// eslint-disable-next-line no-control-regex
|
|
5158
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
5159
|
+
return wrapQuotes(s, 'single', opts);
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5162
|
+
function lowbyte(c) {
|
|
5163
|
+
var n = c.charCodeAt(0);
|
|
5164
|
+
var x = {
|
|
5165
|
+
8: 'b',
|
|
5166
|
+
9: 't',
|
|
5167
|
+
10: 'n',
|
|
5168
|
+
12: 'f',
|
|
5169
|
+
13: 'r'
|
|
5170
|
+
}[n];
|
|
5171
|
+
if (x) { return '\\' + x; }
|
|
5172
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
function markBoxed(str) {
|
|
5176
|
+
return 'Object(' + str + ')';
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
function weakCollectionOf(type) {
|
|
5180
|
+
return type + ' { ? }';
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5183
|
+
function collectionOf(type, size, entries, indent) {
|
|
5184
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
5185
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
5186
|
+
}
|
|
5187
|
+
|
|
5188
|
+
function singleLineValues(xs) {
|
|
5189
|
+
for (var i = 0; i < xs.length; i++) {
|
|
5190
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
5191
|
+
return false;
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
return true;
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
function getIndent(opts, depth) {
|
|
5198
|
+
var baseIndent;
|
|
5199
|
+
if (opts.indent === '\t') {
|
|
5200
|
+
baseIndent = '\t';
|
|
5201
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
5202
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
5203
|
+
} else {
|
|
5204
|
+
return null;
|
|
5205
|
+
}
|
|
5206
|
+
return {
|
|
5207
|
+
base: baseIndent,
|
|
5208
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
5209
|
+
};
|
|
5210
|
+
}
|
|
5211
|
+
|
|
5212
|
+
function indentedJoin(xs, indent) {
|
|
5213
|
+
if (xs.length === 0) { return ''; }
|
|
5214
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
5215
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
function arrObjKeys(obj, inspect) {
|
|
5219
|
+
var isArr = isArray(obj);
|
|
5220
|
+
var xs = [];
|
|
5221
|
+
if (isArr) {
|
|
5222
|
+
xs.length = obj.length;
|
|
5223
|
+
for (var i = 0; i < obj.length; i++) {
|
|
5224
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
5228
|
+
var symMap;
|
|
5229
|
+
if (hasShammedSymbols) {
|
|
5230
|
+
symMap = {};
|
|
5231
|
+
for (var k = 0; k < syms.length; k++) {
|
|
5232
|
+
symMap['$' + syms[k]] = syms[k];
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5236
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
5237
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5238
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5239
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
5240
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
5241
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
5242
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
5243
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5244
|
+
} else {
|
|
5245
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5248
|
+
if (typeof gOPS === 'function') {
|
|
5249
|
+
for (var j = 0; j < syms.length; j++) {
|
|
5250
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
5251
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
5252
|
+
}
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
return xs;
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5258
|
+
|
|
4094
5259
|
/***/ }),
|
|
4095
5260
|
|
|
4096
5261
|
/***/ "../../node_modules/qs/lib/formats.js":
|
|
4097
|
-
|
|
5262
|
+
/*!********************************************!*\
|
|
4098
5263
|
!*** ../../node_modules/qs/lib/formats.js ***!
|
|
4099
5264
|
\********************************************/
|
|
4100
|
-
/***/ (function(module
|
|
5265
|
+
/***/ (function(module) {
|
|
4101
5266
|
|
|
4102
5267
|
"use strict";
|
|
4103
5268
|
|
|
@@ -4105,33 +5270,30 @@ function plural(ms, msAbs, n, name) {
|
|
|
4105
5270
|
var replace = String.prototype.replace;
|
|
4106
5271
|
var percentTwenties = /%20/g;
|
|
4107
5272
|
|
|
4108
|
-
var util = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
|
4109
|
-
|
|
4110
5273
|
var Format = {
|
|
4111
5274
|
RFC1738: 'RFC1738',
|
|
4112
5275
|
RFC3986: 'RFC3986'
|
|
4113
5276
|
};
|
|
4114
5277
|
|
|
4115
|
-
module.exports =
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
return String(value);
|
|
4124
|
-
}
|
|
5278
|
+
module.exports = {
|
|
5279
|
+
'default': Format.RFC3986,
|
|
5280
|
+
formatters: {
|
|
5281
|
+
RFC1738: function (value) {
|
|
5282
|
+
return replace.call(value, percentTwenties, '+');
|
|
5283
|
+
},
|
|
5284
|
+
RFC3986: function (value) {
|
|
5285
|
+
return String(value);
|
|
4125
5286
|
}
|
|
4126
5287
|
},
|
|
4127
|
-
Format
|
|
4128
|
-
|
|
5288
|
+
RFC1738: Format.RFC1738,
|
|
5289
|
+
RFC3986: Format.RFC3986
|
|
5290
|
+
};
|
|
4129
5291
|
|
|
4130
5292
|
|
|
4131
5293
|
/***/ }),
|
|
4132
5294
|
|
|
4133
5295
|
/***/ "../../node_modules/qs/lib/index.js":
|
|
4134
|
-
|
|
5296
|
+
/*!******************************************!*\
|
|
4135
5297
|
!*** ../../node_modules/qs/lib/index.js ***!
|
|
4136
5298
|
\******************************************/
|
|
4137
5299
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -4153,7 +5315,7 @@ module.exports = {
|
|
|
4153
5315
|
/***/ }),
|
|
4154
5316
|
|
|
4155
5317
|
/***/ "../../node_modules/qs/lib/parse.js":
|
|
4156
|
-
|
|
5318
|
+
/*!******************************************!*\
|
|
4157
5319
|
!*** ../../node_modules/qs/lib/parse.js ***!
|
|
4158
5320
|
\******************************************/
|
|
4159
5321
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -4169,6 +5331,7 @@ var isArray = Array.isArray;
|
|
|
4169
5331
|
var defaults = {
|
|
4170
5332
|
allowDots: false,
|
|
4171
5333
|
allowPrototypes: false,
|
|
5334
|
+
allowSparse: false,
|
|
4172
5335
|
arrayLimit: 20,
|
|
4173
5336
|
charset: 'utf-8',
|
|
4174
5337
|
charsetSentinel: false,
|
|
@@ -4296,12 +5459,12 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
4296
5459
|
) {
|
|
4297
5460
|
obj = [];
|
|
4298
5461
|
obj[index] = leaf;
|
|
4299
|
-
} else {
|
|
5462
|
+
} else if (cleanRoot !== '__proto__') {
|
|
4300
5463
|
obj[cleanRoot] = leaf;
|
|
4301
5464
|
}
|
|
4302
5465
|
}
|
|
4303
5466
|
|
|
4304
|
-
leaf = obj;
|
|
5467
|
+
leaf = obj;
|
|
4305
5468
|
}
|
|
4306
5469
|
|
|
4307
5470
|
return leaf;
|
|
@@ -4378,6 +5541,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
4378
5541
|
return {
|
|
4379
5542
|
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
4380
5543
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
5544
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
4381
5545
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
4382
5546
|
charset: charset,
|
|
4383
5547
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
@@ -4414,6 +5578,10 @@ module.exports = function (str, opts) {
|
|
|
4414
5578
|
obj = utils.merge(obj, newObj, options);
|
|
4415
5579
|
}
|
|
4416
5580
|
|
|
5581
|
+
if (options.allowSparse === true) {
|
|
5582
|
+
return obj;
|
|
5583
|
+
}
|
|
5584
|
+
|
|
4417
5585
|
return utils.compact(obj);
|
|
4418
5586
|
};
|
|
4419
5587
|
|
|
@@ -4421,7 +5589,7 @@ module.exports = function (str, opts) {
|
|
|
4421
5589
|
/***/ }),
|
|
4422
5590
|
|
|
4423
5591
|
/***/ "../../node_modules/qs/lib/stringify.js":
|
|
4424
|
-
|
|
5592
|
+
/*!**********************************************!*\
|
|
4425
5593
|
!*** ../../node_modules/qs/lib/stringify.js ***!
|
|
4426
5594
|
\**********************************************/
|
|
4427
5595
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -4429,6 +5597,7 @@ module.exports = function (str, opts) {
|
|
|
4429
5597
|
"use strict";
|
|
4430
5598
|
|
|
4431
5599
|
|
|
5600
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../../node_modules/side-channel/index.js");
|
|
4432
5601
|
var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
|
4433
5602
|
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
|
4434
5603
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -4447,6 +5616,7 @@ var arrayPrefixGenerators = {
|
|
|
4447
5616
|
};
|
|
4448
5617
|
|
|
4449
5618
|
var isArray = Array.isArray;
|
|
5619
|
+
var split = String.prototype.split;
|
|
4450
5620
|
var push = Array.prototype.push;
|
|
4451
5621
|
var pushToArray = function (arr, valueOrArray) {
|
|
4452
5622
|
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -4483,6 +5653,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
|
4483
5653
|
|| typeof v === 'bigint';
|
|
4484
5654
|
};
|
|
4485
5655
|
|
|
5656
|
+
var sentinel = {};
|
|
5657
|
+
|
|
4486
5658
|
var stringify = function stringify(
|
|
4487
5659
|
object,
|
|
4488
5660
|
prefix,
|
|
@@ -4494,11 +5666,33 @@ var stringify = function stringify(
|
|
|
4494
5666
|
sort,
|
|
4495
5667
|
allowDots,
|
|
4496
5668
|
serializeDate,
|
|
5669
|
+
format,
|
|
4497
5670
|
formatter,
|
|
4498
5671
|
encodeValuesOnly,
|
|
4499
|
-
charset
|
|
5672
|
+
charset,
|
|
5673
|
+
sideChannel
|
|
4500
5674
|
) {
|
|
4501
5675
|
var obj = object;
|
|
5676
|
+
|
|
5677
|
+
var tmpSc = sideChannel;
|
|
5678
|
+
var step = 0;
|
|
5679
|
+
var findFlag = false;
|
|
5680
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
5681
|
+
// Where object last appeared in the ref tree
|
|
5682
|
+
var pos = tmpSc.get(object);
|
|
5683
|
+
step += 1;
|
|
5684
|
+
if (typeof pos !== 'undefined') {
|
|
5685
|
+
if (pos === step) {
|
|
5686
|
+
throw new RangeError('Cyclic object value');
|
|
5687
|
+
} else {
|
|
5688
|
+
findFlag = true; // Break while
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5691
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
5692
|
+
step = 0;
|
|
5693
|
+
}
|
|
5694
|
+
}
|
|
5695
|
+
|
|
4502
5696
|
if (typeof filter === 'function') {
|
|
4503
5697
|
obj = filter(prefix, obj);
|
|
4504
5698
|
} else if (obj instanceof Date) {
|
|
@@ -4509,12 +5703,12 @@ var stringify = function stringify(
|
|
|
4509
5703
|
return serializeDate(value);
|
|
4510
5704
|
}
|
|
4511
5705
|
return value;
|
|
4512
|
-
})
|
|
5706
|
+
});
|
|
4513
5707
|
}
|
|
4514
5708
|
|
|
4515
5709
|
if (obj === null) {
|
|
4516
5710
|
if (strictNullHandling) {
|
|
4517
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key') : prefix;
|
|
5711
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
4518
5712
|
}
|
|
4519
5713
|
|
|
4520
5714
|
obj = '';
|
|
@@ -4522,8 +5716,16 @@ var stringify = function stringify(
|
|
|
4522
5716
|
|
|
4523
5717
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
4524
5718
|
if (encoder) {
|
|
4525
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key');
|
|
4526
|
-
|
|
5719
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
5720
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
5721
|
+
var valuesArray = split.call(String(obj), ',');
|
|
5722
|
+
var valuesJoined = '';
|
|
5723
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
|
5724
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
5725
|
+
}
|
|
5726
|
+
return [formatter(keyValue) + '=' + valuesJoined];
|
|
5727
|
+
}
|
|
5728
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
4527
5729
|
}
|
|
4528
5730
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
4529
5731
|
}
|
|
@@ -4535,16 +5737,19 @@ var stringify = function stringify(
|
|
|
4535
5737
|
}
|
|
4536
5738
|
|
|
4537
5739
|
var objKeys;
|
|
4538
|
-
if (isArray(
|
|
5740
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
5741
|
+
// we need to join elements in
|
|
5742
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
5743
|
+
} else if (isArray(filter)) {
|
|
4539
5744
|
objKeys = filter;
|
|
4540
5745
|
} else {
|
|
4541
5746
|
var keys = Object.keys(obj);
|
|
4542
5747
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
4543
5748
|
}
|
|
4544
5749
|
|
|
4545
|
-
for (var
|
|
4546
|
-
var key = objKeys[
|
|
4547
|
-
var value = obj[key];
|
|
5750
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
5751
|
+
var key = objKeys[j];
|
|
5752
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
4548
5753
|
|
|
4549
5754
|
if (skipNulls && value === null) {
|
|
4550
5755
|
continue;
|
|
@@ -4554,6 +5759,9 @@ var stringify = function stringify(
|
|
|
4554
5759
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
4555
5760
|
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
4556
5761
|
|
|
5762
|
+
sideChannel.set(object, step);
|
|
5763
|
+
var valueSideChannel = getSideChannel();
|
|
5764
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
4557
5765
|
pushToArray(values, stringify(
|
|
4558
5766
|
value,
|
|
4559
5767
|
keyPrefix,
|
|
@@ -4565,9 +5773,11 @@ var stringify = function stringify(
|
|
|
4565
5773
|
sort,
|
|
4566
5774
|
allowDots,
|
|
4567
5775
|
serializeDate,
|
|
5776
|
+
format,
|
|
4568
5777
|
formatter,
|
|
4569
5778
|
encodeValuesOnly,
|
|
4570
|
-
charset
|
|
5779
|
+
charset,
|
|
5780
|
+
valueSideChannel
|
|
4571
5781
|
));
|
|
4572
5782
|
}
|
|
4573
5783
|
|
|
@@ -4579,7 +5789,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
4579
5789
|
return defaults;
|
|
4580
5790
|
}
|
|
4581
5791
|
|
|
4582
|
-
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
|
5792
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
4583
5793
|
throw new TypeError('Encoder has to be a function.');
|
|
4584
5794
|
}
|
|
4585
5795
|
|
|
@@ -4612,6 +5822,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
4612
5822
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
4613
5823
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
4614
5824
|
filter: filter,
|
|
5825
|
+
format: format,
|
|
4615
5826
|
formatter: formatter,
|
|
4616
5827
|
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
4617
5828
|
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
@@ -4660,6 +5871,7 @@ module.exports = function (object, opts) {
|
|
|
4660
5871
|
objKeys.sort(options.sort);
|
|
4661
5872
|
}
|
|
4662
5873
|
|
|
5874
|
+
var sideChannel = getSideChannel();
|
|
4663
5875
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
4664
5876
|
var key = objKeys[i];
|
|
4665
5877
|
|
|
@@ -4677,9 +5889,11 @@ module.exports = function (object, opts) {
|
|
|
4677
5889
|
options.sort,
|
|
4678
5890
|
options.allowDots,
|
|
4679
5891
|
options.serializeDate,
|
|
5892
|
+
options.format,
|
|
4680
5893
|
options.formatter,
|
|
4681
5894
|
options.encodeValuesOnly,
|
|
4682
|
-
options.charset
|
|
5895
|
+
options.charset,
|
|
5896
|
+
sideChannel
|
|
4683
5897
|
));
|
|
4684
5898
|
}
|
|
4685
5899
|
|
|
@@ -4703,14 +5917,16 @@ module.exports = function (object, opts) {
|
|
|
4703
5917
|
/***/ }),
|
|
4704
5918
|
|
|
4705
5919
|
/***/ "../../node_modules/qs/lib/utils.js":
|
|
4706
|
-
|
|
5920
|
+
/*!******************************************!*\
|
|
4707
5921
|
!*** ../../node_modules/qs/lib/utils.js ***!
|
|
4708
5922
|
\******************************************/
|
|
4709
|
-
/***/ (function(module) {
|
|
5923
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4710
5924
|
|
|
4711
5925
|
"use strict";
|
|
4712
5926
|
|
|
4713
5927
|
|
|
5928
|
+
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
|
5929
|
+
|
|
4714
5930
|
var has = Object.prototype.hasOwnProperty;
|
|
4715
5931
|
var isArray = Array.isArray;
|
|
4716
5932
|
|
|
@@ -4831,7 +6047,7 @@ var decode = function (str, decoder, charset) {
|
|
|
4831
6047
|
}
|
|
4832
6048
|
};
|
|
4833
6049
|
|
|
4834
|
-
var encode = function encode(str, defaultEncoder, charset) {
|
|
6050
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
4835
6051
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
4836
6052
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
4837
6053
|
if (str.length === 0) {
|
|
@@ -4863,6 +6079,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
|
4863
6079
|
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
4864
6080
|
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
4865
6081
|
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
6082
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
4866
6083
|
) {
|
|
4867
6084
|
out += string.charAt(i);
|
|
4868
6085
|
continue;
|
|
@@ -4885,6 +6102,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
|
4885
6102
|
|
|
4886
6103
|
i += 1;
|
|
4887
6104
|
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
6105
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
4888
6106
|
out += hexTable[0xF0 | (c >> 18)]
|
|
4889
6107
|
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
4890
6108
|
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
@@ -4959,10 +6177,145 @@ module.exports = {
|
|
|
4959
6177
|
};
|
|
4960
6178
|
|
|
4961
6179
|
|
|
6180
|
+
/***/ }),
|
|
6181
|
+
|
|
6182
|
+
/***/ "../../node_modules/side-channel/index.js":
|
|
6183
|
+
/*!************************************************!*\
|
|
6184
|
+
!*** ../../node_modules/side-channel/index.js ***!
|
|
6185
|
+
\************************************************/
|
|
6186
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6187
|
+
|
|
6188
|
+
"use strict";
|
|
6189
|
+
|
|
6190
|
+
|
|
6191
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
6192
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
|
6193
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
6194
|
+
|
|
6195
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
6196
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
6197
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
6198
|
+
|
|
6199
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
6200
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
6201
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
6202
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
6203
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
6204
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
6205
|
+
|
|
6206
|
+
/*
|
|
6207
|
+
* This function traverses the list returning the node corresponding to the
|
|
6208
|
+
* given key.
|
|
6209
|
+
*
|
|
6210
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
6211
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
6212
|
+
* used nodes can be accessed relatively quickly.
|
|
6213
|
+
*/
|
|
6214
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
6215
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
6216
|
+
if (curr.key === key) {
|
|
6217
|
+
prev.next = curr.next;
|
|
6218
|
+
curr.next = list.next;
|
|
6219
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
6220
|
+
return curr;
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
6223
|
+
};
|
|
6224
|
+
|
|
6225
|
+
var listGet = function (objects, key) {
|
|
6226
|
+
var node = listGetNode(objects, key);
|
|
6227
|
+
return node && node.value;
|
|
6228
|
+
};
|
|
6229
|
+
var listSet = function (objects, key, value) {
|
|
6230
|
+
var node = listGetNode(objects, key);
|
|
6231
|
+
if (node) {
|
|
6232
|
+
node.value = value;
|
|
6233
|
+
} else {
|
|
6234
|
+
// Prepend the new node to the beginning of the list
|
|
6235
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
6236
|
+
key: key,
|
|
6237
|
+
next: objects.next,
|
|
6238
|
+
value: value
|
|
6239
|
+
};
|
|
6240
|
+
}
|
|
6241
|
+
};
|
|
6242
|
+
var listHas = function (objects, key) {
|
|
6243
|
+
return !!listGetNode(objects, key);
|
|
6244
|
+
};
|
|
6245
|
+
|
|
6246
|
+
module.exports = function getSideChannel() {
|
|
6247
|
+
var $wm;
|
|
6248
|
+
var $m;
|
|
6249
|
+
var $o;
|
|
6250
|
+
var channel = {
|
|
6251
|
+
assert: function (key) {
|
|
6252
|
+
if (!channel.has(key)) {
|
|
6253
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6254
|
+
}
|
|
6255
|
+
},
|
|
6256
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
6257
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6258
|
+
if ($wm) {
|
|
6259
|
+
return $weakMapGet($wm, key);
|
|
6260
|
+
}
|
|
6261
|
+
} else if ($Map) {
|
|
6262
|
+
if ($m) {
|
|
6263
|
+
return $mapGet($m, key);
|
|
6264
|
+
}
|
|
6265
|
+
} else {
|
|
6266
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6267
|
+
return listGet($o, key);
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
},
|
|
6271
|
+
has: function (key) {
|
|
6272
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6273
|
+
if ($wm) {
|
|
6274
|
+
return $weakMapHas($wm, key);
|
|
6275
|
+
}
|
|
6276
|
+
} else if ($Map) {
|
|
6277
|
+
if ($m) {
|
|
6278
|
+
return $mapHas($m, key);
|
|
6279
|
+
}
|
|
6280
|
+
} else {
|
|
6281
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6282
|
+
return listHas($o, key);
|
|
6283
|
+
}
|
|
6284
|
+
}
|
|
6285
|
+
return false;
|
|
6286
|
+
},
|
|
6287
|
+
set: function (key, value) {
|
|
6288
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6289
|
+
if (!$wm) {
|
|
6290
|
+
$wm = new $WeakMap();
|
|
6291
|
+
}
|
|
6292
|
+
$weakMapSet($wm, key, value);
|
|
6293
|
+
} else if ($Map) {
|
|
6294
|
+
if (!$m) {
|
|
6295
|
+
$m = new $Map();
|
|
6296
|
+
}
|
|
6297
|
+
$mapSet($m, key, value);
|
|
6298
|
+
} else {
|
|
6299
|
+
if (!$o) {
|
|
6300
|
+
/*
|
|
6301
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
6302
|
+
* to special-case handling of the first node: we can always refer to
|
|
6303
|
+
* it as (previous node).next, instead of something like (list).head
|
|
6304
|
+
*/
|
|
6305
|
+
$o = { key: {}, next: null };
|
|
6306
|
+
}
|
|
6307
|
+
listSet($o, key, value);
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
6310
|
+
};
|
|
6311
|
+
return channel;
|
|
6312
|
+
};
|
|
6313
|
+
|
|
6314
|
+
|
|
4962
6315
|
/***/ }),
|
|
4963
6316
|
|
|
4964
6317
|
/***/ "../../node_modules/uberproto/lib/proto.js":
|
|
4965
|
-
|
|
6318
|
+
/*!*************************************************!*\
|
|
4966
6319
|
!*** ../../node_modules/uberproto/lib/proto.js ***!
|
|
4967
6320
|
\*************************************************/
|
|
4968
6321
|
/***/ (function(module, exports) {
|
|
@@ -5108,6 +6461,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
5108
6461
|
}));
|
|
5109
6462
|
|
|
5110
6463
|
|
|
6464
|
+
/***/ }),
|
|
6465
|
+
|
|
6466
|
+
/***/ "?c95a":
|
|
6467
|
+
/*!********************************!*\
|
|
6468
|
+
!*** ./util.inspect (ignored) ***!
|
|
6469
|
+
\********************************/
|
|
6470
|
+
/***/ (function() {
|
|
6471
|
+
|
|
6472
|
+
/* (ignored) */
|
|
6473
|
+
|
|
5111
6474
|
/***/ })
|
|
5112
6475
|
|
|
5113
6476
|
/******/ });
|
|
@@ -5118,8 +6481,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
5118
6481
|
/******/ // The require function
|
|
5119
6482
|
/******/ function __webpack_require__(moduleId) {
|
|
5120
6483
|
/******/ // Check if module is in cache
|
|
5121
|
-
/******/
|
|
5122
|
-
/******/
|
|
6484
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
6485
|
+
/******/ if (cachedModule !== undefined) {
|
|
6486
|
+
/******/ return cachedModule.exports;
|
|
5123
6487
|
/******/ }
|
|
5124
6488
|
/******/ // Create a new module (and put it into the cache)
|
|
5125
6489
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -5136,10 +6500,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
5136
6500
|
/******/ }
|
|
5137
6501
|
/******/
|
|
5138
6502
|
/************************************************************************/
|
|
5139
|
-
/******/
|
|
6503
|
+
/******/
|
|
5140
6504
|
/******/ // startup
|
|
5141
6505
|
/******/ // Load entry module and return exports
|
|
5142
|
-
/******/
|
|
6506
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
6507
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
|
|
6508
|
+
/******/
|
|
6509
|
+
/******/ return __webpack_exports__;
|
|
5143
6510
|
/******/ })()
|
|
5144
6511
|
;
|
|
5145
6512
|
});
|