sass 1.23.2 → 1.23.3

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 +24 -25
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":">=8.9.0"},"dependencies":{"chokidar":">=2.0.0 <4.0.0"},"main":"sass.dart.js","bin":"sass.js","keywords":["style","scss","sass","preprocessor","css"],"version":"1.23.2"}
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":">=8.9.0"},"dependencies":{"chokidar":">=2.0.0 <4.0.0"},"main":"sass.dart.js","bin":"sass.js","keywords":["style","scss","sass","preprocessor","css"],"version":"1.23.3"}
package/sass.dart.js CHANGED
@@ -8260,7 +8260,7 @@ self.readline = require("readline");
8260
8260
  switch ($async$goto) {
8261
8261
  case 0:
8262
8262
  // Function start
8263
- $async$returnValue = "1.23.2 compiled with dart2js 2.5.2";
8263
+ $async$returnValue = "1.23.3 compiled with dart2js 2.5.2";
8264
8264
  // goto return
8265
8265
  $async$goto = 1;
8266
8266
  break;
@@ -8371,12 +8371,9 @@ self.readline = require("readline");
8371
8371
  Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
8372
8372
  this.mediaQueryContext = t0;
8373
8373
  },
8374
- Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1, t2, t3) {
8375
- var _ = this;
8376
- _._box_1 = t0;
8377
- _.$this = t1;
8378
- _.compound = t2;
8379
- _.mediaQueryContext = t3;
8374
+ Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
8375
+ this._box_1 = t0;
8376
+ this.mediaQueryContext = t1;
8380
8377
  },
8381
8378
  Extender__extendCompound__closure: function Extender__extendCompound__closure() {
8382
8379
  },
@@ -10522,7 +10519,7 @@ self.readline = require("readline");
10522
10519
  J.set$run_$x(self.exports, P.allowInterop(new B.main_closure()));
10523
10520
  J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
10524
10521
  J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
10525
- J.set$info$x(self.exports, "dart-sass\t1.23.2\t(Sass Compiler)\t[Dart]\ndart2js\t2.5.2\t(Dart Compiler)\t[Dart]");
10522
+ J.set$info$x(self.exports, "dart-sass\t1.23.3\t(Sass Compiler)\t[Dart]\ndart2js\t2.5.2\t(Dart Compiler)\t[Dart]");
10526
10523
  J.set$types$x(self.exports, {Boolean: $.$get$booleanConstructor(), Color: $.$get$colorConstructor(), List: $.$get$listConstructor(), Map: $.$get$mapConstructor(), Null: $.$get$nullConstructor(), Number: $.$get$numberConstructor(), String: $.$get$stringConstructor(), Error: self.Error});
10527
10524
  },
10528
10525
  _render: function(options, callback) {
@@ -30572,23 +30569,24 @@ self.readline = require("readline");
30572
30569
  }
30573
30570
  },
30574
30571
  addExtensions$1: function(extenders) {
30575
- var t1, t2, _box_0 = {};
30572
+ var t1, t2, t3, _this = this, _box_0 = {};
30576
30573
  _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
30577
- for (t1 = J.get$iterator$ax(extenders); t1.moveNext$0();) {
30578
- t2 = t1.get$current(t1);
30579
- if (t2.get$isEmpty(t2))
30574
+ for (t1 = J.get$iterator$ax(extenders), t2 = _this._sourceSpecificity; t1.moveNext$0();) {
30575
+ t3 = t1.get$current(t1);
30576
+ if (t3.get$isEmpty(t3))
30580
30577
  continue;
30581
- t2.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, this, t2));
30578
+ t2.addAll$1(0, t3.get$_sourceSpecificity());
30579
+ t3.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, _this, t3));
30582
30580
  }
30583
30581
  t1 = _box_0.newExtensions;
30584
30582
  if (t1 == null)
30585
30583
  return;
30586
30584
  t2 = _box_0.extensionsToExtend;
30587
30585
  if (t2 != null)
30588
- this._extendExistingExtensions$2(t2, t1);
30586
+ _this._extendExistingExtensions$2(t2, t1);
30589
30587
  t1 = _box_0.selectorsToExtend;
30590
30588
  if (t1 != null)
30591
- this._extendExistingSelectors$2(t1, _box_0.newExtensions);
30589
+ _this._extendExistingSelectors$2(t1, _box_0.newExtensions);
30592
30590
  },
