@smartsoft001/mongo 2.146.0 → 2.147.0

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.
Files changed (2) hide show
  1. package/index.cjs +1 -4
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -667,10 +667,7 @@ var MongoItemRepository = class extends IItemRepository {
667
667
  $text: { $search: ' "' + this.convertRegex(criteria["$search"]) + '" ' }
668
668
  };
669
669
  delete criteria["$search"];
670
- criteria = {
671
- ...criteria,
672
- ...customCriteria
673
- };
670
+ Object.assign(criteria, customCriteria);
674
671
  }
675
672
  convertIdInCriteria(criteria) {
676
673
  if (criteria["id"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/mongo",
3
- "version": "2.146.0",
3
+ "version": "2.147.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },