@emotion/utils
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -37,3 +37,3 @@ var isBrowser = "object" !== 'undefined'; | ||
do { | ||
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); | ||
cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); | ||
@@ -40,0 +40,0 @@ current = current.next; |
export * from "./declarations/src/index"; | ||
//# sourceMappingURL=emotion-utils.cjs.d.ts.map |
@@ -24,3 +24,3 @@ function getRegisteredStyles(registered, registeredStyles, classNames) { | ||
// also, note that this check will be dead code eliminated in the browser | ||
cache.compat !== undefined) && cache.registered[className] === undefined) { | ||
cache.compat !== undefined) && cache.registered[className] === undefined) { | ||
cache.registered[className] = serialized.styles; | ||
@@ -40,3 +40,3 @@ } | ||
if ( maybeStyles !== undefined) { | ||
if (maybeStyles !== undefined) { | ||
stylesForSSR += maybeStyles; | ||
@@ -48,3 +48,3 @@ } | ||
if ( stylesForSSR.length !== 0) { | ||
if (stylesForSSR.length !== 0) { | ||
return stylesForSSR; | ||
@@ -51,0 +51,0 @@ } |
{ | ||
"name": "@emotion/utils", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "internal utils for emotion", | ||
@@ -17,2 +17,3 @@ "main": "dist/emotion-utils.cjs.js", | ||
}, | ||
"import": "./dist/emotion-utils.cjs.mjs", | ||
"default": "./dist/emotion-utils.cjs.js" | ||
@@ -19,0 +20,0 @@ }, |
18300
20
440