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.
Files changed (2) hide show
  1. package/dist/index.js +3 -14
  2. 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 simpleTypes = [
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" && simpleTypes.includes(type));
570
- return simpleTypes.includes(fieldType);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inibase",
3
- "version": "1.0.0-rc.110",
3
+ "version": "1.0.0-rc.111",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Karim Amahtil",