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

@stylexjs/stylex

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylexjs/stylex - npm Package Compare versions

Comparing version 0.1.0-beta.6 to 0.1.0-beta.7

16

lib/stylex.js

@@ -66,18 +66,2 @@ /**

}
// Style conditions, e.g., ':hover', '@media', etc.
// TODO: remove if #98 is fixed
else if (typeof value === 'object') {
const condition = prop;
const nestedStyleObject = value;
for (const conditionalProp in nestedStyleObject) {
const conditionalValue = nestedStyleObject[conditionalProp];
const conditionalProperty = condition + conditionalProp;
// Skip if conditional property has already been seen
if (!definedProperties.includes(conditionalProperty)) {
definedProperties.push(conditionalProperty);
definedPropertiesChunk.push(conditionalProperty);
classNameChunk += classNameChunk ? ' ' + conditionalValue : conditionalValue;
}
}
}
}

@@ -84,0 +68,0 @@ // Cache: write

2

package.json
{
"name": "@stylexjs/stylex",
"version": "0.1.0-beta.6",
"version": "0.1.0-beta.7",
"description": "A minimal runtime styling library for web.",

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