inibase 1.2.1 → 1.2.2

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
@@ -903,7 +903,8 @@ export default class Inibase {
903
903
  .map((column) => column.replace(`${field.key}.`, "")),
904
904
  });
905
905
  const formatLineContent = (lineContent) => Array.isArray(lineContent)
906
- ? lineContent.map((singleContent) => singleContent
906
+ ? lineContent
907
+ .map((singleContent) => singleContent
907
908
  ? Array.isArray(singleContent)
908
909
  ? singleContent.map(formatLineContent)
909
910
  : items
@@ -912,6 +913,7 @@ export default class Inibase {
912
913
  id: singleContent,
913
914
  }
914
915
  : singleContent)
916
+ .filter(Boolean)
915
917
  : (items?.find(({ id }) => lineContent === id) ?? {
916
918
  id: lineContent,
917
919
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inibase",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Karim Amahtil",