@emotion/serialize
Advanced tools
Comparing version 0.2.1 to 0.4.1
@@ -82,2 +82,6 @@ 'use strict'; | ||
var serializeStyles = function serializeStyles(args) { | ||
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].cls !== undefined) { | ||
return args[0]; | ||
} | ||
var styles = ''; | ||
@@ -84,0 +88,0 @@ var identifierName = ''; |
@@ -78,2 +78,6 @@ import { hashString, memoize, unitless } from 'emotion-utils'; | ||
var serializeStyles = function serializeStyles(args) { | ||
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].cls !== undefined) { | ||
return args[0]; | ||
} | ||
var styles = ''; | ||
@@ -80,0 +84,0 @@ var identifierName = ''; |
{ | ||
"name": "@emotion/serialize", | ||
"version": "0.2.1", | ||
"version": "0.4.1", | ||
"description": "serialization utils for emotion", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -88,2 +88,10 @@ // @flow | ||
): ScopedInsertableStyles { | ||
if ( | ||
args.length === 1 && | ||
typeof args[0] === 'object' && | ||
args[0] !== null && | ||
args[0].cls !== undefined | ||
) { | ||
return args[0] | ||
} | ||
let styles = '' | ||
@@ -90,0 +98,0 @@ let identifierName = '' |
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
19183
272