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

@emotion/babel-plugin

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/babel-plugin - npm Package Compare versions

Comparing version 11.0.0 to 11.1.2

9

CHANGELOG.md
# @emotion/babel-plugin
## 11.1.2
### Patch Changes
- [`de378ab8`](https://github.com/emotion-js/emotion/commit/de378ab8693c74be5714c6c12ccc191ed2d7ac1a) [#2147](https://github.com/emotion-js/emotion/pull/2147) Thanks [@macalinao](https://github.com/macalinao)! - Fixed an issue with template strings minifier crashing on two consecutive interpolations without any meaningful string in between them.
- Updated dependencies [[`ee6a673f`](https://github.com/emotion-js/emotion/commit/ee6a673f74e934bf738d5346ddfc7982caa23827)]:
- @emotion/memoize@0.7.5
## 11.0.0

@@ -4,0 +13,0 @@

6

dist/emotion-babel-plugin.cjs.dev.js

@@ -402,6 +402,6 @@ 'use strict';

if (preMatch) {
if (!preMatch && i === 0) {
strings.push(t.stringLiteral(''));
} else {
strings.push(t.stringLiteral(preMatch));
} else if (i === 0) {
strings.push(t.stringLiteral(''));
}

@@ -408,0 +408,0 @@

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

var value = _ref.value, p1 = _ref.p1, index = _ref.index, preMatch = str.substring(cursor, index);
cursor = cursor + preMatch.length + value.length, preMatch ? strings.push(t.stringLiteral(preMatch)) : 0 === i && strings.push(t.stringLiteral("")),
cursor = cursor + preMatch.length + value.length, preMatch || 0 !== i ? strings.push(t.stringLiteral(preMatch)) : strings.push(t.stringLiteral("")),
finalExpressions.push(expressions[p1]), i === matches.length - 1 && strings.push(t.stringLiteral(str.substring(index + value.length)));

@@ -191,0 +191,0 @@ })), interleave(strings, finalExpressions).filter((function(node) {

@@ -386,6 +386,6 @@ import _extends from '@babel/runtime/helpers/esm/extends';

if (preMatch) {
if (!preMatch && i === 0) {
strings.push(t.stringLiteral(''));
} else {
strings.push(t.stringLiteral(preMatch));
} else if (i === 0) {
strings.push(t.stringLiteral(''));
}

@@ -392,0 +392,0 @@

{
"name": "@emotion/babel-plugin",
"version": "11.0.0",
"version": "11.1.2",
"description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.",

@@ -20,3 +20,3 @@ "main": "dist/emotion-babel-plugin.cjs.js",

"@emotion/hash": "^0.8.0",
"@emotion/memoize": "^0.7.4",
"@emotion/memoize": "^0.7.5",
"@emotion/serialize": "^1.0.0",

@@ -23,0 +23,0 @@ "babel-plugin-macros": "^2.6.1",

@@ -109,6 +109,7 @@ // @flow

cursor = cursor + preMatch.length + value.length
if (preMatch) {
if (!preMatch && i === 0) {
strings.push(t.stringLiteral(''))
} else {
strings.push(t.stringLiteral(preMatch))
} else if (i === 0) {
strings.push(t.stringLiteral(''))
}

@@ -115,0 +116,0 @@

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