Socket
Socket
Sign inDemoInstall

@emotion/utils

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/utils - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

dist/index.cjs.js

@@ -17,3 +17,3 @@ 'use strict';

}
var insertStyles = function insertStyles(context, insertable, shouldHydrate) {
var insertStyles = function insertStyles(context, insertable, hydrationRender) {
if (insertable.type === 1 && context.registered["css-" + insertable.name] === undefined) {

@@ -31,3 +31,3 @@ context.registered["css-" + insertable.name] = insertable.styles;

if (isBrowser) {
if (isBrowser && hydrationRender === false) {
rules.forEach(_ref);

@@ -34,0 +34,0 @@ }

@@ -13,3 +13,3 @@ var isBrowser = typeof document !== 'undefined';

}
var insertStyles = function insertStyles(context, insertable, shouldHydrate) {
var insertStyles = function insertStyles(context, insertable, hydrationRender) {
if (insertable.type === 1 && context.registered["css-" + insertable.name] === undefined) {

@@ -27,3 +27,3 @@ context.registered["css-" + insertable.name] = insertable.styles;

if (isBrowser) {
if (isBrowser && hydrationRender === false) {
rules.forEach(_ref);

@@ -30,0 +30,0 @@ }

{
"name": "@emotion/utils",
"version": "0.4.0",
"version": "0.4.1",
"description": "internal utils for emotion",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

@@ -26,3 +26,3 @@ // @flow

insertable: InsertableStyles,
shouldHydrate: boolean
hydrationRender: boolean
) => {

@@ -41,3 +41,3 @@ if (

context.inserted[insertable.name] = rules.join('')
if (isBrowser) {
if (isBrowser && hydrationRender === false) {
rules.forEach(rule => {

@@ -44,0 +44,0 @@ context.sheet.insert(rule)

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