sass 1.95.1 → 1.96.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sass.dart.js +21 -51
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=14.0.0"},"dependencies":{"chokidar":"^4.0.0","immutable":"^5.0.2","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.95.1","bin":{"sass":"sass.js"},"main":"sass.node.js"}
1
+ {"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=14.0.0"},"dependencies":{"chokidar":"^4.0.0","immutable":"^5.0.2","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.96.0","bin":{"sass":"sass.js"},"main":"sass.node.js"}
package/sass.dart.js CHANGED
@@ -28779,7 +28779,7 @@ self.util = _cliPkgRequires.util;
28779
28779
  J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
28780
28780
  J.set$Version$x(self.exports, $.$get$versionClass());
28781
28781
  J.set$loadParserExports_$x(self.exports, A.allowInterop(A.parser0__loadParserExports$closure()));
28782
- J.set$info$x(self.exports, "dart-sass\t1.95.1\t(Sass Compiler)\t[Dart]\ndart2js\t3.10.4\t(Dart Compiler)\t[Dart]");
28782
+ J.set$info$x(self.exports, "dart-sass\t1.96.0\t(Sass Compiler)\t[Dart]\ndart2js\t3.10.4\t(Dart Compiler)\t[Dart]");
28783
28783
  A.updateCanonicalizeContextPrototype();
28784
28784
  A.updateSourceSpanPrototype();
28785
28785
  J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
@@ -34058,7 +34058,7 @@ self.util = _cliPkgRequires.util;
34058
34058
  switch ($async$goto) {
34059
34059
  case 0:
34060
34060
  // Function start
34061
- $async$returnValue = "1.95.1 compiled with dart2js 3.10.4";
34061
+ $async$returnValue = "1.96.0 compiled with dart2js 3.10.4";
34062
34062
  // goto return
34063
34063
  $async$goto = 1;
34064
34064
  break;
@@ -52611,7 +52611,7 @@ self.util = _cliPkgRequires.util;
52611
52611
  }
52612
52612
  try {
52613
52613
  argVersion = A.Version_Version$parse(id);
52614
- sassVersion = A.Version_Version$parse("1.95.1");
52614
+ sassVersion = A.Version_Version$parse("1.96.0");
52615
52615
  if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
52616
52616
  A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
52617
52617
  J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
@@ -82994,19 +82994,10 @@ self.util = _cliPkgRequires.util;
82994
82994
  t1.writeCharCode$1(41);
82995
82995
  },
