pretty-format
Advanced tools
Comparing version 23.0.0-alpha.7 to 23.0.0-alpha.3r
@@ -21,2 +21,3 @@ 'use strict'; | ||
const fragmentSymbol = Symbol.for('react.fragment'); | ||
const forwardRefSymbol = Symbol.for('react.forward_ref'); | ||
@@ -49,2 +50,10 @@ // Given element.props.children, or subtree during recursive traversal, | ||
} | ||
if (element.type === forwardRefSymbol) { | ||
const functionName = | ||
element.type.render.displayName || element.type.render.name || ''; | ||
return functionName !== '' | ||
? 'ForwardRef(' + functionName + ')' | ||
: 'ForwardRef'; | ||
} | ||
return 'UNDEFINED'; | ||
@@ -51,0 +60,0 @@ }; |
{ | ||
"name": "pretty-format", | ||
"version": "23.0.0-alpha.7", | ||
"version": "23.0.0-alpha.3r", | ||
"repository": { | ||
@@ -16,3 +16,9 @@ "type": "git", | ||
"ansi-styles": "^3.2.0" | ||
}, | ||
"devDependencies": { | ||
"immutable": "^4.0.0-rc.9", | ||
"react": "*", | ||
"react-dom": "*", | ||
"react-test-renderer": "*" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
431479
6020
4