styled-jsx
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -23,2 +23,6 @@ 'use strict'; | ||
var components = []; | ||
var update = typeof window === 'undefined' ? doRender : updateOnClient; | ||
var requestId = void 0; | ||
var _class = function (_Component) { | ||
@@ -39,2 +43,7 @@ _inherits(_class, _Component); | ||
}, { | ||
key: 'componentWillUpdate', | ||
value: function componentWillUpdate() { | ||
update(); | ||
} | ||
}, { | ||
key: 'componentWillUnmount', | ||
@@ -57,6 +66,2 @@ value: function componentWillUnmount() { | ||
var components = []; | ||
var update = typeof window === 'undefined' ? doRender : updateOnClient; | ||
var requestId = void 0; | ||
function mount(component) { | ||
@@ -63,0 +68,0 @@ components.push(component); |
@@ -214,3 +214,3 @@ // based on Stylis (MIT) | ||
var inQuotes = false | ||
var inPseudo = false | ||
var inCombinatorOrPseudo = false | ||
var quoteChar = null | ||
@@ -259,5 +259,5 @@ | ||
} | ||
} else if (inPseudo) { | ||
} else if (inCombinatorOrPseudo) { | ||
if (' ' === chr) { | ||
inPseudo = false | ||
inCombinatorOrPseudo = false | ||
_line += piece + ' ' | ||
@@ -290,3 +290,7 @@ piece = '' | ||
piece = chr | ||
inPseudo = true | ||
inCombinatorOrPseudo = true | ||
} else if (chr === '+' || chr === '~' || chr === '>') { | ||
// combinators | ||
piece += chr | ||
inCombinatorOrPseudo = true | ||
} else { | ||
@@ -303,3 +307,3 @@ piece += chr | ||
_line += piece | ||
if (!inPseudo) { | ||
if (!inCombinatorOrPseudo) { | ||
_line += suffix | ||
@@ -306,0 +310,0 @@ } |
{ | ||
"name": "styled-jsx", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "zeit/styled-jsx", |
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
46180
16
836