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

ui-box

Package Overview
Dependencies
Maintainers
223
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-box - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

2

dist/src/enhance-props.d.ts

@@ -9,3 +9,3 @@ /// <reference types="react" />

}
export default function enhanceProps(props: EnhancerProps & React.ComponentPropsWithoutRef<any>, selectorHead?: string): EnhancedPropsResult;
export default function enhanceProps(props: EnhancerProps & React.ComponentPropsWithoutRef<any>, selectorHead?: string, parentProperty?: string): EnhancedPropsResult;
export {};

@@ -17,6 +17,4 @@ "use strict";

const styles = __importStar(require("./styles"));
function noAnd(s) {
return s.replace(/&/g, '');
}
function enhanceProps(props, selectorHead = '') {
const SELECTORS_PROP = 'selectors';
function enhanceProps(props, selectorHead = '', parentProperty = '') {
const propsMap = expand_aliases_1.default(props);

@@ -26,5 +24,6 @@ const preservedProps = {};

for (const [property, value] of propsMap) {
if (value && typeof value === 'object') {
const isSelectorOrChildProp = property === SELECTORS_PROP || parentProperty === SELECTORS_PROP;
if (isObject(value) && isSelectorOrChildProp) {
const prop = property === 'selectors' ? '' : property;
const parsed = enhanceProps(value, noAnd(selectorHead + prop));
const parsed = enhanceProps(value, noAnd(selectorHead + prop), property);
className = `${className} ${parsed.className}`;

@@ -57,1 +56,3 @@ continue;

exports.default = enhanceProps;
const isObject = (value) => value != null && typeof value === 'object';
const noAnd = (value) => value.replace(/&/g, '');
{
"name": "ui-box",
"version": "5.2.0",
"version": "5.2.1",
"description": "Blazing Fast React UI Primitive",

@@ -5,0 +5,0 @@ "contributors": [

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