inibase 1.1.29 → 1.1.30
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/file.js +2 -3
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/file.js
CHANGED
|
@@ -159,9 +159,8 @@ const decodeHelper = (value, field) => {
|
|
|
159
159
|
return isNumber(value) &&
|
|
160
160
|
(!field.table ||
|
|
161
161
|
!field.databasePath ||
|
|
162
|
-
|
|
163
|
-
.decodeID
|
|
164
|
-
field.key !== "id"))
|
|
162
|
+
!globalConfig[field.databasePath].tables?.get(field.table)?.config
|
|
163
|
+
.decodeID)
|
|
165
164
|
? encodeID(value)
|
|
166
165
|
: value;
|
|
167
166
|
default:
|
package/dist/index.js
CHANGED
|
@@ -1017,6 +1017,7 @@ export default class Inibase {
|
|
|
1017
1017
|
databasePath: this.databasePath,
|
|
1018
1018
|
table: field.table ?? tableName,
|
|
1019
1019
|
}, options.perPage, (options.page - 1) * options.perPage + 1, true);
|
|
1020
|
+
console.log(searchResult, totalLines, linesNumbers);
|
|
1020
1021
|
if (searchResult) {
|
|
1021
1022
|
const formatedSearchResult = Object.fromEntries(Object.entries(searchResult).map(([id, value]) => {
|
|
1022
1023
|
const nestedObj = {};
|