mobiletto-orm-typedef-gen 2.3.39 → 2.3.40

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.
@@ -1,4 +1,4 @@
1
- import { MobilettoOrmError, MobilettoOrmTypeDef, MobilettoOrmValidationError, } from "mobiletto-orm-typedef";
1
+ import { isArrayType, MobilettoOrmError, MobilettoOrmTypeDef, MobilettoOrmValidationError, } from "mobiletto-orm-typedef";
2
2
  import * as fs from "fs";
3
3
  import Handlebars from "handlebars";
4
4
  import { dirname } from "path";
@@ -33,7 +33,7 @@ const defaultPrepareContext = (typeDef, ctx) => {
33
33
  field.typeIsBoolean = field.type === "boolean";
34
34
  field.typeIsString = field.type === "string";
35
35
  field.typeIsNumber = field.type === "number";
36
- field.typeIsArray = field.type === "array";
36
+ field.typeIsArray = isArrayType(field.type);
37
37
  field.typeIsObject = field.type === "object";
38
38
  if (field.typeIsArray) {
39
39
  field.valueType =
@@ -1,4 +1,4 @@
1
- import { MobilettoOrmError, MobilettoOrmTypeDef, MobilettoOrmValidationError, } from "mobiletto-orm-typedef";
1
+ import { isArrayType, MobilettoOrmError, MobilettoOrmTypeDef, MobilettoOrmValidationError, } from "mobiletto-orm-typedef";
2
2
  import * as fs from "fs";
3
3
  import Handlebars from "handlebars";
4
4
  import { dirname } from "path";
@@ -33,7 +33,7 @@ const defaultPrepareContext = (typeDef, ctx) => {
33
33
  field.typeIsBoolean = field.type === "boolean";
34
34
  field.typeIsString = field.type === "string";
35
35
  field.typeIsNumber = field.type === "number";
36
- field.typeIsArray = field.type === "array";
36
+ field.typeIsArray = isArrayType(field.type);
37
37
  field.typeIsObject = field.type === "object";
38
38
  if (field.typeIsArray) {
39
39
  field.valueType =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto-orm-typedef-gen",
3
- "version": "2.3.39",
3
+ "version": "2.3.40",
4
4
  "type": "module",
5
5
  "description": "generate various files based on mobiletto-orm-typedef definitions",
6
6
  "keywords": [
@@ -53,7 +53,7 @@
53
53
  "eslint-config-prettier": "^8.8.0",
54
54
  "handlebars": "^4.7.7",
55
55
  "hokey-runtime": "^1.0.4",
56
- "mobiletto-orm-typedef": "^2.3.31",
56
+ "mobiletto-orm-typedef": "^2.4.4",
57
57
  "mocha": "^10.2.0",
58
58
  "prettier": "^3.0.0",
59
59
  "tslint-config-prettier": "^1.18.0",