Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

styled-jsx

Package Overview
Dependencies
Maintainers
3
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-jsx - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

dist/inject.js

13

dist/style.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc