@m1212e/rumble 0.16.19 → 0.16.20
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/out/index.cjs +6 -9
- package/out/index.cjs.map +1 -1
- package/out/index.mjs +6 -9
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.cjs
CHANGED
|
@@ -218,7 +218,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
218
218
|
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region package.json
|
|
221
|
-
var version = "0.16.
|
|
221
|
+
var version = "0.16.20";
|
|
222
222
|
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region lib/helpers/mergeFilters.ts
|
|
@@ -1470,15 +1470,12 @@ var RuntimeFiltersPlugin = class extends _pothos_core.BasePlugin {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
wrapResolve(resolver, fieldConfig) {
|
|
1472
1472
|
return async (parent, args, context, info) => {
|
|
1473
|
+
let filters;
|
|
1474
|
+
const fieldType = fieldConfig?.type;
|
|
1475
|
+
if (fieldType.kind === "List") filters = fieldType.type?.ref.currentConfig.pothosOptions[applyFiltersKey];
|
|
1476
|
+
else if (fieldType.kind === "Object") filters = fieldType.ref.currentConfig.pothosOptions[applyFiltersKey];
|
|
1477
|
+
if (!filters || !Array.isArray(filters) || filters.length === 0) return resolver(parent, args, context, info);
|
|
1473
1478
|
const runFilters = async (span) => {
|
|
1474
|
-
let filters;
|
|
1475
|
-
const fieldType = fieldConfig?.type;
|
|
1476
|
-
if (fieldType.kind === "List") filters = fieldType.type?.ref.currentConfig.pothosOptions[applyFiltersKey];
|
|
1477
|
-
else if (fieldType.kind === "Object") filters = fieldType.ref.currentConfig.pothosOptions[applyFiltersKey];
|
|
1478
|
-
if (!filters || !Array.isArray(filters) || filters.length === 0) {
|
|
1479
|
-
span?.setAttribute("filters.status", "unrestricted");
|
|
1480
|
-
return resolver(parent, args, context, info);
|
|
1481
|
-
}
|
|
1482
1479
|
const resolved = await resolver(parent, args, context, info);
|
|
1483
1480
|
const allResolvedValues = Array.isArray(resolved) ? resolved : [resolved];
|
|
1484
1481
|
const allFilters = Array.isArray(filters) ? filters : [filters];
|