sass 1.54.3 → 1.54.4
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.
- package/package.json +1 -1
- package/sass.dart.js +38 -14
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":">=12.0.0"},"dependencies":{"chokidar":">=3.0.0 <4.0.0","immutable":"^4.0.0","source-map-js":">=0.6.2 <2.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","default":"./sass.default.dart.js"},"version":"1.54.
|
|
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":">=12.0.0"},"dependencies":{"chokidar":">=3.0.0 <4.0.0","immutable":"^4.0.0","source-map-js":">=0.6.2 <2.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","default":"./sass.default.dart.js"},"version":"1.54.4","bin":{"sass":"sass.js"},"main":"sass.default.dart.js"}
|
package/sass.dart.js
CHANGED
|
@@ -10732,12 +10732,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
10732
10732
|
_opacify($arguments) {
|
|
10733
10733
|
var t1 = J.getInterceptor$asx($arguments),
|
|
10734
10734
|
color = t1.$index($arguments, 0).assertColor$1("color");
|
|
10735
|
-
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha + t1.$index($arguments, 1).assertNumber$1("amount").
|
|
10735
|
+
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
|
|
10736
10736
|
},
|
|
10737
10737
|
_transparentize($arguments) {
|
|
10738
10738
|
var t1 = J.getInterceptor$asx($arguments),
|
|
10739
10739
|
color = t1.$index($arguments, 0).assertColor$1("color");
|
|
10740
|
-
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha - t1.$index($arguments, 1).assertNumber$1("amount").
|
|
10740
|
+
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
|
|
10741
10741
|
},
|
|
10742
10742
|
_function4($name, $arguments, callback) {
|
|
10743
10743
|
return A.BuiltInCallable$function($name, $arguments, callback, "sass:color");
|
|
@@ -17096,12 +17096,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
17096
17096
|
_opacify0($arguments) {
|
|
17097
17097
|
var t1 = J.getInterceptor$asx($arguments),
|
|
17098
17098
|
color = t1.$index($arguments, 0).assertColor$1("color");
|
|
17099
|
-
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha + t1.$index($arguments, 1).assertNumber$1("amount").
|
|
17099
|
+
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
|
|
17100
17100
|
},
|
|
17101
17101
|
_transparentize0($arguments) {
|
|
17102
17102
|
var t1 = J.getInterceptor$asx($arguments),
|
|
17103
17103
|
color = t1.$index($arguments, 0).assertColor$1("color");
|
|
17104
|
-
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha - t1.$index($arguments, 1).assertNumber$1("amount").
|
|
17104
|
+
return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
|
|
17105
17105
|
},
|
|
17106
17106
|
_function11($name, $arguments, callback) {
|
|
17107
17107
|
return A.BuiltInCallable$function0($name, $arguments, callback, "sass:color");
|
|
@@ -21041,7 +21041,7 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
21041
21041
|
J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
|
|
21042
21042
|
J.set$Exception$x(self.exports, $.$get$exceptionClass());
|
|
21043
21043
|
J.set$Logger$x(self.exports, {silent: {warn: A.allowInteropNamed("sass.Logger.silent.warn", new A.main_closure0()), debug: A.allowInteropNamed("sass.Logger.silent.debug", new A.main_closure1())}});
|
|
21044
|
-
J.set$info$x(self.exports, "dart-sass\t1.54.
|
|
21044
|
+
J.set$info$x(self.exports, "dart-sass\t1.54.4\t(Sass Compiler)\t[Dart]\ndart2js\t2.17.6\t(Dart Compiler)\t[Dart]");
|
|
21045
21045
|
A.updateSourceSpanPrototype();
|
|
21046
21046
|
J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
|
|
21047
21047
|
J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
|
|
@@ -21700,7 +21700,7 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
21700
21700
|
switch ($async$goto) {
|
|
21701
21701
|
case 0:
|
|
21702
21702
|
// Function start
|
|
21703
|
-
$async$returnValue = "1.54.
|
|
21703
|
+
$async$returnValue = "1.54.4 compiled with dart2js 2.17.6";
|
|
21704
21704
|
// goto return
|
|
21705
21705
|
$async$goto = 1;
|
|
21706
21706
|
break;
|
|
@@ -43234,12 +43234,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
43234
43234
|
};
|
|
43235
43235
|
A._updateComponents_getParam.prototype = {
|
|
43236
43236
|
call$4$assertPercent$checkPercent($name, max, assertPercent, checkPercent) {
|
|
43237
|
-
var t2,
|
|
43238
|
-
t1 =
|
|
43237
|
+
var t2, _this = this,
|
|
43238
|
+
t1 = _this.keywords.remove$1(0, $name),
|
|
43239
43239
|
number = t1 == null ? null : t1.assertNumber$1($name);
|
|
43240
43240
|
if (number == null)
|
|
43241
43241
|
return null;
|
|
43242
|
-
t1 =
|
|
43242
|
+
t1 = _this.scale;
|
|
43243
43243
|
t2 = !t1;
|
|
43244
43244
|
if (t2 && checkPercent)
|
|
43245
43245
|
A._checkPercent(number, $name);
|
|
@@ -43247,7 +43247,13 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
43247
43247
|
number.assertUnit$2("%", $name);
|
|
43248
43248
|
if (t1)
|
|
43249
43249
|
max = 100;
|
|
43250
|
-
|
|
43250
|
+
if (!t2 || assertPercent)
|
|
43251
|
+
t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
|
|
43252
|
+
else {
|
|
43253
|
+
t1 = _this.change ? 0 : -max;
|
|
43254
|
+
t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
|
|
43255
|
+
}
|
|
43256
|
+
return t1;
|
|
43251
43257
|
},
|
|
43252
43258
|
call$2($name, max) {
|
|
43253
43259
|
return this.call$4$assertPercent$checkPercent($name, max, false, false);
|
|
@@ -52318,6 +52324,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
52318
52324
|
return result;
|
|
52319
52325
|
throw A.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
|
|
52320
52326
|
},
|
|
52327
|
+
valueInRangeWithUnit$4(min, max, $name, unit) {
|
|
52328
|
+
var result = A.fuzzyCheckRange(this._number$_value, min, max);
|
|
52329
|
+
if (result != null)
|
|
52330
|
+
return result;
|
|
52331
|
+
throw A.wrapException(this._number$_exception$2("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
|
|
52332
|
+
},
|
|
52321
52333
|
hasCompatibleUnits$1(other) {
|
|
52322
52334
|
var _this = this;
|
|
52323
52335
|
if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
|
|
@@ -78147,12 +78159,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
78147
78159
|
};
|
|
78148
78160
|
A._updateComponents_getParam0.prototype = {
|
|
78149
78161
|
call$4$assertPercent$checkPercent($name, max, assertPercent, checkPercent) {
|
|
78150
|
-
var t2,
|
|
78151
|
-
t1 =
|
|
78162
|
+
var t2, _this = this,
|
|
78163
|
+
t1 = _this.keywords.remove$1(0, $name),
|
|
78152
78164
|
number = t1 == null ? null : t1.assertNumber$1($name);
|
|
78153
78165
|
if (number == null)
|
|
78154
78166
|
return null;
|
|
78155
|
-
t1 =
|
|
78167
|
+
t1 = _this.scale;
|
|
78156
78168
|
t2 = !t1;
|
|
78157
78169
|
if (t2 && checkPercent)
|
|
78158
78170
|
A._checkPercent0(number, $name);
|
|
@@ -78160,7 +78172,13 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
78160
78172
|
number.assertUnit$2("%", $name);
|
|
78161
78173
|
if (t1)
|
|
78162
78174
|
max = 100;
|
|
78163
|
-
|
|
78175
|
+
if (!t2 || assertPercent)
|
|
78176
|
+
t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
|
|
78177
|
+
else {
|
|
78178
|
+
t1 = _this.change ? 0 : -max;
|
|
78179
|
+
t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
|
|
78180
|
+
}
|
|
78181
|
+
return t1;
|
|
78164
78182
|
},
|
|
78165
78183
|
call$2($name, max) {
|
|
78166
78184
|
return this.call$4$assertPercent$checkPercent($name, max, false, false);
|
|
@@ -89087,6 +89105,12 @@ self.readline = _cli_pkg_requires.readline;
|
|
|
89087
89105
|
return result;
|
|
89088
89106
|
throw A.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to be within " + A.S(min) + _this.get$unitString() + " and " + A.S(max) + _this.get$unitString() + ".", $name));
|
|
89089
89107
|
},
|
|
89108
|
+
valueInRangeWithUnit$4(min, max, $name, unit) {
|
|
89109
|
+
var result = A.fuzzyCheckRange0(this._number1$_value, min, max);
|
|
89110
|
+
if (result != null)
|
|
89111
|
+
return result;
|
|
89112
|
+
throw A.wrapException(this._number1$_exception$2("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
|
|
89113
|
+
},
|
|
89090
89114
|
hasCompatibleUnits$1(other) {
|
|
89091
89115
|
var _this = this;
|
|
89092
89116
|
if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
|