@orion-js/resolvers 4.0.0-next.2 → 4.0.0-next.3
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/LICENSE +21 -0
- package/dist/index.cjs +24 -133
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -133
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
9
|
};
|
|
@@ -32,7 +31,6 @@ var require_listCacheClear = __commonJS({
|
|
|
32
31
|
this.__data__ = [];
|
|
33
32
|
this.size = 0;
|
|
34
33
|
}
|
|
35
|
-
__name(listCacheClear, "listCacheClear");
|
|
36
34
|
module.exports = listCacheClear;
|
|
37
35
|
}
|
|
38
36
|
});
|
|
@@ -43,7 +41,6 @@ var require_eq = __commonJS({
|
|
|
43
41
|
function eq(value, other) {
|
|
44
42
|
return value === other || value !== value && other !== other;
|
|
45
43
|
}
|
|
46
|
-
__name(eq, "eq");
|
|
47
44
|
module.exports = eq;
|
|
48
45
|
}
|
|
49
46
|
});
|
|
@@ -61,7 +58,6 @@ var require_assocIndexOf = __commonJS({
|
|
|
61
58
|
}
|
|
62
59
|
return -1;
|
|
63
60
|
}
|
|
64
|
-
__name(assocIndexOf, "assocIndexOf");
|
|
65
61
|
module.exports = assocIndexOf;
|
|
66
62
|
}
|
|
67
63
|
});
|
|
@@ -86,7 +82,6 @@ var require_listCacheDelete = __commonJS({
|
|
|
86
82
|
--this.size;
|
|
87
83
|
return true;
|
|
88
84
|
}
|
|
89
|
-
__name(listCacheDelete, "listCacheDelete");
|
|
90
85
|
module.exports = listCacheDelete;
|
|
91
86
|
}
|
|
92
87
|
});
|
|
@@ -99,7 +94,6 @@ var require_listCacheGet = __commonJS({
|
|
|
99
94
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
100
95
|
return index < 0 ? void 0 : data[index][1];
|
|
101
96
|
}
|
|
102
|
-
__name(listCacheGet, "listCacheGet");
|
|
103
97
|
module.exports = listCacheGet;
|
|
104
98
|
}
|
|
105
99
|
});
|
|
@@ -111,7 +105,6 @@ var require_listCacheHas = __commonJS({
|
|
|
111
105
|
function listCacheHas(key) {
|
|
112
106
|
return assocIndexOf(this.__data__, key) > -1;
|
|
113
107
|
}
|
|
114
|
-
__name(listCacheHas, "listCacheHas");
|
|
115
108
|
module.exports = listCacheHas;
|
|
116
109
|
}
|
|
117
110
|
});
|
|
@@ -124,16 +117,12 @@ var require_listCacheSet = __commonJS({
|
|
|
124
117
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
125
118
|
if (index < 0) {
|
|
126
119
|
++this.size;
|
|
127
|
-
data.push([
|
|
128
|
-
key,
|
|
129
|
-
value
|
|
130
|
-
]);
|
|
120
|
+
data.push([key, value]);
|
|
131
121
|
} else {
|
|
132
122
|
data[index][1] = value;
|
|
133
123
|
}
|
|
134
124
|
return this;
|
|
135
125
|
}
|
|
136
|
-
__name(listCacheSet, "listCacheSet");
|
|
137
126
|
module.exports = listCacheSet;
|
|
138
127
|
}
|
|
139
128
|
});
|
|
@@ -154,7 +143,6 @@ var require_ListCache = __commonJS({
|
|
|
154
143
|
this.set(entry[0], entry[1]);
|
|
155
144
|
}
|
|
156
145
|
}
|
|
157
|
-
__name(ListCache, "ListCache");
|
|
158
146
|
ListCache.prototype.clear = listCacheClear;
|
|
159
147
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
160
148
|
ListCache.prototype.get = listCacheGet;
|
|
@@ -172,7 +160,6 @@ var require_stackClear = __commonJS({
|
|
|
172
160
|
this.__data__ = new ListCache();
|
|
173
161
|
this.size = 0;
|
|
174
162
|
}
|
|
175
|
-
__name(stackClear, "stackClear");
|
|
176
163
|
module.exports = stackClear;
|
|
177
164
|
}
|
|
178
165
|
});
|
|
@@ -185,7 +172,6 @@ var require_stackDelete = __commonJS({
|
|
|
185
172
|
this.size = data.size;
|
|
186
173
|
return result;
|
|
187
174
|
}
|
|
188
|
-
__name(stackDelete, "stackDelete");
|
|
189
175
|
module.exports = stackDelete;
|
|
190
176
|
}
|
|
191
177
|
});
|
|
@@ -196,7 +182,6 @@ var require_stackGet = __commonJS({
|
|
|
196
182
|
function stackGet(key) {
|
|
197
183
|
return this.__data__.get(key);
|
|
198
184
|
}
|
|
199
|
-
__name(stackGet, "stackGet");
|
|
200
185
|
module.exports = stackGet;
|
|
201
186
|
}
|
|
202
187
|
});
|
|
@@ -207,7 +192,6 @@ var require_stackHas = __commonJS({
|
|
|
207
192
|
function stackHas(key) {
|
|
208
193
|
return this.__data__.has(key);
|
|
209
194
|
}
|
|
210
|
-
__name(stackHas, "stackHas");
|
|
211
195
|
module.exports = stackHas;
|
|
212
196
|
}
|
|
213
197
|
});
|
|
@@ -264,7 +248,6 @@ var require_getRawTag = __commonJS({
|
|
|
264
248
|
}
|
|
265
249
|
return result;
|
|
266
250
|
}
|
|
267
|
-
__name(getRawTag, "getRawTag");
|
|
268
251
|
module.exports = getRawTag;
|
|
269
252
|
}
|
|
270
253
|
});
|
|
@@ -277,7 +260,6 @@ var require_objectToString = __commonJS({
|
|
|
277
260
|
function objectToString(value) {
|
|
278
261
|
return nativeObjectToString.call(value);
|
|
279
262
|
}
|
|
280
|
-
__name(objectToString, "objectToString");
|
|
281
263
|
module.exports = objectToString;
|
|
282
264
|
}
|
|
283
265
|
});
|
|
@@ -297,7 +279,6 @@ var require_baseGetTag = __commonJS({
|
|
|
297
279
|
}
|
|
298
280
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
299
281
|
}
|
|
300
|
-
__name(baseGetTag, "baseGetTag");
|
|
301
282
|
module.exports = baseGetTag;
|
|
302
283
|
}
|
|
303
284
|
});
|
|
@@ -309,7 +290,6 @@ var require_isObject = __commonJS({
|
|
|
309
290
|
var type = typeof value;
|
|
310
291
|
return value != null && (type == "object" || type == "function");
|
|
311
292
|
}
|
|
312
|
-
__name(isObject, "isObject");
|
|
313
293
|
module.exports = isObject;
|
|
314
294
|
}
|
|
315
295
|
});
|
|
@@ -330,7 +310,6 @@ var require_isFunction = __commonJS({
|
|
|
330
310
|
var tag = baseGetTag(value);
|
|
331
311
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
332
312
|
}
|
|
333
|
-
__name(isFunction, "isFunction");
|
|
334
313
|
module.exports = isFunction;
|
|
335
314
|
}
|
|
336
315
|
});
|
|
@@ -355,7 +334,6 @@ var require_isMasked = __commonJS({
|
|
|
355
334
|
function isMasked(func) {
|
|
356
335
|
return !!maskSrcKey && maskSrcKey in func;
|
|
357
336
|
}
|
|
358
|
-
__name(isMasked, "isMasked");
|
|
359
337
|
module.exports = isMasked;
|
|
360
338
|
}
|
|
361
339
|
});
|
|
@@ -378,7 +356,6 @@ var require_toSource = __commonJS({
|
|
|
378
356
|
}
|
|
379
357
|
return "";
|
|
380
358
|
}
|
|
381
|
-
__name(toSource, "toSource");
|
|
382
359
|
module.exports = toSource;
|
|
383
360
|
}
|
|
384
361
|
});
|
|
@@ -396,7 +373,9 @@ var require_baseIsNative = __commonJS({
|
|
|
396
373
|
var objectProto = Object.prototype;
|
|
397
374
|
var funcToString = funcProto.toString;
|
|
398
375
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
399
|
-
var reIsNative = RegExp(
|
|
376
|
+
var reIsNative = RegExp(
|
|
377
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
378
|
+
);
|
|
400
379
|
function baseIsNative(value) {
|
|
401
380
|
if (!isObject(value) || isMasked(value)) {
|
|
402
381
|
return false;
|
|
@@ -404,7 +383,6 @@ var require_baseIsNative = __commonJS({
|
|
|
404
383
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
405
384
|
return pattern.test(toSource(value));
|
|
406
385
|
}
|
|
407
|
-
__name(baseIsNative, "baseIsNative");
|
|
408
386
|
module.exports = baseIsNative;
|
|
409
387
|
}
|
|
410
388
|
});
|
|
@@ -415,7 +393,6 @@ var require_getValue = __commonJS({
|
|
|
415
393
|
function getValue(object, key) {
|
|
416
394
|
return object == null ? void 0 : object[key];
|
|
417
395
|
}
|
|
418
|
-
__name(getValue, "getValue");
|
|
419
396
|
module.exports = getValue;
|
|
420
397
|
}
|
|
421
398
|
});
|
|
@@ -429,7 +406,6 @@ var require_getNative = __commonJS({
|
|
|
429
406
|
var value = getValue(object, key);
|
|
430
407
|
return baseIsNative(value) ? value : void 0;
|
|
431
408
|
}
|
|
432
|
-
__name(getNative, "getNative");
|
|
433
409
|
module.exports = getNative;
|
|
434
410
|
}
|
|
435
411
|
});
|
|
@@ -461,7 +437,6 @@ var require_hashClear = __commonJS({
|
|
|
461
437
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
462
438
|
this.size = 0;
|
|
463
439
|
}
|
|
464
|
-
__name(hashClear, "hashClear");
|
|
465
440
|
module.exports = hashClear;
|
|
466
441
|
}
|
|
467
442
|
});
|
|
@@ -474,7 +449,6 @@ var require_hashDelete = __commonJS({
|
|
|
474
449
|
this.size -= result ? 1 : 0;
|
|
475
450
|
return result;
|
|
476
451
|
}
|
|
477
|
-
__name(hashDelete, "hashDelete");
|
|
478
452
|
module.exports = hashDelete;
|
|
479
453
|
}
|
|
480
454
|
});
|
|
@@ -494,7 +468,6 @@ var require_hashGet = __commonJS({
|
|
|
494
468
|
}
|
|
495
469
|
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
496
470
|
}
|
|
497
|
-
__name(hashGet, "hashGet");
|
|
498
471
|
module.exports = hashGet;
|
|
499
472
|
}
|
|
500
473
|
});
|
|
@@ -509,7 +482,6 @@ var require_hashHas = __commonJS({
|
|
|
509
482
|
var data = this.__data__;
|
|
510
483
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
511
484
|
}
|
|
512
|
-
__name(hashHas, "hashHas");
|
|
513
485
|
module.exports = hashHas;
|
|
514
486
|
}
|
|
515
487
|
});
|
|
@@ -525,7 +497,6 @@ var require_hashSet = __commonJS({
|
|
|
525
497
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
526
498
|
return this;
|
|
527
499
|
}
|
|
528
|
-
__name(hashSet, "hashSet");
|
|
529
500
|
module.exports = hashSet;
|
|
530
501
|
}
|
|
531
502
|
});
|
|
@@ -546,7 +517,6 @@ var require_Hash = __commonJS({
|
|
|
546
517
|
this.set(entry[0], entry[1]);
|
|
547
518
|
}
|
|
548
519
|
}
|
|
549
|
-
__name(Hash, "Hash");
|
|
550
520
|
Hash.prototype.clear = hashClear;
|
|
551
521
|
Hash.prototype["delete"] = hashDelete;
|
|
552
522
|
Hash.prototype.get = hashGet;
|
|
@@ -570,7 +540,6 @@ var require_mapCacheClear = __commonJS({
|
|
|
570
540
|
"string": new Hash()
|
|
571
541
|
};
|
|
572
542
|
}
|
|
573
|
-
__name(mapCacheClear, "mapCacheClear");
|
|
574
543
|
module.exports = mapCacheClear;
|
|
575
544
|
}
|
|
576
545
|
});
|
|
@@ -582,7 +551,6 @@ var require_isKeyable = __commonJS({
|
|
|
582
551
|
var type = typeof value;
|
|
583
552
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
584
553
|
}
|
|
585
|
-
__name(isKeyable, "isKeyable");
|
|
586
554
|
module.exports = isKeyable;
|
|
587
555
|
}
|
|
588
556
|
});
|
|
@@ -595,7 +563,6 @@ var require_getMapData = __commonJS({
|
|
|
595
563
|
var data = map.__data__;
|
|
596
564
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
597
565
|
}
|
|
598
|
-
__name(getMapData, "getMapData");
|
|
599
566
|
module.exports = getMapData;
|
|
600
567
|
}
|
|
601
568
|
});
|
|
@@ -609,7 +576,6 @@ var require_mapCacheDelete = __commonJS({
|
|
|
609
576
|
this.size -= result ? 1 : 0;
|
|
610
577
|
return result;
|
|
611
578
|
}
|
|
612
|
-
__name(mapCacheDelete, "mapCacheDelete");
|
|
613
579
|
module.exports = mapCacheDelete;
|
|
614
580
|
}
|
|
615
581
|
});
|
|
@@ -621,7 +587,6 @@ var require_mapCacheGet = __commonJS({
|
|
|
621
587
|
function mapCacheGet(key) {
|
|
622
588
|
return getMapData(this, key).get(key);
|
|
623
589
|
}
|
|
624
|
-
__name(mapCacheGet, "mapCacheGet");
|
|
625
590
|
module.exports = mapCacheGet;
|
|
626
591
|
}
|
|
627
592
|
});
|
|
@@ -633,7 +598,6 @@ var require_mapCacheHas = __commonJS({
|
|
|
633
598
|
function mapCacheHas(key) {
|
|
634
599
|
return getMapData(this, key).has(key);
|
|
635
600
|
}
|
|
636
|
-
__name(mapCacheHas, "mapCacheHas");
|
|
637
601
|
module.exports = mapCacheHas;
|
|
638
602
|
}
|
|
639
603
|
});
|
|
@@ -648,7 +612,6 @@ var require_mapCacheSet = __commonJS({
|
|
|
648
612
|
this.size += data.size == size ? 0 : 1;
|
|
649
613
|
return this;
|
|
650
614
|
}
|
|
651
|
-
__name(mapCacheSet, "mapCacheSet");
|
|
652
615
|
module.exports = mapCacheSet;
|
|
653
616
|
}
|
|
654
617
|
});
|
|
@@ -669,7 +632,6 @@ var require_MapCache = __commonJS({
|
|
|
669
632
|
this.set(entry[0], entry[1]);
|
|
670
633
|
}
|
|
671
634
|
}
|
|
672
|
-
__name(MapCache, "MapCache");
|
|
673
635
|
MapCache.prototype.clear = mapCacheClear;
|
|
674
636
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
675
637
|
MapCache.prototype.get = mapCacheGet;
|
|
@@ -691,10 +653,7 @@ var require_stackSet = __commonJS({
|
|
|
691
653
|
if (data instanceof ListCache) {
|
|
692
654
|
var pairs = data.__data__;
|
|
693
655
|
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
694
|
-
pairs.push([
|
|
695
|
-
key,
|
|
696
|
-
value
|
|
697
|
-
]);
|
|
656
|
+
pairs.push([key, value]);
|
|
698
657
|
this.size = ++data.size;
|
|
699
658
|
return this;
|
|
700
659
|
}
|
|
@@ -704,7 +663,6 @@ var require_stackSet = __commonJS({
|
|
|
704
663
|
this.size = data.size;
|
|
705
664
|
return this;
|
|
706
665
|
}
|
|
707
|
-
__name(stackSet, "stackSet");
|
|
708
666
|
module.exports = stackSet;
|
|
709
667
|
}
|
|
710
668
|
});
|
|
@@ -722,7 +680,6 @@ var require_Stack = __commonJS({
|
|
|
722
680
|
var data = this.__data__ = new ListCache(entries);
|
|
723
681
|
this.size = data.size;
|
|
724
682
|
}
|
|
725
|
-
__name(Stack, "Stack");
|
|
726
683
|
Stack.prototype.clear = stackClear;
|
|
727
684
|
Stack.prototype["delete"] = stackDelete;
|
|
728
685
|
Stack.prototype.get = stackGet;
|
|
@@ -744,7 +701,6 @@ var require_arrayEach = __commonJS({
|
|
|
744
701
|
}
|
|
745
702
|
return array;
|
|
746
703
|
}
|
|
747
|
-
__name(arrayEach, "arrayEach");
|
|
748
704
|
module.exports = arrayEach;
|
|
749
705
|
}
|
|
750
706
|
});
|
|
@@ -781,7 +737,6 @@ var require_baseAssignValue = __commonJS({
|
|
|
781
737
|
object[key] = value;
|
|
782
738
|
}
|
|
783
739
|
}
|
|
784
|
-
__name(baseAssignValue, "baseAssignValue");
|
|
785
740
|
module.exports = baseAssignValue;
|
|
786
741
|
}
|
|
787
742
|
});
|
|
@@ -799,7 +754,6 @@ var require_assignValue = __commonJS({
|
|
|
799
754
|
baseAssignValue(object, key, value);
|
|
800
755
|
}
|
|
801
756
|
}
|
|
802
|
-
__name(assignValue, "assignValue");
|
|
803
757
|
module.exports = assignValue;
|
|
804
758
|
}
|
|
805
759
|
});
|
|
@@ -827,7 +781,6 @@ var require_copyObject = __commonJS({
|
|
|
827
781
|
}
|
|
828
782
|
return object;
|
|
829
783
|
}
|
|
830
|
-
__name(copyObject, "copyObject");
|
|
831
784
|
module.exports = copyObject;
|
|
832
785
|
}
|
|
833
786
|
});
|
|
@@ -842,7 +795,6 @@ var require_baseTimes = __commonJS({
|
|
|
842
795
|
}
|
|
843
796
|
return result;
|
|
844
797
|
}
|
|
845
|
-
__name(baseTimes, "baseTimes");
|
|
846
798
|
module.exports = baseTimes;
|
|
847
799
|
}
|
|
848
800
|
});
|
|
@@ -853,7 +805,6 @@ var require_isObjectLike = __commonJS({
|
|
|
853
805
|
function isObjectLike(value) {
|
|
854
806
|
return value != null && typeof value == "object";
|
|
855
807
|
}
|
|
856
|
-
__name(isObjectLike, "isObjectLike");
|
|
857
808
|
module.exports = isObjectLike;
|
|
858
809
|
}
|
|
859
810
|
});
|
|
@@ -867,7 +818,6 @@ var require_baseIsArguments = __commonJS({
|
|
|
867
818
|
function baseIsArguments(value) {
|
|
868
819
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
869
820
|
}
|
|
870
|
-
__name(baseIsArguments, "baseIsArguments");
|
|
871
821
|
module.exports = baseIsArguments;
|
|
872
822
|
}
|
|
873
823
|
});
|
|
@@ -903,7 +853,6 @@ var require_stubFalse = __commonJS({
|
|
|
903
853
|
function stubFalse() {
|
|
904
854
|
return false;
|
|
905
855
|
}
|
|
906
|
-
__name(stubFalse, "stubFalse");
|
|
907
856
|
module.exports = stubFalse;
|
|
908
857
|
}
|
|
909
858
|
});
|
|
@@ -931,9 +880,8 @@ var require_isIndex = __commonJS({
|
|
|
931
880
|
function isIndex(value, length) {
|
|
932
881
|
var type = typeof value;
|
|
933
882
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
934
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
883
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
935
884
|
}
|
|
936
|
-
__name(isIndex, "isIndex");
|
|
937
885
|
module.exports = isIndex;
|
|
938
886
|
}
|
|
939
887
|
});
|
|
@@ -945,7 +893,6 @@ var require_isLength = __commonJS({
|
|
|
945
893
|
function isLength(value) {
|
|
946
894
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
947
895
|
}
|
|
948
|
-
__name(isLength, "isLength");
|
|
949
896
|
module.exports = isLength;
|
|
950
897
|
}
|
|
951
898
|
});
|
|
@@ -986,7 +933,6 @@ var require_baseIsTypedArray = __commonJS({
|
|
|
986
933
|
function baseIsTypedArray(value) {
|
|
987
934
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
988
935
|
}
|
|
989
|
-
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
990
936
|
module.exports = baseIsTypedArray;
|
|
991
937
|
}
|
|
992
938
|
});
|
|
@@ -999,7 +945,6 @@ var require_baseUnary = __commonJS({
|
|
|
999
945
|
return func(value);
|
|
1000
946
|
};
|
|
1001
947
|
}
|
|
1002
|
-
__name(baseUnary, "baseUnary");
|
|
1003
948
|
module.exports = baseUnary;
|
|
1004
949
|
}
|
|
1005
950
|
});
|
|
@@ -1062,7 +1007,6 @@ var require_arrayLikeKeys = __commonJS({
|
|
|
1062
1007
|
}
|
|
1063
1008
|
return result;
|
|
1064
1009
|
}
|
|
1065
|
-
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
1066
1010
|
module.exports = arrayLikeKeys;
|
|
1067
1011
|
}
|
|
1068
1012
|
});
|
|
@@ -1075,7 +1019,6 @@ var require_isPrototype = __commonJS({
|
|
|
1075
1019
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
1076
1020
|
return value === proto;
|
|
1077
1021
|
}
|
|
1078
|
-
__name(isPrototype, "isPrototype");
|
|
1079
1022
|
module.exports = isPrototype;
|
|
1080
1023
|
}
|
|
1081
1024
|
});
|
|
@@ -1088,7 +1031,6 @@ var require_overArg = __commonJS({
|
|
|
1088
1031
|
return func(transform(arg));
|
|
1089
1032
|
};
|
|
1090
1033
|
}
|
|
1091
|
-
__name(overArg, "overArg");
|
|
1092
1034
|
module.exports = overArg;
|
|
1093
1035
|
}
|
|
1094
1036
|
});
|
|
@@ -1121,7 +1063,6 @@ var require_baseKeys = __commonJS({
|
|
|
1121
1063
|
}
|
|
1122
1064
|
return result;
|
|
1123
1065
|
}
|
|
1124
|
-
__name(baseKeys, "baseKeys");
|
|
1125
1066
|
module.exports = baseKeys;
|
|
1126
1067
|
}
|
|
1127
1068
|
});
|
|
@@ -1134,7 +1075,6 @@ var require_isArrayLike = __commonJS({
|
|
|
1134
1075
|
function isArrayLike(value) {
|
|
1135
1076
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
1136
1077
|
}
|
|
1137
|
-
__name(isArrayLike, "isArrayLike");
|
|
1138
1078
|
module.exports = isArrayLike;
|
|
1139
1079
|
}
|
|
1140
1080
|
});
|
|
@@ -1148,7 +1088,6 @@ var require_keys = __commonJS({
|
|
|
1148
1088
|
function keys(object) {
|
|
1149
1089
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1150
1090
|
}
|
|
1151
|
-
__name(keys, "keys");
|
|
1152
1091
|
module.exports = keys;
|
|
1153
1092
|
}
|
|
1154
1093
|
});
|
|
@@ -1161,7 +1100,6 @@ var require_baseAssign = __commonJS({
|
|
|
1161
1100
|
function baseAssign(object, source) {
|
|
1162
1101
|
return object && copyObject(source, keys(source), object);
|
|
1163
1102
|
}
|
|
1164
|
-
__name(baseAssign, "baseAssign");
|
|
1165
1103
|
module.exports = baseAssign;
|
|
1166
1104
|
}
|
|
1167
1105
|
});
|
|
@@ -1178,7 +1116,6 @@ var require_nativeKeysIn = __commonJS({
|
|
|
1178
1116
|
}
|
|
1179
1117
|
return result;
|
|
1180
1118
|
}
|
|
1181
|
-
__name(nativeKeysIn, "nativeKeysIn");
|
|
1182
1119
|
module.exports = nativeKeysIn;
|
|
1183
1120
|
}
|
|
1184
1121
|
});
|
|
@@ -1203,7 +1140,6 @@ var require_baseKeysIn = __commonJS({
|
|
|
1203
1140
|
}
|
|
1204
1141
|
return result;
|
|
1205
1142
|
}
|
|
1206
|
-
__name(baseKeysIn, "baseKeysIn");
|
|
1207
1143
|
module.exports = baseKeysIn;
|
|
1208
1144
|
}
|
|
1209
1145
|
});
|
|
@@ -1217,7 +1153,6 @@ var require_keysIn = __commonJS({
|
|
|
1217
1153
|
function keysIn(object) {
|
|
1218
1154
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1219
1155
|
}
|
|
1220
|
-
__name(keysIn, "keysIn");
|
|
1221
1156
|
module.exports = keysIn;
|
|
1222
1157
|
}
|
|
1223
1158
|
});
|
|
@@ -1230,7 +1165,6 @@ var require_baseAssignIn = __commonJS({
|
|
|
1230
1165
|
function baseAssignIn(object, source) {
|
|
1231
1166
|
return object && copyObject(source, keysIn(source), object);
|
|
1232
1167
|
}
|
|
1233
|
-
__name(baseAssignIn, "baseAssignIn");
|
|
1234
1168
|
module.exports = baseAssignIn;
|
|
1235
1169
|
}
|
|
1236
1170
|
});
|
|
@@ -1252,7 +1186,6 @@ var require_cloneBuffer = __commonJS({
|
|
|
1252
1186
|
buffer.copy(result);
|
|
1253
1187
|
return result;
|
|
1254
1188
|
}
|
|
1255
|
-
__name(cloneBuffer, "cloneBuffer");
|
|
1256
1189
|
module.exports = cloneBuffer;
|
|
1257
1190
|
}
|
|
1258
1191
|
});
|
|
@@ -1268,7 +1201,6 @@ var require_copyArray = __commonJS({
|
|
|
1268
1201
|
}
|
|
1269
1202
|
return array;
|
|
1270
1203
|
}
|
|
1271
|
-
__name(copyArray, "copyArray");
|
|
1272
1204
|
module.exports = copyArray;
|
|
1273
1205
|
}
|
|
1274
1206
|
});
|
|
@@ -1286,7 +1218,6 @@ var require_arrayFilter = __commonJS({
|
|
|
1286
1218
|
}
|
|
1287
1219
|
return result;
|
|
1288
1220
|
}
|
|
1289
|
-
__name(arrayFilter, "arrayFilter");
|
|
1290
1221
|
module.exports = arrayFilter;
|
|
1291
1222
|
}
|
|
1292
1223
|
});
|
|
@@ -1297,7 +1228,6 @@ var require_stubArray = __commonJS({
|
|
|
1297
1228
|
function stubArray() {
|
|
1298
1229
|
return [];
|
|
1299
1230
|
}
|
|
1300
|
-
__name(stubArray, "stubArray");
|
|
1301
1231
|
module.exports = stubArray;
|
|
1302
1232
|
}
|
|
1303
1233
|
});
|
|
@@ -1331,7 +1261,6 @@ var require_copySymbols = __commonJS({
|
|
|
1331
1261
|
function copySymbols(source, object) {
|
|
1332
1262
|
return copyObject(source, getSymbols(source), object);
|
|
1333
1263
|
}
|
|
1334
|
-
__name(copySymbols, "copySymbols");
|
|
1335
1264
|
module.exports = copySymbols;
|
|
1336
1265
|
}
|
|
1337
1266
|
});
|
|
@@ -1346,7 +1275,6 @@ var require_arrayPush = __commonJS({
|
|
|
1346
1275
|
}
|
|
1347
1276
|
return array;
|
|
1348
1277
|
}
|
|
1349
|
-
__name(arrayPush, "arrayPush");
|
|
1350
1278
|
module.exports = arrayPush;
|
|
1351
1279
|
}
|
|
1352
1280
|
});
|
|
@@ -1388,7 +1316,6 @@ var require_copySymbolsIn = __commonJS({
|
|
|
1388
1316
|
function copySymbolsIn(source, object) {
|
|
1389
1317
|
return copyObject(source, getSymbolsIn(source), object);
|
|
1390
1318
|
}
|
|
1391
|
-
__name(copySymbolsIn, "copySymbolsIn");
|
|
1392
1319
|
module.exports = copySymbolsIn;
|
|
1393
1320
|
}
|
|
1394
1321
|
});
|
|
@@ -1402,7 +1329,6 @@ var require_baseGetAllKeys = __commonJS({
|
|
|
1402
1329
|
var result = keysFunc(object);
|
|
1403
1330
|
return isArray3(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1404
1331
|
}
|
|
1405
|
-
__name(baseGetAllKeys, "baseGetAllKeys");
|
|
1406
1332
|
module.exports = baseGetAllKeys;
|
|
1407
1333
|
}
|
|
1408
1334
|
});
|
|
@@ -1416,7 +1342,6 @@ var require_getAllKeys = __commonJS({
|
|
|
1416
1342
|
function getAllKeys(object) {
|
|
1417
1343
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1418
1344
|
}
|
|
1419
|
-
__name(getAllKeys, "getAllKeys");
|
|
1420
1345
|
module.exports = getAllKeys;
|
|
1421
1346
|
}
|
|
1422
1347
|
});
|
|
@@ -1430,7 +1355,6 @@ var require_getAllKeysIn = __commonJS({
|
|
|
1430
1355
|
function getAllKeysIn(object) {
|
|
1431
1356
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1432
1357
|
}
|
|
1433
|
-
__name(getAllKeysIn, "getAllKeysIn");
|
|
1434
1358
|
module.exports = getAllKeysIn;
|
|
1435
1359
|
}
|
|
1436
1360
|
});
|
|
@@ -1498,7 +1422,7 @@ var require_getTag = __commonJS({
|
|
|
1498
1422
|
var weakMapCtorString = toSource(WeakMap);
|
|
1499
1423
|
var getTag = baseGetTag;
|
|
1500
1424
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
1501
|
-
getTag =
|
|
1425
|
+
getTag = function(value) {
|
|
1502
1426
|
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1503
1427
|
if (ctorString) {
|
|
1504
1428
|
switch (ctorString) {
|
|
@@ -1515,7 +1439,7 @@ var require_getTag = __commonJS({
|
|
|
1515
1439
|
}
|
|
1516
1440
|
}
|
|
1517
1441
|
return result;
|
|
1518
|
-
}
|
|
1442
|
+
};
|
|
1519
1443
|
}
|
|
1520
1444
|
module.exports = getTag;
|
|
1521
1445
|
}
|
|
@@ -1534,7 +1458,6 @@ var require_initCloneArray = __commonJS({
|
|
|
1534
1458
|
}
|
|
1535
1459
|
return result;
|
|
1536
1460
|
}
|
|
1537
|
-
__name(initCloneArray, "initCloneArray");
|
|
1538
1461
|
module.exports = initCloneArray;
|
|
1539
1462
|
}
|
|
1540
1463
|
});
|
|
@@ -1557,7 +1480,6 @@ var require_cloneArrayBuffer = __commonJS({
|
|
|
1557
1480
|
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
1558
1481
|
return result;
|
|
1559
1482
|
}
|
|
1560
|
-
__name(cloneArrayBuffer, "cloneArrayBuffer");
|
|
1561
1483
|
module.exports = cloneArrayBuffer;
|
|
1562
1484
|
}
|
|
1563
1485
|
});
|
|
@@ -1570,7 +1492,6 @@ var require_cloneDataView = __commonJS({
|
|
|
1570
1492
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1571
1493
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1572
1494
|
}
|
|
1573
|
-
__name(cloneDataView, "cloneDataView");
|
|
1574
1495
|
module.exports = cloneDataView;
|
|
1575
1496
|
}
|
|
1576
1497
|
});
|
|
@@ -1584,7 +1505,6 @@ var require_cloneRegExp = __commonJS({
|
|
|
1584
1505
|
result.lastIndex = regexp.lastIndex;
|
|
1585
1506
|
return result;
|
|
1586
1507
|
}
|
|
1587
|
-
__name(cloneRegExp, "cloneRegExp");
|
|
1588
1508
|
module.exports = cloneRegExp;
|
|
1589
1509
|
}
|
|
1590
1510
|
});
|
|
@@ -1598,7 +1518,6 @@ var require_cloneSymbol = __commonJS({
|
|
|
1598
1518
|
function cloneSymbol(symbol) {
|
|
1599
1519
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1600
1520
|
}
|
|
1601
|
-
__name(cloneSymbol, "cloneSymbol");
|
|
1602
1521
|
module.exports = cloneSymbol;
|
|
1603
1522
|
}
|
|
1604
1523
|
});
|
|
@@ -1611,7 +1530,6 @@ var require_cloneTypedArray = __commonJS({
|
|
|
1611
1530
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1612
1531
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1613
1532
|
}
|
|
1614
|
-
__name(cloneTypedArray, "cloneTypedArray");
|
|
1615
1533
|
module.exports = cloneTypedArray;
|
|
1616
1534
|
}
|
|
1617
1535
|
});
|
|
@@ -1676,7 +1594,6 @@ var require_initCloneByTag = __commonJS({
|
|
|
1676
1594
|
return cloneSymbol(object);
|
|
1677
1595
|
}
|
|
1678
1596
|
}
|
|
1679
|
-
__name(initCloneByTag, "initCloneByTag");
|
|
1680
1597
|
module.exports = initCloneByTag;
|
|
1681
1598
|
}
|
|
1682
1599
|
});
|
|
@@ -1689,7 +1606,6 @@ var require_baseCreate = __commonJS({
|
|
|
1689
1606
|
var baseCreate = /* @__PURE__ */ function() {
|
|
1690
1607
|
function object() {
|
|
1691
1608
|
}
|
|
1692
|
-
__name(object, "object");
|
|
1693
1609
|
return function(proto) {
|
|
1694
1610
|
if (!isObject(proto)) {
|
|
1695
1611
|
return {};
|
|
@@ -1716,7 +1632,6 @@ var require_initCloneObject = __commonJS({
|
|
|
1716
1632
|
function initCloneObject(object) {
|
|
1717
1633
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1718
1634
|
}
|
|
1719
|
-
__name(initCloneObject, "initCloneObject");
|
|
1720
1635
|
module.exports = initCloneObject;
|
|
1721
1636
|
}
|
|
1722
1637
|
});
|
|
@@ -1730,7 +1645,6 @@ var require_baseIsMap = __commonJS({
|
|
|
1730
1645
|
function baseIsMap(value) {
|
|
1731
1646
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
1732
1647
|
}
|
|
1733
|
-
__name(baseIsMap, "baseIsMap");
|
|
1734
1648
|
module.exports = baseIsMap;
|
|
1735
1649
|
}
|
|
1736
1650
|
});
|
|
@@ -1756,7 +1670,6 @@ var require_baseIsSet = __commonJS({
|
|
|
1756
1670
|
function baseIsSet(value) {
|
|
1757
1671
|
return isObjectLike(value) && getTag(value) == setTag;
|
|
1758
1672
|
}
|
|
1759
|
-
__name(baseIsSet, "baseIsSet");
|
|
1760
1673
|
module.exports = baseIsSet;
|
|
1761
1674
|
}
|
|
1762
1675
|
});
|
|
@@ -1890,7 +1803,6 @@ var require_baseClone = __commonJS({
|
|
|
1890
1803
|
});
|
|
1891
1804
|
return result;
|
|
1892
1805
|
}
|
|
1893
|
-
__name(baseClone, "baseClone");
|
|
1894
1806
|
module.exports = baseClone;
|
|
1895
1807
|
}
|
|
1896
1808
|
});
|
|
@@ -1903,7 +1815,6 @@ var require_clone = __commonJS({
|
|
|
1903
1815
|
function clone3(value) {
|
|
1904
1816
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
1905
1817
|
}
|
|
1906
|
-
__name(clone3, "clone");
|
|
1907
1818
|
module.exports = clone3;
|
|
1908
1819
|
}
|
|
1909
1820
|
});
|
|
@@ -1914,7 +1825,6 @@ var require_isNil = __commonJS({
|
|
|
1914
1825
|
function isNil2(value) {
|
|
1915
1826
|
return value == null;
|
|
1916
1827
|
}
|
|
1917
|
-
__name(isNil2, "isNil");
|
|
1918
1828
|
module.exports = isNil2;
|
|
1919
1829
|
}
|
|
1920
1830
|
});
|
|
@@ -1922,17 +1832,17 @@ var require_isNil = __commonJS({
|
|
|
1922
1832
|
// src/resolver/permisionsCheckers.ts
|
|
1923
1833
|
import { PermissionsError } from "@orion-js/helpers";
|
|
1924
1834
|
global.checkers = [];
|
|
1925
|
-
var addPermissionChecker =
|
|
1835
|
+
var addPermissionChecker = function(func) {
|
|
1926
1836
|
global.checkers.push(func);
|
|
1927
|
-
}
|
|
1928
|
-
var checkPermissions =
|
|
1837
|
+
};
|
|
1838
|
+
var checkPermissions = async function(options) {
|
|
1929
1839
|
for (const checker of global.checkers) {
|
|
1930
1840
|
const errorMessage = await checker(options);
|
|
1931
1841
|
if (errorMessage) {
|
|
1932
1842
|
throw new PermissionsError(errorMessage);
|
|
1933
1843
|
}
|
|
1934
1844
|
}
|
|
1935
|
-
}
|
|
1845
|
+
};
|
|
1936
1846
|
|
|
1937
1847
|
// src/resolver/getExecute/checkPermissions.ts
|
|
1938
1848
|
import { PermissionsError as PermissionsError2 } from "@orion-js/helpers";
|
|
@@ -1947,21 +1857,20 @@ async function checkPermissions_default(executeOptions, options) {
|
|
|
1947
1857
|
info
|
|
1948
1858
|
});
|
|
1949
1859
|
if (options.checkPermission) {
|
|
1950
|
-
const execute =
|
|
1860
|
+
const execute = async () => {
|
|
1951
1861
|
if (parent) {
|
|
1952
1862
|
const checker2 = options.checkPermission;
|
|
1953
1863
|
return checker2(parent, params, viewer, info);
|
|
1954
1864
|
}
|
|
1955
1865
|
const checker = options.checkPermission;
|
|
1956
1866
|
return checker(params, viewer, info);
|
|
1957
|
-
}
|
|
1867
|
+
};
|
|
1958
1868
|
const error = await execute();
|
|
1959
1869
|
if (error) {
|
|
1960
1870
|
throw new PermissionsError2(error);
|
|
1961
1871
|
}
|
|
1962
1872
|
}
|
|
1963
1873
|
}
|
|
1964
|
-
__name(checkPermissions_default, "default");
|
|
1965
1874
|
|
|
1966
1875
|
// src/resolver/getExecute/getSchema.ts
|
|
1967
1876
|
var import_clone = __toESM(require_clone(), 1);
|
|
@@ -1972,9 +1881,7 @@ function getSchema_default(resolverParams) {
|
|
|
1972
1881
|
const field = (0, import_clone.default)(resolverParams[key]);
|
|
1973
1882
|
const isArrayOfModel = (0, import_isArray.default)(field.type) && field.type[0].__isModel;
|
|
1974
1883
|
if (isArrayOfModel) {
|
|
1975
|
-
field.type = [
|
|
1976
|
-
field.type[0].getSchema()
|
|
1977
|
-
];
|
|
1884
|
+
field.type = [field.type[0].getSchema()];
|
|
1978
1885
|
} else if (field.type.__isModel) {
|
|
1979
1886
|
field.type = field.type.getSchema();
|
|
1980
1887
|
}
|
|
@@ -1982,7 +1889,6 @@ function getSchema_default(resolverParams) {
|
|
|
1982
1889
|
}
|
|
1983
1890
|
return schema;
|
|
1984
1891
|
}
|
|
1985
|
-
__name(getSchema_default, "default");
|
|
1986
1892
|
|
|
1987
1893
|
// src/resolver/getExecute/cleanAndValidate.ts
|
|
1988
1894
|
import { validate, clean } from "@orion-js/schema";
|
|
@@ -2001,7 +1907,6 @@ async function cleanAndValidate_default({ params, callParams }) {
|
|
|
2001
1907
|
return callParams;
|
|
2002
1908
|
}
|
|
2003
1909
|
}
|
|
2004
|
-
__name(cleanAndValidate_default, "default");
|
|
2005
1910
|
|
|
2006
1911
|
// src/resolver/getExecute/initResult.ts
|
|
2007
1912
|
var import_isArray2 = __toESM(require_isArray(), 1);
|
|
@@ -2027,7 +1932,6 @@ function initResult_default(options, result) {
|
|
|
2027
1932
|
return result;
|
|
2028
1933
|
}
|
|
2029
1934
|
}
|
|
2030
|
-
__name(initResult_default, "default");
|
|
2031
1935
|
|
|
2032
1936
|
// src/resolver/getExecute/getResultWithMiddlewares.ts
|
|
2033
1937
|
import { composeMiddlewares } from "@orion-js/helpers";
|
|
@@ -2036,11 +1940,10 @@ import { composeMiddlewares } from "@orion-js/helpers";
|
|
|
2036
1940
|
function createResolverMiddleware(middleware) {
|
|
2037
1941
|
return middleware;
|
|
2038
1942
|
}
|
|
2039
|
-
__name(createResolverMiddleware, "createResolverMiddleware");
|
|
2040
1943
|
|
|
2041
1944
|
// src/resolver/getExecute/getCacheKey.ts
|
|
2042
1945
|
import { hashObject } from "@orion-js/helpers";
|
|
2043
|
-
var getBaseKey =
|
|
1946
|
+
var getBaseKey = async (executeOptions) => {
|
|
2044
1947
|
const { parent, params, viewer, info, options } = executeOptions;
|
|
2045
1948
|
if (parent) {
|
|
2046
1949
|
const getKey2 = options.getCacheKey;
|
|
@@ -2048,32 +1951,27 @@ var getBaseKey = /* @__PURE__ */ __name(async (executeOptions) => {
|
|
|
2048
1951
|
}
|
|
2049
1952
|
const getKey = options.getCacheKey;
|
|
2050
1953
|
return await getKey(params, viewer, info);
|
|
2051
|
-
}
|
|
1954
|
+
};
|
|
2052
1955
|
async function getCacheKey_default(executeOptions) {
|
|
2053
1956
|
const { parent, params, options } = executeOptions;
|
|
2054
1957
|
if (options.getCacheKey) {
|
|
2055
1958
|
const baseKey = await getBaseKey(executeOptions);
|
|
2056
1959
|
return `${options.resolverId}_${baseKey}`;
|
|
2057
1960
|
}
|
|
2058
|
-
const key = hashObject({
|
|
2059
|
-
parent,
|
|
2060
|
-
params,
|
|
2061
|
-
resolverId: options.resolverId
|
|
2062
|
-
});
|
|
1961
|
+
const key = hashObject({ parent, params, resolverId: options.resolverId });
|
|
2063
1962
|
return key;
|
|
2064
1963
|
}
|
|
2065
|
-
__name(getCacheKey_default, "default");
|
|
2066
1964
|
|
|
2067
1965
|
// src/resolver/getExecute/getResult.ts
|
|
2068
1966
|
async function getResult_default(executeOptions) {
|
|
2069
1967
|
const { parent, params, viewer, info, options } = executeOptions;
|
|
2070
|
-
const executeResolver =
|
|
1968
|
+
const executeResolver = async () => {
|
|
2071
1969
|
const resultFunc = options.resolve;
|
|
2072
1970
|
if (parent) {
|
|
2073
1971
|
return await resultFunc(parent, params, viewer, info);
|
|
2074
1972
|
}
|
|
2075
1973
|
return await resultFunc(params, viewer, info);
|
|
2076
|
-
}
|
|
1974
|
+
};
|
|
2077
1975
|
if (options.cache && options.cacheProvider) {
|
|
2078
1976
|
const key = await getCacheKey_default(executeOptions);
|
|
2079
1977
|
const result = await options.cacheProvider.get(key, {
|
|
@@ -2084,7 +1982,6 @@ async function getResult_default(executeOptions) {
|
|
|
2084
1982
|
}
|
|
2085
1983
|
return await executeResolver();
|
|
2086
1984
|
}
|
|
2087
|
-
__name(getResult_default, "default");
|
|
2088
1985
|
|
|
2089
1986
|
// src/resolver/getExecute/getResultWithMiddlewares.ts
|
|
2090
1987
|
async function getResultWithMiddlewares(executeOptions) {
|
|
@@ -2097,11 +1994,10 @@ async function getResultWithMiddlewares(executeOptions) {
|
|
|
2097
1994
|
]);
|
|
2098
1995
|
return await composedMiddlewares(executeOptions);
|
|
2099
1996
|
}
|
|
2100
|
-
__name(getResultWithMiddlewares, "getResultWithMiddlewares");
|
|
2101
1997
|
|
|
2102
1998
|
// src/resolver/getExecute/index.ts
|
|
2103
1999
|
function getExecute(options) {
|
|
2104
|
-
const execute =
|
|
2000
|
+
const execute = async (executeParams) => {
|
|
2105
2001
|
const executeOptions = {
|
|
2106
2002
|
params: await cleanAndValidate_default({
|
|
2107
2003
|
params: options.params,
|
|
@@ -2115,10 +2011,9 @@ function getExecute(options) {
|
|
|
2115
2011
|
await checkPermissions_default(executeOptions, options);
|
|
2116
2012
|
const result = await getResultWithMiddlewares(executeOptions);
|
|
2117
2013
|
return initResult_default(options, result);
|
|
2118
|
-
}
|
|
2014
|
+
};
|
|
2119
2015
|
return execute;
|
|
2120
2016
|
}
|
|
2121
|
-
__name(getExecute, "getExecute");
|
|
2122
2017
|
|
|
2123
2018
|
// src/resolver/cleanParams.ts
|
|
2124
2019
|
var import_clone2 = __toESM(require_clone(), 1);
|
|
@@ -2138,7 +2033,6 @@ function cleanParams_default(rawParams) {
|
|
|
2138
2033
|
});
|
|
2139
2034
|
return params;
|
|
2140
2035
|
}
|
|
2141
|
-
__name(cleanParams_default, "default");
|
|
2142
2036
|
|
|
2143
2037
|
// src/resolver/index.ts
|
|
2144
2038
|
import { generateId } from "@orion-js/helpers";
|
|
@@ -2152,7 +2046,6 @@ function cleanReturns_default(rawReturns) {
|
|
|
2152
2046
|
}
|
|
2153
2047
|
return rawReturns;
|
|
2154
2048
|
}
|
|
2155
|
-
__name(cleanReturns_default, "default");
|
|
2156
2049
|
|
|
2157
2050
|
// src/resolver/getArgs.ts
|
|
2158
2051
|
function getResolverArgs(...args) {
|
|
@@ -2173,7 +2066,6 @@ function getResolverArgs(...args) {
|
|
|
2173
2066
|
}
|
|
2174
2067
|
throw new Error("A resolver must be called with 2 parameters only");
|
|
2175
2068
|
}
|
|
2176
|
-
__name(getResolverArgs, "getResolverArgs");
|
|
2177
2069
|
|
|
2178
2070
|
// src/resolver/index.ts
|
|
2179
2071
|
function createResolver(options) {
|
|
@@ -2189,10 +2081,10 @@ function createResolver(options) {
|
|
|
2189
2081
|
options.middlewares = [];
|
|
2190
2082
|
}
|
|
2191
2083
|
const execute = getExecute(options);
|
|
2192
|
-
const resolve =
|
|
2084
|
+
const resolve = async (...args) => {
|
|
2193
2085
|
const params = getResolverArgs(...args);
|
|
2194
2086
|
return await execute(params);
|
|
2195
|
-
}
|
|
2087
|
+
};
|
|
2196
2088
|
const resolver2 = {
|
|
2197
2089
|
...options,
|
|
2198
2090
|
resolve,
|
|
@@ -2200,7 +2092,6 @@ function createResolver(options) {
|
|
|
2200
2092
|
};
|
|
2201
2093
|
return resolver2;
|
|
2202
2094
|
}
|
|
2203
|
-
__name(createResolver, "createResolver");
|
|
2204
2095
|
var resolver = createResolver;
|
|
2205
2096
|
var modelResolver = createResolver;
|
|
2206
2097
|
export {
|