inibase 1.0.0-rc.51 → 1.0.0-rc.52
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -573,7 +573,7 @@ export default class Inibase {
|
|
|
573
573
|
if (searchResult) {
|
|
574
574
|
RETURN = Utils.deepMerge(RETURN, Object.fromEntries(Object.entries(searchResult).filter(([_k, v], _i) => Object.keys(v).length ===
|
|
575
575
|
Object.keys(criteria.and ?? {}).length)));
|
|
576
|
-
criteria.and
|
|
576
|
+
delete criteria.and;
|
|
577
577
|
RETURN_LineNumbers = lineNumbers;
|
|
578
578
|
}
|
|
579
579
|
else
|
|
@@ -581,7 +581,7 @@ export default class Inibase {
|
|
|
581
581
|
}
|
|
582
582
|
if (criteria.or && Utils.isObject(criteria.or)) {
|
|
583
583
|
const [searchResult, lineNumbers] = await this.applyCriteria(tableName, schema, options, criteria.or, false);
|
|
584
|
-
criteria.or
|
|
584
|
+
delete criteria.or;
|
|
585
585
|
if (searchResult) {
|
|
586
586
|
RETURN = Utils.deepMerge(RETURN, searchResult);
|
|
587
587
|
RETURN_LineNumbers = lineNumbers;
|
|
@@ -608,7 +608,7 @@ export default class Inibase {
|
|
|
608
608
|
searchComparedAtValue = searchCriteria.map((single_or) => single_or[1]);
|
|
609
609
|
searchLogicalOperator = "or";
|
|
610
610
|
}
|
|
611
|
-
value.or
|
|
611
|
+
delete value.or;
|
|
612
612
|
}
|
|
613
613
|
if (value?.and &&
|
|
614
614
|
Array.isArray(value?.and)) {
|
|
@@ -622,7 +622,7 @@ export default class Inibase {
|
|
|
622
622
|
searchComparedAtValue = searchCriteria.map((single_and) => single_and[1]);
|
|
623
623
|
searchLogicalOperator = "and";
|
|
624
624
|
}
|
|
625
|
-
value.and
|
|
625
|
+
delete value.and;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
else if (Array.isArray(value)) {
|