Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0.1 to 1.0.2

25

lib/index.js
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
Object.defineProperty(exports, "__esModule", {
value: true
});

@@ -9,21 +11,10 @@ var _react = require('react');

var _lodash = require('lodash');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var K = function K() {
return _react2.default.createElement(
'div',
null,
'a'
);
};
var la = function la(Component, obj) {
exports.default = function (Component, obj) {
return function (props) {
return _react2.default.createElement(Component, _extends({}, obj, props));
return _react2.default.createElement(Component, (0, _lodash.merge)(obj, props));
};
};
var Yo = la(K, { a: 1 });
console.log(Yo);
_react2.default.render(_react2.default.createElement(Yo, null), document.body);
};
{
"name": "react-curry",
"version": "1.0.1",
"version": "1.0.2",
"description": "react stateless curry",
"main": "index.js",
"main": "./lib/index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

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