wix-style-processor
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -119,4 +119,4 @@ 'use strict'; | ||
function recursiveEval(value) { | ||
value = value.toString(); | ||
var hasTransform = value.match(_get__('transformRegex')); | ||
var valueAsString = value.toString(); | ||
var hasTransform = valueAsString.match(_get__('transformRegex')); | ||
@@ -126,3 +126,3 @@ if (hasTransform) { | ||
var params = hasTransform[2]; | ||
var isSingleMatch = _get__('singleTransformRegex').test(value); | ||
var isSingleMatch = _get__('singleTransformRegex').test(valueAsString); | ||
@@ -129,0 +129,0 @@ var evaledParams = evalParameterList(params); |
@@ -32,2 +32,6 @@ 'use strict'; | ||
var _assign = require('babel-runtime/core-js/object/assign'); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _lodash = require('lodash'); | ||
@@ -85,2 +89,4 @@ | ||
ret = (0, _assign2.default)(ret, parsedFontStyles); | ||
_get__('_').each(ret, function (font, key) { | ||
@@ -99,4 +105,8 @@ if (isHebrew) { | ||
if (ret[key].lineHeight === 'normal') { | ||
ret[key].lineHeight = '1.5em'; // Wix's normal line height is 1.5em... | ||
ret[key].lineHeight = '1.4em'; // Wix's normal line height is 1.4em... | ||
} | ||
if (ret[key].size === 'normal') { | ||
ret[key].size = '17px'; | ||
} | ||
}); | ||
@@ -103,0 +113,0 @@ |
{ | ||
"name": "wix-style-processor", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "An alternative Wix Styles TPA processor", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
72308
1668