Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/less/less.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-dean committed Jan 31, 2021
2 parents 4cc9b83 + 9538aba commit f4e7529
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
12 changes: 7 additions & 5 deletions dist/less.js
@@ -1,5 +1,5 @@
/**
* Less - Leaner CSS v4.1.0
* Less - Leaner CSS v4.1.1
* http://lesscss.org
*
* Copyright (c) 2009-2021, Alexis Sellier <self@cloudhead.net>
Expand Down Expand Up @@ -2890,7 +2890,8 @@
// so `1px + 2` will yield `3px`.
operate: function (context, op, other) {
/* 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 === '-') {
if (unit.numerator.length === 0 && unit.denominator.length === 0) {
unit = other.unit.clone();
Expand Down Expand Up @@ -3005,8 +3006,9 @@
if (b instanceof Dimension && a instanceof Color) {
b = b.toColor();
}
if (!a.operate) {
if (a instanceof Operation && a.op === '/' && context.math === MATH$1.PARENS_DIVISION) {
if (!a.operate || !b.operate) {
if ((a instanceof Operation || b instanceof Operation)
&& a.op === '/' && context.math === MATH$1.PARENS_DIVISION) {
return new Operation(this.op, [a, b], this.isSpaced);
}
throw { type: 'Operation',
Expand Down Expand Up @@ -10510,7 +10512,7 @@
return render;
}

var version = "4.1.0";
var version = "4.1.1";

function parseNodeVersion(version) {
var match = version.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/); // eslint-disable-line max-len
Expand Down
4 changes: 2 additions & 2 deletions dist/less.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/less.min.js.map

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions packages/less/dist/less.js
@@ -1,5 +1,5 @@
/**
* Less - Leaner CSS v4.1.0
* Less - Leaner CSS v4.1.1
* http://lesscss.org
*
* Copyright (c) 2009-2021, Alexis Sellier <self@cloudhead.net>
Expand Down Expand Up @@ -2890,7 +2890,8 @@
// so `1px + 2` will yield `3px`.
operate: function (context, op, other) {
/* 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 === '-') {
if (unit.numerator.length === 0 && unit.denominator.length === 0) {
unit = other.unit.clone();
Expand Down Expand Up @@ -3005,8 +3006,9 @@
if (b instanceof Dimension && a instanceof Color) {
b = b.toColor();
}
if (!a.operate) {
if (a instanceof Operation && a.op === '/' && context.math === MATH$1.PARENS_DIVISION) {
if (!a.operate || !b.operate) {
if ((a instanceof Operation || b instanceof Operation)
&& a.op === '/' && context.math === MATH$1.PARENS_DIVISION) {
return new Operation(this.op, [a, b], this.isSpaced);
}
throw { type: 'Operation',
Expand Down Expand Up @@ -10510,7 +10512,7 @@
return render;
}

var version = "4.1.0";
var version = "4.1.1";

function parseNodeVersion(version) {
var match = version.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/); // eslint-disable-line max-len
Expand Down
4 changes: 2 additions & 2 deletions packages/less/dist/less.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/less/dist/less.min.js.map

Large diffs are not rendered by default.

0 comments on commit f4e7529

Please sign in to comment.