@m1212e/rumble 0.27.4 → 0.27.5

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 CHANGED
@@ -1208,11 +1208,11 @@ function createInputGuard({ db, abilities, readActionOf }) {
1208
1208
  db,
1209
1209
  table
1210
1210
  });
1211
- return (aliased, { asc, desc }) => entries.map(([key, direction]) => {
1211
+ return (aliased, { asc, desc }) => entries.filter(([key]) => visibility(key) !== false).map(([key, direction]) => {
1212
1212
  const condition = visibility(key);
1213
1213
  const column = aliased[key];
1214
- const value = condition === true ? column : condition === false ? null : drizzle_orm.sql`case when ${(0, drizzle_orm.relationsFilterToSQL)(aliased, sanitizeFilterValue(condition), schema.relations, db._.relations)} then ${column} end`;
1215
- return (direction === "asc" ? asc : desc)(value ?? drizzle_orm.sql`null`);
1214
+ const value = condition === true ? column : drizzle_orm.sql`case when ${(0, drizzle_orm.relationsFilterToSQL)(aliased, sanitizeFilterValue(condition), schema.relations, db._.relations)} then ${column} end`;
1215
+ return (direction === "asc" ? asc : desc)(value);
1216
1216
  });
1217
1217
  };
1218
1218
  return {
@@ -1556,7 +1556,7 @@ function mapNullFieldsToUndefined(obj) {
1556
1556
  return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, value === null ? void 0 : value]));
1557
1557
  }
1558
1558
  // package.json
1559
- var version = "0.27.4";
1559
+ var version = "0.27.5";
1560
1560
  // lib/args/orderArg.ts
1561
1561
  const makeDefaultName$1 = (dbName) => `${(0, es_toolkit.capitalize)((0, drizzle_orm_casing.toCamelCase)(dbName.toString()))}OrderInputArgument`;
1562
1562
  const createOrderArgImplementer = ({ db, schemaBuilder }) => {