@snowtop/ent 0.1.0-alpha127 → 0.1.0-alpha128

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.
@@ -24,6 +24,7 @@ exports.knownAllowedNames = new Map([
24
24
  ["Float", "number"],
25
25
  ["ID", "ID"],
26
26
  ["JSON", "any"],
27
+ ["Node", "Ent"],
27
28
  ]);
28
29
  exports.knownDisAllowedNames = new Map([
29
30
  ["Function", true],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha127",
3
+ "version": "0.1.0-alpha128",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -22,7 +22,7 @@ async function processFields(src, patternName) {
22
22
  for (const name in m) {
23
23
  const field = m[name];
24
24
  //@ts-ignore type and other changed fields with different type in ProcessedField vs Field
25
- let f = { name, ...field };
25
+ let f = { ...field, name };
26
26
  f.hasDefaultValueOnCreate = field.defaultValueOnCreate != undefined;
27
27
  f.hasDefaultValueOnEdit = field.defaultValueOnEdit != undefined;
28
28
  f.hasFieldPrivacy = field.privacyPolicy !== undefined;