inibase 1.0.0-rc.110 → 1.0.0-rc.111
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 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -553,21 +553,10 @@ export default class Inibase {
|
|
|
553
553
|
}
|
|
554
554
|
// Helper function to determine if a field is simple
|
|
555
555
|
isSimpleField(fieldType) {
|
|
556
|
-
const
|
|
557
|
-
"string",
|
|
558
|
-
"number",
|
|
559
|
-
"boolean",
|
|
560
|
-
"date",
|
|
561
|
-
"email",
|
|
562
|
-
"password",
|
|
563
|
-
"html",
|
|
564
|
-
"ip",
|
|
565
|
-
"json",
|
|
566
|
-
"id",
|
|
567
|
-
];
|
|
556
|
+
const complexTypes = ["array", "object", "table"];
|
|
568
557
|
if (Array.isArray(fieldType))
|
|
569
|
-
return fieldType.every((type) => typeof type === "string" &&
|
|
570
|
-
return
|
|
558
|
+
return fieldType.every((type) => typeof type === "string" && !complexTypes.includes(type));
|
|
559
|
+
return !complexTypes.includes(fieldType);
|
|
571
560
|
}
|
|
572
561
|
// Process a simple field (non-recursive)
|
|
573
562
|
async processSimpleField(tableName, field, linesNumber, RETURN, _options, prefix) {
|