Socket
Socket
Sign inDemoInstall

void-css

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

void-css - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

Untitled-1.md

2

package.json
{
"name": "void-css",
"version": "1.0.28",
"version": "1.0.29",
"description": "A JIT & statically compiled CSS processor",

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

@@ -9,2 +9,3 @@ const initialState = {

initiated: false,
classCache: {},
}

@@ -119,2 +120,8 @@ var state = JSON.parse(JSON.stringify(initialState));

const cache = state.classCache[JSON.stringify(input)];
if (cache) {
void log("Using cache", input);
return new window.Proxy(new ClassManager(cache), handler);
}
if (input !== undefined && input.toString() !== "[object Object]") {

@@ -157,2 +164,4 @@ const error = new TypeError(`Invalid Void CSS style input given, expected "undefined" or "Object" instead received "${input}".`);

state.classCache[JSON.stringify(input)] = classNames;
return new window.Proxy(new ClassManager(classNames), handler);

@@ -159,0 +168,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