mobiletto-orm-typedef-gen 2.2.2 → 2.2.4

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.
@@ -44,7 +44,9 @@ const defaultPrepareContext = (typeDef, ctx) => {
44
44
  typeof field.items[0] === "object" &&
45
45
  field.items[0].value
46
46
  ? typeof field.items[0].value
47
- : null;
47
+ : field.ref
48
+ ? "string"
49
+ : null;
48
50
  if (field.valueType == null) {
49
51
  const errors = {};
50
52
  errors[field.name] = ["indeterminateArrayValueType"];
@@ -44,7 +44,9 @@ const defaultPrepareContext = (typeDef, ctx) => {
44
44
  typeof field.items[0] === "object" &&
45
45
  field.items[0].value
46
46
  ? typeof field.items[0].value
47
- : null;
47
+ : field.ref
48
+ ? "string"
49
+ : null;
48
50
  if (field.valueType == null) {
49
51
  const errors = {};
50
52
  errors[field.name] = ["indeterminateArrayValueType"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto-orm-typedef-gen",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "type": "module",
5
5
  "description": "generate various files based on mobiletto-orm-typedef definitions",
6
6
  "keywords": [
@@ -52,7 +52,7 @@
52
52
  "eslint": "^8.44.0",
53
53
  "eslint-config-prettier": "^8.8.0",
54
54
  "handlebars": "^4.7.7",
55
- "mobiletto-orm-typedef": "^2.3.3",
55
+ "mobiletto-orm-typedef": "^2.3.4",
56
56
  "mocha": "^10.2.0",
57
57
  "prettier": "^3.0.0",
58
58
  "tslint-config-prettier": "^1.18.0",