@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.mjs
CHANGED
|
@@ -180,7 +180,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region package.json
|
|
183
|
-
var version = "0.23.
|
|
183
|
+
var version = "0.23.2";
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region lib/helpers/mergeFilters.ts
|
|
186
186
|
function mergeFilters(filterA, filterB, mode = "AND") {
|
|
@@ -676,7 +676,8 @@ by: (explicitFilter) => {
|
|
|
676
676
|
* Merges the current query filters with the provided filters for this call only
|
|
677
677
|
*/
|
|
678
678
|
function merge(p) {
|
|
679
|
-
|
|
679
|
+
const merged = mergeFilters(ret.query.many, p);
|
|
680
|
+
return internalTransformer(merged, p.limit);
|
|
680
681
|
}
|
|
681
682
|
ret.merge = merge;
|
|
682
683
|
return ret;
|
|
@@ -726,13 +727,14 @@ by: (explicitFilter) => {
|
|
|
726
727
|
"rumble.table": tableName.toString(),
|
|
727
728
|
"rumble.action": action
|
|
728
729
|
};
|
|
729
|
-
const
|
|
730
|
+
const proxy = new Proxy(span, { get(target, prop) {
|
|
730
731
|
if (prop === "setAttribute") return (k, v) => {
|
|
731
732
|
attrs[k] = v;
|
|
732
733
|
return target.setAttribute(k, v);
|
|
733
734
|
};
|
|
734
735
|
return target[prop];
|
|
735
|
-
} })
|
|
736
|
+
} });
|
|
737
|
+
const result = assembleAbilities(proxy);
|
|
736
738
|
log?.debug(attrs, "abilities prepared");
|
|
737
739
|
return result;
|
|
738
740
|
} finally {
|
|
@@ -1068,10 +1070,11 @@ const createWhereArgImplementer = ({ db, schemaBuilder, enumImplementer }) => {
|
|
|
1068
1070
|
}, {});
|
|
1069
1071
|
const relations = Object.entries(tableSchema.relations ?? {}).reduce((acc, [key, value]) => {
|
|
1070
1072
|
const targetTsName = value.targetTableName;
|
|
1071
|
-
const
|
|
1073
|
+
const relationSchema = tableHelper({
|
|
1072
1074
|
db,
|
|
1073
1075
|
table: targetTsName
|
|
1074
|
-
})
|
|
1076
|
+
});
|
|
1077
|
+
const referenceModel = whereArgImplementer({ dbName: relationSchema.dbName });
|
|
1075
1078
|
acc[key] = t.field({
|
|
1076
1079
|
type: referenceModel,
|
|
1077
1080
|
required: false
|