sass 1.38.2 → 1.39.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/README.md +2 -0
- package/package.json +1 -1
- package/sass.dart.js +54 -35
package/README.md
CHANGED
|
@@ -102,6 +102,8 @@ Both `render()` and `renderSync()` support the following options:
|
|
|
102
102
|
* [`sourceMap`](https://github.com/sass/node-sass#sourcemap)
|
|
103
103
|
* Only the `"expanded"` and `"compressed"` values of
|
|
104
104
|
[`outputStyle`](https://github.com/sass/node-sass#outputstyle) are supported.
|
|
105
|
+
* `charset` (`true`, the default, will prefix non-ASCII CSS with `U+FEFF` or
|
|
106
|
+
[`@charset "UTF-8";`](https://developer.mozilla.org/en-US/docs/Web/CSS/@charset))
|
|
105
107
|
|
|
106
108
|
No support is intended for the following options:
|
|
107
109
|
|
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":">=3.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"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":">=8.9.0"},"dependencies":{"chokidar":">=3.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"version":"1.39.0","bin":{"sass":"sass.js"},"main":"sass.dart.js"}
|
package/sass.dart.js
CHANGED
|
@@ -7856,8 +7856,11 @@ self.fs = require("fs");
|
|
|
7856
7856
|
node.accept$1(visitor);
|
|
7857
7857
|
t1 = visitor._buffer;
|
|
7858
7858
|
css = t1.toString$0(0);
|
|
7859
|
-
|
|
7860
|
-
|
|
7859
|
+
if (charset) {
|
|
7860
|
+
t2 = new H.CodeUnits(css);
|
|
7861
|
+
t2 = t2.any$1(t2, new N.serialize_closure0());
|
|
7862
|
+
} else
|
|
7863
|
+
t2 = false;
|
|
7861
7864
|
if (t2)
|
|
7862
7865
|
prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
|
|
7863
7866
|
else
|
|
@@ -12945,7 +12948,7 @@ self.fs = require("fs");
|
|
|
12945
12948
|
_renderAsync: function(options) {
|
|
12946
12949
|
var $async$goto = 0,
|
|
12947
12950
|
$async$completer = P._makeAsyncAwaitCompleter(type$.RenderResult),
|
|
12948
|
-
$async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, t10, result, start, t1, data, file;
|
|
12951
|
+
$async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, result, start, t1, data, file;
|
|
12949
12952
|
var $async$_renderAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
|
12950
12953
|
if ($async$errorCode === 1)
|
|
12951
12954
|
return P._asyncRethrow($async$result, $async$completer);
|
|
@@ -12973,11 +12976,14 @@ self.fs = require("fs");
|
|
|
12973
12976
|
t10 = t1.get$quietDeps(options);
|
|
12974
12977
|
if (t10 == null)
|
|
12975
12978
|
t10 = false;
|
|
12976
|
-
|
|
12979
|
+
t11 = t1.get$verbose(options);
|
|
12980
|
+
if (t11 == null)
|
|
12981
|
+
t11 = false;
|
|
12982
|
+
t1 = t1.get$charset(options);
|
|
12977
12983
|
if (t1 == null)
|
|
12978
|
-
t1 =
|
|
12984
|
+
t1 = true;
|
|
12979
12985
|
$async$goto = 6;
|
|
12980
|
-
return P._asyncAwait(X.compileStringAsync0(data, t3, t7, t8, t2, t10, B._enableSourceMaps(options), t5, t4, t9, !t6,
|
|
12986
|
+
return P._asyncAwait(X.compileStringAsync0(data, t1, t3, t7, t8, t2, t10, B._enableSourceMaps(options), t5, t4, t9, !t6, t11), $async$_renderAsync);
|
|
12981
12987
|
case 6:
|
|
12982
12988
|
// returning from await.
|
|
12983
12989
|
result = $async$result;
|
|
@@ -13001,11 +13007,14 @@ self.fs = require("fs");
|
|
|
13001
13007
|
t9 = t1.get$quietDeps(options);
|
|
13002
13008
|
if (t9 == null)
|
|
13003
13009
|
t9 = false;
|
|
13004
|
-
|
|
13010
|
+
t10 = t1.get$verbose(options);
|
|
13011
|
+
if (t10 == null)
|
|
13012
|
+
t10 = false;
|
|
13013
|
+
t1 = t1.get$charset(options);
|
|
13005
13014
|
if (t1 == null)
|
|
13006
|
-
t1 =
|
|
13015
|
+
t1 = true;
|
|
13007
13016
|
$async$goto = 10;
|
|
13008
|
-
return P._asyncAwait(X.compileAsync0(file, t3, t7, t8, t2, t9, B._enableSourceMaps(options), t5, t4, !t6,
|
|
13017
|
+
return P._asyncAwait(X.compileAsync0(file, t1, t3, t7, t8, t2, t9, B._enableSourceMaps(options), t5, t4, !t6, t10), $async$_renderAsync);
|
|
13009
13018
|
case 10:
|
|
13010
13019
|
// returning from await.
|
|
13011
13020
|
result = $async$result;
|
|
@@ -13031,7 +13040,7 @@ self.fs = require("fs");
|
|
|
13031
13040
|
return P._asyncStartSync($async$_renderAsync, $async$completer);
|
|
13032
13041
|
},
|
|
13033
13042
|
_renderSync: function(options) {
|
|
13034
|
-
var start, result, data, file, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, terseLogger, logger, stylesheet, result0,
|
|
13043
|
+
var start, result, data, file, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, terseLogger, logger, stylesheet, result0, t13, exception, _null = null;
|
|
13035
13044
|
try {
|
|
13036
13045
|
start = new P.DateTime(Date.now(), false);
|
|
13037
13046
|
result = null;
|
|
@@ -13051,21 +13060,25 @@ self.fs = require("fs");
|
|
|
13051
13060
|
t10 = t1.get$quietDeps(options);
|
|
13052
13061
|
if (t10 == null)
|
|
13053
13062
|
t10 = false;
|
|
13054
|
-
|
|
13063
|
+
t11 = t1.get$verbose(options);
|
|
13064
|
+
if (t11 == null)
|
|
13065
|
+
t11 = false;
|
|
13066
|
+
t1 = t1.get$charset(options);
|
|
13055
13067
|
if (t1 == null)
|
|
13056
|
-
t1 =
|
|
13057
|
-
|
|
13058
|
-
if (!
|
|
13068
|
+
t1 = true;
|
|
13069
|
+
t12 = B._enableSourceMaps(options);
|
|
13070
|
+
if (!t11) {
|
|
13059
13071
|
terseLogger = new Y.TerseLogger0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), new S.StderrLogger0());
|
|
13060
13072
|
logger = terseLogger;
|
|
13061
13073
|
} else {
|
|
13062
13074
|
terseLogger = _null;
|
|
13063
13075
|
logger = terseLogger;
|
|
13064
13076
|
}
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13077
|
+
if (t4 == null)
|
|
13078
|
+
t4 = C.Syntax_SCSS0;
|
|
13079
|
+
stylesheet = V.Stylesheet_Stylesheet$parse0(data, t4, logger, t9);
|
|
13080
|
+
t4 = $.$get$context().absolute$7(".", _null, _null, _null, _null, _null, _null);
|
|
13081
|
+
result0 = U._compileStylesheet1(stylesheet, logger, _null, t2, new F.FilesystemImporter0(t4), new H.CastList(t3, H._arrayInstanceType(t3)._eval$1("CastList<1,Callable0>")), t5, !t6, t7, t8, t10, t12, t1);
|
|
13069
13082
|
if (terseLogger != null)
|
|
13070
13083
|
terseLogger.summarize$1$node(true);
|
|
13071
13084
|
result = result0;
|
|
@@ -13082,24 +13095,27 @@ self.fs = require("fs");
|
|
|
13082
13095
|
t10 = t1.get$quietDeps(options);
|
|
13083
13096
|
if (t10 == null)
|
|
13084
13097
|
t10 = false;
|
|
13085
|
-
|
|
13098
|
+
t11 = t1.get$verbose(options);
|
|
13099
|
+
if (t11 == null)
|
|
13100
|
+
t11 = false;
|
|
13101
|
+
t1 = t1.get$charset(options);
|
|
13086
13102
|
if (t1 == null)
|
|
13087
|
-
t1 =
|
|
13088
|
-
|
|
13089
|
-
if (!
|
|
13103
|
+
t1 = true;
|
|
13104
|
+
t12 = B._enableSourceMaps(options);
|
|
13105
|
+
if (!t11) {
|
|
13090
13106
|
terseLogger = new Y.TerseLogger0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), new S.StderrLogger0());
|
|
13091
13107
|
logger = terseLogger;
|
|
13092
13108
|
} else {
|
|
13093
13109
|
terseLogger = _null;
|
|
13094
13110
|
logger = terseLogger;
|
|
13095
13111
|
}
|
|
13096
|
-
|
|
13112
|
+
t11 = B.readFile0(t2);
|
|
13097
13113
|
if (t5 == null)
|
|
13098
13114
|
t5 = M.Syntax_forPath0(t2);
|
|
13099
|
-
|
|
13100
|
-
stylesheet = V.Stylesheet_Stylesheet$parse0(
|
|
13101
|
-
|
|
13102
|
-
result0 = U._compileStylesheet1(stylesheet, logger, _null, t3, new F.FilesystemImporter0(
|
|
13115
|
+
t13 = $.$get$context();
|
|
13116
|
+
stylesheet = V.Stylesheet_Stylesheet$parse0(t11, t5, logger, t13.toUri$1(t2));
|
|
13117
|
+
t2 = t13;
|
|
13118
|
+
result0 = U._compileStylesheet1(stylesheet, logger, _null, t3, new F.FilesystemImporter0(t2.absolute$7(".", _null, _null, _null, _null, _null, _null)), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0>")), t6, !t7, t8, t9, t10, t12, t1);
|
|
13103
13119
|
if (terseLogger != null)
|
|
13104
13120
|
terseLogger.summarize$1$node(true);
|
|
13105
13121
|
result = result0;
|
|
@@ -14815,7 +14831,7 @@ self.fs = require("fs");
|
|
|
14815
14831
|
},
|
|
14816
14832
|
_compileStylesheet1: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
|
|
14817
14833
|
var evaluateResult = R._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet),
|
|
14818
|
-
serializeResult = N.serialize0(evaluateResult.stylesheet,
|
|
14834
|
+
serializeResult = N.serialize0(evaluateResult.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
|
|
14819
14835
|
resultSourceMap = serializeResult.sourceMap;
|
|
14820
14836
|
if (resultSourceMap != null && importCache != null)
|
|
14821
14837
|
B.mapInPlace0(resultSourceMap.urls, new U._compileStylesheet_closure1(stylesheet, importCache));
|
|
@@ -15067,7 +15083,7 @@ self.fs = require("fs");
|
|
|
15067
15083
|
switch ($async$goto) {
|
|
15068
15084
|
case 0:
|
|
15069
15085
|
// Function start
|
|
15070
|
-
$async$returnValue = "1.
|
|
15086
|
+
$async$returnValue = "1.39.0 compiled with dart2js 2.13.4";
|
|
15071
15087
|
// goto return
|
|
15072
15088
|
$async$goto = 1;
|
|
15073
15089
|
break;
|
|
@@ -18219,7 +18235,7 @@ self.fs = require("fs");
|
|
|
18219
18235
|
_.keywordRest = t3;
|
|
18220
18236
|
_.span = t4;
|
|
18221
18237
|
},
|
|
18222
|
-
compileAsync0: function(path, functions, indentWidth, lineFeed, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) {
|
|
18238
|
+
compileAsync0: function(path, charset, functions, indentWidth, lineFeed, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) {
|
|
18223
18239
|
var $async$goto = 0,
|
|
18224
18240
|
$async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
|
|
18225
18241
|
$async$returnValue, terseLogger, logger, t1, t2, t3, stylesheet, result;
|
|
@@ -18243,7 +18259,7 @@ self.fs = require("fs");
|
|
|
18243
18259
|
stylesheet = V.Stylesheet_Stylesheet$parse0(t1, t2, logger, t3.toUri$1(path));
|
|
18244
18260
|
t1 = t3;
|
|
18245
18261
|
$async$goto = 3;
|
|
18246
|
-
return P._asyncAwait(X._compileStylesheet2(stylesheet, logger, null, nodeImporter, new F.FilesystemImporter0(t1.absolute$7(".", null, null, null, null, null, null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap,
|
|
18262
|
+
return P._asyncAwait(X._compileStylesheet2(stylesheet, logger, null, nodeImporter, new F.FilesystemImporter0(t1.absolute$7(".", null, null, null, null, null, null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileAsync0);
|
|
18247
18263
|
case 3:
|
|
18248
18264
|
// returning from await.
|
|
18249
18265
|
result = $async$result;
|
|
@@ -18260,7 +18276,7 @@ self.fs = require("fs");
|
|
|
18260
18276
|
});
|
|
18261
18277
|
return P._asyncStartSync($async$compileAsync0, $async$completer);
|
|
18262
18278
|
},
|
|
18263
|
-
compileStringAsync0: function(source, functions, indentWidth, lineFeed, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) {
|
|
18279
|
+
compileStringAsync0: function(source, charset, functions, indentWidth, lineFeed, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) {
|
|
18264
18280
|
var $async$goto = 0,
|
|
18265
18281
|
$async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
|
|
18266
18282
|
$async$returnValue, terseLogger, logger, stylesheet, t1, result;
|
|
@@ -18281,7 +18297,7 @@ self.fs = require("fs");
|
|
|
18281
18297
|
stylesheet = V.Stylesheet_Stylesheet$parse0(source, syntax == null ? C.Syntax_SCSS0 : syntax, logger, url);
|
|
18282
18298
|
t1 = $.$get$context().absolute$7(".", null, null, null, null, null, null);
|
|
18283
18299
|
$async$goto = 3;
|
|
18284
|
-
return P._asyncAwait(X._compileStylesheet2(stylesheet, logger, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap,
|
|
18300
|
+
return P._asyncAwait(X._compileStylesheet2(stylesheet, logger, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileStringAsync0);
|
|
18285
18301
|
case 3:
|
|
18286
18302
|
// returning from await.
|
|
18287
18303
|
result = $async$result;
|
|
@@ -18314,7 +18330,7 @@ self.fs = require("fs");
|
|
|
18314
18330
|
case 3:
|
|
18315
18331
|
// returning from await.
|
|
18316
18332
|
evaluateResult = $async$result;
|
|
18317
|
-
serializeResult = N.serialize0(evaluateResult.stylesheet,
|
|
18333
|
+
serializeResult = N.serialize0(evaluateResult.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
|
|
18318
18334
|
resultSourceMap = serializeResult.sourceMap;
|
|
18319
18335
|
if (resultSourceMap != null && importCache != null)
|
|
18320
18336
|
B.mapInPlace0(resultSourceMap.urls, new X._compileStylesheet_closure2(stylesheet, importCache));
|
|
@@ -21432,7 +21448,7 @@ self.fs = require("fs");
|
|
|
21432
21448
|
new Uint8Array(0);
|
|
21433
21449
|
J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
|
|
21434
21450
|
J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
|
|
21435
|
-
J.set$info$x(self.exports, "dart-sass\t1.
|
|
21451
|
+
J.set$info$x(self.exports, "dart-sass\t1.39.0\t(Sass Compiler)\t[Dart]\ndart2js\t2.13.4\t(Dart Compiler)\t[Dart]");
|
|
21436
21452
|
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});
|
|
21437
21453
|
J.set$NULL$x(self.exports, C.C__SassNull);
|
|
21438
21454
|
J.set$TRUE$x(self.exports, C.SassBoolean_true);
|
|
@@ -23217,6 +23233,9 @@ self.fs = require("fs");
|
|
|
23217
23233
|
get$verbose: function(obj) {
|
|
23218
23234
|
return obj.verbose;
|
|
23219
23235
|
},
|
|
23236
|
+
get$charset: function(obj) {
|
|
23237
|
+
return obj.charset;
|
|
23238
|
+
},
|
|
23220
23239
|
set$cli_pkg_main_0_: function(obj, v) {
|
|
23221
23240
|
return obj.cli_pkg_main_0_ = v;
|
|
23222
23241
|
}
|