Socket
Socket
Sign inDemoInstall

wix-style-processor

Package Overview
Dependencies
166
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.24 to 1.1.25

3

dist/src/replacer.js

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

var defaultVarDeclarationRegex = /--([^:{)]+):\s*"([^;{]+?)";?/g;
var innerQuotesRegex = /"([^"]+)"/g;
var innerQuotesRegex = /"(color|opacity|darken|string|join|number|font|increment|incrementer|withoutOpacity)\((.*)\)"/g;
var transformRegex = /^(color|opacity|darken|string|join|number|font|increment|incrementer|withoutOpacity)\((.*)\)$/;

@@ -57,2 +57,3 @@ var singleTransformRegex = /^(\w*)\(([^()]+)\)$/;

(_a = runDeclarationTransformers(replacedKey, replacedVal), replacedKey = _a.replacedKey, replacedVal = _a.replacedVal);
console.log(innerMatch);
if (innerMatch) {

@@ -59,0 +60,0 @@ replacedVal = replaceInnerQuotes(replacedVal, innerMatch);

@@ -11,6 +11,6 @@ "use strict";

domService.getAllStyleTags().forEach(function (tagStyle) {
var css = tagStyle.originalTemplate || tagStyle.textContent;
var css = (tagStyle.originalTemplate || tagStyle.textContent).split('\n').join(' ');
var isStringHack = function (fontParam) { return fontParam.fontStyleParam === false; };
var isValidFontParam = function (fontParam) { return fontParam.family !== undefined; };
var colorStyles = lodash_1.omitBy(styleParams.colors || {}, function (v) { return lodash_1.isEqual(v, { value: "rgba(1,2,3,1)" }) || lodash_1.isEqual(v, { rgba: 'rgba(1,2,3,1)' }); });
var colorStyles = lodash_1.omitBy(styleParams.colors || {}, function (v) { return lodash_1.isEqual(v, { value: 'rgba(1,2,3,1)' }) || lodash_1.isEqual(v, { rgba: 'rgba(1,2,3,1)' }); });
var fontStyles = lodash_1.pickBy(styleParams.fonts, isValidFontParam);

@@ -31,3 +31,3 @@ var numbers = styleParams.numbers || {};

}).catch(function (err) {
console.error("failed updating styles", err);
console.error('failed updating styles', err);
throw err;

@@ -34,0 +34,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var style = require("./style.scss");
require("./style.scss");
var fakeTpaResponse = require("./fake-tpa-response.json");
var fakeTpaChanged = require("./fake-tpa-change.json");
var index_1 = require("../../src/index");
console.log(style);
if (window.name !== 'E2E') {

@@ -9,0 +8,0 @@ index_1.default.init({});

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

"description": "An alternative Wix Styles TPA processor",
"version": "1.1.24",
"version": "1.1.25",
"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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc