quanstructor
Advanced tools
Comparing version 0.4.11 to 0.4.15
@@ -7,6 +7,9 @@ Array.prototype.pushUnique = function (...items) { | ||
let Proxyfier = require('./Proxyfier') | ||
module.exports = { | ||
defined (value) { | ||
return value !== undefined && value !== null | ||
} | ||
}, | ||
Proxyfier | ||
} |
{ | ||
"name": "quanstructor", | ||
"version": "0.4.11", | ||
"version": "0.4.15", | ||
"description": "Exceptionally powerful object model builder for complex architectures", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -214,6 +214,8 @@ let { defined } = require('./lib/Statics') | ||
async mimic (obj, mimicer, projection = 'complete', options = {}) { | ||
async umbra (obj, projection = 'complete', caster, options = {}) { | ||
if ( !this.projections[projection] ) | ||
throw BaseErrors.InvalidProjection( { projection: projection } ) | ||
let qobject = obj[ Q_TYPE_ATTR ] ? obj : await this.build( obj, projection, options ) | ||
let self = this | ||
@@ -224,6 +226,6 @@ let res = { } | ||
res[ attrib ] = await mimicer( attrib, obj[ attrib ], res ) | ||
res[ attrib ] = await caster( attrib, qobject[ attrib ], qobject, res ) | ||
} | ||
res = await mimicer( '', obj, res ) | ||
res = await caster( '', qobject, qobject, res ) | ||
@@ -230,0 +232,0 @@ return res |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
constructs |
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
22605
11
621
1