New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

fmerge

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fmerge - npm Package Compare versions

Comparing version

to
1.1.0

@@ -13,3 +13,3 @@ ;(function(root) {

Object.keys(a || {}).forEach(function(key) {
out[key] = a[key]
out[key] = copy(a[key])
})

@@ -27,2 +27,4 @@ Object.keys(b || {}).forEach(function(key) {

val = merge(a[key], val)
} else {
val = copy(val)
}

@@ -37,2 +39,10 @@ out[key] = val

}
function copy(val) {
if(Array.isArray(val)) return val.slice()
if(val && typeof(val) == 'object') {
return merge(val)
}
return val
}
}(this))
{ "name": "fmerge"
, "version": "1.0.2"
, "version": "1.1.0"
, "description": "A tool for merging objects."

@@ -4,0 +4,0 @@ , "main": "index.js"