create-emotion-server
Advanced tools
Comparing version 9.2.5 to 9.2.6
@@ -23,3 +23,5 @@ 'use strict'; | ||
while ((match = RGX.exec(html)) !== null) { | ||
// $FlowFixMe | ||
if (ids[match[1]] === undefined) { | ||
// $FlowFixMe | ||
ids[match[1]] = true; | ||
@@ -77,2 +79,3 @@ } | ||
while ((match = regex.exec(html)) !== null) { | ||
// $FlowFixMe | ||
if (match[0] === '<') { | ||
@@ -83,9 +86,12 @@ if (ids !== '') { | ||
styles = ''; | ||
} | ||
} // $FlowFixMe | ||
result += html.substring(lastInsertionPoint, match.index); | ||
result += html.substring(lastInsertionPoint, match.index); // $FlowFixMe | ||
lastInsertionPoint = match.index; | ||
continue; | ||
} | ||
} // $FlowFixMe | ||
var _id = match[1]; | ||
@@ -92,0 +98,0 @@ var _style = inserted[_id]; |
{ | ||
"name": "create-emotion-server", | ||
"version": "9.2.5", | ||
"version": "9.2.6", | ||
"description": "SSR and style extraction tooling for emotion, The Next Generation of CSS-in-JS.", | ||
@@ -23,4 +23,4 @@ "main": "dist/index.js", | ||
"dtslint": "^0.3.0", | ||
"emotion": "^9.2.5", | ||
"react-emotion": "^9.2.5" | ||
"emotion": "^9.2.6", | ||
"react-emotion": "^9.2.6" | ||
}, | ||
@@ -27,0 +27,0 @@ "author": "Kye Hohenberger", |
@@ -13,3 +13,5 @@ // @flow | ||
while ((match = RGX.exec(html)) !== null) { | ||
// $FlowFixMe | ||
if (ids[match[1]] === undefined) { | ||
// $FlowFixMe | ||
ids[match[1]] = true | ||
@@ -16,0 +18,0 @@ } |
@@ -48,2 +48,3 @@ // @flow | ||
while ((match = regex.exec(html)) !== null) { | ||
// $FlowFixMe | ||
if (match[0] === '<') { | ||
@@ -55,7 +56,9 @@ if (ids !== '') { | ||
} | ||
// $FlowFixMe | ||
result += html.substring(lastInsertionPoint, match.index) | ||
// $FlowFixMe | ||
lastInsertionPoint = match.index | ||
continue | ||
} | ||
// $FlowFixMe | ||
const id = match[1] | ||
@@ -62,0 +65,0 @@ const style = inserted[id] |
Sorry, the diff of this file is not supported yet
22214
349