react-demo
Advanced tools
| ## 1.0.0 (October 19, 2015) | ||
| - Start use Semantic Versioning | ||
| - Start tracking changes |
@@ -25,3 +25,3 @@ 'use strict'; | ||
| name: _react.PropTypes.string.isRequired, | ||
| value: _react.PropTypes.string.isRequired, | ||
| value: _react.PropTypes.any.isRequired, | ||
| onChange: _react.PropTypes.func.isRequired | ||
@@ -28,0 +28,0 @@ }, |
@@ -38,3 +38,3 @@ 'use strict'; | ||
| propTypes: { | ||
| value: _react.PropTypes.string.isRequired, | ||
| value: _react.PropTypes.any.isRequired, | ||
| onChange: _react.PropTypes.func.isRequired | ||
@@ -41,0 +41,0 @@ }, |
+15
-4
@@ -16,2 +16,10 @@ 'use strict'; | ||
| var _react = require('react'); | ||
| var _react2 = _interopRequireDefault(_react); | ||
| // Chrome on my machine had performance issues | ||
| // with a number greater than 20 and when JSX handler disabled | ||
| var MAX_DEPTH = 20; | ||
| function handlePrimitive(x) { | ||
@@ -74,5 +82,3 @@ var t = typeof x; | ||
| function handleJsx(x, next, seen, indent) { | ||
| // we'd better use TestUtils.isReactElement(), | ||
| // but hopefully we'll avoid import whole `React/addons` with this tiny hack | ||
| if (x && x._isReactElement) { | ||
| if (_react2['default'].isValidElement(x)) { | ||
| var lastIndent = indent === '' ? '' : indent.replace(/\s\s$/, ''); | ||
@@ -140,3 +146,8 @@ var _name = typeof x.type === 'string' ? x.type : x.type.displayName || 'Unknown'; | ||
| var depthLim = _ref$depthLim === undefined ? 0 : _ref$depthLim; | ||
| var _ref$depth = _ref.depth; | ||
| var depth = _ref$depth === undefined ? 0 : _ref$depth; | ||
| if (depth > MAX_DEPTH) { | ||
| return '__DepthLimit'; | ||
| } | ||
| if (seen.indexOf(x) !== -1) { | ||
@@ -148,3 +159,3 @@ return '__Circular'; | ||
| var next = function next(__x) { | ||
| return s(__x, { indent: indent + ' ', depthLim: depthLim - 1 }); | ||
| return s(__x, { indent: indent + ' ', depthLim: depthLim - 1, depth: depth + 1 }); | ||
| }; | ||
@@ -151,0 +162,0 @@ do { |
+4
-4
| { | ||
| "name": "react-demo", | ||
| "version": "0.3.3", | ||
| "version": "1.0.0", | ||
| "description": "A React-component for creating demos of other components", | ||
@@ -33,5 +33,5 @@ "main": "dist/index.js", | ||
| "eslint-config-airbnb": "0.1.0", | ||
| "eslint-plugin-react": "3.5.1", | ||
| "react": "0.13.3", | ||
| "react-heatpack": "1.5.0" | ||
| "eslint-plugin-react": "3.6.2", | ||
| "react": "0.14.0", | ||
| "react-heatpack": "2.0.0" | ||
| }, | ||
@@ -38,0 +38,0 @@ "dependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
43454
0.82%29
3.57%1005
0.8%0
-100%