Socket
Socket
Sign inDemoInstall

wix-style-processor

Package Overview
Dependencies
52
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

25

dist/wixStylesColorUtils.js

@@ -47,16 +47,14 @@ 'use strict';

var ret = {};
var returnValue = {};
// Fix color styles due to '.' to '-' conversion
var fixedColorStyles = {};
_get__('_').each(colorStyles, function (v, k) {
return fixedColorStyles[k.replace(/\./g, '-')] = v.value;
});
ret = (0, _assign2.default)(ret, fixedColorStyles);
for (var key in colorStyles) {
fixedColorStyles[key.replace(/\./g, '-')] = colorStyles[key].value;
}
// Helper functions
// Basic definitions
ret['white'] = '#FFFFFF';
ret['black'] = '#000000';
returnValue['white'] = '#FFFFFF';
returnValue['black'] = '#000000';
// Basic template colors

@@ -66,9 +64,10 @@ _get__('_').each(siteColors, function (_ref2) {

value = _ref2.value;
return ret[reference] = (fixedColorStyles[reference] || {}).value || value;
returnValue[reference] = value;
});
returnValue = (0, _assign2.default)(returnValue, fixedColorStyles);
// Fix for a bug in a very specific template
ret.background = (fixedColorStyles.background || {}).value || ret['color-1'] === '#FFFFFF' && ret['color-2'] === '#F4EFE1' ? ret['color-2'] : ret['color-1'];
return ret;
returnValue.background = (fixedColorStyles.background || {}).value || returnValue['color-1'] === '#FFFFFF' && returnValue['color-2'] === '#F4EFE1' ? returnValue['color-2'] : returnValue['color-1'];
return returnValue;
},

@@ -75,0 +74,0 @@ calcValueFromString: function calcValueFromString(_ref3) {

{
"name": "wix-style-processor",
"version": "1.1.1",
"version": "1.1.2",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc