quanstructor
Advanced tools
Comparing version 0.4.10 to 0.4.11
{ | ||
"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 ) |
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
21506
582