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

@emotion/styled-base

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/styled-base - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

21

dist/index.cjs.js
'use strict';
var emotionUtils = require('emotion-utils');
var React = require('react');
var emotionUtils = require('emotion-utils');
var core = require('@emotion/core');

@@ -15,15 +15,2 @@ var utils = require('@emotion/utils');

var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _assertThisInitialized(self) {

@@ -130,3 +117,3 @@ if (self === void 0) {

if (_this.props.className && typeof _this.props.className === 'string') {
if (typeof _this.props.className === 'string') {
className += utils.getRegisteredStyles(context.registered, classInterpolations, _this.props.className);

@@ -139,3 +126,3 @@ }

if (_this.serialized === undefined && (_this.shouldHydrate || !utils.isBrowser)) {
if (_this.serialized === undefined && _this.shouldHydrate) {
_this.serialized = rules;

@@ -149,3 +136,3 @@ }

if ((_this.shouldHydrate || !utils.isBrowser) && _this.serialized !== undefined) {
if (_this.shouldHydrate && _this.serialized !== undefined) {
return React.createElement(React.Fragment, null, React.createElement("style", {

@@ -152,0 +139,0 @@ "data-more": serialized.name,

27

dist/index.es.js

@@ -1,5 +0,5 @@

import { Component, Fragment, createElement } from 'react';
import { STYLES_KEY, memoize } from 'emotion-utils';
import { consumer, hydration } from '@emotion/core';
import { getRegisteredStyles, insertStyles, isBrowser } from '@emotion/utils';
import { memoize, STYLES_KEY } from 'emotion-utils';
import { createElement, Fragment, Component } from 'react';
import { hydration, consumer } from '@emotion/core';
import { getRegisteredStyles, insertStyles } from '@emotion/utils';
import { serializeStyles } from '@emotion/serialize';

@@ -13,15 +13,2 @@

var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _assertThisInitialized(self) {

@@ -128,3 +115,3 @@ if (self === void 0) {

if (_this.props.className && typeof _this.props.className === 'string') {
if (typeof _this.props.className === 'string') {
className += getRegisteredStyles(context.registered, classInterpolations, _this.props.className);

@@ -137,3 +124,3 @@ }

if (_this.serialized === undefined && (_this.shouldHydrate || !isBrowser)) {
if (_this.serialized === undefined && _this.shouldHydrate) {
_this.serialized = rules;

@@ -147,3 +134,3 @@ }

if ((_this.shouldHydrate || !isBrowser) && _this.serialized !== undefined) {
if (_this.shouldHydrate && _this.serialized !== undefined) {
return createElement(Fragment, null, createElement("style", {

@@ -150,0 +137,0 @@ "data-more": serialized.name,

{
"name": "@emotion/styled-base",
"version": "0.2.2",
"version": "0.2.3",
"description": "base styled API for emotion",

@@ -11,3 +11,3 @@ "main": "dist/index.cjs.js",

"@emotion/serialize": "^0.2.1",
"@emotion/types": "^0.2.0",
"@emotion/types": "^0.2.3",
"@emotion/utils": "^0.2.0",

@@ -14,0 +14,0 @@ "emotion-utils": "9.0.1"

@@ -16,3 +16,3 @@ // @flow

import { hydration, consumer } from '@emotion/core'
import { getRegisteredStyles, insertStyles, isBrowser } from '@emotion/utils'
import { getRegisteredStyles, insertStyles } from '@emotion/utils'
import { serializeStyles } from '@emotion/serialize'

@@ -81,3 +81,3 @@

})
if (this.props.className && typeof this.props.className === 'string') {
if (typeof this.props.className === 'string') {
className += getRegisteredStyles(

@@ -96,6 +96,3 @@ context.registered,

if (
this.serialized === undefined &&
(this.shouldHydrate || !isBrowser)
) {
if (this.serialized === undefined && this.shouldHydrate) {
this.serialized = rules

@@ -111,6 +108,3 @@ }

)
if (
(this.shouldHydrate || !isBrowser) &&
this.serialized !== undefined
) {
if (this.shouldHydrate && this.serialized !== undefined) {
return (

@@ -117,0 +111,0 @@ <React.Fragment>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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