@m1212e/rumble 0.23.0 → 0.23.2
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 +9 -6
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +3 -3
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +3 -3
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +9 -6
- package/out/index.mjs.map +1 -1
- package/package.json +19 -19
package/out/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
208
208
|
}
|
|
209
209
|
//#endregion
|
|
210
210
|
//#region package.json
|
|
211
|
-
var version = "0.23.
|
|
211
|
+
var version = "0.23.2";
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region lib/helpers/mergeFilters.ts
|
|
214
214
|
function mergeFilters(filterA, filterB, mode = "AND") {
|
|
@@ -704,7 +704,8 @@ by: (explicitFilter) => {
|
|
|
704
704
|
* Merges the current query filters with the provided filters for this call only
|
|
705
705
|
*/
|
|
706
706
|
function merge(p) {
|
|
707
|
-
|
|
707
|
+
const merged = mergeFilters(ret.query.many, p);
|
|
708
|
+
return internalTransformer(merged, p.limit);
|
|
708
709
|
}
|
|
709
710
|
ret.merge = merge;
|
|
710
711
|
return ret;
|
|
@@ -754,13 +755,14 @@ by: (explicitFilter) => {
|
|
|
754
755
|
"rumble.table": tableName.toString(),
|
|
755
756
|
"rumble.action": action
|
|
756
757
|
};
|
|
757
|
-
const
|
|
758
|
+
const proxy = new Proxy(span, { get(target, prop) {
|
|
758
759
|
if (prop === "setAttribute") return (k, v) => {
|
|
759
760
|
attrs[k] = v;
|
|
760
761
|
return target.setAttribute(k, v);
|
|
761
762
|
};
|
|
762
763
|
return target[prop];
|
|
763
|
-
} })
|
|
764
|
+
} });
|
|
765
|
+
const result = assembleAbilities(proxy);
|
|
764
766
|
log?.debug(attrs, "abilities prepared");
|
|
765
767
|
return result;
|
|
766
768
|
} finally {
|
|
@@ -1096,10 +1098,11 @@ const createWhereArgImplementer = ({ db, schemaBuilder, enumImplementer }) => {
|
|
|
1096
1098
|
}, {});
|
|
1097
1099
|
const relations = Object.entries(tableSchema.relations ?? {}).reduce((acc, [key, value]) => {
|
|
1098
1100
|
const targetTsName = value.targetTableName;
|
|
1099
|
-
const
|
|
1101
|
+
const relationSchema = tableHelper({
|
|
1100
1102
|
db,
|
|
1101
1103
|
table: targetTsName
|
|
1102
|
-
})
|
|
1104
|
+
});
|
|
1105
|
+
const referenceModel = whereArgImplementer({ dbName: relationSchema.dbName });
|
|
1103
1106
|
acc[key] = t.field({
|
|
1104
1107
|
type: referenceModel,
|
|
1105
1108
|
required: false
|