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

react-konva

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-konva - npm Package Compare versions

Comparing version

to
1.5.7-beta

2

package.json
{
"name": "react-konva",
"description": "React binding to canvas element via Konva framework",
"version": "1.5.6-beta",
"version": "1.5.7-beta",
"keywords": ["react", "canvas", "jsx", "konva"],

@@ -6,0 +6,0 @@ "bugs": "https://github.com/lavrton/react-konva/issues",

@@ -548,7 +548,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

invariant(child !== beforeChild, 'ReactKonva: Can not insert node before itself');
if (child.parent !== parentInstance) {
parentInstance.add(child);
}
var newIndex = Math.max(beforeChild.getZIndex() - 1, 0);
child.setZIndex(newIndex);
// remove and add back to reset zIndex
child.remove();
parentInstance.add(child);
child.setZIndex(beforeChild.getZIndex());
updatePicture(parentInstance);

@@ -558,7 +557,6 @@ },

invariant(child !== beforeChild, 'ReactKonva: Can not insert node before itself');
if (child.parent !== parentInstance) {
parentInstance.add(child);
}
var newIndex = Math.max(beforeChild.getZIndex() - 1, 0);
child.setZIndex(newIndex);
// remove and add back to reset zIndex
child.remove();
parentInstance.add(child);
child.setZIndex(beforeChild.getZIndex());
updatePicture(parentInstance);

@@ -565,0 +563,0 @@ },