Socket
Socket
Sign inDemoInstall

@emotion/snapshot-serializer

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/snapshot-serializer - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

4

dist/index.cjs.js

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

nodes.forEach(function (node) {
if (typeof node.props['data-more'] === 'string') {
if (typeof node.props['data-emotion-ssr'] === 'string') {
try {

@@ -80,3 +80,3 @@ var replaced = node.props.dangerouslySetInnerHTML.__html.replace(clsPattern, _ref4); // split the string by line to get correct indentation

delete node.props['data-more'];
delete node.props['data-emotion-ssr'];
delete node.props.dangerouslySetInnerHTML;

@@ -83,0 +83,0 @@ }

@@ -67,3 +67,3 @@ import { parse, stringify } from 'css';

nodes.forEach(function (node) {
if (typeof node.props['data-more'] === 'string') {
if (typeof node.props['data-emotion-ssr'] === 'string') {
try {

@@ -78,3 +78,3 @@ var replaced = node.props.dangerouslySetInnerHTML.__html.replace(clsPattern, _ref4); // split the string by line to get correct indentation

delete node.props['data-more'];
delete node.props['data-emotion-ssr'];
delete node.props.dangerouslySetInnerHTML;

@@ -81,0 +81,0 @@ }

{
"name": "@emotion/snapshot-serializer",
"version": "0.4.0",
"version": "0.5.0",
"description": "A snapshot serializer for jest and emotion",

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

@@ -49,3 +49,3 @@ // @flow

nodes.forEach(node => {
if (typeof node.props['data-more'] === 'string') {
if (typeof node.props['data-emotion-ssr'] === 'string') {
try {

@@ -69,3 +69,3 @@ const replaced = node.props.dangerouslySetInnerHTML.__html.replace(

delete node.props['data-more']
delete node.props['data-emotion-ssr']
delete node.props.dangerouslySetInnerHTML

@@ -72,0 +72,0 @@ }

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