sass 1.63.3 → 1.63.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 +71 -31
- package/sass.default.js +4 -0
- package/sass.node.mjs +128 -0
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":">=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","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.63.
|
|
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":">=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","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.63.4","bin":{"sass":"sass.js"},"main":"sass.node.js"}
|
package/sass.dart.js
CHANGED
|
@@ -8535,20 +8535,40 @@ self.util = _cliPkgRequires.util;
|
|
|
8535
8535
|
return t1;
|
|
8536
8536
|
},
|
|
8537
8537
|
Stylesheet_Stylesheet$parse(contents, syntax, logger, url) {
|
|
8538
|
-
var t1, t2;
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8538
|
+
var error, url0, t1, t2, exception;
|
|
8539
|
+
try {
|
|
8540
|
+
switch (syntax) {
|
|
8541
|
+
case B.Syntax_Sass_sass:
|
|
8542
|
+
t1 = A.SpanScanner$(contents, url);
|
|
8543
|
+
t2 = logger == null ? B.StderrLogger_false : logger;
|
|
8544
|
+
t2 = new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null).parse$0();
|
|
8545
|
+
return t2;
|
|
8546
|
+
case B.Syntax_SCSS_scss:
|
|
8547
|
+
t1 = A.ScssParser$(contents, logger, url).parse$0();
|
|
8548
|
+
return t1;
|
|
8549
|
+
case B.Syntax_CSS_css:
|
|
8550
|
+
t1 = A.SpanScanner$(contents, url);
|
|
8551
|
+
t2 = logger == null ? B.StderrLogger_false : logger;
|
|
8552
|
+
t2 = new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null).parse$0();
|
|
8553
|
+
return t2;
|
|
8554
|
+
default:
|
|
8555
|
+
t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null);
|
|
8556
|
+
throw A.wrapException(t1);
|
|
8557
|
+
}
|
|
8558
|
+
} catch (exception) {
|
|
8559
|
+
t1 = A.unwrapException(exception);
|
|
8560
|
+
if (t1 instanceof A.SassException) {
|
|
8561
|
+
error = t1;
|
|
8562
|
+
t1 = error;
|
|
8563
|
+
t2 = J.getInterceptor$z(t1);
|
|
8564
|
+
t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
|
|
8565
|
+
url0 = t1.get$sourceUrl(t1);
|
|
8566
|
+
if (url0 == null || J.toString$0$(url0) === "stdin")
|
|
8567
|
+
throw exception;
|
|
8568
|
+
t1 = type$.Uri;
|
|
8569
|
+
throw A.wrapException(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)));
|
|
8570
|
+
} else
|
|
8571
|
+
throw exception;
|
|
8552
8572
|
}
|
|
8553
8573
|
},
|
|
8554
8574
|
Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
|
|
@@ -21765,7 +21785,7 @@ self.util = _cliPkgRequires.util;
|
|
|
21765
21785
|
J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
|
|
21766
21786
|
J.set$Exception$x(self.exports, $.$get$exceptionClass());
|
|
21767
21787
|
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())}});
|
|
21768
|
-
J.set$info$x(self.exports, "dart-sass\t1.63.
|
|
21788
|
+
J.set$info$x(self.exports, "dart-sass\t1.63.4\t(Sass Compiler)\t[Dart]\ndart2js\t3.0.4\t(Dart Compiler)\t[Dart]");
|
|
21769
21789
|
A.updateSourceSpanPrototype();
|
|
21770
21790
|
J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
|
|
21771
21791
|
J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
|
|
@@ -22488,7 +22508,7 @@ self.util = _cliPkgRequires.util;
|
|
|
22488
22508
|
switch ($async$goto) {
|
|
22489
22509
|
case 0:
|
|
22490
22510
|
// Function start
|
|
22491
|
-
$async$returnValue = "1.63.
|
|
22511
|
+
$async$returnValue = "1.63.4 compiled with dart2js 3.0.4";
|
|
22492
22512
|
// goto return
|
|
22493
22513
|
$async$goto = 1;
|
|
22494
22514
|
break;
|
|
@@ -23259,20 +23279,40 @@ self.util = _cliPkgRequires.util;
|
|
|
23259
23279
|
return t1;
|
|
23260
23280
|
},
|
|
23261
23281
|
Stylesheet_Stylesheet$parse0(contents, syntax, logger, url) {
|
|
23262
|
-
var t1, t2;
|
|
23263
|
-
|
|
23264
|
-
|
|
23265
|
-
|
|
23266
|
-
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
|
|
23282
|
+
var error, url0, t1, t2, exception;
|
|
23283
|
+
try {
|
|
23284
|
+
switch (syntax) {
|
|
23285
|
+
case B.Syntax_Sass_sass0:
|
|
23286
|
+
t1 = A.SpanScanner$(contents, url);
|
|
23287
|
+
t2 = logger == null ? B.StderrLogger_false0 : logger;
|
|
23288
|
+
t2 = new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null).parse$0();
|
|
23289
|
+
return t2;
|
|
23290
|
+
case B.Syntax_SCSS_scss0:
|
|
23291
|
+
t1 = A.ScssParser$0(contents, logger, url).parse$0();
|
|
23292
|
+
return t1;
|
|
23293
|
+
case B.Syntax_CSS_css0:
|
|
23294
|
+
t1 = A.SpanScanner$(contents, url);
|
|
23295
|
+
t2 = logger == null ? B.StderrLogger_false0 : logger;
|
|
23296
|
+
t2 = new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null).parse$0();
|
|
23297
|
+
return t2;
|
|
23298
|
+
default:
|
|
23299
|
+
t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null);
|
|
23300
|
+
throw A.wrapException(t1);
|
|
23301
|
+
}
|
|
23302
|
+
} catch (exception) {
|
|
23303
|
+
t1 = A.unwrapException(exception);
|
|
23304
|
+
if (t1 instanceof A.SassException0) {
|
|
23305
|
+
error = t1;
|
|
23306
|
+
t1 = error;
|
|
23307
|
+
t2 = J.getInterceptor$z(t1);
|
|
23308
|
+
t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
|
|
23309
|
+
url0 = t1.get$sourceUrl(t1);
|
|
23310
|
+
if (url0 == null || J.toString$0$(url0) === "stdin")
|
|
23311
|
+
throw exception;
|
|
23312
|
+
t1 = type$.Uri;
|
|
23313
|
+
throw A.wrapException(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)));
|
|
23314
|
+
} else
|
|
23315
|
+
throw exception;
|
|
23276
23316
|
}
|
|
23277
23317
|
},
|
|
23278
23318
|
Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
|
|
@@ -42380,7 +42420,7 @@ self.util = _cliPkgRequires.util;
|
|
|
42380
42420
|
else
|
|
42381
42421
|
try {
|
|
42382
42422
|
argVersion = A.Version_Version$parse(id);
|
|
42383
|
-
sassVersion = A.Version_Version$parse("1.63.
|
|
42423
|
+
sassVersion = A.Version_Version$parse("1.63.4");
|
|
42384
42424
|
if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
|
|
42385
42425
|
A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
|
|
42386
42426
|
J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
|
package/sass.default.js
CHANGED
|
@@ -30,3 +30,7 @@ export const PromiseOr = _cliPkgExports.PromiseOr;
|
|
|
30
30
|
export const info = _cliPkgExports.info;
|
|
31
31
|
export const render = _cliPkgExports.render;
|
|
32
32
|
export const renderSync = _cliPkgExports.renderSync;
|
|
33
|
+
export const TRUE = _cliPkgExports.TRUE;
|
|
34
|
+
export const FALSE = _cliPkgExports.FALSE;
|
|
35
|
+
export const NULL = _cliPkgExports.NULL;
|
|
36
|
+
export const types = _cliPkgExports.types;
|
package/sass.node.mjs
CHANGED
|
@@ -33,3 +33,131 @@ export const PromiseOr = _cliPkgExports.PromiseOr;
|
|
|
33
33
|
export const info = _cliPkgExports.info;
|
|
34
34
|
export const render = _cliPkgExports.render;
|
|
35
35
|
export const renderSync = _cliPkgExports.renderSync;
|
|
36
|
+
export const TRUE = _cliPkgExports.TRUE;
|
|
37
|
+
export const FALSE = _cliPkgExports.FALSE;
|
|
38
|
+
export const NULL = _cliPkgExports.NULL;
|
|
39
|
+
export const types = _cliPkgExports.types;
|
|
40
|
+
|
|
41
|
+
let printedDefaultExportDeprecation = false;
|
|
42
|
+
function defaultExportDeprecation() {
|
|
43
|
+
if (printedDefaultExportDeprecation) return;
|
|
44
|
+
printedDefaultExportDeprecation = true;
|
|
45
|
+
console.error(
|
|
46
|
+
"`import sass from 'sass'` is deprecated.\n" +
|
|
47
|
+
"Please use `import * as sass from 'sass'` instead.");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
get compile() {
|
|
52
|
+
defaultExportDeprecation();
|
|
53
|
+
return _cliPkgExports.compile;
|
|
54
|
+
},
|
|
55
|
+
get compileAsync() {
|
|
56
|
+
defaultExportDeprecation();
|
|
57
|
+
return _cliPkgExports.compileAsync;
|
|
58
|
+
},
|
|
59
|
+
get compileString() {
|
|
60
|
+
defaultExportDeprecation();
|
|
61
|
+
return _cliPkgExports.compileString;
|
|
62
|
+
},
|
|
63
|
+
get compileStringAsync() {
|
|
64
|
+
defaultExportDeprecation();
|
|
65
|
+
return _cliPkgExports.compileStringAsync;
|
|
66
|
+
},
|
|
67
|
+
get Logger() {
|
|
68
|
+
defaultExportDeprecation();
|
|
69
|
+
return _cliPkgExports.Logger;
|
|
70
|
+
},
|
|
71
|
+
get SassArgumentList() {
|
|
72
|
+
defaultExportDeprecation();
|
|
73
|
+
return _cliPkgExports.SassArgumentList;
|
|
74
|
+
},
|
|
75
|
+
get SassBoolean() {
|
|
76
|
+
defaultExportDeprecation();
|
|
77
|
+
return _cliPkgExports.SassBoolean;
|
|
78
|
+
},
|
|
79
|
+
get SassColor() {
|
|
80
|
+
defaultExportDeprecation();
|
|
81
|
+
return _cliPkgExports.SassColor;
|
|
82
|
+
},
|
|
83
|
+
get SassFunction() {
|
|
84
|
+
defaultExportDeprecation();
|
|
85
|
+
return _cliPkgExports.SassFunction;
|
|
86
|
+
},
|
|
87
|
+
get SassList() {
|
|
88
|
+
defaultExportDeprecation();
|
|
89
|
+
return _cliPkgExports.SassList;
|
|
90
|
+
},
|
|
91
|
+
get SassMap() {
|
|
92
|
+
defaultExportDeprecation();
|
|
93
|
+
return _cliPkgExports.SassMap;
|
|
94
|
+
},
|
|
95
|
+
get SassNumber() {
|
|
96
|
+
defaultExportDeprecation();
|
|
97
|
+
return _cliPkgExports.SassNumber;
|
|
98
|
+
},
|
|
99
|
+
get SassString() {
|
|
100
|
+
defaultExportDeprecation();
|
|
101
|
+
return _cliPkgExports.SassString;
|
|
102
|
+
},
|
|
103
|
+
get Value() {
|
|
104
|
+
defaultExportDeprecation();
|
|
105
|
+
return _cliPkgExports.Value;
|
|
106
|
+
},
|
|
107
|
+
get CustomFunction() {
|
|
108
|
+
defaultExportDeprecation();
|
|
109
|
+
return _cliPkgExports.CustomFunction;
|
|
110
|
+
},
|
|
111
|
+
get ListSeparator() {
|
|
112
|
+
defaultExportDeprecation();
|
|
113
|
+
return _cliPkgExports.ListSeparator;
|
|
114
|
+
},
|
|
115
|
+
get sassFalse() {
|
|
116
|
+
defaultExportDeprecation();
|
|
117
|
+
return _cliPkgExports.sassFalse;
|
|
118
|
+
},
|
|
119
|
+
get sassNull() {
|
|
120
|
+
defaultExportDeprecation();
|
|
121
|
+
return _cliPkgExports.sassNull;
|
|
122
|
+
},
|
|
123
|
+
get sassTrue() {
|
|
124
|
+
defaultExportDeprecation();
|
|
125
|
+
return _cliPkgExports.sassTrue;
|
|
126
|
+
},
|
|
127
|
+
get Exception() {
|
|
128
|
+
defaultExportDeprecation();
|
|
129
|
+
return _cliPkgExports.Exception;
|
|
130
|
+
},
|
|
131
|
+
get PromiseOr() {
|
|
132
|
+
defaultExportDeprecation();
|
|
133
|
+
return _cliPkgExports.PromiseOr;
|
|
134
|
+
},
|
|
135
|
+
get info() {
|
|
136
|
+
defaultExportDeprecation();
|
|
137
|
+
return _cliPkgExports.info;
|
|
138
|
+
},
|
|
139
|
+
get render() {
|
|
140
|
+
defaultExportDeprecation();
|
|
141
|
+
return _cliPkgExports.render;
|
|
142
|
+
},
|
|
143
|
+
get renderSync() {
|
|
144
|
+
defaultExportDeprecation();
|
|
145
|
+
return _cliPkgExports.renderSync;
|
|
146
|
+
},
|
|
147
|
+
get TRUE() {
|
|
148
|
+
defaultExportDeprecation();
|
|
149
|
+
return _cliPkgExports.TRUE;
|
|
150
|
+
},
|
|
151
|
+
get FALSE() {
|
|
152
|
+
defaultExportDeprecation();
|
|
153
|
+
return _cliPkgExports.FALSE;
|
|
154
|
+
},
|
|
155
|
+
get NULL() {
|
|
156
|
+
defaultExportDeprecation();
|
|
157
|
+
return _cliPkgExports.NULL;
|
|
158
|
+
},
|
|
159
|
+
get types() {
|
|
160
|
+
defaultExportDeprecation();
|
|
161
|
+
return _cliPkgExports.types;
|
|
162
|
+
},
|
|
163
|
+
};
|