@hvedinich/utils 0.0.43 → 0.0.44

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": "@hvedinich/utils",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "utils module",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ const parseFilter = ({ ctx, criteria, allowed }) => {
8
8
  throw new ValidationError({ ctx, message: `criteria not found id: ${cur.id}`, sanitized: 'criteria not found' });
9
9
  }
10
10
  if (typeof field === 'function') {
11
- const { key, value } = field(cur.values);
11
+ const { key, value } = field(cur.values, criteria);
12
12
  acc[key] = value;
13
13
  } else {
14
14
  // eslint-disable-next-line prefer-destructuring