@arcote.tech/arc 0.0.17 → 0.0.18

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -177,8 +177,8 @@ class ArcIndexedItemsQuery extends ArcManyItemsQuery {
177
177
  checkItem(item) {
178
178
  if (!super.checkItem(item))
179
179
  return false;
180
- const notCorrect = Object.entries(this.data).find(([key, value]) => item[key] !== value);
181
- if (notCorrect)
180
+ const correct = Object.entries(this.data).every(([key, value]) => item[key] === value);
181
+ if (!correct)
182
182
  return false;
183
183
  return true;
184
184
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
- "version": "0.0.17",
7
+ "version": "0.0.18",
8
8
  "private": false,
9
9
  "author": "Przemysław Krasiński [arcote.tech]",
10
10
  "description": "Arc is a framework designed to align code closely with business logic, streamlining development and enhancing productivity.",