Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wix-style-processor

Package Overview
Dependencies
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wix-style-processor - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

6

dist/replacer.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc