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.7 to 0.0.8

2

package.json

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

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

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

@@ -75,2 +75,13 @@ /**

function isNeedClone(d){
if(!d) return false;
if(d instanceof HTMLElement) return false;
if(d[0] && d[0] instanceof HTMLElement) return false;
if(d.globalCompositeOperation) return false;//ctx的情况
//还需判断div 等节点
return true;
}
var maxDepth = 3;

@@ -84,3 +95,3 @@ function deepMerge(dest, src, isDirect, depth) {

console.log('层数过深, 全部继承');
return clone(src);
return src;
}

@@ -98,3 +109,3 @@ //

}
if (typeof(value) === 'object' && (!isDirect)) value = deepClone(value);
if (typeof(value) === 'object' && (!isDirect) && isNeedClone(value)) value = deepClone(value);
result[i] = value;

@@ -101,0 +112,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