@emotion/utils
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -32,6 +32,2 @@ 'use strict'; | ||
} | ||
if (context.compat === undefined) { | ||
return context.inserted[insertable.name]; | ||
} | ||
} | ||
@@ -38,0 +34,0 @@ }; |
@@ -28,2 +28,6 @@ 'use strict'; | ||
context.inserted[insertable.name] = rules.join(''); | ||
if (context.compat === undefined) { | ||
return context.inserted[insertable.name]; | ||
} | ||
} else { | ||
@@ -35,6 +39,2 @@ rules.forEach(function (rule) { | ||
} | ||
if (context.compat === undefined) { | ||
return context.inserted[insertable.name]; | ||
} | ||
} | ||
@@ -41,0 +41,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionUtils={})}(this,function(e){"use strict";e.isBrowser=!0,e.shouldSerializeToReactTree=!1,e.getRegisteredStyles=function(t,i,e){var n="";return e.split(" ").forEach(function(e){void 0!==t[e]?i.push(t[e]):n+=e+" "}),n},e.insertStyles=function(t,e){if(void 0===t.registered[t.key+"-"+e.name]&&(t.registered[t.key+"-"+e.name]=e.styles),void 0===t.inserted[e.name]&&(t.stylis("."+t.key+"-"+e.name,e.styles).forEach(function(e){t.sheet.insert(e)}),t.inserted[e.name]=!0,void 0===t.compat))return t.inserted[e.name]},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionUtils={})}(this,function(e){"use strict";e.isBrowser=!0,e.shouldSerializeToReactTree=!1,e.getRegisteredStyles=function(t,i,e){var n="";return e.split(" ").forEach(function(e){void 0!==t[e]?i.push(t[e]):n+=e+" "}),n},e.insertStyles=function(t,e){void 0===t.registered[t.key+"-"+e.name]&&(t.registered[t.key+"-"+e.name]=e.styles),void 0===t.inserted[e.name]&&(t.stylis("."+t.key+"-"+e.name,e.styles).forEach(function(e){t.sheet.insert(e)}),t.inserted[e.name]=!0)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@emotion/utils", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "internal utils for emotion", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.es.js", | ||
"module": "dist/index.esm.js", | ||
"browser": { | ||
"./dist/index.cjs.js": "./dist/index.browser.cjs.js", | ||
"./dist/index.es.js": "./dist/index.browser.es.js" | ||
"./dist/index.esm.js": "./dist/index.browser.esm.js" | ||
}, | ||
@@ -16,3 +16,3 @@ "types": "types/index.d.ts", | ||
}, | ||
"repository": "https://github.com/emotion-js/next/tree/master/packages/serialize", | ||
"repository": "https://github.com/emotion-js/emotion/tree/master/next-packages/serialize", | ||
"publishConfig": { | ||
@@ -19,0 +19,0 @@ "access": "public" |
@@ -44,2 +44,5 @@ // @flow | ||
context.inserted[insertable.name] = rules.join('') | ||
if (context.compat === undefined) { | ||
return context.inserted[insertable.name] | ||
} | ||
} else { | ||
@@ -51,5 +54,2 @@ rules.forEach(rule => { | ||
} | ||
if (context.compat === undefined) { | ||
return context.inserted[insertable.name] | ||
} | ||
} | ||
@@ -56,0 +56,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21638
13
211