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.11 to 0.4.15

lib/Proxyfier.js

5

lib/Statics.js

@@ -7,6 +7,9 @@ Array.prototype.pushUnique = function (...items) {

let Proxyfier = require('./Proxyfier')
module.exports = {
defined (value) {
return value !== undefined && value !== null
}
},
Proxyfier
}

2

package.json
{
"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

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