@startupjs/orm
Advanced tools
Comparing version 0.56.0-alpha.43 to 0.56.0-alpha.44
@@ -63,6 +63,11 @@ /** | ||
if (exclude.includes(key)) return false | ||
if (DEFAULT_EXCLUDE_FORM_FIELDS.includes(key)) return false | ||
// exclude foreign keys by default, unless they have 'input' specified. | ||
// Foreign keys have a custom `$association` property set by belongsTo/hasMany/hasOne helpers | ||
if (field.$association && !field.input) return false | ||
// if field has 'input' specified then it's an explicit indicator that it can be used in forms, | ||
// so the default exclusion rules don't apply | ||
if (!field.input) { | ||
// exclude some meta fields by default | ||
if (DEFAULT_EXCLUDE_FORM_FIELDS.includes(key)) return false | ||
// exclude foreign keys by default | ||
// Foreign keys have a custom `$association` property set by belongsTo/hasMany/hasOne helpers | ||
if (field.$association) return false | ||
} | ||
// if include array is not explicitly set, include all fields by default | ||
@@ -69,0 +74,0 @@ if (!include) return true |
{ | ||
"name": "@startupjs/orm", | ||
"type": "module", | ||
"version": "0.56.0-alpha.43", | ||
"version": "0.56.0-alpha.44", | ||
"description": "ORM system for Racer.js and ShareDB", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"readmeFilename": "README.md", | ||
"gitHead": "e085281b66e75c568a26ff3a097c3f90fed8c55a" | ||
"gitHead": "4b49d4a5927fc27badb78144781658a6b7e05d5e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26598
502