Comparing version 1.0.28 to 1.0.29
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210188
84
4397