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

@cssfn/cssfn

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cssfn/cssfn - npm Package Compare versions

Comparing version 2.0.29 to 2.0.30

5

dist/cssfn-encoders.js

@@ -70,2 +70,6 @@ const isTransferablePrimitive = (propValue) => {

return undefined; // falsy style => ignore
// an empty string key is a special property for storing (nested) rules
// if exists => assumes as already encoded:
if ('' in style)
return style;
// SLOW:

@@ -98,2 +102,3 @@ // const encodedStyle = Object.fromEntries(

);
// expensive op! causing chrome's to re-create hidden class:
encodedStyle[''] = nestedRules; // an empty string key is a special property for storing (nested) rules

@@ -100,0 +105,0 @@ } // if

5

package.json
{
"name": "@cssfn/cssfn",
"version": "2.0.29",
"version": "2.0.30",
"description": "Writes, imports, and exports css stylesheets as javascript modules.",

@@ -49,3 +49,4 @@ "keywords": [

"jsdom": "^20.0.3"
}
},
"gitHead": "a670cae14689c166a17138ffde1e1507f62cea4e"
}

@@ -140,2 +140,8 @@ // cssfn:

// an empty string key is a special property for storing (nested) rules
// if exists => assumes as already encoded:
if ('' in style) return style as EncodedCssStyle;
// SLOW:

@@ -178,2 +184,6 @@ // const encodedStyle = Object.fromEntries(

);
// expensive op! causing chrome's to re-create hidden class:
encodedStyle['' as any] = nestedRules as any; // an empty string key is a special property for storing (nested) rules

@@ -180,0 +190,0 @@ } // if

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