@reach/component-component
Advanced tools
Comparing version 0.5.0 to 0.6.1
@@ -10,3 +10,3 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
import React from "react"; | ||
import { object, func, oneOfType, node } from "prop-types"; | ||
import PropTypes from "prop-types"; | ||
@@ -137,13 +137,13 @@ var cleanProps = function cleanProps(props) { | ||
Component.propTypes = { | ||
initialState: object, | ||
getInitialState: func, | ||
refs: object, | ||
getRefs: func, | ||
didMount: func, | ||
didUpdate: func, | ||
willUnmount: func, | ||
getSnapshotBeforeUpdate: func, | ||
shouldUpdate: func, | ||
render: func, | ||
children: oneOfType([func, node]) | ||
initialState: PropTypes.object, | ||
getInitialState: PropTypes.func, | ||
refs: PropTypes.object, | ||
getRefs: PropTypes.func, | ||
didMount: PropTypes.func, | ||
didUpdate: PropTypes.func, | ||
willUnmount: PropTypes.func, | ||
getSnapshotBeforeUpdate: PropTypes.func, | ||
shouldUpdate: PropTypes.func, | ||
render: PropTypes.func, | ||
children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]) | ||
}; | ||
@@ -150,0 +150,0 @@ } |
24
index.js
@@ -8,3 +8,3 @@ "use strict"; | ||
var _propTypes = require("prop-types"); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
@@ -145,13 +145,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
Component.propTypes = { | ||
initialState: _propTypes.object, | ||
getInitialState: _propTypes.func, | ||
refs: _propTypes.object, | ||
getRefs: _propTypes.func, | ||
didMount: _propTypes.func, | ||
didUpdate: _propTypes.func, | ||
willUnmount: _propTypes.func, | ||
getSnapshotBeforeUpdate: _propTypes.func, | ||
shouldUpdate: _propTypes.func, | ||
render: _propTypes.func, | ||
children: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.node]) | ||
initialState: _propTypes["default"].object, | ||
getInitialState: _propTypes["default"].func, | ||
refs: _propTypes["default"].object, | ||
getRefs: _propTypes["default"].func, | ||
didMount: _propTypes["default"].func, | ||
didUpdate: _propTypes["default"].func, | ||
willUnmount: _propTypes["default"].func, | ||
getSnapshotBeforeUpdate: _propTypes["default"].func, | ||
shouldUpdate: _propTypes["default"].func, | ||
render: _propTypes["default"].func, | ||
children: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]) | ||
}; | ||
@@ -158,0 +158,0 @@ } |
{ | ||
"name": "@reach/component-component", | ||
"version": "0.5.0", | ||
"version": "0.6.1", | ||
"description": "Declarative React Component Definitions", | ||
@@ -30,3 +30,3 @@ "main": "index.js", | ||
], | ||
"gitHead": "7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2" | ||
"gitHead": "c1e249448a3672ccc65698218f0f38ef9814ab90" | ||
} |
import React from "react"; | ||
import { object, func, oneOfType, node } from "prop-types"; | ||
import PropTypes from "prop-types"; | ||
@@ -109,13 +109,13 @@ let cleanProps = props => { | ||
Component.propTypes = { | ||
initialState: object, | ||
getInitialState: func, | ||
refs: object, | ||
getRefs: func, | ||
didMount: func, | ||
didUpdate: func, | ||
willUnmount: func, | ||
getSnapshotBeforeUpdate: func, | ||
shouldUpdate: func, | ||
render: func, | ||
children: oneOfType([func, node]) | ||
initialState: PropTypes.object, | ||
getInitialState: PropTypes.func, | ||
refs: PropTypes.object, | ||
getRefs: PropTypes.func, | ||
didMount: PropTypes.func, | ||
didUpdate: PropTypes.func, | ||
willUnmount: PropTypes.func, | ||
getSnapshotBeforeUpdate: PropTypes.func, | ||
shouldUpdate: PropTypes.func, | ||
render: PropTypes.func, | ||
children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]) | ||
}; | ||
@@ -122,0 +122,0 @@ } |
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
27800