react-props-classnames
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -20,2 +20,6 @@ "use strict"; | ||
var getDisplayName = function getDisplayName(WrappedComponent) { | ||
return WrappedComponent.displayName || WrappedComponent.name || 'Unknown'; | ||
}; | ||
var _default = function _default(options) { | ||
@@ -36,3 +40,3 @@ return function (Component) { | ||
TransformedComponent.displayName = 'PropsTransformer'; | ||
TransformedComponent.displayName = "PropsTransformer(".concat(getDisplayName(Component), ")"); | ||
TransformedComponent.propTypes = { | ||
@@ -39,0 +43,0 @@ children: _propTypes.default.node, |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"main": "lib/index.js", | ||
@@ -17,0 +17,0 @@ "files": [ |
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
12422
122