react-gateway
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _GatewayRegistry = require('./GatewayRegistry'); | ||
@@ -60,8 +64,8 @@ | ||
Gateway.contextTypes = { | ||
gatewayRegistry: _react2.default.PropTypes.instanceOf(_GatewayRegistry2.default).isRequired | ||
gatewayRegistry: _propTypes2.default.instanceOf(_GatewayRegistry2.default).isRequired | ||
}; | ||
Gateway.propTypes = { | ||
into: _react2.default.PropTypes.string.isRequired, | ||
children: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.element, _react2.default.PropTypes.string]) | ||
into: _propTypes2.default.string.isRequired, | ||
children: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.string]) | ||
}; | ||
exports.default = Gateway; |
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _GatewayRegistry = require('./GatewayRegistry'); | ||
@@ -64,9 +68,9 @@ | ||
GatewayDest.contextTypes = { | ||
gatewayRegistry: _react2.default.PropTypes.instanceOf(_GatewayRegistry2.default).isRequired | ||
gatewayRegistry: _propTypes2.default.instanceOf(_GatewayRegistry2.default).isRequired | ||
}; | ||
GatewayDest.propTypes = { | ||
name: _react2.default.PropTypes.string.isRequired, | ||
tagName: (0, _reactPropTypes.deprecated)(_react2.default.PropTypes.string, 'Use "component" instead.'), | ||
component: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.func]) | ||
name: _propTypes2.default.string.isRequired, | ||
tagName: (0, _reactPropTypes.deprecated)(_propTypes2.default.string, 'Use "component" instead.'), | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]) | ||
}; | ||
exports.default = GatewayDest; |
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _GatewayRegistry = require('./GatewayRegistry'); | ||
@@ -48,7 +52,7 @@ | ||
GatewayProvider.childContextTypes = { | ||
gatewayRegistry: _react2.default.PropTypes.instanceOf(_GatewayRegistry2.default).isRequired | ||
gatewayRegistry: _propTypes2.default.instanceOf(_GatewayRegistry2.default).isRequired | ||
}; | ||
GatewayProvider.propTypes = { | ||
children: _react2.default.PropTypes.element | ||
children: _propTypes2.default.element | ||
}; | ||
exports.default = GatewayProvider; |
{ | ||
"name": "react-gateway", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "Render React DOM into a new context", | ||
@@ -25,2 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"prop-types": "^15.5.0", | ||
"react": "^0.14.2 || ^15.0.0-0", | ||
@@ -27,0 +28,0 @@ "react-prop-types": "^0.4.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
19008
198
3
1
+ Addedprop-types@^15.5.0