@snowtop/ent 0.1.0-alpha95 → 0.1.0-alpha96-2a5ea200-82e5-11ed-8c55-4da1cd949242
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/package.json +1 -1
- package/schema/schema.d.ts +1 -0
- package/schema/schema.js +6 -0
package/package.json
CHANGED
package/schema/schema.d.ts
CHANGED
package/schema/schema.js
CHANGED
|
@@ -58,6 +58,9 @@ function getFields(value) {
|
|
|
58
58
|
function addFields(fields) {
|
|
59
59
|
if (Array.isArray(fields)) {
|
|
60
60
|
for (const field of fields) {
|
|
61
|
+
if (field.dbOnly) {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
61
64
|
const name = field.name;
|
|
62
65
|
if (!name) {
|
|
63
66
|
throw new Error(`name required`);
|
|
@@ -71,6 +74,9 @@ function getFields(value) {
|
|
|
71
74
|
}
|
|
72
75
|
for (const name in fields) {
|
|
73
76
|
const field = fields[name];
|
|
77
|
+
if (field.dbOnly) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
74
80
|
if (field.getDerivedFields !== undefined) {
|
|
75
81
|
addFields(field.getDerivedFields(name));
|
|
76
82
|
}
|