react-curry
Advanced tools
Comparing version 1.0.1 to 1.0.2
'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" |
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
1193
4
17