🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

assign.js

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assign.js - npm Package Compare versions

Comparing version

to
2.0.0

15

lib/assign.js

@@ -85,13 +85,12 @@ 'use strict'

if (_.isPlainObject( source ) ) {
if (this.options.typed && source._type )
object[ key ] = source.value || source.defaultValue || source.defaultvalue
var object = { }
var index = -1, props = Object.keys( source ), length = props.length
else {
var object = { }
var index = -1, props = Object.keys( source ), length = props.length
while (++index < length) {
var key = props[index]
while (++index < length) {
var key = props[index]
if (this.options.typed && source[key]._type )
object[ key ] = source.value || source.defaultValue || source.defaultvalue
else
object[ key ] = self.cloneObject( source[key] )
}
}

@@ -98,0 +97,0 @@

{
"name": "assign.js",
"version": "1.9.8",
"version": "2.0.0",
"description": "Tiny libary to assign objects",

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