Socket
Socket
Sign inDemoInstall

less

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# 1.3.3
2012-12-30
- Fix critical bug with mixin call if using multiple brackets
- when using the filter contrast function, the function is passed through if the first argument is not a color
# 1.3.2

@@ -2,0 +9,0 @@

@@ -176,2 +176,7 @@ (function (tree) {

contrast: function (color, dark, light, threshold) {
// filter: contrast(3.2);
// should be kept as is, so check for color
if (!color.rgb) {
return null;
}
if (typeof light === 'undefined') {

@@ -178,0 +183,0 @@ light = this.rgba(255, 255, 255, 1.0);

2

lib/less/index.js

@@ -8,3 +8,3 @@ var path = require('path'),

var less = {
version: [1, 3, 2],
version: [1, 3, 3],
Parser: require('./parser').Parser,

@@ -11,0 +11,0 @@ importer: require('./parser').importer,

@@ -1088,3 +1088,3 @@ var less, tree, charset;

sel = $(this.entity);
expect(')');
if (!$(')')) { return null; }
return new(tree.Selector)([new(tree.Element)('', sel, i)]);

@@ -1134,2 +1134,3 @@ }

var selectors = [], s, rules, match, debugInfo;
save();

@@ -1136,0 +1137,0 @@

@@ -17,3 +17,4 @@ (function (tree) {

// in which case we call it, passing the evaluated arguments,
// or we simply print it out as it appeared originally [2].
// if this returns null or we cannot find the function, we
// simply print it out as it appeared originally [2].
//

@@ -27,7 +28,11 @@ // The *functions.js* file contains the built-in functions.

eval: function (env) {
var args = this.args.map(function (a) { return a.eval(env) });
var args = this.args.map(function (a) { return a.eval(env) }),
result;
if (this.name in tree.functions) { // 1.
try {
return tree.functions[this.name].apply(tree.functions, args);
result = tree.functions[this.name].apply(tree.functions, args);
if (result != null) {
return result;
}
} catch (e) {

@@ -39,6 +44,7 @@ throw { type: e.type || "Runtime",

}
} else { // 2.
return new(tree.Anonymous)(this.name +
"(" + args.map(function (a) { return a.toCSS(env) }).join(', ') + ")");
}
// 2.
return new(tree.Anonymous)(this.name +
"(" + args.map(function (a) { return a.toCSS(env) }).join(', ') + ")");
},

@@ -45,0 +51,0 @@

@@ -8,3 +8,3 @@ {

"contributors" : [],
"version" : "1.3.2",
"version" : "1.3.3",
"bin" : { "lessc": "./bin/lessc" },

@@ -11,0 +11,0 @@ "main" : "./lib/less/index",

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

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