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 0.4.1 to 0.4.2

lib/abstract/Base.js

26

lib/index.js

@@ -1,5 +0,25 @@

"use strict";
'use strict';
var ReactKonva = require("./ReactKonva");
exports.Stage = require('./Stage');
exports.Layer = require('./Layer');
exports.FastLayer = require('./FastLayer');
exports.Group = require('./Group');
module.exports = ReactKonva;
exports.Arc = require('./shapes/Arc');
exports.Arrow = require('./shapes/Arrow');
exports.Circle = require('./shapes/Circle');
exports.Ellipse = require('./shapes/Ellipse');
exports.Image = require('./shapes/Image');
exports.Label = require('./shapes/Label');
exports.Line = require('./shapes/Line');
exports.Path = require('./shapes/Path');
exports.Rect = require('./shapes/Rect');
exports.RegularPolygon = require('./shapes/RegularPolygon');
exports.Ring = require('./shapes/Ring');
exports.Shape = require('./shapes/Shape');
exports.Sprite = require('./shapes/Sprite');
exports.Star = require('./shapes/Star');
exports.Tag = require('./shapes/Tag');
exports.Text = require('./shapes/Text');
exports.TextPath = require('./shapes/TextPath');
exports.Wedge = require('./shapes/Wedge');

@@ -1,11 +0,41 @@

"use strict";
'use strict';
module.exports = {
nodeRenderer: function nodeRenderer() {
if (this.nodeRender) {
return this.nodeRender();
exports.__esModule = true;
exports.diff = diff;
function diff(lhs, rhs) {
var result = new Map();
var properies = new Set([].concat(Object.keys(lhs), Object.keys(rhs)));
for (var _iterator = properies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
return null;
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
var property = _ref;
if (lhs.hasOwnProperty(property) && !rhs.hasOwnProperty(property)) {
result.set(property, 'delete');
}
if (!lhs.hasOwnProperty(property) && rhs.hasOwnProperty(property)) {
result.set(property, 'create');
}
if (lhs.hasOwnProperty(property) && rhs.hasOwnProperty(property)) {
if (lhs[property] !== rhs[property]) {
result.set(property, 'update');
}
}
}
};
return result;
}

2

package.json
{
"name": "react-konva",
"version": "0.4.1",
"version": "0.4.2",
"author": "Olim <olim.mail@gmail.com> Saidov, Mikhail <freiksenet@gmail.com> Novikov",

@@ -5,0 +5,0 @@ "description": "Using Konva library with React",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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