inibase 1.2.16 → 1.2.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.
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -821,7 +821,9 @@ export default class Inibase {
|
|
|
821
821
|
continue;
|
|
822
822
|
if (!RETURN[index][field.key][_i])
|
|
823
823
|
RETURN[index][field.key][_i] = {};
|
|
824
|
-
RETURN[index][field.key][_i][key] = value[_i]
|
|
824
|
+
RETURN[index][field.key][_i][key] = Array.isArray(value[_i])
|
|
825
|
+
? value[_i].filter(Boolean)
|
|
826
|
+
: value[_i];
|
|
825
827
|
}
|
|
826
828
|
}
|
|
827
829
|
}
|
|
@@ -905,13 +907,11 @@ export default class Inibase {
|
|
|
905
907
|
.map((column) => column.replace(`${field.key}.`, "")),
|
|
906
908
|
});
|
|
907
909
|
const formatLineContent = (lineContent) => Array.isArray(lineContent)
|
|
908
|
-
? lineContent
|
|
909
|
-
.map((singleContent) => singleContent
|
|
910
|
+
? lineContent.map((singleContent) => singleContent
|
|
910
911
|
? Array.isArray(singleContent)
|
|
911
|
-
? singleContent.map(formatLineContent)
|
|
912
|
+
? singleContent.map(formatLineContent)
|
|
912
913
|
: items?.find(({ id }) => singleContent === id)
|
|
913
914
|
: singleContent)
|
|
914
|
-
.filter(Boolean)
|
|
915
915
|
: items?.find(({ id }) => lineContent === id);
|
|
916
916
|
for (const [lineNumber, lineContent] of searchableIDs.entries()) {
|
|
917
917
|
if (!lineContent)
|