styled-token
Advanced tools
Comparing version 1.0.0-1 to 1.0.0-2
@@ -70,7 +70,4 @@ function _typeof(obj) { | ||
for (var j = 0; j < properties.length && typeof currentValue !== 'undefined'; j += 1) { | ||
var property = properties[j]; // Skip empty string properties | ||
if (property) { | ||
currentValue = currentValue[property]; | ||
} | ||
var property = properties[j]; | ||
currentValue = currentValue[property]; | ||
} // Set outer value to the first defined value | ||
@@ -77,0 +74,0 @@ |
@@ -72,7 +72,4 @@ 'use strict'; | ||
for (var j = 0; j < properties.length && typeof currentValue !== 'undefined'; j += 1) { | ||
var property = properties[j]; // Skip empty string properties | ||
if (property) { | ||
currentValue = currentValue[property]; | ||
} | ||
var property = properties[j]; | ||
currentValue = currentValue[property]; | ||
} // Set outer value to the first defined value | ||
@@ -79,0 +76,0 @@ |
{ | ||
"name": "styled-token", | ||
"version": "1.0.0-1", | ||
"version": "1.0.0-2", | ||
"description": "A helper function for accessing token values from a styled-components theme", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
16065
257