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

react-curry

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-curry - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

14

lib2/index.js

@@ -0,1 +1,7 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');

@@ -9,11 +15,9 @@

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
exports.default = function (ComponentOrElementName, preProps) {
return typeof ComponentOrElementName === 'string' ? function (props) {
return _react2.default.createElement.apply(_react2.default, [ComponentOrElementName].concat(_toConsumableArray((0, _lodash.merge)(preProps, props))));
return _react2.default.createElement(ComponentOrElementName, (0, _lodash.merge)(preProps, props));
} : function (props) {
return _react2.default.createElement(Component, (0, _lodash.merge)(preProps, props));
return _react2.default.createElement(ComponentOrElementName, (0, _lodash.merge)(preProps, props));
};
};
};
{
"name": "react-curry",
"version": "1.1.3",
"version": "1.1.4",
"description": "react stateless component curry",

@@ -5,0 +5,0 @@ "main": "./lib2/index.js",

@@ -5,6 +5,6 @@ import React from 'react';

export default (ComponentOrElementName, preProps) => {
return (typeof ComponentOrElementName === 'string')
? (props) => React.createElement(ComponentOrElementName, ...merge(preProps, props))
: (props) => <Component {...merge(preProps, props)} />
? (props) => React.createElement(ComponentOrElementName, merge(preProps, props))
: (props) => <ComponentOrElementName {...merge(preProps, props)} />
};
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