Comparing version 5.1.2 to 5.1.3
@@ -25,3 +25,3 @@ 'use strict'; | ||
var name = cls[0].split('-')[1]; | ||
var name = typeof cls[0] === 'string' ? cls[0].split('-')[1] : ''; | ||
var componentTag = tag.displayName || tag.name || 'Component'; | ||
@@ -28,0 +28,0 @@ Styled.displayName = 'styled(' + componentTag + name + ')'; |
{ | ||
"name": "emotion", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "high performance css-in-js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -30,3 +30,3 @@ import React from 'react' | ||
const name = cls[0].split('-')[1] | ||
const name = typeof cls[0] === 'string' ? cls[0].split('-')[1] : '' | ||
const componentTag = tag.displayName || tag.name || 'Component' | ||
@@ -33,0 +33,0 @@ Styled.displayName = `styled(${componentTag}${name})` |
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
112948