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

class-styles

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-styles - npm Package Compare versions

Comparing version 1.0.0-rc.4 to 1.0.0-rc.5

4

HISTORY.md
# Changelog
## v1.0.0-rc.5
Removed non-ES5 code for use in all environments.
## v1.0.0-rc.3

@@ -4,0 +8,0 @@

23

index.js

@@ -16,7 +16,7 @@ /*!

// underlying values
var isInheritValue = (value) => (
value === undefined || value === null || typeof value === 'boolean' || value === ''
)
function isInheritValue (value) {
return (value === undefined || value === null || typeof value === 'boolean' || value === '')
}
var onlyInheritable = (object) => {
function onlyInheritable (object) {
var result = {}

@@ -62,9 +62,14 @@

return styles.reduce(
(result, style) => (typeof style === 'object' // else, it's an array
? objectAssign(result, onlyInheritable(style))
: objectAssign(result, stylesArray.reduce(
(keyResult, thisStyle) => objectAssign(keyResult, onlyInheritable(thisStyle[style])),
function (result, style) {
return (
typeof style === 'object' // else, it's an array
? objectAssign(result, onlyInheritable(style))
: objectAssign(result, stylesArray.reduce(
function (keyResult, thisStyle) {
return objectAssign(keyResult, onlyInheritable(thisStyle[style]))
},
{}
))
), {})
)
}, {})
}

@@ -71,0 +76,0 @@

{
"name": "class-styles",
"version": "1.0.0-rc.4",
"version": "1.0.0-rc.5",
"description": "A simple utility for folding style objects like css classes",

@@ -5,0 +5,0 @@ "main": "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