New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-to-jsx

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-to-jsx - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

14

index.js

@@ -33,4 +33,14 @@ var _ = require('lodash');

var props = _.chain(component.props)
.omit('children')
var matchingProps;
if (component.type && component.type.defaultProps) {
matchingProps = _.omit(component.props, function (val, key) {
return component.type.defaultProps[key] === component.props[key];
});
} else {
matchingProps = component.props;
}
var props = _.chain(matchingProps)
.omit(['children'])
.transform(function (result, prop, key) {

@@ -37,0 +47,0 @@ if (_.isString(prop)) {

2

package.json
{
"name": "react-to-jsx",
"version": "1.1.0",
"version": "1.2.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "author": "Alex Lande",

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