30593
30591
  _extendList$3: function(list, extensions, mediaQueryContext) {
30594
30592
  var t1, t2, t3, extended, i, complex, result, t4;
@@ -30657,7 +30655,7 @@ self.readline = require("readline");
30657
30655
  return P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "Iterable", 0));
30658
30656
  },
30659
30657
  _extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
30660
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, compound0, _this = this, _null = null,
30658
+ var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, _this = this, _null = null,
30661
30659
  _s28_ = "components may not be empty.",
30662
30660
  _box_1 = {},
30663
30661
  t1 = _this._mode,
@@ -30692,16 +30690,16 @@ self.readline = require("readline");
30692
30690
  result.fixed$length = Array;
30693
30691
  result.immutable$list = Array;
30694
30692
  t13 = result;
30695
- compound0 = new X.CompoundSelector(t13);
30693
+ compound = new X.CompoundSelector(t13);
30696
30694
  if (t13.length === 0)
30697
30695
  H.throwExpression(P.ArgumentError$(_s28_));
30698
- result = P.List_List$from(H.setRuntimeTypeInfo([compound0], t8), false, t7);
30696
+ result = P.List_List$from(H.setRuntimeTypeInfo([compound], t8), false, t7);
30699
30697
  result.fixed$length = Array;
30700
30698
  result.immutable$list = Array;
30701
30699
  t13 = result;
30702
30700
  if (t13.length === 0)
30703
30701
  H.throwExpression(P.ArgumentError$(_s28_));
30704
- t14 = _this._sourceSpecificityFor$1(compound0);
30702
+ t14 = _this._sourceSpecificityFor$1(compound);
30705
30703
  options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t13, false), _null, t14, true, true, _null, _null, _null)], t6));
30706
30704
  }
30707
30705
  }
@@ -30715,7 +30713,7 @@ self.readline = require("readline");
30715
30713
  if (options.length === 1)
30716
30714
  return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure(mediaQueryContext), S.ComplexSelector).toList$0(0);
30717
30715
  _box_1.first = t1 !== C.ExtendMode_replace;
30718
- t1 = J.map$1$1$ax(Y.paths(options, t5), new F.Extender__extendCompound_closure0(_box_1, _this, compound, mediaQueryContext), [P.List, S.ComplexSelector]).where$1(0, new F.Extender__extendCompound_closure1());
30716
+ t1 = J.map$1$1$ax(Y.paths(options, t5), new F.Extender__extendCompound_closure0(_box_1, mediaQueryContext), [P.List, S.ComplexSelector]).where$1(0, new F.Extender__extendCompound_closure1());
30719
30717
  t2 = S.ComplexSelector;
30720
30718
  return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure2(), [H.getTypeArgumentByIndex(t1, 0), t2]), true, t2);
30721
30719
  },
@@ -30816,6 +30814,9 @@ self.readline = require("readline");
30816
30814
  },
30817
30815
  get$_extensions: function() {
30818
30816
  return this._extensions;
30817
+ },
30818
+ get$_sourceSpecificity: function() {
30819
+ return this._sourceSpecificity;
30819
30820
  }
30820
30821
  };
30821
30822
  F.Extender__extendOrReplace_closure.prototype = {
@@ -30965,8 +30966,8 @@ self.readline = require("readline");
30965
30966
  };
30966
30967
  F.Extender__extendCompound_closure0.prototype = {
30967
30968
  call$1: function(path) {
30968
- var complexes, toUnify, originals, t3, specificity, _this = this, _box_0 = {},
30969
- t1 = _this._box_1,
30969
+ var complexes, toUnify, originals, t3, _box_0 = {},
30970
+ t1 = this._box_1,
30970
30971
  t2 = [P.List, S.ComplexSelectorComponent];
30971
30972
  if (t1.first) {
30972
30973
  t1.first = false;
@@ -30989,12 +30990,10 @@ self.readline = require("readline");
30989
30990
  return;
30990
30991
  }
30991
30992
  _box_0.lineBreak = false;
30992
- specificity = _this.$this._sourceSpecificityFor$1(_this.compound);
30993
- for (t1 = J.get$iterator$ax(path), t2 = _this.mediaQueryContext; t1.moveNext$0();) {
30993
+ for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
30994
30994
  t3 = t1.get$current(t1);
30995
30995
  t3.assertCompatibleMediaContext$1(t2);
30996
30996
  _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
30997
- specificity = Math.max(specificity, H.checkNum(t3.specificity));
30998
30997
  }
30999
30998
  return J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure0(_box_0), S.ComplexSelector).toList$0(0);
31000
30999
  }