Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pretty-format

Package Overview
Dependencies
Maintainers
5
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-format - npm Package Compare versions

Comparing version 23.0.0-alpha.7 to 23.0.0-alpha.3r

9

build/plugins/react_element.js

@@ -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 @@ };

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc