@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.cjs
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
|
};
|
|
@@ -37,7 +36,6 @@ var require_listCacheClear = __commonJS({
|
|
|
37
36
|
this.__data__ = [];
|
|
38
37
|
this.size = 0;
|
|
39
38
|
}
|
|
40
|
-
__name(listCacheClear, "listCacheClear");
|
|
41
39
|
module2.exports = listCacheClear;
|
|
42
40
|
}
|
|
43
41
|
});
|
|
@@ -48,7 +46,6 @@ var require_eq = __commonJS({
|
|
|
48
46
|
function eq(value, other) {
|
|
49
47
|
return value === other || value !== value && other !== other;
|
|
50
48
|
}
|
|
51
|
-
__name(eq, "eq");
|
|
52
49
|
module2.exports = eq;
|
|
53
50
|
}
|
|
54
51
|
});
|
|
@@ -66,7 +63,6 @@ var require_assocIndexOf = __commonJS({
|
|
|
66
63
|
}
|
|
67
64
|
return -1;
|
|
68
65
|
}
|
|
69
|
-
__name(assocIndexOf, "assocIndexOf");
|
|
70
66
|
module2.exports = assocIndexOf;
|
|
71
67
|
}
|
|
72
68
|
});
|
|
@@ -91,7 +87,6 @@ var require_listCacheDelete = __commonJS({
|
|
|
91
87
|
--this.size;
|
|
92
88
|
return true;
|
|
93
89
|
}
|
|
94
|
-
__name(listCacheDelete, "listCacheDelete");
|
|
95
90
|
module2.exports = listCacheDelete;
|
|
96
91
|
}
|
|
97
92
|
});
|
|
@@ -104,7 +99,6 @@ var require_listCacheGet = __commonJS({
|
|
|
104
99
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
105
100
|
return index < 0 ? void 0 : data[index][1];
|
|
106
101
|
}
|
|
107
|
-
__name(listCacheGet, "listCacheGet");
|
|
108
102
|
module2.exports = listCacheGet;
|
|
109
103
|
}
|
|
110
104
|
});
|
|
@@ -116,7 +110,6 @@ var require_listCacheHas = __commonJS({
|
|
|
116
110
|
function listCacheHas(key) {
|
|
117
111
|
return assocIndexOf(this.__data__, key) > -1;
|
|
118
112
|
}
|
|
119
|
-
__name(listCacheHas, "listCacheHas");
|
|
120
113
|
module2.exports = listCacheHas;
|
|
121
114
|
}
|
|
122
115
|
});
|
|
@@ -129,16 +122,12 @@ var require_listCacheSet = __commonJS({
|
|
|
129
122
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
130
123
|
if (index < 0) {
|
|
131
124
|
++this.size;
|
|
132
|
-
data.push([
|
|
133
|
-
key,
|
|
134
|
-
value
|
|
135
|
-
]);
|
|
125
|
+
data.push([key, value]);
|
|
136
126
|
} else {
|
|
137
127
|
data[index][1] = value;
|
|
138
128
|
}
|
|
139
129
|
return this;
|
|
140
130
|
}
|
|
141
|
-
__name(listCacheSet, "listCacheSet");
|
|
142
131
|
module2.exports = listCacheSet;
|
|
143
132
|
}
|
|
144
133
|
});
|
|
@@ -159,7 +148,6 @@ var require_ListCache = __commonJS({
|
|
|
159
148
|
this.set(entry[0], entry[1]);
|
|
160
149
|
}
|
|
161
150
|
}
|
|
162
|
-
__name(ListCache, "ListCache");
|
|
163
151
|
ListCache.prototype.clear = listCacheClear;
|
|
164
152
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
165
153
|
ListCache.prototype.get = listCacheGet;
|
|
@@ -177,7 +165,6 @@ var require_stackClear = __commonJS({
|
|
|
177
165
|
this.__data__ = new ListCache();
|
|
178
166
|
this.size = 0;
|
|
179
167
|
}
|
|
180
|
-
__name(stackClear, "stackClear");
|
|
181
168
|
module2.exports = stackClear;
|
|
182
169
|
}
|
|
183
170
|
});
|
|
@@ -190,7 +177,6 @@ var require_stackDelete = __commonJS({
|
|
|
190
177
|
this.size = data.size;
|
|
191
178
|
return result;
|
|
192
179
|
}
|
|
193
|
-
__name(stackDelete, "stackDelete");
|
|
194
180
|
module2.exports = stackDelete;
|
|
195
181
|
}
|
|
196
182
|
});
|
|
@@ -201,7 +187,6 @@ var require_stackGet = __commonJS({
|
|
|
201
187
|
function stackGet(key) {
|
|
202
188
|
return this.__data__.get(key);
|
|
203
189
|
}
|
|
204
|
-
__name(stackGet, "stackGet");
|
|
205
190
|
module2.exports = stackGet;
|
|
206
191
|
}
|
|
207
192
|
});
|
|
@@ -212,7 +197,6 @@ var require_stackHas = __commonJS({
|
|
|
212
197
|
function stackHas(key) {
|
|
213
198
|
return this.__data__.has(key);
|
|
214
199
|
}
|
|
215
|
-
__name(stackHas, "stackHas");
|
|
216
200
|
module2.exports = stackHas;
|
|
217
201
|
}
|
|
218
202
|
});
|
|
@@ -269,7 +253,6 @@ var require_getRawTag = __commonJS({
|
|
|
269
253
|
}
|
|
270
254
|
return result;
|
|
271
255
|
}
|
|
272
|
-
__name(getRawTag, "getRawTag");
|
|
273
256
|
module2.exports = getRawTag;
|
|
274
257
|
}
|
|
275
258
|
});
|
|
@@ -282,7 +265,6 @@ var require_objectToString = __commonJS({
|
|
|
282
265
|
function objectToString(value) {
|
|
283
266
|
return nativeObjectToString.call(value);
|
|
284
267
|
}
|
|
285
|
-
__name(objectToString, "objectToString");
|
|
286
268
|
module2.exports = objectToString;
|
|
287
269
|
}
|
|
288
270
|
});
|
|
@@ -302,7 +284,6 @@ var require_baseGetTag = __commonJS({
|
|
|
302
284
|
}
|
|
303
285
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
304
286
|
}
|
|
305
|
-
__name(baseGetTag, "baseGetTag");
|
|
306
287
|
module2.exports = baseGetTag;
|
|
307
288
|
}
|
|
308
289
|
});
|
|
@@ -314,7 +295,6 @@ var require_isObject = __commonJS({
|
|
|
314
295
|
var type = typeof value;
|
|
315
296
|
return value != null && (type == "object" || type == "function");
|
|
316
297
|
}
|
|
317
|
-
__name(isObject, "isObject");
|
|
318
298
|
module2.exports = isObject;
|
|
319
299
|
}
|
|
320
300
|
});
|
|
@@ -335,7 +315,6 @@ var require_isFunction = __commonJS({
|
|
|
335
315
|
var tag = baseGetTag(value);
|
|
336
316
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
337
317
|
}
|
|
338
|
-
__name(isFunction, "isFunction");
|
|
339
318
|
module2.exports = isFunction;
|
|
340
319
|
}
|
|
341
320
|
});
|
|
@@ -360,7 +339,6 @@ var require_isMasked = __commonJS({
|
|
|
360
339
|
function isMasked(func) {
|
|
361
340
|
return !!maskSrcKey && maskSrcKey in func;
|
|
362
341
|
}
|
|
363
|
-
__name(isMasked, "isMasked");
|
|
364
342
|
module2.exports = isMasked;
|
|
365
343
|
}
|
|
366
344
|
});
|
|
@@ -383,7 +361,6 @@ var require_toSource = __commonJS({
|
|
|
383
361
|
}
|
|
384
362
|
return "";
|
|
385
363
|
}
|
|
386
|
-
__name(toSource, "toSource");
|
|
387
364
|
module2.exports = toSource;
|
|
388
365
|
}
|
|
389
366
|
});
|
|
@@ -401,7 +378,9 @@ var require_baseIsNative = __commonJS({
|
|
|
401
378
|
var objectProto = Object.prototype;
|
|
402
379
|
var funcToString = funcProto.toString;
|
|
403
380
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
404
|
-
var reIsNative = RegExp(
|
|
381
|
+
var reIsNative = RegExp(
|
|
382
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
383
|
+
);
|
|
405
384
|
function baseIsNative(value) {
|
|
406
385
|
if (!isObject(value) || isMasked(value)) {
|
|
407
386
|
return false;
|
|
@@ -409,7 +388,6 @@ var require_baseIsNative = __commonJS({
|
|
|
409
388
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
410
389
|
return pattern.test(toSource(value));
|
|
411
390
|
}
|
|
412
|
-
__name(baseIsNative, "baseIsNative");
|
|
413
391
|
module2.exports = baseIsNative;
|
|
414
392
|
}
|
|
415
393
|
});
|
|
@@ -420,7 +398,6 @@ var require_getValue = __commonJS({
|
|
|
420
398
|
function getValue(object, key) {
|
|
421
399
|
return object == null ? void 0 : object[key];
|
|
422
400
|
}
|
|
423
|
-
__name(getValue, "getValue");
|
|
424
401
|
module2.exports = getValue;
|
|
425
402
|
}
|
|
426
403
|
});
|
|
@@ -434,7 +411,6 @@ var require_getNative = __commonJS({
|
|
|
434
411
|
var value = getValue(object, key);
|
|
435
412
|
return baseIsNative(value) ? value : void 0;
|
|
436
413
|
}
|
|
437
|
-
__name(getNative, "getNative");
|
|
438
414
|
module2.exports = getNative;
|
|
439
415
|
}
|
|
440
416
|
});
|
|
@@ -466,7 +442,6 @@ var require_hashClear = __commonJS({
|
|
|
466
442
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
467
443
|
this.size = 0;
|
|
468
444
|
}
|
|
469
|
-
__name(hashClear, "hashClear");
|
|
470
445
|
module2.exports = hashClear;
|
|
471
446
|
}
|
|
472
447
|
});
|
|
@@ -479,7 +454,6 @@ var require_hashDelete = __commonJS({
|
|
|
479
454
|
this.size -= result ? 1 : 0;
|
|
480
455
|
return result;
|
|
481
456
|
}
|
|
482
|
-
__name(hashDelete, "hashDelete");
|
|
483
457
|
module2.exports = hashDelete;
|
|
484
458
|
}
|
|
485
459
|
});
|
|
@@ -499,7 +473,6 @@ var require_hashGet = __commonJS({
|
|
|
499
473
|
}
|
|
500
474
|
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
501
475
|
}
|
|
502
|
-
__name(hashGet, "hashGet");
|
|
503
476
|
module2.exports = hashGet;
|
|
504
477
|
}
|
|
505
478
|
});
|
|
@@ -514,7 +487,6 @@ var require_hashHas = __commonJS({
|
|
|
514
487
|
var data = this.__data__;
|
|
515
488
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
516
489
|
}
|
|
517
|
-
__name(hashHas, "hashHas");
|
|
518
490
|
module2.exports = hashHas;
|
|
519
491
|
}
|
|
520
492
|
});
|
|
@@ -530,7 +502,6 @@ var require_hashSet = __commonJS({
|
|
|
530
502
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
531
503
|
return this;
|
|
532
504
|
}
|
|
533
|
-
__name(hashSet, "hashSet");
|
|
534
505
|
module2.exports = hashSet;
|
|
535
506
|
}
|
|
536
507
|
});
|
|
@@ -551,7 +522,6 @@ var require_Hash = __commonJS({
|
|
|
551
522
|
this.set(entry[0], entry[1]);
|
|
552
523
|
}
|
|
553
524
|
}
|
|
554
|
-
__name(Hash, "Hash");
|
|
555
525
|
Hash.prototype.clear = hashClear;
|
|
556
526
|
Hash.prototype["delete"] = hashDelete;
|
|
557
527
|
Hash.prototype.get = hashGet;
|
|
@@ -575,7 +545,6 @@ var require_mapCacheClear = __commonJS({
|
|
|
575
545
|
"string": new Hash()
|
|
576
546
|
};
|
|
577
547
|
}
|
|
578
|
-
__name(mapCacheClear, "mapCacheClear");
|
|
579
548
|
module2.exports = mapCacheClear;
|
|
580
549
|
}
|
|
581
550
|
});
|
|
@@ -587,7 +556,6 @@ var require_isKeyable = __commonJS({
|
|
|
587
556
|
var type = typeof value;
|
|
588
557
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
589
558
|
}
|
|
590
|
-
__name(isKeyable, "isKeyable");
|
|
591
559
|
module2.exports = isKeyable;
|
|
592
560
|
}
|
|
593
561
|
});
|
|
@@ -600,7 +568,6 @@ var require_getMapData = __commonJS({
|
|
|
600
568
|
var data = map.__data__;
|
|
601
569
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
602
570
|
}
|
|
603
|
-
__name(getMapData, "getMapData");
|
|
604
571
|
module2.exports = getMapData;
|
|
605
572
|
}
|
|
606
573
|
});
|
|
@@ -614,7 +581,6 @@ var require_mapCacheDelete = __commonJS({
|
|
|
614
581
|
this.size -= result ? 1 : 0;
|
|
615
582
|
return result;
|
|
616
583
|
}
|
|
617
|
-
__name(mapCacheDelete, "mapCacheDelete");
|
|
618
584
|
module2.exports = mapCacheDelete;
|
|
619
585
|
}
|
|
620
586
|
});
|
|
@@ -626,7 +592,6 @@ var require_mapCacheGet = __commonJS({
|
|
|
626
592
|
function mapCacheGet(key) {
|
|
627
593
|
return getMapData(this, key).get(key);
|
|
628
594
|
}
|
|
629
|
-
__name(mapCacheGet, "mapCacheGet");
|
|
630
595
|
module2.exports = mapCacheGet;
|
|
631
596
|
}
|
|
632
597
|
});
|
|
@@ -638,7 +603,6 @@ var require_mapCacheHas = __commonJS({
|
|
|
638
603
|
function mapCacheHas(key) {
|
|
639
604
|
return getMapData(this, key).has(key);
|
|
640
605
|
}
|
|
641
|
-
__name(mapCacheHas, "mapCacheHas");
|
|
642
606
|
module2.exports = mapCacheHas;
|
|
643
607
|
}
|
|
644
608
|
});
|
|
@@ -653,7 +617,6 @@ var require_mapCacheSet = __commonJS({
|
|
|
653
617
|
this.size += data.size == size ? 0 : 1;
|
|
654
618
|
return this;
|
|
655
619
|
}
|
|
656
|
-
__name(mapCacheSet, "mapCacheSet");
|
|
657
620
|
module2.exports = mapCacheSet;
|
|
658
621
|
}
|
|
659
622
|
});
|
|
@@ -674,7 +637,6 @@ var require_MapCache = __commonJS({
|
|
|
674
637
|
this.set(entry[0], entry[1]);
|
|
675
638
|
}
|
|
676
639
|
}
|
|
677
|
-
__name(MapCache, "MapCache");
|
|
678
640
|
MapCache.prototype.clear = mapCacheClear;
|
|
679
641
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
680
642
|
MapCache.prototype.get = mapCacheGet;
|
|
@@ -696,10 +658,7 @@ var require_stackSet = __commonJS({
|
|
|
696
658
|
if (data instanceof ListCache) {
|
|
697
659
|
var pairs = data.__data__;
|
|
698
660
|
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
699
|
-
pairs.push([
|
|
700
|
-
key,
|
|
701
|
-
value
|
|
702
|
-
]);
|
|
661
|
+
pairs.push([key, value]);
|
|
703
662
|
this.size = ++data.size;
|
|
704
663
|
return this;
|
|
705
664
|
}
|
|
@@ -709,7 +668,6 @@ var require_stackSet = __commonJS({
|
|
|
709
668
|
this.size = data.size;
|
|
710
669
|
return this;
|
|
711
670
|
}
|
|
712
|
-
__name(stackSet, "stackSet");
|
|
713
671
|
module2.exports = stackSet;
|
|
714
672
|
}
|
|
715
673
|
});
|
|
@@ -727,7 +685,6 @@ var require_Stack = __commonJS({
|
|
|
727
685
|
var data = this.__data__ = new ListCache(entries);
|
|
728
686
|
this.size = data.size;
|
|
729
687
|
}
|
|
730
|
-
__name(Stack, "Stack");
|
|
731
688
|
Stack.prototype.clear = stackClear;
|
|
732
689
|
Stack.prototype["delete"] = stackDelete;
|
|
733
690
|
Stack.prototype.get = stackGet;
|
|
@@ -749,7 +706,6 @@ var require_arrayEach = __commonJS({
|
|
|
749
706
|
}
|
|
750
707
|
return array;
|
|
751
708
|
}
|
|
752
|
-
__name(arrayEach, "arrayEach");
|
|
753
709
|
module2.exports = arrayEach;
|
|
754
710
|
}
|
|
755
711
|
});
|
|
@@ -786,7 +742,6 @@ var require_baseAssignValue = __commonJS({
|
|
|
786
742
|
object[key] = value;
|
|
787
743
|
}
|
|
788
744
|
}
|
|
789
|
-
__name(baseAssignValue, "baseAssignValue");
|
|
790
745
|
module2.exports = baseAssignValue;
|
|
791
746
|
}
|
|
792
747
|
});
|
|
@@ -804,7 +759,6 @@ var require_assignValue = __commonJS({
|
|
|
804
759
|
baseAssignValue(object, key, value);
|
|
805
760
|
}
|
|
806
761
|
}
|
|
807
|
-
__name(assignValue, "assignValue");
|
|
808
762
|
module2.exports = assignValue;
|
|
809
763
|
}
|
|
810
764
|
});
|
|
@@ -832,7 +786,6 @@ var require_copyObject = __commonJS({
|
|
|
832
786
|
}
|
|
833
787
|
return object;
|
|
834
788
|
}
|
|
835
|
-
__name(copyObject, "copyObject");
|
|
836
789
|
module2.exports = copyObject;
|
|
837
790
|
}
|
|
838
791
|
});
|
|
@@ -847,7 +800,6 @@ var require_baseTimes = __commonJS({
|
|
|
847
800
|
}
|
|
848
801
|
return result;
|
|
849
802
|
}
|
|
850
|
-
__name(baseTimes, "baseTimes");
|
|
851
803
|
module2.exports = baseTimes;
|
|
852
804
|
}
|
|
853
805
|
});
|
|
@@ -858,7 +810,6 @@ var require_isObjectLike = __commonJS({
|
|
|
858
810
|
function isObjectLike(value) {
|
|
859
811
|
return value != null && typeof value == "object";
|
|
860
812
|
}
|
|
861
|
-
__name(isObjectLike, "isObjectLike");
|
|
862
813
|
module2.exports = isObjectLike;
|
|
863
814
|
}
|
|
864
815
|
});
|
|
@@ -872,7 +823,6 @@ var require_baseIsArguments = __commonJS({
|
|
|
872
823
|
function baseIsArguments(value) {
|
|
873
824
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
874
825
|
}
|
|
875
|
-
__name(baseIsArguments, "baseIsArguments");
|
|
876
826
|
module2.exports = baseIsArguments;
|
|
877
827
|
}
|
|
878
828
|
});
|
|
@@ -908,7 +858,6 @@ var require_stubFalse = __commonJS({
|
|
|
908
858
|
function stubFalse() {
|
|
909
859
|
return false;
|
|
910
860
|
}
|
|
911
|
-
__name(stubFalse, "stubFalse");
|
|
912
861
|
module2.exports = stubFalse;
|
|
913
862
|
}
|
|
914
863
|
});
|
|
@@ -936,9 +885,8 @@ var require_isIndex = __commonJS({
|
|
|
936
885
|
function isIndex(value, length) {
|
|
937
886
|
var type = typeof value;
|
|
938
887
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
939
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
888
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
940
889
|
}
|
|
941
|
-
__name(isIndex, "isIndex");
|
|
942
890
|
module2.exports = isIndex;
|
|
943
891
|
}
|
|
944
892
|
});
|
|
@@ -950,7 +898,6 @@ var require_isLength = __commonJS({
|
|
|
950
898
|
function isLength(value) {
|
|
951
899
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
952
900
|
}
|
|
953
|
-
__name(isLength, "isLength");
|
|
954
901
|
module2.exports = isLength;
|
|
955
902
|
}
|
|
956
903
|
});
|
|
@@ -991,7 +938,6 @@ var require_baseIsTypedArray = __commonJS({
|
|
|
991
938
|
function baseIsTypedArray(value) {
|
|
992
939
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
993
940
|
}
|
|
994
|
-
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
995
941
|
module2.exports = baseIsTypedArray;
|
|
996
942
|
}
|
|
997
943
|
});
|
|
@@ -1004,7 +950,6 @@ var require_baseUnary = __commonJS({
|
|
|
1004
950
|
return func(value);
|
|
1005
951
|
};
|
|
1006
952
|
}
|
|
1007
|
-
__name(baseUnary, "baseUnary");
|
|
1008
953
|
module2.exports = baseUnary;
|
|
1009
954
|
}
|
|
1010
955
|
});
|
|
@@ -1067,7 +1012,6 @@ var require_arrayLikeKeys = __commonJS({
|
|
|
1067
1012
|
}
|
|
1068
1013
|
return result;
|
|
1069
1014
|
}
|
|
1070
|
-
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
1071
1015
|
module2.exports = arrayLikeKeys;
|
|
1072
1016
|
}
|
|
1073
1017
|
});
|
|
@@ -1080,7 +1024,6 @@ var require_isPrototype = __commonJS({
|
|
|
1080
1024
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
1081
1025
|
return value === proto;
|
|
1082
1026
|
}
|
|
1083
|
-
__name(isPrototype, "isPrototype");
|
|
1084
1027
|
module2.exports = isPrototype;
|
|
1085
1028
|
}
|
|
1086
1029
|
});
|
|
@@ -1093,7 +1036,6 @@ var require_overArg = __commonJS({
|
|
|
1093
1036
|
return func(transform(arg));
|
|
1094
1037
|
};
|
|
1095
1038
|
}
|
|
1096
|
-
__name(overArg, "overArg");
|
|
1097
1039
|
module2.exports = overArg;
|
|
1098
1040
|
}
|
|
1099
1041
|
});
|
|
@@ -1126,7 +1068,6 @@ var require_baseKeys = __commonJS({
|
|
|
1126
1068
|
}
|
|
1127
1069
|
return result;
|
|
1128
1070
|
}
|
|
1129
|
-
__name(baseKeys, "baseKeys");
|
|
1130
1071
|
module2.exports = baseKeys;
|
|
1131
1072
|
}
|
|
1132
1073
|
});
|
|
@@ -1139,7 +1080,6 @@ var require_isArrayLike = __commonJS({
|
|
|
1139
1080
|
function isArrayLike(value) {
|
|
1140
1081
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
1141
1082
|
}
|
|
1142
|
-
__name(isArrayLike, "isArrayLike");
|
|
1143
1083
|
module2.exports = isArrayLike;
|
|
1144
1084
|
}
|
|
1145
1085
|
});
|
|
@@ -1153,7 +1093,6 @@ var require_keys = __commonJS({
|
|
|
1153
1093
|
function keys(object) {
|
|
1154
1094
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1155
1095
|
}
|
|
1156
|
-
__name(keys, "keys");
|
|
1157
1096
|
module2.exports = keys;
|
|
1158
1097
|
}
|
|
1159
1098
|
});
|
|
@@ -1166,7 +1105,6 @@ var require_baseAssign = __commonJS({
|
|
|
1166
1105
|
function baseAssign(object, source) {
|
|
1167
1106
|
return object && copyObject(source, keys(source), object);
|
|
1168
1107
|
}
|
|
1169
|
-
__name(baseAssign, "baseAssign");
|
|
1170
1108
|
module2.exports = baseAssign;
|
|
1171
1109
|
}
|
|
1172
1110
|
});
|
|
@@ -1183,7 +1121,6 @@ var require_nativeKeysIn = __commonJS({
|
|
|
1183
1121
|
}
|
|
1184
1122
|
return result;
|
|
1185
1123
|
}
|
|
1186
|
-
__name(nativeKeysIn, "nativeKeysIn");
|
|
1187
1124
|
module2.exports = nativeKeysIn;
|
|
1188
1125
|
}
|
|
1189
1126
|
});
|
|
@@ -1208,7 +1145,6 @@ var require_baseKeysIn = __commonJS({
|
|
|
1208
1145
|
}
|
|
1209
1146
|
return result;
|
|
1210
1147
|
}
|
|
1211
|
-
__name(baseKeysIn, "baseKeysIn");
|
|
1212
1148
|
module2.exports = baseKeysIn;
|
|
1213
1149
|
}
|
|
1214
1150
|
});
|
|
@@ -1222,7 +1158,6 @@ var require_keysIn = __commonJS({
|
|
|
1222
1158
|
function keysIn(object) {
|
|
1223
1159
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1224
1160
|
}
|
|
1225
|
-
__name(keysIn, "keysIn");
|
|
1226
1161
|
module2.exports = keysIn;
|
|
1227
1162
|
}
|
|
1228
1163
|
});
|
|
@@ -1235,7 +1170,6 @@ var require_baseAssignIn = __commonJS({
|
|
|
1235
1170
|
function baseAssignIn(object, source) {
|
|
1236
1171
|
return object && copyObject(source, keysIn(source), object);
|
|
1237
1172
|
}
|
|
1238
|
-
__name(baseAssignIn, "baseAssignIn");
|
|
1239
1173
|
module2.exports = baseAssignIn;
|
|
1240
1174
|
}
|
|
1241
1175
|
});
|
|
@@ -1257,7 +1191,6 @@ var require_cloneBuffer = __commonJS({
|
|
|
1257
1191
|
buffer.copy(result);
|
|
1258
1192
|
return result;
|
|
1259
1193
|
}
|
|
1260
|
-
__name(cloneBuffer, "cloneBuffer");
|
|
1261
1194
|
module2.exports = cloneBuffer;
|
|
1262
1195
|
}
|
|
1263
1196
|
});
|
|
@@ -1273,7 +1206,6 @@ var require_copyArray = __commonJS({
|
|
|
1273
1206
|
}
|
|
1274
1207
|
return array;
|
|
1275
1208
|
}
|
|
1276
|
-
__name(copyArray, "copyArray");
|
|
1277
1209
|
module2.exports = copyArray;
|
|
1278
1210
|
}
|
|
1279
1211
|
});
|
|
@@ -1291,7 +1223,6 @@ var require_arrayFilter = __commonJS({
|
|
|
1291
1223
|
}
|
|
1292
1224
|
return result;
|
|
1293
1225
|
}
|
|
1294
|
-
__name(arrayFilter, "arrayFilter");
|
|
1295
1226
|
module2.exports = arrayFilter;
|
|
1296
1227
|
}
|
|
1297
1228
|
});
|
|
@@ -1302,7 +1233,6 @@ var require_stubArray = __commonJS({
|
|
|
1302
1233
|
function stubArray() {
|
|
1303
1234
|
return [];
|
|
1304
1235
|
}
|
|
1305
|
-
__name(stubArray, "stubArray");
|
|
1306
1236
|
module2.exports = stubArray;
|
|
1307
1237
|
}
|
|
1308
1238
|
});
|
|
@@ -1336,7 +1266,6 @@ var require_copySymbols = __commonJS({
|
|
|
1336
1266
|
function copySymbols(source, object) {
|
|
1337
1267
|
return copyObject(source, getSymbols(source), object);
|
|
1338
1268
|
}
|
|
1339
|
-
__name(copySymbols, "copySymbols");
|
|
1340
1269
|
module2.exports = copySymbols;
|
|
1341
1270
|
}
|
|
1342
1271
|
});
|
|
@@ -1351,7 +1280,6 @@ var require_arrayPush = __commonJS({
|
|
|
1351
1280
|
}
|
|
1352
1281
|
return array;
|
|
1353
1282
|
}
|
|
1354
|
-
__name(arrayPush, "arrayPush");
|
|
1355
1283
|
module2.exports = arrayPush;
|
|
1356
1284
|
}
|
|
1357
1285
|
});
|
|
@@ -1393,7 +1321,6 @@ var require_copySymbolsIn = __commonJS({
|
|
|
1393
1321
|
function copySymbolsIn(source, object) {
|
|
1394
1322
|
return copyObject(source, getSymbolsIn(source), object);
|
|
1395
1323
|
}
|
|
1396
|
-
__name(copySymbolsIn, "copySymbolsIn");
|
|
1397
1324
|
module2.exports = copySymbolsIn;
|
|
1398
1325
|
}
|
|
1399
1326
|
});
|
|
@@ -1407,7 +1334,6 @@ var require_baseGetAllKeys = __commonJS({
|
|
|
1407
1334
|
var result = keysFunc(object);
|
|
1408
1335
|
return isArray3(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1409
1336
|
}
|
|
1410
|
-
__name(baseGetAllKeys, "baseGetAllKeys");
|
|
1411
1337
|
module2.exports = baseGetAllKeys;
|
|
1412
1338
|
}
|
|
1413
1339
|
});
|
|
@@ -1421,7 +1347,6 @@ var require_getAllKeys = __commonJS({
|
|
|
1421
1347
|
function getAllKeys(object) {
|
|
1422
1348
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1423
1349
|
}
|
|
1424
|
-
__name(getAllKeys, "getAllKeys");
|
|
1425
1350
|
module2.exports = getAllKeys;
|
|
1426
1351
|
}
|
|
1427
1352
|
});
|
|
@@ -1435,7 +1360,6 @@ var require_getAllKeysIn = __commonJS({
|
|
|
1435
1360
|
function getAllKeysIn(object) {
|
|
1436
1361
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1437
1362
|
}
|
|
1438
|
-
__name(getAllKeysIn, "getAllKeysIn");
|
|
1439
1363
|
module2.exports = getAllKeysIn;
|
|
1440
1364
|
}
|
|
1441
1365
|
});
|
|
@@ -1503,7 +1427,7 @@ var require_getTag = __commonJS({
|
|
|
1503
1427
|
var weakMapCtorString = toSource(WeakMap);
|
|
1504
1428
|
var getTag = baseGetTag;
|
|
1505
1429
|
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) {
|
|
1506
|
-
getTag =
|
|
1430
|
+
getTag = function(value) {
|
|
1507
1431
|
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1508
1432
|
if (ctorString) {
|
|
1509
1433
|
switch (ctorString) {
|
|
@@ -1520,7 +1444,7 @@ var require_getTag = __commonJS({
|
|
|
1520
1444
|
}
|
|
1521
1445
|
}
|
|
1522
1446
|
return result;
|
|
1523
|
-
}
|
|
1447
|
+
};
|
|
1524
1448
|
}
|
|
1525
1449
|
module2.exports = getTag;
|
|
1526
1450
|
}
|
|
@@ -1539,7 +1463,6 @@ var require_initCloneArray = __commonJS({
|
|
|
1539
1463
|
}
|
|
1540
1464
|
return result;
|
|
1541
1465
|
}
|
|
1542
|
-
__name(initCloneArray, "initCloneArray");
|
|
1543
1466
|
module2.exports = initCloneArray;
|
|
1544
1467
|
}
|
|
1545
1468
|
});
|
|
@@ -1562,7 +1485,6 @@ var require_cloneArrayBuffer = __commonJS({
|
|
|
1562
1485
|
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
1563
1486
|
return result;
|
|
1564
1487
|
}
|
|
1565
|
-
__name(cloneArrayBuffer, "cloneArrayBuffer");
|
|
1566
1488
|
module2.exports = cloneArrayBuffer;
|
|
1567
1489
|
}
|
|
1568
1490
|
});
|
|
@@ -1575,7 +1497,6 @@ var require_cloneDataView = __commonJS({
|
|
|
1575
1497
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1576
1498
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1577
1499
|
}
|
|
1578
|
-
__name(cloneDataView, "cloneDataView");
|
|
1579
1500
|
module2.exports = cloneDataView;
|
|
1580
1501
|
}
|
|
1581
1502
|
});
|
|
@@ -1589,7 +1510,6 @@ var require_cloneRegExp = __commonJS({
|
|
|
1589
1510
|
result.lastIndex = regexp.lastIndex;
|
|
1590
1511
|
return result;
|
|
1591
1512
|
}
|
|
1592
|
-
__name(cloneRegExp, "cloneRegExp");
|
|
1593
1513
|
module2.exports = cloneRegExp;
|
|
1594
1514
|
}
|
|
1595
1515
|
});
|
|
@@ -1603,7 +1523,6 @@ var require_cloneSymbol = __commonJS({
|
|
|
1603
1523
|
function cloneSymbol(symbol) {
|
|
1604
1524
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1605
1525
|
}
|
|
1606
|
-
__name(cloneSymbol, "cloneSymbol");
|
|
1607
1526
|
module2.exports = cloneSymbol;
|
|
1608
1527
|
}
|
|
1609
1528
|
});
|
|
@@ -1616,7 +1535,6 @@ var require_cloneTypedArray = __commonJS({
|
|
|
1616
1535
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1617
1536
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1618
1537
|
}
|
|
1619
|
-
__name(cloneTypedArray, "cloneTypedArray");
|
|
1620
1538
|
module2.exports = cloneTypedArray;
|
|
1621
1539
|
}
|
|
1622
1540
|
});
|
|
@@ -1681,7 +1599,6 @@ var require_initCloneByTag = __commonJS({
|
|
|
1681
1599
|
return cloneSymbol(object);
|
|
1682
1600
|
}
|
|
1683
1601
|
}
|
|
1684
|
-
__name(initCloneByTag, "initCloneByTag");
|
|
1685
1602
|
module2.exports = initCloneByTag;
|
|
1686
1603
|
}
|
|
1687
1604
|
});
|
|
@@ -1694,7 +1611,6 @@ var require_baseCreate = __commonJS({
|
|
|
1694
1611
|
var baseCreate = /* @__PURE__ */ function() {
|
|
1695
1612
|
function object() {
|
|
1696
1613
|
}
|
|
1697
|
-
__name(object, "object");
|
|
1698
1614
|
return function(proto) {
|
|
1699
1615
|
if (!isObject(proto)) {
|
|
1700
1616
|
return {};
|
|
@@ -1721,7 +1637,6 @@ var require_initCloneObject = __commonJS({
|
|
|
1721
1637
|
function initCloneObject(object) {
|
|
1722
1638
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1723
1639
|
}
|
|
1724
|
-
__name(initCloneObject, "initCloneObject");
|
|
1725
1640
|
module2.exports = initCloneObject;
|
|
1726
1641
|
}
|
|
1727
1642
|
});
|
|
@@ -1735,7 +1650,6 @@ var require_baseIsMap = __commonJS({
|
|
|
1735
1650
|
function baseIsMap(value) {
|
|
1736
1651
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
1737
1652
|
}
|
|
1738
|
-
__name(baseIsMap, "baseIsMap");
|
|
1739
1653
|
module2.exports = baseIsMap;
|
|
1740
1654
|
}
|
|
1741
1655
|
});
|
|
@@ -1761,7 +1675,6 @@ var require_baseIsSet = __commonJS({
|
|
|
1761
1675
|
function baseIsSet(value) {
|
|
1762
1676
|
return isObjectLike(value) && getTag(value) == setTag;
|
|
1763
1677
|
}
|
|
1764
|
-
__name(baseIsSet, "baseIsSet");
|
|
1765
1678
|
module2.exports = baseIsSet;
|
|
1766
1679
|
}
|
|
1767
1680
|
});
|
|
@@ -1895,7 +1808,6 @@ var require_baseClone = __commonJS({
|
|
|
1895
1808
|
});
|
|
1896
1809
|
return result;
|
|
1897
1810
|
}
|
|
1898
|
-
__name(baseClone, "baseClone");
|
|
1899
1811
|
module2.exports = baseClone;
|
|
1900
1812
|
}
|
|
1901
1813
|
});
|
|
@@ -1908,7 +1820,6 @@ var require_clone = __commonJS({
|
|
|
1908
1820
|
function clone3(value) {
|
|
1909
1821
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
1910
1822
|
}
|
|
1911
|
-
__name(clone3, "clone");
|
|
1912
1823
|
module2.exports = clone3;
|
|
1913
1824
|
}
|
|
1914
1825
|
});
|
|
@@ -1919,7 +1830,6 @@ var require_isNil = __commonJS({
|
|
|
1919
1830
|
function isNil2(value) {
|
|
1920
1831
|
return value == null;
|
|
1921
1832
|
}
|
|
1922
|
-
__name(isNil2, "isNil");
|
|
1923
1833
|
module2.exports = isNil2;
|
|
1924
1834
|
}
|
|
1925
1835
|
});
|
|
@@ -1941,17 +1851,17 @@ module.exports = __toCommonJS(index_exports);
|
|
|
1941
1851
|
// src/resolver/permisionsCheckers.ts
|
|
1942
1852
|
var import_helpers = require("@orion-js/helpers");
|
|
1943
1853
|
global.checkers = [];
|
|
1944
|
-
var addPermissionChecker =
|
|
1854
|
+
var addPermissionChecker = function(func) {
|
|
1945
1855
|
global.checkers.push(func);
|
|
1946
|
-
}
|
|
1947
|
-
var checkPermissions =
|
|
1856
|
+
};
|
|
1857
|
+
var checkPermissions = async function(options) {
|
|
1948
1858
|
for (const checker of global.checkers) {
|
|
1949
1859
|
const errorMessage = await checker(options);
|
|
1950
1860
|
if (errorMessage) {
|
|
1951
1861
|
throw new import_helpers.PermissionsError(errorMessage);
|
|
1952
1862
|
}
|
|
1953
1863
|
}
|
|
1954
|
-
}
|
|
1864
|
+
};
|
|
1955
1865
|
|
|
1956
1866
|
// src/resolver/getExecute/checkPermissions.ts
|
|
1957
1867
|
var import_helpers2 = require("@orion-js/helpers");
|
|
@@ -1966,21 +1876,20 @@ async function checkPermissions_default(executeOptions, options) {
|
|
|
1966
1876
|
info
|
|
1967
1877
|
});
|
|
1968
1878
|
if (options.checkPermission) {
|
|
1969
|
-
const execute =
|
|
1879
|
+
const execute = async () => {
|
|
1970
1880
|
if (parent) {
|
|
1971
1881
|
const checker2 = options.checkPermission;
|
|
1972
1882
|
return checker2(parent, params, viewer, info);
|
|
1973
1883
|
}
|
|
1974
1884
|
const checker = options.checkPermission;
|
|
1975
1885
|
return checker(params, viewer, info);
|
|
1976
|
-
}
|
|
1886
|
+
};
|
|
1977
1887
|
const error = await execute();
|
|
1978
1888
|
if (error) {
|
|
1979
1889
|
throw new import_helpers2.PermissionsError(error);
|
|
1980
1890
|
}
|
|
1981
1891
|
}
|
|
1982
1892
|
}
|
|
1983
|
-
__name(checkPermissions_default, "default");
|
|
1984
1893
|
|
|
1985
1894
|
// src/resolver/getExecute/getSchema.ts
|
|
1986
1895
|
var import_clone = __toESM(require_clone(), 1);
|
|
@@ -1991,9 +1900,7 @@ function getSchema_default(resolverParams) {
|
|
|
1991
1900
|
const field = (0, import_clone.default)(resolverParams[key]);
|
|
1992
1901
|
const isArrayOfModel = (0, import_isArray.default)(field.type) && field.type[0].__isModel;
|
|
1993
1902
|
if (isArrayOfModel) {
|
|
1994
|
-
field.type = [
|
|
1995
|
-
field.type[0].getSchema()
|
|
1996
|
-
];
|
|
1903
|
+
field.type = [field.type[0].getSchema()];
|
|
1997
1904
|
} else if (field.type.__isModel) {
|
|
1998
1905
|
field.type = field.type.getSchema();
|
|
1999
1906
|
}
|
|
@@ -2001,7 +1908,6 @@ function getSchema_default(resolverParams) {
|
|
|
2001
1908
|
}
|
|
2002
1909
|
return schema;
|
|
2003
1910
|
}
|
|
2004
|
-
__name(getSchema_default, "default");
|
|
2005
1911
|
|
|
2006
1912
|
// src/resolver/getExecute/cleanAndValidate.ts
|
|
2007
1913
|
var import_schema = require("@orion-js/schema");
|
|
@@ -2020,7 +1926,6 @@ async function cleanAndValidate_default({ params, callParams }) {
|
|
|
2020
1926
|
return callParams;
|
|
2021
1927
|
}
|
|
2022
1928
|
}
|
|
2023
|
-
__name(cleanAndValidate_default, "default");
|
|
2024
1929
|
|
|
2025
1930
|
// src/resolver/getExecute/initResult.ts
|
|
2026
1931
|
var import_isArray2 = __toESM(require_isArray(), 1);
|
|
@@ -2046,7 +1951,6 @@ function initResult_default(options, result) {
|
|
|
2046
1951
|
return result;
|
|
2047
1952
|
}
|
|
2048
1953
|
}
|
|
2049
|
-
__name(initResult_default, "default");
|
|
2050
1954
|
|
|
2051
1955
|
// src/resolver/getExecute/getResultWithMiddlewares.ts
|
|
2052
1956
|
var import_helpers4 = require("@orion-js/helpers");
|
|
@@ -2055,11 +1959,10 @@ var import_helpers4 = require("@orion-js/helpers");
|
|
|
2055
1959
|
function createResolverMiddleware(middleware) {
|
|
2056
1960
|
return middleware;
|
|
2057
1961
|
}
|
|
2058
|
-
__name(createResolverMiddleware, "createResolverMiddleware");
|
|
2059
1962
|
|
|
2060
1963
|
// src/resolver/getExecute/getCacheKey.ts
|
|
2061
1964
|
var import_helpers3 = require("@orion-js/helpers");
|
|
2062
|
-
var getBaseKey =
|
|
1965
|
+
var getBaseKey = async (executeOptions) => {
|
|
2063
1966
|
const { parent, params, viewer, info, options } = executeOptions;
|
|
2064
1967
|
if (parent) {
|
|
2065
1968
|
const getKey2 = options.getCacheKey;
|
|
@@ -2067,32 +1970,27 @@ var getBaseKey = /* @__PURE__ */ __name(async (executeOptions) => {
|
|
|
2067
1970
|
}
|
|
2068
1971
|
const getKey = options.getCacheKey;
|
|
2069
1972
|
return await getKey(params, viewer, info);
|
|
2070
|
-
}
|
|
1973
|
+
};
|
|
2071
1974
|
async function getCacheKey_default(executeOptions) {
|
|
2072
1975
|
const { parent, params, options } = executeOptions;
|
|
2073
1976
|
if (options.getCacheKey) {
|
|
2074
1977
|
const baseKey = await getBaseKey(executeOptions);
|
|
2075
1978
|
return `${options.resolverId}_${baseKey}`;
|
|
2076
1979
|
}
|
|
2077
|
-
const key = (0, import_helpers3.hashObject)({
|
|
2078
|
-
parent,
|
|
2079
|
-
params,
|
|
2080
|
-
resolverId: options.resolverId
|
|
2081
|
-
});
|
|
1980
|
+
const key = (0, import_helpers3.hashObject)({ parent, params, resolverId: options.resolverId });
|
|
2082
1981
|
return key;
|
|
2083
1982
|
}
|
|
2084
|
-
__name(getCacheKey_default, "default");
|
|
2085
1983
|
|
|
2086
1984
|
// src/resolver/getExecute/getResult.ts
|
|
2087
1985
|
async function getResult_default(executeOptions) {
|
|
2088
1986
|
const { parent, params, viewer, info, options } = executeOptions;
|
|
2089
|
-
const executeResolver =
|
|
1987
|
+
const executeResolver = async () => {
|
|
2090
1988
|
const resultFunc = options.resolve;
|
|
2091
1989
|
if (parent) {
|
|
2092
1990
|
return await resultFunc(parent, params, viewer, info);
|
|
2093
1991
|
}
|
|
2094
1992
|
return await resultFunc(params, viewer, info);
|
|
2095
|
-
}
|
|
1993
|
+
};
|
|
2096
1994
|
if (options.cache && options.cacheProvider) {
|
|
2097
1995
|
const key = await getCacheKey_default(executeOptions);
|
|
2098
1996
|
const result = await options.cacheProvider.get(key, {
|
|
@@ -2103,7 +2001,6 @@ async function getResult_default(executeOptions) {
|
|
|
2103
2001
|
}
|
|
2104
2002
|
return await executeResolver();
|
|
2105
2003
|
}
|
|
2106
|
-
__name(getResult_default, "default");
|
|
2107
2004
|
|
|
2108
2005
|
// src/resolver/getExecute/getResultWithMiddlewares.ts
|
|
2109
2006
|
async function getResultWithMiddlewares(executeOptions) {
|
|
@@ -2116,11 +2013,10 @@ async function getResultWithMiddlewares(executeOptions) {
|
|
|
2116
2013
|
]);
|
|
2117
2014
|
return await composedMiddlewares(executeOptions);
|
|
2118
2015
|
}
|
|
2119
|
-
__name(getResultWithMiddlewares, "getResultWithMiddlewares");
|
|
2120
2016
|
|
|
2121
2017
|
// src/resolver/getExecute/index.ts
|
|
2122
2018
|
function getExecute(options) {
|
|
2123
|
-
const execute =
|
|
2019
|
+
const execute = async (executeParams) => {
|
|
2124
2020
|
const executeOptions = {
|
|
2125
2021
|
params: await cleanAndValidate_default({
|
|
2126
2022
|
params: options.params,
|
|
@@ -2134,10 +2030,9 @@ function getExecute(options) {
|
|
|
2134
2030
|
await checkPermissions_default(executeOptions, options);
|
|
2135
2031
|
const result = await getResultWithMiddlewares(executeOptions);
|
|
2136
2032
|
return initResult_default(options, result);
|
|
2137
|
-
}
|
|
2033
|
+
};
|
|
2138
2034
|
return execute;
|
|
2139
2035
|
}
|
|
2140
|
-
__name(getExecute, "getExecute");
|
|
2141
2036
|
|
|
2142
2037
|
// src/resolver/cleanParams.ts
|
|
2143
2038
|
var import_clone2 = __toESM(require_clone(), 1);
|
|
@@ -2157,7 +2052,6 @@ function cleanParams_default(rawParams) {
|
|
|
2157
2052
|
});
|
|
2158
2053
|
return params;
|
|
2159
2054
|
}
|
|
2160
|
-
__name(cleanParams_default, "default");
|
|
2161
2055
|
|
|
2162
2056
|
// src/resolver/index.ts
|
|
2163
2057
|
var import_helpers5 = require("@orion-js/helpers");
|
|
@@ -2171,7 +2065,6 @@ function cleanReturns_default(rawReturns) {
|
|
|
2171
2065
|
}
|
|
2172
2066
|
return rawReturns;
|
|
2173
2067
|
}
|
|
2174
|
-
__name(cleanReturns_default, "default");
|
|
2175
2068
|
|
|
2176
2069
|
// src/resolver/getArgs.ts
|
|
2177
2070
|
function getResolverArgs(...args) {
|
|
@@ -2192,7 +2085,6 @@ function getResolverArgs(...args) {
|
|
|
2192
2085
|
}
|
|
2193
2086
|
throw new Error("A resolver must be called with 2 parameters only");
|
|
2194
2087
|
}
|
|
2195
|
-
__name(getResolverArgs, "getResolverArgs");
|
|
2196
2088
|
|
|
2197
2089
|
// src/resolver/index.ts
|
|
2198
2090
|
function createResolver(options) {
|
|
@@ -2208,10 +2100,10 @@ function createResolver(options) {
|
|
|
2208
2100
|
options.middlewares = [];
|
|
2209
2101
|
}
|
|
2210
2102
|
const execute = getExecute(options);
|
|
2211
|
-
const resolve =
|
|
2103
|
+
const resolve = async (...args) => {
|
|
2212
2104
|
const params = getResolverArgs(...args);
|
|
2213
2105
|
return await execute(params);
|
|
2214
|
-
}
|
|
2106
|
+
};
|
|
2215
2107
|
const resolver2 = {
|
|
2216
2108
|
...options,
|
|
2217
2109
|
resolve,
|
|
@@ -2219,7 +2111,6 @@ function createResolver(options) {
|
|
|
2219
2111
|
};
|
|
2220
2112
|
return resolver2;
|
|
2221
2113
|
}
|
|
2222
|
-
__name(createResolver, "createResolver");
|
|
2223
2114
|
var resolver = createResolver;
|
|
2224
2115
|
var modelResolver = createResolver;
|
|
2225
2116
|
// Annotate the CommonJS export names for ESM import in node:
|