react-faux-dom
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -17,3 +17,7 @@ var React = require('react') | ||
this.text = '' | ||
var self = this | ||
var props = this.props = { | ||
ref: function (component) { | ||
self.component = component | ||
}, | ||
style: { | ||
@@ -237,2 +241,10 @@ setProperty: function (name, value) { | ||
Element.prototype.getBoundingClientRect = function () { | ||
if (!this.component) { | ||
return undefined | ||
} | ||
return this.component.getBoundingClientRect() | ||
} | ||
Element.prototype.toReact = function (index) { | ||
@@ -239,0 +251,0 @@ index = index || 0 |
{ | ||
"name": "react-faux-dom", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"description": "DOM like data structure to be mutated by D3 et al, then rendered to React elements", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactFauxDOM.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
54609
15
567
0
98
1