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

bcore

Package Overview
Dependencies
Maintainers
3
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.8 to 0.0.9

2

package.json

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

"description": "Core JavaScript library for browser runtime",
"version": "0.0.8",
"version": "0.0.9",
"author": {

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

@@ -104,4 +104,10 @@ /**

if (destValue && typeof (destValue) === 'object' && typeof (value) === 'object') {
result[i] = deepMerge(destValue, value, isDirect, depth);
continue;
if(Array.isArray(destValue) !== Array.isArray(value)){ // 继承和被继承的 一个是数组 一个是对象
if (typeof(value) === 'object' && (!isDirect) && isNeedClone(value)) value = deepClone(value);
result[i] = value;
continue;
} else{
result[i] = deepMerge(destValue, value, isDirect, depth);
continue;
}
}

@@ -108,0 +114,0 @@ if (typeof(value) === 'object' && (!isDirect) && isNeedClone(value)) value = deepClone(value);

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