82996
82996
  _writeCalculationValue$1(value) {
82997
- var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this, _null = null;
82997
+ var t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this;
82998
82998
  $label1$1: {
82999
- _2_4_isSet = value instanceof A.SassNumber;
83000
- _2_4 = _null;
83001
- if (_2_4_isSet) {
83002
- _2_4 = value.get$hasComplexUnits();
83003
- t1 = _2_4;
83004
- t1 = t1 && !_this._inspect;
83005
- } else
83006
- t1 = false;
83007
- if (t1)
83008
- throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", _null));
83009
- if (_2_4_isSet && !isFinite(value._number$_value)) {
82999
+ t1 = value instanceof A.SassNumber;
83000
+ if (t1 && !isFinite(value._number$_value)) {
83010
83001
  $label0$0: {
83011
83002
  _0_0 = value._number$_value;
83012
83003
  if (1 / 0 === _0_0) {
@@ -83023,11 +83014,7 @@ self.util = _cliPkgRequires.util;
83023
83014
  _this._writeCalculationUnits$2(value.get$numeratorUnits(value), value.get$denominatorUnits(value));
83024
83015
  break $label1$1;
83025
83016
  }
83026
- if (_2_4_isSet)
83027
- t1 = _2_4;
83028
- else
83029
- t1 = false;
83030
- if (t1) {
83017
+ if (t1 && value.get$hasComplexUnits()) {
83031
83018
  _this._writeNumber$1(value._number$_value);
83032
83019
  _1_0 = value.get$numeratorUnits(value);
83033
83020
  if (_1_0.length >= 1) {
@@ -83044,14 +83031,14 @@ self.util = _cliPkgRequires.util;
83044
83031
  break $label1$1;
83045
83032
  }
83046
83033
  t1 = value instanceof A.CalculationOperation;
83047
- left = _null;
83048
- right = _null;
83034
+ left = null;
83035
+ right = null;
83049
83036
  if (t1) {
83050
83037
  operator = value._operator;
83051
83038
  left = value._left;
83052
83039
  right = value._right;
83053
83040
  } else
83054
- operator = _null;
83041
+ operator = null;
83055
83042
  if (t1) {
83056
83043
  parenthesizeLeft = left instanceof A.CalculationOperation && left._operator.precedence < operator.precedence;
83057
83044
  if (parenthesizeLeft)
@@ -83705,11 +83692,9 @@ self.util = _cliPkgRequires.util;
83705
83692
  _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
83706
83693
  return;
83707
83694
  }
83708
- if (value.get$hasComplexUnits()) {
83709
- if (!_this._inspect)
83710
- throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", null));
83695
+ if (value.get$hasComplexUnits())
83711
83696
  _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
83712
- } else {
83697
+ else {
83713
83698
  _this._writeNumber$1(t1);
83714
83699
  _1_0 = value.get$numeratorUnits(value);
83715
83700
  if (_1_0.length === 1)
@@ -119035,19 +119020,10 @@ self.util = _cliPkgRequires.util;
119035
119020
  t1.writeCharCode$1(41);
119036
119021
  },
119037
119022
  _serialize0$_writeCalculationValue$1(value) {
119038
- var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this, _null = null;
119023
+ var t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this;
119039
119024
  $label1$1: {
119040
- _2_4_isSet = value instanceof A.SassNumber0;
119041
- _2_4 = _null;
119042
- if (_2_4_isSet) {
119043
- _2_4 = value.get$hasComplexUnits();
119044
- t1 = _2_4;
119045
- t1 = t1 && !_this._serialize0$_inspect;
119046
- } else
119047
- t1 = false;
119048
- if (t1)
119049
- throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", _null));
119050
- if (_2_4_isSet && !isFinite(value._number1$_value)) {
119025
+ t1 = value instanceof A.SassNumber0;
119026
+ if (t1 && !isFinite(value._number1$_value)) {
119051
119027
  $label0$0: {
119052
119028
  _0_0 = value._number1$_value;
119053
119029
  if (1 / 0 === _0_0) {
@@ -119064,11 +119040,7 @@ self.util = _cliPkgRequires.util;
119064
119040
  _this._serialize0$_writeCalculationUnits$2(value.get$numeratorUnits(value), value.get$denominatorUnits(value));
119065
119041
  break $label1$1;
119066
119042
  }
119067
- if (_2_4_isSet)
119068
- t1 = _2_4;
119069
- else
119070
- t1 = false;
119071
- if (t1) {
119043
+ if (t1 && value.get$hasComplexUnits()) {
119072
119044
  _this._serialize0$_writeNumber$1(value._number1$_value);
119073
119045
  _1_0 = value.get$numeratorUnits(value);
119074
119046
  if (_1_0.length >= 1) {
@@ -119085,14 +119057,14 @@ self.util = _cliPkgRequires.util;
119085
119057
  break $label1$1;
119086
119058
  }
119087
119059
  t1 = value instanceof A.CalculationOperation0;
119088
- left = _null;
119089
- right = _null;
119060
+ left = null;
119061
+ right = null;
119090
119062
  if (t1) {
119091
119063
  operator = value._calculation0$_operator;
119092
119064
  left = value._calculation0$_left;
119093
119065
  right = value._calculation0$_right;
119094
119066
  } else
119095
- operator = _null;
119067
+ operator = null;
119096
119068
  if (t1) {
119097
119069
  parenthesizeLeft = left instanceof A.CalculationOperation0 && left._calculation0$_operator.precedence < operator.precedence;
119098
119070
  if (parenthesizeLeft)
@@ -119746,11 +119718,9 @@ self.util = _cliPkgRequires.util;
119746
119718
  _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
119747
119719
  return;
119748
119720
  }
119749
- if (value.get$hasComplexUnits()) {
119750
- if (!_this._serialize0$_inspect)
119751
- throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", null));
119721
+ if (value.get$hasComplexUnits())
119752
119722
  _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
119753
- } else {
119723
+ else {
119754
119724
  _this._serialize0$_writeNumber$1(t1);
119755
119725
  _1_0 = value.get$numeratorUnits(value);
119756
119726
  if (_1_0.length === 1)