less 4.9.0 → 4.9.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Less - Leaner CSS v4.9.0
2
+ * Less - Leaner CSS v4.9.1
3
3
  * http://lesscss.org
4
4
  *
5
5
  * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
@@ -4869,7 +4869,10 @@ class Declaration extends Node {
4869
4869
  context.importantScope.push({});
4870
4870
  evaldValue = /** @type {Node} */ (this.value).eval(context);
4871
4871
 
4872
- if (!this.variable && evaldValue.type === 'DetachedRuleset') {
4872
+ // A mixin call used as a property value (without a lookup) evaluates
4873
+ // to its ruleset, which arrives here as an array of rules; without
4874
+ // this guard it renders as `[object Object]`.
4875
+ if (!this.variable && (evaldValue.type === 'DetachedRuleset' || Array.isArray(evaldValue))) {
4873
4876
  throw { message: 'Rulesets cannot be evaluated on a property.',
4874
4877
  index: this.getIndex(), filename: this.fileInfo().filename };
4875
4878
  }
@@ -14617,7 +14620,7 @@ var imageSize = environment => {
14617
14620
  };
14618
14621
 
14619
14622
  createRequire();
14620
- const version = "4.9.0";
14623
+ const version = "4.9.1";
14621
14624
 
14622
14625
  const less = createFromEnvironment(environment, [new FileManager(), new UrlFileManager()], version);
14623
14626
 
package/dist/less.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Less - Leaner CSS v4.9.0
2
+ * Less - Leaner CSS v4.9.1
3
3
  * http://lesscss.org
4
4
  *
5
5
  * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
@@ -4701,7 +4701,10 @@
4701
4701
  context.importantScope.push({});
4702
4702
  evaldValue = /** @type {Node} */ (this.value).eval(context);
4703
4703
 
4704
- if (!this.variable && evaldValue.type === 'DetachedRuleset') {
4704
+ // A mixin call used as a property value (without a lookup) evaluates
4705
+ // to its ruleset, which arrives here as an array of rules; without
4706
+ // this guard it renders as `[object Object]`.
4707
+ if (!this.variable && (evaldValue.type === 'DetachedRuleset' || Array.isArray(evaldValue))) {
4705
4708
  throw { message: 'Rulesets cannot be evaluated on a property.',
4706
4709
  index: this.getIndex(), filename: this.fileInfo().filename };
4707
4710
  }
@@ -14683,7 +14686,7 @@
14683
14686
  };
14684
14687
 
14685
14688
  var name = "less";
14686
- var version = "4.9.0";
14689
+ var version = "4.9.1";
14687
14690
  var description = "Leaner CSS";
14688
14691
  var homepage = "http://lesscss.org";
14689
14692
  var author = {
package/dist/less.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Less - Leaner CSS v4.9.0
2
+ * Less - Leaner CSS v4.9.1
3
3
  * http://lesscss.org
4
4
  *
5
5
  * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
@@ -4701,7 +4701,10 @@
4701
4701
  context.importantScope.push({});
4702
4702
  evaldValue = /** @type {Node} */ (this.value).eval(context);
4703
4703
 
4704
- if (!this.variable && evaldValue.type === 'DetachedRuleset') {
4704
+ // A mixin call used as a property value (without a lookup) evaluates
4705
+ // to its ruleset, which arrives here as an array of rules; without
4706
+ // this guard it renders as `[object Object]`.
4707
+ if (!this.variable && (evaldValue.type === 'DetachedRuleset' || Array.isArray(evaldValue))) {
4705
4708
  throw { message: 'Rulesets cannot be evaluated on a property.',
4706
4709
  index: this.getIndex(), filename: this.fileInfo().filename };
4707
4710
  }
@@ -14683,7 +14686,7 @@
14683
14686
  };
14684
14687
 
14685
14688
  var name = "less";
14686
- var version = "4.9.0";
14689
+ var version = "4.9.1";
14687
14690
  var description = "Leaner CSS";
14688
14691
  var homepage = "http://lesscss.org";
14689
14692
  var author = {