sass 1.95.0 → 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.
- package/package.json +1 -1
- package/sass.dart.js +33 -64
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.
|
|
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
|
@@ -130,7 +130,7 @@ self.fs = _cliPkgRequires.fs;
|
|
|
130
130
|
self.nodeModule = _cliPkgRequires.nodeModule;
|
|
131
131
|
self.stream = _cliPkgRequires.stream;
|
|
132
132
|
self.util = _cliPkgRequires.util;
|
|
133
|
-
// Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.
|
|
133
|
+
// Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.4.
|
|
134
134
|
// The code supports the following hooks:
|
|
135
135
|
// dartPrint(message):
|
|
136
136
|
// if this function is defined it is called instead of the Dart [print]
|
|
@@ -9791,19 +9791,18 @@ self.util = _cliPkgRequires.util;
|
|
|
9791
9791
|
t1.Stylesheet$internal$5$globalVariables$plainCss(children, span, parseTimeWarnings, globalVariables, plainCss);
|
|
9792
9792
|
return t1;
|
|
9793
9793
|
},
|
|
9794
|
-
Stylesheet_Stylesheet$parse(contents, syntax, url) {
|
|
9795
|
-
var error, stackTrace, url0, t1, exception, t2
|
|
9796
|
-
parseSelectors = false;
|
|
9794
|
+
Stylesheet_Stylesheet$parse(contents, syntax, parseSelectors, url) {
|
|
9795
|
+
var error, stackTrace, url0, t1, exception, t2;
|
|
9797
9796
|
try {
|
|
9798
9797
|
switch (syntax.index) {
|
|
9799
9798
|
case 1:
|
|
9800
|
-
t1 = new A.SassParser(
|
|
9799
|
+
t1 = new A.SassParser(false, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
|
|
9801
9800
|
return t1;
|
|
9802
9801
|
case 0:
|
|
9803
|
-
t1 = A.ScssParser$(contents,
|
|
9802
|
+
t1 = A.ScssParser$(contents, false, url).parse$0(0);
|
|
9804
9803
|
return t1;
|
|
9805
9804
|
case 2:
|
|
9806
|
-
t1 = new A.CssParser(
|
|
9805
|
+
t1 = new A.CssParser(false, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
|
|
9807
9806
|
return t1;
|
|
9808
9807
|
}
|
|
9809
9808
|
} catch (exception) {
|
|
@@ -10176,7 +10175,7 @@ self.util = _cliPkgRequires.util;
|
|
|
10176
10175
|
case 5:
|
|
10177
10176
|
// else
|
|
10178
10177
|
t1 = A.readFile(path);
|
|
10179
|
-
stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, $.$get$context().toUri$1(path));
|
|
10178
|
+
stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, false, $.$get$context().toUri$1(path));
|
|
10180
10179
|
case 4:
|
|
10181
10180
|
// join
|
|
10182
10181
|
$async$goto = 7;
|
|
@@ -10216,7 +10215,7 @@ self.util = _cliPkgRequires.util;
|
|
|
10216
10215
|
t4.addAll$1(0, futureDeprecations);
|
|
10217
10216
|
logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
|
|
10218
10217
|
logger.validate$0();
|
|
10219
|
-
stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, null);
|
|
10218
|
+
stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, false, null);
|
|
10220
10219
|
t1 = stylesheet.span;
|
|
10221
10220
|
_0_0 = t1.get$sourceUrl(t1);
|
|
10222
10221
|
if (type$.Uri._is(_0_0))
|
|
@@ -11074,7 +11073,7 @@ self.util = _cliPkgRequires.util;
|
|
|
11074
11073
|
t11.addAll$1(0, t12);
|
|
11075
11074
|
logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t13, type$.int), t4, t14, t10, t11, !t8);
|
|
11076
11075
|
logger.validate$0();
|
|
11077
|
-
stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_0_scss : t3, null);
|
|
11076
|
+
stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_0_scss : t3, false, null);
|
|
11078
11077
|
t2 = stylesheet.span;
|
|
11079
11078
|
_0_0 = t2.get$sourceUrl(t2);
|
|
11080
11079
|
if (type$.Uri._is(_0_0))
|
|
@@ -11137,7 +11136,7 @@ self.util = _cliPkgRequires.util;
|
|
|
11137
11136
|
t3 = A.readFile(source);
|
|
11138
11137
|
if (t2 == null)
|
|
11139
11138
|
t2 = A.Syntax_forPath(source);
|
|
11140
|
-
stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, $.$get$context().toUri$1(source));
|
|
11139
|
+
stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, false, $.$get$context().toUri$1(source));
|
|
11141
11140
|
}
|
|
11142
11141
|
result0 = A._compileStylesheet(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, t4, true, null, null, t5, t7, t1);
|
|
11143
11142
|
logger.summarize$1$js(false);
|
|
@@ -28780,7 +28779,7 @@ self.util = _cliPkgRequires.util;
|
|
|
28780
28779
|
J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
|
|
28781
28780
|
J.set$Version$x(self.exports, $.$get$versionClass());
|
|
28782
28781
|
J.set$loadParserExports_$x(self.exports, A.allowInterop(A.parser0__loadParserExports$closure()));
|
|
28783
|
-
J.set$info$x(self.exports, "dart-sass\t1.
|
|
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]");
|
|
28784
28783
|
A.updateCanonicalizeContextPrototype();
|
|
28785
28784
|
A.updateSourceSpanPrototype();
|
|
28786
28785
|
J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
|
|
@@ -34059,7 +34058,7 @@ self.util = _cliPkgRequires.util;
|
|
|
34059
34058
|
switch ($async$goto) {
|
|
34060
34059
|
case 0:
|
|
34061
34060
|
// Function start
|
|
34062
|
-
$async$returnValue = "1.
|
|
34061
|
+
$async$returnValue = "1.96.0 compiled with dart2js 3.10.4";
|
|
34063
34062
|
// goto return
|
|
34064
34063
|
$async$goto = 1;
|
|
34065
34064
|
break;
|
|
@@ -50996,7 +50995,7 @@ self.util = _cliPkgRequires.util;
|
|
|
50996
50995
|
t3 = result.contents;
|
|
50997
50996
|
t1 = result.syntax;
|
|
50998
50997
|
t2 = $async$self.originalUrl.resolveUri$1(t2);
|
|
50999
|
-
$async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t1, t2);
|
|
50998
|
+
$async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t1, false, t2);
|
|
51000
50999
|
// goto return
|
|
51001
51000
|
$async$goto = 1;
|
|
51002
51001
|
break;
|
|
@@ -52612,7 +52611,7 @@ self.util = _cliPkgRequires.util;
|
|
|
52612
52611
|
}
|
|
52613
52612
|
try {
|
|
52614
52613
|
argVersion = A.Version_Version$parse(id);
|
|
52615
|
-
sassVersion = A.Version_Version$parse("1.
|
|
52614
|
+
sassVersion = A.Version_Version$parse("1.96.0");
|
|
52616
52615
|
if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
|
|
52617
52616
|
A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
|
|
52618
52617
|
J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
|
|
@@ -56567,7 +56566,7 @@ self.util = _cliPkgRequires.util;
|
|
|
56567
56566
|
t3 = result.contents;
|
|
56568
56567
|
t1 = result.syntax;
|
|
56569
56568
|
t4 = _this.originalUrl;
|
|
56570
|
-
return A.Stylesheet_Stylesheet$parse(t3, t1, t4 == null ? t2 : t4.resolveUri$1(t2));
|
|
56569
|
+
return A.Stylesheet_Stylesheet$parse(t3, t1, false, t4 == null ? t2 : t4.resolveUri$1(t2));
|
|
56571
56570
|
},
|
|
56572
56571
|
$signature: 84
|
|
56573
56572
|
};
|
|
@@ -82995,19 +82994,10 @@ self.util = _cliPkgRequires.util;
|
|
|
82995
82994
|
t1.writeCharCode$1(41);
|
|
82996
82995
|
},
|
|
82997
82996
|
_writeCalculationValue$1(value) {
|
|
82998
|
-
var
|
|
82997
|
+
var t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this;
|
|
82999
82998
|
$label1$1: {
|
|
83000
|
-
|
|
83001
|
-
|
|
83002
|
-
if (_2_4_isSet) {
|
|
83003
|
-
_2_4 = value.get$hasComplexUnits();
|
|
83004
|
-
t1 = _2_4;
|
|
83005
|
-
t1 = t1 && !_this._inspect;
|
|
83006
|
-
} else
|
|
83007
|
-
t1 = false;
|
|
83008
|
-
if (t1)
|
|
83009
|
-
throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", _null));
|
|
83010
|
-
if (_2_4_isSet && !isFinite(value._number$_value)) {
|
|
82999
|
+
t1 = value instanceof A.SassNumber;
|
|
83000
|
+
if (t1 && !isFinite(value._number$_value)) {
|
|
83011
83001
|
$label0$0: {
|
|
83012
83002
|
_0_0 = value._number$_value;
|
|
83013
83003
|
if (1 / 0 === _0_0) {
|
|
@@ -83024,11 +83014,7 @@ self.util = _cliPkgRequires.util;
|
|
|
83024
83014
|
_this._writeCalculationUnits$2(value.get$numeratorUnits(value), value.get$denominatorUnits(value));
|
|
83025
83015
|
break $label1$1;
|
|
83026
83016
|
}
|
|
83027
|
-
if (
|
|
83028
|
-
t1 = _2_4;
|
|
83029
|
-
else
|
|
83030
|
-
t1 = false;
|
|
83031
|
-
if (t1) {
|
|
83017
|
+
if (t1 && value.get$hasComplexUnits()) {
|
|
83032
83018
|
_this._writeNumber$1(value._number$_value);
|
|
83033
83019
|
_1_0 = value.get$numeratorUnits(value);
|
|
83034
83020
|
if (_1_0.length >= 1) {
|
|
@@ -83045,14 +83031,14 @@ self.util = _cliPkgRequires.util;
|
|
|
83045
83031
|
break $label1$1;
|
|
83046
83032
|
}
|
|
83047
83033
|
t1 = value instanceof A.CalculationOperation;
|
|
83048
|
-
left =
|
|
83049
|
-
right =
|
|
83034
|
+
left = null;
|
|
83035
|
+
right = null;
|
|
83050
83036
|
if (t1) {
|
|
83051
83037
|
operator = value._operator;
|
|
83052
83038
|
left = value._left;
|
|
83053
83039
|
right = value._right;
|
|
83054
83040
|
} else
|
|
83055
|
-
operator =
|
|
83041
|
+
operator = null;
|
|
83056
83042
|
if (t1) {
|
|
83057
83043
|
parenthesizeLeft = left instanceof A.CalculationOperation && left._operator.precedence < operator.precedence;
|
|
83058
83044
|
if (parenthesizeLeft)
|
|
@@ -83706,11 +83692,9 @@ self.util = _cliPkgRequires.util;
|
|
|
83706
83692
|
_this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
|
|
83707
83693
|
return;
|
|
83708
83694
|
}
|
|
83709
|
-
if (value.get$hasComplexUnits())
|
|
83710
|
-
if (!_this._inspect)
|
|
83711
|
-
throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", null));
|
|
83695
|
+
if (value.get$hasComplexUnits())
|
|
83712
83696
|
_this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
|
|
83713
|
-
|
|
83697
|
+
else {
|
|
83714
83698
|
_this._writeNumber$1(t1);
|
|
83715
83699
|
_1_0 = value.get$numeratorUnits(value);
|
|
83716
83700
|
if (_1_0.length === 1)
|
|
@@ -119036,19 +119020,10 @@ self.util = _cliPkgRequires.util;
|
|
|
119036
119020
|
t1.writeCharCode$1(41);
|
|
119037
119021
|
},
|
|
119038
119022
|
_serialize0$_writeCalculationValue$1(value) {
|
|
119039
|
-
var
|
|
119023
|
+
var t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this;
|
|
119040
119024
|
$label1$1: {
|
|
119041
|
-
|
|
119042
|
-
|
|
119043
|
-
if (_2_4_isSet) {
|
|
119044
|
-
_2_4 = value.get$hasComplexUnits();
|
|
119045
|
-
t1 = _2_4;
|
|
119046
|
-
t1 = t1 && !_this._serialize0$_inspect;
|
|
119047
|
-
} else
|
|
119048
|
-
t1 = false;
|
|
119049
|
-
if (t1)
|
|
119050
|
-
throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", _null));
|
|
119051
|
-
if (_2_4_isSet && !isFinite(value._number1$_value)) {
|
|
119025
|
+
t1 = value instanceof A.SassNumber0;
|
|
119026
|
+
if (t1 && !isFinite(value._number1$_value)) {
|
|
119052
119027
|
$label0$0: {
|
|
119053
119028
|
_0_0 = value._number1$_value;
|
|
119054
119029
|
if (1 / 0 === _0_0) {
|
|
@@ -119065,11 +119040,7 @@ self.util = _cliPkgRequires.util;
|
|
|
119065
119040
|
_this._serialize0$_writeCalculationUnits$2(value.get$numeratorUnits(value), value.get$denominatorUnits(value));
|
|
119066
119041
|
break $label1$1;
|
|
119067
119042
|
}
|
|
119068
|
-
if (
|
|
119069
|
-
t1 = _2_4;
|
|
119070
|
-
else
|
|
119071
|
-
t1 = false;
|
|
119072
|
-
if (t1) {
|
|
119043
|
+
if (t1 && value.get$hasComplexUnits()) {
|
|
119073
119044
|
_this._serialize0$_writeNumber$1(value._number1$_value);
|
|
119074
119045
|
_1_0 = value.get$numeratorUnits(value);
|
|
119075
119046
|
if (_1_0.length >= 1) {
|
|
@@ -119086,14 +119057,14 @@ self.util = _cliPkgRequires.util;
|
|
|
119086
119057
|
break $label1$1;
|
|
119087
119058
|
}
|
|
119088
119059
|
t1 = value instanceof A.CalculationOperation0;
|
|
119089
|
-
left =
|
|
119090
|
-
right =
|
|
119060
|
+
left = null;
|
|
119061
|
+
right = null;
|
|
119091
119062
|
if (t1) {
|
|
119092
119063
|
operator = value._calculation0$_operator;
|
|
119093
119064
|
left = value._calculation0$_left;
|
|
119094
119065
|
right = value._calculation0$_right;
|
|
119095
119066
|
} else
|
|
119096
|
-
operator =
|
|
119067
|
+
operator = null;
|
|
119097
119068
|
if (t1) {
|
|
119098
119069
|
parenthesizeLeft = left instanceof A.CalculationOperation0 && left._calculation0$_operator.precedence < operator.precedence;
|
|
119099
119070
|
if (parenthesizeLeft)
|
|
@@ -119747,11 +119718,9 @@ self.util = _cliPkgRequires.util;
|
|
|
119747
119718
|
_this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
|
|
119748
119719
|
return;
|
|
119749
119720
|
}
|
|
119750
|
-
if (value.get$hasComplexUnits())
|
|
119751
|
-
if (!_this._serialize0$_inspect)
|
|
119752
|
-
throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", null));
|
|
119721
|
+
if (value.get$hasComplexUnits())
|
|
119753
119722
|
_this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
|
|
119754
|
-
|
|
119723
|
+
else {
|
|
119755
119724
|
_this._serialize0$_writeNumber$1(t1);
|
|
119756
119725
|
_1_0 = value.get$numeratorUnits(value);
|
|
119757
119726
|
if (_1_0.length === 1)
|