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

quanstructor

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quanstructor - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

2

package.json
{
"name": "quanstructor",
"version": "0.4.3",
"version": "0.4.4",
"description": "Exceptionally powerful object model builder for complex architectures",

@@ -5,0 +5,0 @@ "keywords": [

@@ -242,4 +242,13 @@ let { defined } = require('./lib/Statics')

let value = this.specs[attrib].convert ? await this.specs[attrib].convert( obj[ attrib ] ) : obj[ attrib ]
if ( this.specs[ attrib ]._allowNull || defined(value) )
ref[ attrib ] = value
if ( this.specs[ attrib ].Quanstructor ) {
ref[ attrib ] = _.isArray( value )
? await Promise.all(
value.map( (element) => { return QUANSTRUCTORS[ this.specs[ attrib ].Quanstructor ].viewAs( element, projection, options ) } )
) : await QUANSTRUCTORS[ this.specs[ attrib ].Quanstructor ].viewAs( value, projection, options )
}
else {
if ( this.specs[ attrib ]._allowNull || defined(value) )
ref[ attrib ] = value
}
}

@@ -250,4 +259,5 @@ }

for ( let sup of this._derivations )
if ( DEFINITIONS[ sup ] && DEFINITIONS[ sup ]._reform )
if ( DEFINITIONS[ sup ] && DEFINITIONS[ sup ]._reform ) {
await DEFINITIONS[ sup ]._reform( res, projection, options )
}
if ( this.specs._reform ) await this.specs._reform( res, projection, options )

@@ -254,0 +264,0 @@ }

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