less
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -32,4 +32,4 @@ "use strict"; | ||
request.get(hackUrlStr, { follow_max: 5 }, function (err, resp, body) { | ||
if (err || resp.statusCode >= 400) { | ||
var message = resp.statusCode === 404 | ||
if (err || resp && resp.statusCode >= 400) { | ||
var message = resp && resp.statusCode === 404 | ||
? "resource '" + urlStr + "' was not found\n" | ||
@@ -36,0 +36,0 @@ : "resource '" + urlStr + "' gave this Error:\n " + (err || resp.statusMessage || resp.statusCode) + "\n"; |
@@ -60,3 +60,4 @@ "use strict"; | ||
/* jshint noempty:false */ | ||
var value = this._operate(context, op, this.value, other.value), unit = this.unit.clone(); | ||
var value = this._operate(context, op, this.value, other.value); | ||
var unit = this.unit.clone(); | ||
if (op === '+' || op === '-') { | ||
@@ -63,0 +64,0 @@ if (unit.numerator.length === 0 && unit.denominator.length === 0) { |
@@ -29,4 +29,5 @@ "use strict"; | ||
} | ||
if (!a.operate) { | ||
if (a instanceof Operation && a.op === '/' && context.math === MATH.PARENS_DIVISION) { | ||
if (!a.operate || !b.operate) { | ||
if ((a instanceof Operation || b instanceof Operation) | ||
&& a.op === '/' && context.math === MATH.PARENS_DIVISION) { | ||
return new Operation(this.op, [a, b], this.isSpaced); | ||
@@ -33,0 +34,0 @@ } |
{ | ||
"name": "less", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Leaner CSS", | ||
@@ -5,0 +5,0 @@ "homepage": "http://lesscss.org", |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
2771097
26182