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.10 to 0.4.11

2

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

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

@@ -213,2 +213,20 @@ let { defined } = require('./lib/Statics')

},
async mimic (obj, mimicer, projection = 'complete', options = {}) {
if ( !this.projections[projection] )
throw BaseErrors.InvalidProjection( { projection: projection } )
let self = this
let res = { }
for (let attrib of self.attributes) {
if ( self.specs[ attrib ].Proxy ) continue
res[ attrib ] = await mimicer( attrib, obj[ attrib ], res )
}
res = await mimicer( '', obj, res )
return res
},
async bridge ( obj, projection = 'complete', view = 'complete', options = {} ) {

@@ -215,0 +233,0 @@ let res = await this.build( obj, projection, options )

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