Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bcore

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcore - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Core JavaScript library for browser runtime",
"version": "0.0.21",
"version": "0.0.22",
"author": {

@@ -8,0 +8,0 @@ "name": "fish"

@@ -85,2 +85,6 @@ /**

function _isObject(v){
return v && typeof v === 'object' && !(v instanceof Date);
}
var maxDepth = 8;

@@ -103,3 +107,3 @@ function deepMerge(dest, src, directs, depth) {

if(value === undefined) continue;
if (destValue && typeof (destValue) === 'object' && typeof (value) === 'object') {
if (_isObject(destValue) && _isObject(value)){
if (!isNeedClone(value) || (directs && i in directs)) {

@@ -114,7 +118,6 @@ result[i] = value;

}
result[i] = deepMerge(destValue, value, directs, depth);
continue;
}
if (typeof (value) === 'object' && isNeedClone(value)) value = deepClone(value);
if (_isObject(value) && isNeedClone(value)) value = deepClone(value);
result[i] = value;

@@ -121,0 +124,0 @@ }

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