less 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/less.js +7 -5
- package/dist/less.min.js +2 -2
- package/dist/less.min.js.map +1 -1
- package/lib/less/tree/dimension.js +2 -1
- package/lib/less/tree/dimension.js.map +1 -1
- package/lib/less/tree/operation.js +3 -2
- package/lib/less/tree/operation.js.map +1 -1
- package/lib/less-node/url-file-manager.js +2 -2
- package/lib/less-node/url-file-manager.js.map +1 -1
- package/package.json +1 -1
package/dist/less.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Less - Leaner CSS v4.1.
|
|
2
|
+
* Less - Leaner CSS v4.1.1
|
|
3
3
|
* http://lesscss.org
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2009-2021, Alexis Sellier <self@cloudhead.net>
|
|
@@ -2890,7 +2890,8 @@
|
|
|
2890
2890
|
// so `1px + 2` will yield `3px`.
|
|
2891
2891
|
operate: function (context, op, other) {
|
|
2892
2892
|
/* jshint noempty:false */
|
|
2893
|
-
var value = this._operate(context, op, this.value, other.value)
|
|
2893
|
+
var value = this._operate(context, op, this.value, other.value);
|
|
2894
|
+
var unit = this.unit.clone();
|
|
2894
2895
|
if (op === '+' || op === '-') {
|
|
2895
2896
|
if (unit.numerator.length === 0 && unit.denominator.length === 0) {
|
|
2896
2897
|
unit = other.unit.clone();
|
|
@@ -3005,8 +3006,9 @@
|
|
|
3005
3006
|
if (b instanceof Dimension && a instanceof Color) {
|
|
3006
3007
|
b = b.toColor();
|
|
3007
3008
|
}
|
|
3008
|
-
if (!a.operate) {
|
|
3009
|
-
if (a instanceof Operation
|
|
3009
|
+
if (!a.operate || !b.operate) {
|
|
3010
|
+
if ((a instanceof Operation || b instanceof Operation)
|
|
3011
|
+
&& a.op === '/' && context.math === MATH$1.PARENS_DIVISION) {
|
|
3010
3012
|
return new Operation(this.op, [a, b], this.isSpaced);
|
|
3011
3013
|
}
|
|
3012
3014
|
throw { type: 'Operation',
|
|
@@ -10510,7 +10512,7 @@
|
|
|
10510
10512
|
return render;
|
|
10511
10513
|
}
|
|
10512
10514
|
|
|
10513
|
-
var version = "4.1.
|
|
10515
|
+
var version = "4.1.1";
|
|
10514
10516
|
|
|
10515
10517
|
function parseNodeVersion(version) {
|
|
10516
10518
|
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
|