@wxn0brp/db 0.0.4 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "main": "index.js",
5
5
  "description": "A simple file-based database management system with support for CRUD operations, custom queries, and graph structures.",
6
6
  "homepage": "https://github.com/wxn0brP/database",
@@ -23,8 +23,8 @@ export default function hasFieldsAdvanced(obj, fields){
23
23
 
24
24
  // Check various conditions
25
25
  if(!checkConditions(obj, fields)) return false;
26
- fields = removeAdvancedOperators(fields);
27
- return hasFields(obj, fields);
26
+ const fieldsSubset = removeAdvancedOperators({ ...fields });
27
+ return hasFields(obj, fieldsSubset);
28
28
  }
29
29
 
30
30
  function removeAdvancedOperators(fields){