@energinet/watt 4.3.20 → 4.3.22

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.
@@ -276,7 +276,11 @@ $im-no-media-expressions: ("screen", "portrait", "landscape") !default;
276
276
  /// @return {String} - `min` or `max`
277
277
  ///
278
278
  @function get-expression-prefix($operator) {
279
- @return if(list.index(("<", "<=", "≤"), $operator), "max", "min");
279
+ @if list.index(("<", "<=", "≤"), $operator) {
280
+ @return "max";
281
+ } @else {
282
+ @return "min";
283
+ }
280
284
  }
281
285
 
282
286
  ///
@@ -407,7 +411,11 @@ $im-no-media-expressions: ("screen", "portrait", "landscape") !default;
407
411
  $character: string.slice($value, $i, $i);
408
412
 
409
413
  @if not(list.index(map.keys($numbers), $character) or $character == ".") {
410
- @return to-length(if($minus, -$result, $result), string.slice($value, $i));
414
+ $signed-result: $result;
415
+ @if $minus {
416
+ $signed-result: -$result;
417
+ }
418
+ @return to-length($signed-result, string.slice($value, $i));
411
419
  }
412
420
 
413
421
  @if $character == "." {
@@ -420,7 +428,11 @@ $im-no-media-expressions: ("screen", "portrait", "landscape") !default;
420
428
  }
421
429
  }
422
430
 
423
- @return if($minus, -$result, $result);
431
+ @if $minus {
432
+ @return -$result;
433
+ } @else {
434
+ @return $result;
435
+ }
424
436
  }
425
437
 
426
438
  ///
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@energinet/watt",
4
- "version": "4.3.20",
4
+ "version": "4.3.22",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {
7
7
  ".": {