inibase 1.1.16 → 1.1.17

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -902,7 +902,7 @@ export default class Inibase {
902
902
  const foundedItem = isArrayField
903
903
  ? Utils.isArrayOfArrays(lineContent)
904
904
  ? lineContent.map((item) => items.filter(({ id }) => item.includes(id)))
905
- : lineContent.flatMap((item) => items.filter(({ id }) => item.includes(id)))
905
+ : lineContent.flatMap((item) => items.find(({ id }) => item === id))
906
906
  : items.find(({ id }) => id === lineContent);
907
907
  if (foundedItem)
908
908
  RETURN[lineNumber][field.key] = foundedItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inibase",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Karim Amahtil",