Comparing version 6.0.0-beta.4 to 6.0.0-beta.5
@@ -136,9 +136,9 @@ // Copyright (c) 2015-present, salesforce.com, inc. All rights reserved | ||
def.get('imports').reduce((aliases, i) => | ||
aliases.merge(i.get('aliases', Immutable.Map())) | ||
, Immutable.Map()).merge(aliases) | ||
aliases.merge(i.get('aliases', Immutable.OrderedMap())) | ||
, Immutable.OrderedMap()).merge(aliases) | ||
) | ||
.update('props', props => | ||
def.get('imports').reduce((props, i) => | ||
props.merge(i.get('props', Immutable.Map())) | ||
, Immutable.Map()).merge(props) | ||
props.merge(i.get('props', Immutable.OrderedMap())) | ||
, Immutable.OrderedMap()).merge(props) | ||
) | ||
@@ -191,6 +191,14 @@ .delete('imports') | ||
.get('props') | ||
.traverse(Either.of, prop => | ||
options.get('transforms', Immutable.List()).reduce((p, t) => | ||
.keySeq() | ||
.toList() | ||
.traverse(Either.of, key => { | ||
const prop = def.getIn(['props', key]) | ||
return options.get('transforms', Immutable.List()).reduce((p, t) => | ||
p.chain(transformValue(t)) | ||
, Either.of(prop)) | ||
}) | ||
.map(props => | ||
props.reduce((props, prop) => | ||
props.set(prop.get('name'), prop) | ||
, Immutable.OrderedMap()) | ||
) | ||
@@ -197,0 +205,0 @@ .map(props => |
{ | ||
"name": "theo", | ||
"version": "6.0.0-beta.4", | ||
"version": "6.0.0-beta.5", | ||
"license": "BSD-3-Clause", | ||
@@ -5,0 +5,0 @@ "description": "Design Tokens formatter", |
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
55532
1213