Socket
Socket
Sign inDemoInstall

substyle

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

substyle - npm Package Compare versions

Comparing version 6.1.3 to 6.1.4

6

lib/createSubstyle.js

@@ -147,6 +147,6 @@ 'use strict';

var styleProps = _extends({}, styleIsFunction ? style : { style: style });
var classNameSplitted = [].concat(_toConsumableArray(styleProps.className ? styleProps.className.split(' ') : []), _toConsumableArray(baseClassName ? baseClassName.split(' ') : []));
var mappedClassNames = classNames ? (0, _compact3.default)(classNameSplitted.map(function (singleClassName) {
var classNameSplit = [].concat(_toConsumableArray(styleProps.className ? styleProps.className.split(' ') : []), _toConsumableArray(baseClassName ? baseClassName.split(' ') : []));
var mappedClassNames = classNames ? (0, _compact3.default)(classNameSplit.map(function (singleClassName) {
return classNames[singleClassName];
})) : classNameSplitted;
})) : classNameSplit;

@@ -153,0 +153,0 @@ var propsForSpread = propsDecorator(_extends({}, styleProps, mappedClassNames.length > 0 && {

{
"name": "substyle",
"version": "6.1.3",
"version": "6.1.4",
"description": "Universal styling for reusable React components",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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