@emotion/snapshot-serializer
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17120