Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reshow-build

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-build - npm Package Compare versions

Comparing version 0.17.10 to 0.17.11

23

build/cjs/src/index.js

@@ -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

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