mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
parent
2e7db70e2d
commit
b19b3b141d
@ -6,6 +6,11 @@
|
|||||||
embedding the sources, when using the command-line interface or the legacy JS
|
embedding the sources, when using the command-line interface or the legacy JS
|
||||||
API.
|
API.
|
||||||
|
|
||||||
|
### JS API
|
||||||
|
|
||||||
|
* `SassNumber.assertUnit()` and `SassNumber.assertNoUnits()` now correctly
|
||||||
|
return the number called on when it passes the assertion.
|
||||||
|
|
||||||
## 1.51.0
|
## 1.51.0
|
||||||
|
|
||||||
* **Potentially breaking change**: Change the order of maps returned by
|
* **Potentially breaking change**: Change the order of maps returned by
|
||||||
|
@ -38,9 +38,9 @@ final JSClass numberClass = () {
|
|||||||
'assertInRange': (SassNumber self, num min, num max, [String? name]) =>
|
'assertInRange': (SassNumber self, num min, num max, [String? name]) =>
|
||||||
self.valueInRange(min, max, name),
|
self.valueInRange(min, max, name),
|
||||||
'assertNoUnits': (SassNumber self, [String? name]) =>
|
'assertNoUnits': (SassNumber self, [String? name]) =>
|
||||||
self.assertNoUnits(name),
|
self..assertNoUnits(name),
|
||||||
'assertUnit': (SassNumber self, String unit, [String? name]) =>
|
'assertUnit': (SassNumber self, String unit, [String? name]) =>
|
||||||
self.assertUnit(unit, name),
|
self..assertUnit(unit, name),
|
||||||
'hasUnit': (SassNumber self, String unit) => self.hasUnit(unit),
|
'hasUnit': (SassNumber self, String unit) => self.hasUnit(unit),
|
||||||
'compatibleWithUnit': (SassNumber self, String unit) =>
|
'compatibleWithUnit': (SassNumber self, String unit) =>
|
||||||
self.hasUnits && self.compatibleWithUnit(unit),
|
self.hasUnits && self.compatibleWithUnit(unit),
|
||||||
|
Loading…
Reference in New Issue
Block a user