@feathersjs/client 5.0.22 → 5.0.23
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 +6 -0
- package/dist/core.js +30 -10
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +199 -74
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/package.json +12 -12
package/dist/feathers.js
CHANGED
|
@@ -1753,7 +1753,7 @@ exports.wrapService = wrapService;
|
|
|
1753
1753
|
Object.defineProperty(exports, "__esModule", ({
|
|
1754
1754
|
value: true
|
|
1755
1755
|
}));
|
|
1756
|
-
exports["default"] = '
|
|
1756
|
+
exports["default"] = 'development';
|
|
1757
1757
|
|
|
1758
1758
|
/***/ }),
|
|
1759
1759
|
|
|
@@ -2570,23 +2570,14 @@ var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function
|
|
|
2570
2570
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
2571
2571
|
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../../node_modules/set-function-length/index.js");
|
|
2572
2572
|
|
|
2573
|
-
var $TypeError =
|
|
2573
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
2574
2574
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2575
2575
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2576
2576
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
2577
2577
|
|
|
2578
|
-
var $defineProperty =
|
|
2578
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../../node_modules/es-define-property/index.js");
|
|
2579
2579
|
var $max = GetIntrinsic('%Math.max%');
|
|
2580
2580
|
|
|
2581
|
-
if ($defineProperty) {
|
|
2582
|
-
try {
|
|
2583
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2584
|
-
} catch (e) {
|
|
2585
|
-
// IE 8 has a broken defineProperty
|
|
2586
|
-
$defineProperty = null;
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
2581
|
module.exports = function callBind(originalFunction) {
|
|
2591
2582
|
if (typeof originalFunction !== 'function') {
|
|
2592
2583
|
throw new $TypeError('a function is required');
|
|
@@ -2621,26 +2612,14 @@ if ($defineProperty) {
|
|
|
2621
2612
|
"use strict";
|
|
2622
2613
|
|
|
2623
2614
|
|
|
2624
|
-
var
|
|
2625
|
-
|
|
2626
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
2627
|
-
|
|
2628
|
-
var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
|
|
2629
|
-
if ($defineProperty) {
|
|
2630
|
-
try {
|
|
2631
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2632
|
-
} catch (e) {
|
|
2633
|
-
// IE 8 has a broken defineProperty
|
|
2634
|
-
$defineProperty = false;
|
|
2635
|
-
}
|
|
2636
|
-
}
|
|
2615
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../../node_modules/es-define-property/index.js");
|
|
2637
2616
|
|
|
2638
|
-
var $SyntaxError =
|
|
2639
|
-
var $TypeError =
|
|
2617
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../../node_modules/es-errors/syntax.js");
|
|
2618
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
2640
2619
|
|
|
2641
2620
|
var gopd = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
|
2642
2621
|
|
|
2643
|
-
/** @type {(
|
|
2622
|
+
/** @type {import('.')} */
|
|
2644
2623
|
module.exports = function defineDataProperty(
|
|
2645
2624
|
obj,
|
|
2646
2625
|
property,
|
|
@@ -2689,6 +2668,138 @@ module.exports = function defineDataProperty(
|
|
|
2689
2668
|
};
|
|
2690
2669
|
|
|
2691
2670
|
|
|
2671
|
+
/***/ }),
|
|
2672
|
+
|
|
2673
|
+
/***/ "../../node_modules/es-define-property/index.js":
|
|
2674
|
+
/*!******************************************************!*\
|
|
2675
|
+
!*** ../../node_modules/es-define-property/index.js ***!
|
|
2676
|
+
\******************************************************/
|
|
2677
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2678
|
+
|
|
2679
|
+
"use strict";
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
2683
|
+
|
|
2684
|
+
/** @type {import('.')} */
|
|
2685
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
2686
|
+
if ($defineProperty) {
|
|
2687
|
+
try {
|
|
2688
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
2689
|
+
} catch (e) {
|
|
2690
|
+
// IE 8 has a broken defineProperty
|
|
2691
|
+
$defineProperty = false;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
module.exports = $defineProperty;
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
/***/ }),
|
|
2699
|
+
|
|
2700
|
+
/***/ "../../node_modules/es-errors/eval.js":
|
|
2701
|
+
/*!********************************************!*\
|
|
2702
|
+
!*** ../../node_modules/es-errors/eval.js ***!
|
|
2703
|
+
\********************************************/
|
|
2704
|
+
/***/ (function(module) {
|
|
2705
|
+
|
|
2706
|
+
"use strict";
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
/** @type {import('./eval')} */
|
|
2710
|
+
module.exports = EvalError;
|
|
2711
|
+
|
|
2712
|
+
|
|
2713
|
+
/***/ }),
|
|
2714
|
+
|
|
2715
|
+
/***/ "../../node_modules/es-errors/index.js":
|
|
2716
|
+
/*!*********************************************!*\
|
|
2717
|
+
!*** ../../node_modules/es-errors/index.js ***!
|
|
2718
|
+
\*********************************************/
|
|
2719
|
+
/***/ (function(module) {
|
|
2720
|
+
|
|
2721
|
+
"use strict";
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
/** @type {import('.')} */
|
|
2725
|
+
module.exports = Error;
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
/***/ }),
|
|
2729
|
+
|
|
2730
|
+
/***/ "../../node_modules/es-errors/range.js":
|
|
2731
|
+
/*!*********************************************!*\
|
|
2732
|
+
!*** ../../node_modules/es-errors/range.js ***!
|
|
2733
|
+
\*********************************************/
|
|
2734
|
+
/***/ (function(module) {
|
|
2735
|
+
|
|
2736
|
+
"use strict";
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
/** @type {import('./range')} */
|
|
2740
|
+
module.exports = RangeError;
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
/***/ }),
|
|
2744
|
+
|
|
2745
|
+
/***/ "../../node_modules/es-errors/ref.js":
|
|
2746
|
+
/*!*******************************************!*\
|
|
2747
|
+
!*** ../../node_modules/es-errors/ref.js ***!
|
|
2748
|
+
\*******************************************/
|
|
2749
|
+
/***/ (function(module) {
|
|
2750
|
+
|
|
2751
|
+
"use strict";
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
/** @type {import('./ref')} */
|
|
2755
|
+
module.exports = ReferenceError;
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
/***/ }),
|
|
2759
|
+
|
|
2760
|
+
/***/ "../../node_modules/es-errors/syntax.js":
|
|
2761
|
+
/*!**********************************************!*\
|
|
2762
|
+
!*** ../../node_modules/es-errors/syntax.js ***!
|
|
2763
|
+
\**********************************************/
|
|
2764
|
+
/***/ (function(module) {
|
|
2765
|
+
|
|
2766
|
+
"use strict";
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
/** @type {import('./syntax')} */
|
|
2770
|
+
module.exports = SyntaxError;
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
/***/ }),
|
|
2774
|
+
|
|
2775
|
+
/***/ "../../node_modules/es-errors/type.js":
|
|
2776
|
+
/*!********************************************!*\
|
|
2777
|
+
!*** ../../node_modules/es-errors/type.js ***!
|
|
2778
|
+
\********************************************/
|
|
2779
|
+
/***/ (function(module) {
|
|
2780
|
+
|
|
2781
|
+
"use strict";
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
/** @type {import('./type')} */
|
|
2785
|
+
module.exports = TypeError;
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
/***/ }),
|
|
2789
|
+
|
|
2790
|
+
/***/ "../../node_modules/es-errors/uri.js":
|
|
2791
|
+
/*!*******************************************!*\
|
|
2792
|
+
!*** ../../node_modules/es-errors/uri.js ***!
|
|
2793
|
+
\*******************************************/
|
|
2794
|
+
/***/ (function(module) {
|
|
2795
|
+
|
|
2796
|
+
"use strict";
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
/** @type {import('./uri')} */
|
|
2800
|
+
module.exports = URIError;
|
|
2801
|
+
|
|
2802
|
+
|
|
2692
2803
|
/***/ }),
|
|
2693
2804
|
|
|
2694
2805
|
/***/ "../../node_modules/events/events.js":
|
|
@@ -3321,9 +3432,15 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
3321
3432
|
|
|
3322
3433
|
var undefined;
|
|
3323
3434
|
|
|
3324
|
-
var $
|
|
3435
|
+
var $Error = __webpack_require__(/*! es-errors */ "../../node_modules/es-errors/index.js");
|
|
3436
|
+
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../../node_modules/es-errors/eval.js");
|
|
3437
|
+
var $RangeError = __webpack_require__(/*! es-errors/range */ "../../node_modules/es-errors/range.js");
|
|
3438
|
+
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../../node_modules/es-errors/ref.js");
|
|
3439
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../../node_modules/es-errors/syntax.js");
|
|
3440
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
3441
|
+
var $URIError = __webpack_require__(/*! es-errors/uri */ "../../node_modules/es-errors/uri.js");
|
|
3442
|
+
|
|
3325
3443
|
var $Function = Function;
|
|
3326
|
-
var $TypeError = TypeError;
|
|
3327
3444
|
|
|
3328
3445
|
// eslint-disable-next-line consistent-return
|
|
3329
3446
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -3375,6 +3492,7 @@ var needsEval = {};
|
|
|
3375
3492
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
3376
3493
|
|
|
3377
3494
|
var INTRINSICS = {
|
|
3495
|
+
__proto__: null,
|
|
3378
3496
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
3379
3497
|
'%Array%': Array,
|
|
3380
3498
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -3395,9 +3513,9 @@ var INTRINSICS = {
|
|
|
3395
3513
|
'%decodeURIComponent%': decodeURIComponent,
|
|
3396
3514
|
'%encodeURI%': encodeURI,
|
|
3397
3515
|
'%encodeURIComponent%': encodeURIComponent,
|
|
3398
|
-
'%Error%': Error,
|
|
3516
|
+
'%Error%': $Error,
|
|
3399
3517
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
3400
|
-
'%EvalError%': EvalError,
|
|
3518
|
+
'%EvalError%': $EvalError,
|
|
3401
3519
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
3402
3520
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
3403
3521
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -3419,8 +3537,8 @@ var INTRINSICS = {
|
|
|
3419
3537
|
'%parseInt%': parseInt,
|
|
3420
3538
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
3421
3539
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
3422
|
-
'%RangeError%': RangeError,
|
|
3423
|
-
'%ReferenceError%': ReferenceError,
|
|
3540
|
+
'%RangeError%': $RangeError,
|
|
3541
|
+
'%ReferenceError%': $ReferenceError,
|
|
3424
3542
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
3425
3543
|
'%RegExp%': RegExp,
|
|
3426
3544
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -3437,7 +3555,7 @@ var INTRINSICS = {
|
|
|
3437
3555
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
3438
3556
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
3439
3557
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
3440
|
-
'%URIError%': URIError,
|
|
3558
|
+
'%URIError%': $URIError,
|
|
3441
3559
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
3442
3560
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
3443
3561
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -3479,6 +3597,7 @@ var doEval = function doEval(name) {
|
|
|
3479
3597
|
};
|
|
3480
3598
|
|
|
3481
3599
|
var LEGACY_ALIASES = {
|
|
3600
|
+
__proto__: null,
|
|
3482
3601
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
3483
3602
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
3484
3603
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -3708,26 +3827,15 @@ module.exports = $gOPD;
|
|
|
3708
3827
|
"use strict";
|
|
3709
3828
|
|
|
3710
3829
|
|
|
3711
|
-
var
|
|
3712
|
-
|
|
3713
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
3830
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../../node_modules/es-define-property/index.js");
|
|
3714
3831
|
|
|
3715
3832
|
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
3716
|
-
|
|
3717
|
-
try {
|
|
3718
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
3719
|
-
return true;
|
|
3720
|
-
} catch (e) {
|
|
3721
|
-
// IE 8 has a broken defineProperty
|
|
3722
|
-
return false;
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
return false;
|
|
3833
|
+
return !!$defineProperty;
|
|
3726
3834
|
};
|
|
3727
3835
|
|
|
3728
3836
|
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
3729
3837
|
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
3730
|
-
if (
|
|
3838
|
+
if (!$defineProperty) {
|
|
3731
3839
|
return null;
|
|
3732
3840
|
}
|
|
3733
3841
|
try {
|
|
@@ -3753,13 +3861,17 @@ module.exports = hasPropertyDescriptors;
|
|
|
3753
3861
|
|
|
3754
3862
|
|
|
3755
3863
|
var test = {
|
|
3864
|
+
__proto__: null,
|
|
3756
3865
|
foo: {}
|
|
3757
3866
|
};
|
|
3758
3867
|
|
|
3759
3868
|
var $Object = Object;
|
|
3760
3869
|
|
|
3870
|
+
/** @type {import('.')} */
|
|
3761
3871
|
module.exports = function hasProto() {
|
|
3762
|
-
|
|
3872
|
+
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
3873
|
+
return { __proto__: test }.foo === test.foo
|
|
3874
|
+
&& !(test instanceof $Object);
|
|
3763
3875
|
};
|
|
3764
3876
|
|
|
3765
3877
|
|
|
@@ -3855,7 +3967,7 @@ var call = Function.prototype.call;
|
|
|
3855
3967
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3856
3968
|
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
3857
3969
|
|
|
3858
|
-
/** @type {(
|
|
3970
|
+
/** @type {import('.')} */
|
|
3859
3971
|
module.exports = bind.call(call, $hasOwn);
|
|
3860
3972
|
|
|
3861
3973
|
|
|
@@ -5334,7 +5446,7 @@ var define = __webpack_require__(/*! define-data-property */ "../../node_modules
|
|
|
5334
5446
|
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../../node_modules/has-property-descriptors/index.js")();
|
|
5335
5447
|
var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
|
5336
5448
|
|
|
5337
|
-
var $TypeError =
|
|
5449
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
5338
5450
|
var $floor = GetIntrinsic('%Math.floor%');
|
|
5339
5451
|
|
|
5340
5452
|
/** @typedef {(...args: unknown[]) => unknown} Func */
|
|
@@ -5388,7 +5500,7 @@ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/
|
|
|
5388
5500
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
|
5389
5501
|
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
5390
5502
|
|
|
5391
|
-
var $TypeError =
|
|
5503
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
5392
5504
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
5393
5505
|
var $Map = GetIntrinsic('%Map%', true);
|
|
5394
5506
|
|
|
@@ -5400,13 +5512,10 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
5400
5512
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
5401
5513
|
|
|
5402
5514
|
/*
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
5408
|
-
* used nodes can be accessed relatively quickly.
|
|
5409
|
-
*/
|
|
5515
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
5516
|
+
*
|
|
5517
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
5518
|
+
*/
|
|
5410
5519
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
5411
5520
|
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
5412
5521
|
if (curr.key === key) {
|
|
@@ -5493,11 +5602,7 @@ module.exports = function getSideChannel() {
|
|
|
5493
5602
|
$mapSet($m, key, value);
|
|
5494
5603
|
} else {
|
|
5495
5604
|
if (!$o) {
|
|
5496
|
-
|
|
5497
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
5498
|
-
* to special-case handling of the first node: we can always refer to
|
|
5499
|
-
* it as (previous node).next, instead of something like (list).head
|
|
5500
|
-
*/
|
|
5605
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
5501
5606
|
$o = { key: {}, next: null };
|
|
5502
5607
|
}
|
|
5503
5608
|
listSet($o, key, value);
|
|
@@ -5609,7 +5714,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
5609
5714
|
}));
|
|
5610
5715
|
exports.setMiddleware = exports.getMiddleware = exports.setManager = exports.getManager = exports.convertOptions = exports.HookManager = exports.BaseHookContext = exports.HOOKS = void 0;
|
|
5611
5716
|
var utils_js_1 = __webpack_require__(/*! ./utils.js */ "../../node_modules/@feathersjs/hooks/script/utils.js");
|
|
5612
|
-
exports.HOOKS = Symbol('@feathersjs/hooks');
|
|
5717
|
+
exports.HOOKS = Symbol.for('@feathersjs/hooks');
|
|
5613
5718
|
/**
|
|
5614
5719
|
* The base hook context.
|
|
5615
5720
|
*/
|
|
@@ -5928,7 +6033,7 @@ exports.compose = compose;
|
|
|
5928
6033
|
Object.defineProperty(exports, "__esModule", ({
|
|
5929
6034
|
value: true
|
|
5930
6035
|
}));
|
|
5931
|
-
exports.hookDecorator = exports.objectHooks = exports.functionHooks = exports.getOriginal = void 0;
|
|
6036
|
+
exports.legacyDecorator = exports.hookDecorator = exports.objectHooks = exports.functionHooks = exports.getOriginal = void 0;
|
|
5932
6037
|
var compose_js_1 = __webpack_require__(/*! ./compose.js */ "../../node_modules/@feathersjs/hooks/script/compose.js");
|
|
5933
6038
|
var base_js_1 = __webpack_require__(/*! ./base.js */ "../../node_modules/@feathersjs/hooks/script/base.js");
|
|
5934
6039
|
var utils_js_1 = __webpack_require__(/*! ./utils.js */ "../../node_modules/@feathersjs/hooks/script/utils.js");
|
|
@@ -6012,6 +6117,22 @@ function objectHooks(obj, hooks) {
|
|
|
6012
6117
|
}
|
|
6013
6118
|
exports.objectHooks = objectHooks;
|
|
6014
6119
|
var hookDecorator = function hookDecorator(managerOrMiddleware) {
|
|
6120
|
+
return function (target, context) {
|
|
6121
|
+
var manager = (0, base_js_1.convertOptions)(managerOrMiddleware);
|
|
6122
|
+
if (context.kind === 'class') {
|
|
6123
|
+
(0, base_js_1.setManager)(target.prototype, manager);
|
|
6124
|
+
return target;
|
|
6125
|
+
} else if (context.kind === 'method') {
|
|
6126
|
+
var method = String(context.name);
|
|
6127
|
+
return functionHooks(target, manager.props({
|
|
6128
|
+
method: method
|
|
6129
|
+
}));
|
|
6130
|
+
}
|
|
6131
|
+
throw new Error('Can not apply hooks.');
|
|
6132
|
+
};
|
|
6133
|
+
};
|
|
6134
|
+
exports.hookDecorator = hookDecorator;
|
|
6135
|
+
var legacyDecorator = function legacyDecorator(managerOrMiddleware) {
|
|
6015
6136
|
var wrapper = function wrapper(_target, method, descriptor) {
|
|
6016
6137
|
var manager = (0, base_js_1.convertOptions)(managerOrMiddleware);
|
|
6017
6138
|
if (!descriptor) {
|
|
@@ -6029,7 +6150,7 @@ var hookDecorator = function hookDecorator(managerOrMiddleware) {
|
|
|
6029
6150
|
};
|
|
6030
6151
|
return wrapper;
|
|
6031
6152
|
};
|
|
6032
|
-
exports.
|
|
6153
|
+
exports.legacyDecorator = legacyDecorator;
|
|
6033
6154
|
|
|
6034
6155
|
/***/ }),
|
|
6035
6156
|
|
|
@@ -6050,12 +6171,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
6050
6171
|
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; }
|
|
6051
6172
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
6052
6173
|
if (k2 === undefined) k2 = k;
|
|
6053
|
-
Object.
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6174
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6175
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6176
|
+
desc = {
|
|
6177
|
+
enumerable: true,
|
|
6178
|
+
get: function get() {
|
|
6179
|
+
return m[k];
|
|
6180
|
+
}
|
|
6181
|
+
};
|
|
6182
|
+
}
|
|
6183
|
+
Object.defineProperty(o, k2, desc);
|
|
6059
6184
|
} : function (o, m, k, k2) {
|
|
6060
6185
|
if (k2 === undefined) k2 = k;
|
|
6061
6186
|
o[k2] = m[k];
|