Socket
Socket
Sign inDemoInstall

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.19 to 1.1.20

2

dist/src/replacer.js

@@ -8,3 +8,3 @@ "use strict";

var innerQuotesRegex = /"([^"]+)"/g;
var transformRegex = /^(color|opacity|darken|string|join|number|font|increment|incrementer)\((.*)\)$/;
var transformRegex = /^(color|opacity|darken|string|join|number|font|increment|incrementer|withoutOpacity)\((.*)\)$/;
var singleTransformRegex = /^(\w*)\(([^()]+)\)$/;

@@ -11,0 +11,0 @@ var processParamsRegex = /,(?![^(]*\))/g;

@@ -26,2 +26,6 @@ "use strict";

}
function withoutOpacity(params, siteVars, evalCustomVar) {
var colorVal = color(params, siteVars, evalCustomVar);
return (new Color(colorVal)).alpha(1).rgb().string();
}
function darken(params, siteVars, evalCustomVar) {

@@ -65,4 +69,4 @@ var colorVal = color(params, siteVars, evalCustomVar);

exports.default = {
color: color, number: number, font: font, opacity: opacity, join: join, darken: darken, string: string
color: color, number: number, font: font, opacity: opacity, join: join, darken: darken, string: string, withoutOpacity: withoutOpacity
};
//# sourceMappingURL=transformations.js.map

@@ -5,3 +5,3 @@ {

"description": "An alternative Wix Styles TPA processor",
"version": "1.1.19",
"version": "1.1.20",
"author": {

@@ -8,0 +8,0 @@ "name": "Eran Shabi",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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