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

@emotion/cache

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/cache - npm Package Compare versions

Comparing version 11.6.0 to 11.7.1

6

CHANGELOG.md
# @emotion/cache
## 11.7.1
### Patch Changes
- [#2590](https://github.com/emotion-js/emotion/pull/2590) [`1554a7e2`](https://github.com/emotion-js/emotion/commit/1554a7e264e05780b2c5bd74ccb20a92005ba61d) Thanks [@Andarist](https://github.com/Andarist)! - Upgraded and pinned the version of Stylis - the CSS parser that Emotion uses under the hood.
## 11.6.0

@@ -4,0 +10,0 @@

5

dist/emotion-cache.browser.cjs.js

@@ -87,4 +87,5 @@ 'use strict';

var compat = function compat(element) {
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
!element.length) {
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
element.length < 1) {
return;

@@ -91,0 +92,0 @@ }

@@ -83,4 +83,5 @@ import { StyleSheet } from '@emotion/sheet';

var compat = function compat(element) {
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
!element.length) {
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
element.length < 1) {
return;

@@ -87,0 +88,0 @@ }

@@ -92,4 +92,5 @@ 'use strict';

var compat = function compat(element) {
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
!element.length) {
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
element.length < 1) {
return;

@@ -96,0 +97,0 @@ }

2

dist/emotion-cache.cjs.prod.js

@@ -47,3 +47,3 @@ "use strict";

}, fixedElements = new WeakMap, compat = function(element) {
if ("rule" === element.type && element.parent && element.length) {
if ("rule" === element.type && element.parent && !(element.length < 1)) {
for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type; ) if (!(parent = parent.parent)) return;

@@ -50,0 +50,0 @@ if ((1 !== element.props.length || 58 === value.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) {

@@ -83,4 +83,5 @@ import { StyleSheet } from '@emotion/sheet';

var compat = function compat(element) {
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
!element.length) {
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
element.length < 1) {
return;

@@ -87,0 +88,0 @@ }

{
"name": "@emotion/cache",
"version": "11.6.0",
"version": "11.7.1",
"description": "emotion's cache",

@@ -22,3 +22,3 @@ "main": "dist/emotion-cache.cjs.js",

"@emotion/weak-memoize": "^0.2.5",
"stylis": "^4.0.10"
"stylis": "4.0.13"
},

@@ -25,0 +25,0 @@ "devDependencies": {

@@ -92,4 +92,5 @@ import {

!element.parent ||
// .length indicates if this rule contains pseudo or not
!element.length
// positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
element.length < 1
) {

@@ -96,0 +97,0 @@ return

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