inibase 1.0.0-rc.88 → 1.0.0-rc.89
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 +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1180,6 +1180,9 @@ export default class Inibase {
|
|
|
1180
1180
|
else if ((Array.isArray(where) && where.every(Utils.isNumber)) ||
|
|
1181
1181
|
Utils.isNumber(where)) {
|
|
1182
1182
|
// "where" in this case, is the line(s) number(s) and not id(s)
|
|
1183
|
+
this.validateData(data, schema, true);
|
|
1184
|
+
await this.checkUnique(tableName, schema);
|
|
1185
|
+
data = this.formatData(data, schema, true);
|
|
1183
1186
|
const pathesContents = Object.fromEntries(Object.entries(this.joinPathesContents(tableName, Utils.isArrayOfObjects(data)
|
|
1184
1187
|
? data.map((item) => ({
|
|
1185
1188
|
...item,
|