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

react-konva

Package Overview
Dependencies
Maintainers
1
Versions
128
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 1.0.4 to 1.0.5

4

package.json
{
"name": "react-konva",
"description": "React binding to canvas element via Konva framework",
"version": "1.0.4",
"version": "1.0.5",
"keywords": [

@@ -36,3 +36,3 @@ "react",

"konva": "^1.0.1",
"mocha": "^2.5.3",
"mocha": "^3.0.0",
"mocha-phantomjs": "^4.1.0",

@@ -39,0 +39,0 @@ "react": "^15.2.0",

@@ -24,3 +24,3 @@ # React Konva

```bash
npm instal react konva react-konva --save
npm install react konva react-konva --save
```

@@ -27,0 +27,0 @@

@@ -185,3 +185,7 @@ // Adapted from ReactART:

if (isEvent && propChanged) {
this.node.off(key.slice(2, key.length).toLowerCase(), oldProps[key]);
var eventName = key.substr(2).toLowerCase();
if (eventName.substr(0, 7) === "content") {
eventName = "content" + eventName.substr(7, 1).toUpperCase() + eventName.substr(8);
}
this.node.off(eventName, oldProps[key]);
}

@@ -200,3 +204,7 @@ var toRemove = !props.hasOwnProperty(key);

if (isEvent && toAdd) {
this.node.on(key.slice(2, key.length).toLowerCase(), props[key]);
var eventName = key.substr(2).toLowerCase();
if (eventName.substr(0, 7) === "content") {
eventName = "content" + eventName.substr(7, 1).toUpperCase() + eventName.substr(8);
}
this.node.on(eventName, props[key]);
}

@@ -203,0 +211,0 @@ if (!isEvent && ((props[key] !== oldProps[key]) || (props[key] !== this.node.getAttr(key)))) {

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