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

styleq

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styleq - npm Package Compare versions

Comparing version 0.0.0-09a1f61 to 0.0.0-337c800

2

package.json
{
"version": "0.0.0-09a1f61",
"version": "0.0.0-337c800",
"name": "styleq",

@@ -4,0 +4,0 @@ "main": "styleq.js",

@@ -263,3 +263,3 @@ # styleQ · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/necolas/styleq/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/styleq.svg?style=flat)](https://www.npmjs.com/package/styleq) [![Build Status](https://github.com/necolas/styleq/workflows/tests/badge.svg)](https://github.com/necolas/styleq/actions) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/necolas/styleq/blob/master/.github/CONTRIBUTING.md)

function View(props) {
const [ className, inlineStyle ] = styleq(styles.$reset, props.css);
const [ className, inlineStyle ] = styleq(reset, props.css);
return (

@@ -323,5 +323,8 @@ <div {...props} className={className} style={inlineStyle} />

const [ className, style ] = customStyleq(
// The dynamic value is set to the custom property.
// With static/dynamic mixing disabled, the position of the inline style
// is irrelevant. However, with mixing enabled, the best performance is
// achieved by placing inline styles earlier in the queue.
{ '--opacity-xyz': props.opacity },
compiledStyle,
// The dynamic value is set to the custom property
{ '--opacity-xyz': props.opacity },
props.css

@@ -328,0 +331,0 @@ );

@@ -99,3 +99,3 @@ /**

console.error(
`Compiled style value of ${value} is not "string."`
`styleq: typeof ${value} is not "string".`
);

@@ -102,0 +102,0 @@ }

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