reshow-build
Advanced tools
Comparing version 0.17.10 to 0.17.11
@@ -51,9 +51,10 @@ "use strict"; | ||
var _ref2 = props || {}, | ||
children = _ref2.children, | ||
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref2, _excluded); | ||
var isValidComp = /*#__PURE__*/(0, _react.isValidElement)(component); | ||
var params = [component, otherProps]; | ||
child = child || children; | ||
if (isValidComp && !(0, _reshowConstant.OBJ_SIZE)(props) && null == child) { | ||
return component; | ||
} | ||
var params = [component, props]; | ||
if (child != _reshowConstant.T_NULL) { | ||
@@ -64,7 +65,9 @@ params.push(child); | ||
if (_reshowConstant.STRING === typeof component && component !== component.replace(/[^a-z]/g, "")) { | ||
var children = props.children, | ||
restProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded); | ||
return buildReact( /*#__PURE__*/(0, _jsxRuntime.jsx)("span", { | ||
children: component | ||
}), otherProps); | ||
}), restProps); | ||
} else { | ||
return ( /*#__PURE__*/(0, _react.isValidElement)(component) ? _react.cloneElement : _react.createElement).apply(_reshowConstant.T_NULL, params); | ||
return (isValidComp ? _react.cloneElement : _react.createElement).apply(_reshowConstant.T_NULL, params); | ||
} | ||
@@ -83,5 +86,5 @@ }; | ||
var _ref3 = componentOption || {}, | ||
wrap = _ref3.wrap, | ||
doCallFunction = _ref3.doCallFunction; | ||
var _ref2 = componentOption || {}, | ||
wrap = _ref2.wrap, | ||
doCallFunction = _ref2.doCallFunction; | ||
@@ -88,0 +91,0 @@ if (wrap) { |
{ | ||
"version": "0.17.10", | ||
"version": "0.17.11", | ||
"name": "reshow-build", | ||
@@ -4,0 +4,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
25318
637