inibase 1.1.15 → 1.1.16

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