Socket
Socket
Sign inDemoInstall

konva

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konva - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Change Log

## [1.0.3][2016-08-14]
### Fixed
- Fixed some typescript definitions
## [1.0.2][2016-07-08]

@@ -9,0 +14,0 @@

4

konva.d.ts

@@ -831,4 +831,2 @@ declare module Konva {

declare module "konva" {
export = Konva;
}
export = Konva;
{
"name": "konva",
"version": "1.0.2",
"version": "1.0.3",
"author": "Anton Lavrenov",

@@ -5,0 +5,0 @@ "files": [

@@ -23,3 +23,3 @@ ![Konva logo](https://raw.githubusercontent.com/konvajs/konvajs.github.io/master/apple-touch-icon-180x180.png)

```html
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js"></script>
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js"></script>
<div id="container"></div>

@@ -69,6 +69,6 @@ <script>

```html
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js"></script>
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js"></script>
```
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js)
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js)

@@ -96,2 +96,5 @@ ###2 Load via AMD (requirejs):

import Konva from 'konva';
// typescript
import * as Konva from 'konva';
```

@@ -98,0 +101,0 @@

@@ -184,3 +184,3 @@ (function(Konva) {

* @method
* @memberof Konva.Node.prototype
* @memberof Konva.Shape.prototype
* @returns {Object} rect with {x, y, width, height} properties

@@ -187,0 +187,0 @@ * @example

@@ -993,4 +993,33 @@ /*eslint-disable eqeqeq, no-cond-assign, no-empty*/

return newStart;
},
_prepareToStringify: function(obj) {
var desc;
obj.visitedByCircularReferenceRemoval = true;
for(var key in obj) {
if (!(obj.hasOwnProperty(key) && obj[key] && typeof obj[key] == 'object')) {
continue;
}
desc = Object.getOwnPropertyDescriptor(obj, key);
if (obj[key].visitedByCircularReferenceRemoval || Konva.Util._isElement(obj[key])) {
if (desc.configurable) {
delete obj[key];
} else {
return null;
}
} else if (Konva.Util._prepareToStringify(obj[key]) === null) {
if (desc.configurable) {
delete obj[key];
} else {
return null;
}
}
}
delete obj.visitedByCircularReferenceRemoval;
return obj;
}
};
})();

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

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