Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@startupjs/orm

Package Overview
Dependencies
Maintainers
6
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/orm - npm Package Compare versions

Comparing version 0.56.0-alpha.43 to 0.56.0-alpha.44

13

lib/schemaHelpers.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc