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

less-openui5

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-openui5 - npm Package Compare versions

Comparing version 0.11.3 to 0.11.4

25

lib/plugin/css-variables-collector.js

@@ -14,2 +14,3 @@ "use strict";

this.parenStack = [];
this.fontFaceDirectiveStack = [];
};

@@ -24,4 +25,4 @@

_isInMixinOrParen() {
return this.mixinStack.length > 0 || this.parenStack.length > 0;
_isInMixinOrParenOrFontFaceDirective() {
return this.mixinStack.length > 0 || this.parenStack.length > 0 || this.fontFaceDirectiveStack.length > 0;
},

@@ -44,3 +45,3 @@

_isRelevant() {
return !this._isInMixinOrParen() && this._isVarInRule();
return !this._isInMixinOrParenOrFontFaceDirective() && this._isVarInRule();
},

@@ -159,3 +160,3 @@

const isVarDeclaration = typeof node.name === "string" && node.name.startsWith("@");
if (!this._isInMixinOrParen() && isVarDeclaration) {
if (!this._isInMixinOrParenOrFontFaceDirective() && isVarDeclaration) {
// add the variable declaration to the list of vars

@@ -206,2 +207,18 @@ const varName = node.name.substr(1);

visitDirective(node, visitArgs) {
// store the @font-face directive context
if (node.name === "@font-face") {
this.fontFaceDirectiveStack.push(node);
}
return node;
},
visitDirectiveOut(node) {
// remove @font-face directive context
if (node.name === "@font-face") {
this.fontFaceDirectiveStack.pop();
}
return node;
},
visitUrl(node, visitArgs) {

@@ -208,0 +225,0 @@ // we mark the less variables which should be updated after eval

2

package.json
{
"name": "less-openui5",
"version": "0.11.3",
"version": "0.11.4",
"description": "Build OpenUI5 themes with Less.js",

@@ -5,0 +5,0 @@ "author": {

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