inibase 1.4.6 → 1.4.8
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -555,7 +555,7 @@ export default class Inibase {
|
|
|
555
555
|
return null;
|
|
556
556
|
}
|
|
557
557
|
default:
|
|
558
|
-
return value;
|
|
558
|
+
return typeof value === 'string' ? value.trim() : value;
|
|
559
559
|
}
|
|
560
560
|
return null;
|
|
561
561
|
}
|
|
@@ -1673,7 +1673,7 @@ export default class Inibase {
|
|
|
1673
1673
|
RETURN[column] = await File.sum(columnPath);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
return
|
|
1676
|
+
return columns.length > 1 ? RETURN : Object.values(RETURN)[0];
|
|
1677
1677
|
}
|
|
1678
1678
|
async max(tableName, columns, where) {
|
|
1679
1679
|
const RETURN = {};
|