@tokens-studio/sd-transforms
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -26,3 +26,3 @@ import Color from 'colorjs.io'; | ||
const transformProp = (val, prop) => { | ||
if (val[prop] !== undefined) { | ||
if (val[prop] !== undefined && typeof val[prop] === 'string') { | ||
val[prop] = transformHEXRGBa(val[prop]); | ||
@@ -29,0 +29,0 @@ } |
@@ -146,3 +146,4 @@ import { transformDimension } from './transformDimension.js'; | ||
transitive: true, | ||
filter: token => (token.$type ?? token.type) === 'color' && | ||
filter: token => typeof (token.$value ?? token.value) === 'string' && | ||
(token.$type ?? token.type) === 'color' && | ||
token.$extensions && | ||
@@ -149,0 +150,0 @@ token.$extensions['studio.tokens']?.modify, |
{ | ||
"name": "@tokens-studio/sd-transforms", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Custom transforms for Style-Dictionary, to work with Design Tokens that are exported from Tokens Studio", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
79950
1340