sass 1.63.3 → 1.63.5

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 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.3","bin":{"sass":"sass.js"},"main":"sass.node.js"}
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.5","bin":{"sass":"sass.js"},"main":"sass.node.js"}
package/sass.dart.js CHANGED
@@ -127,7 +127,7 @@ self.readline = _cliPkgRequires.readline;
127
127
  self.fs = _cliPkgRequires.fs;
128
128
  self.stream = _cliPkgRequires.stream;
129
129
  self.util = _cliPkgRequires.util;
130
- // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.4.
130
+ // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.5.
131
131
  // The code supports the following hooks:
132
132
  // dartPrint(message):
133
133
  // if this function is defined it is called instead of the Dart [print]
@@ -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
- switch (syntax) {
8540
- case B.Syntax_Sass_sass:
8541
- t1 = A.SpanScanner$(contents, url);
8542
- t2 = logger == null ? B.StderrLogger_false : logger;
8543
- return new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null).parse$0();
8544
- case B.Syntax_SCSS_scss:
8545
- return A.ScssParser$(contents, logger, url).parse$0();
8546
- case B.Syntax_CSS_css:
8547
- t1 = A.SpanScanner$(contents, url);
8548
- t2 = logger == null ? B.StderrLogger_false : logger;
8549
- return new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null).parse$0();
8550
- default:
8551
- throw A.wrapException(A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null));
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.3\t(Sass Compiler)\t[Dart]\ndart2js\t3.0.4\t(Dart Compiler)\t[Dart]");
21788
+ J.set$info$x(self.exports, "dart-sass\t1.63.5\t(Sass Compiler)\t[Dart]\ndart2js\t3.0.5\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.3 compiled with dart2js 3.0.4";
22511
+ $async$returnValue = "1.63.5 compiled with dart2js 3.0.5";
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
- switch (syntax) {
23264
- case B.Syntax_Sass_sass0:
23265
- t1 = A.SpanScanner$(contents, url);
23266
- t2 = logger == null ? B.StderrLogger_false0 : logger;
23267
- return new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null).parse$0();
23268
- case B.Syntax_SCSS_scss0:
23269
- return A.ScssParser$0(contents, logger, url).parse$0();
23270
- case B.Syntax_CSS_css0:
23271
- t1 = A.SpanScanner$(contents, url);
23272
- t2 = logger == null ? B.StderrLogger_false0 : logger;
23273
- return new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null).parse$0();
23274
- default:
23275
- throw A.wrapException(A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null));
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.3");
42423
+ sassVersion = A.Version_Version$parse("1.63.5");
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
@@ -1,35 +1,154 @@
1
- import * as util from "util"
2
- import * as stream from "stream"
3
- import * as fs from "fs"
4
- import * as immutable from "immutable"
5
- import "./sass.dart.js";
1
+ import cjs from "./sass.node.js";
6
2
 
7
- const _cliPkgLibrary = globalThis._cliPkgExports.pop();
8
- if (globalThis._cliPkgExports.length === 0) delete globalThis._cliPkgExports;
9
- const _cliPkgExports = {};
10
- _cliPkgLibrary.load({util, stream, fs, immutable}, _cliPkgExports);
3
+ export const compile = cjs.compile;
4
+ export const compileAsync = cjs.compileAsync;
5
+ export const compileString = cjs.compileString;
6
+ export const compileStringAsync = cjs.compileStringAsync;
7
+ export const Logger = cjs.Logger;
8
+ export const SassArgumentList = cjs.SassArgumentList;
9
+ export const SassBoolean = cjs.SassBoolean;
10
+ export const SassColor = cjs.SassColor;
11
+ export const SassFunction = cjs.SassFunction;
12
+ export const SassList = cjs.SassList;
13
+ export const SassMap = cjs.SassMap;
14
+ export const SassNumber = cjs.SassNumber;
15
+ export const SassString = cjs.SassString;
16
+ export const Value = cjs.Value;
17
+ export const CustomFunction = cjs.CustomFunction;
18
+ export const ListSeparator = cjs.ListSeparator;
19
+ export const sassFalse = cjs.sassFalse;
20
+ export const sassNull = cjs.sassNull;
21
+ export const sassTrue = cjs.sassTrue;
22
+ export const Exception = cjs.Exception;
23
+ export const PromiseOr = cjs.PromiseOr;
24
+ export const info = cjs.info;
25
+ export const render = cjs.render;
26
+ export const renderSync = cjs.renderSync;
27
+ export const TRUE = cjs.TRUE;
28
+ export const FALSE = cjs.FALSE;
29
+ export const NULL = cjs.NULL;
30
+ export const types = cjs.types;
11
31
 
12
- export const compile = _cliPkgExports.compile;
13
- export const compileAsync = _cliPkgExports.compileAsync;
14
- export const compileString = _cliPkgExports.compileString;
15
- export const compileStringAsync = _cliPkgExports.compileStringAsync;
16
- export const Logger = _cliPkgExports.Logger;
17
- export const SassArgumentList = _cliPkgExports.SassArgumentList;
18
- export const SassBoolean = _cliPkgExports.SassBoolean;
19
- export const SassColor = _cliPkgExports.SassColor;
20
- export const SassFunction = _cliPkgExports.SassFunction;
21
- export const SassList = _cliPkgExports.SassList;
22
- export const SassMap = _cliPkgExports.SassMap;
23
- export const SassNumber = _cliPkgExports.SassNumber;
24
- export const SassString = _cliPkgExports.SassString;
25
- export const Value = _cliPkgExports.Value;
26
- export const CustomFunction = _cliPkgExports.CustomFunction;
27
- export const ListSeparator = _cliPkgExports.ListSeparator;
28
- export const sassFalse = _cliPkgExports.sassFalse;
29
- export const sassNull = _cliPkgExports.sassNull;
30
- export const sassTrue = _cliPkgExports.sassTrue;
31
- export const Exception = _cliPkgExports.Exception;
32
- export const PromiseOr = _cliPkgExports.PromiseOr;
33
- export const info = _cliPkgExports.info;
34
- export const render = _cliPkgExports.render;
35
- export const renderSync = _cliPkgExports.renderSync;
32
+ let printedDefaultExportDeprecation = false;
33
+ function defaultExportDeprecation() {
34
+ if (printedDefaultExportDeprecation) return;
35
+ printedDefaultExportDeprecation = true;
36
+ console.error(
37
+ "`import sass from 'sass'` is deprecated.\n" +
38
+ "Please use `import * as sass from 'sass'` instead.");
39
+ }
40
+
41
+ export default {
42
+ get compile() {
43
+ defaultExportDeprecation();
44
+ return _cliPkgExports.compile;
45
+ },
46
+ get compileAsync() {
47
+ defaultExportDeprecation();
48
+ return _cliPkgExports.compileAsync;
49
+ },
50
+ get compileString() {
51
+ defaultExportDeprecation();
52
+ return _cliPkgExports.compileString;
53
+ },
54
+ get compileStringAsync() {
55
+ defaultExportDeprecation();
56
+ return _cliPkgExports.compileStringAsync;
57
+ },
58
+ get Logger() {
59
+ defaultExportDeprecation();
60
+ return _cliPkgExports.Logger;
61
+ },
62
+ get SassArgumentList() {
63
+ defaultExportDeprecation();
64
+ return _cliPkgExports.SassArgumentList;
65
+ },
66
+ get SassBoolean() {
67
+ defaultExportDeprecation();
68
+ return _cliPkgExports.SassBoolean;
69
+ },
70
+ get SassColor() {
71
+ defaultExportDeprecation();
72
+ return _cliPkgExports.SassColor;
73
+ },
74
+ get SassFunction() {
75
+ defaultExportDeprecation();
76
+ return _cliPkgExports.SassFunction;
77
+ },
78
+ get SassList() {
79
+ defaultExportDeprecation();
80
+ return _cliPkgExports.SassList;
81
+ },
82
+ get SassMap() {
83
+ defaultExportDeprecation();
84
+ return _cliPkgExports.SassMap;
85
+ },
86
+ get SassNumber() {
87
+ defaultExportDeprecation();
88
+ return _cliPkgExports.SassNumber;
89
+ },
90
+ get SassString() {
91
+ defaultExportDeprecation();
92
+ return _cliPkgExports.SassString;
93
+ },
94
+ get Value() {
95
+ defaultExportDeprecation();
96
+ return _cliPkgExports.Value;
97
+ },
98
+ get CustomFunction() {
99
+ defaultExportDeprecation();
100
+ return _cliPkgExports.CustomFunction;
101
+ },
102
+ get ListSeparator() {
103
+ defaultExportDeprecation();
104
+ return _cliPkgExports.ListSeparator;
105
+ },
106
+ get sassFalse() {
107
+ defaultExportDeprecation();
108
+ return _cliPkgExports.sassFalse;
109
+ },
110
+ get sassNull() {
111
+ defaultExportDeprecation();
112
+ return _cliPkgExports.sassNull;
113
+ },
114
+ get sassTrue() {
115
+ defaultExportDeprecation();
116
+ return _cliPkgExports.sassTrue;
117
+ },
118
+ get Exception() {
119
+ defaultExportDeprecation();
120
+ return _cliPkgExports.Exception;
121
+ },
122
+ get PromiseOr() {
123
+ defaultExportDeprecation();
124
+ return _cliPkgExports.PromiseOr;
125
+ },
126
+ get info() {
127
+ defaultExportDeprecation();
128
+ return _cliPkgExports.info;
129
+ },
130
+ get render() {
131
+ defaultExportDeprecation();
132
+ return _cliPkgExports.render;
133
+ },
134
+ get renderSync() {
135
+ defaultExportDeprecation();
136
+ return _cliPkgExports.renderSync;
137
+ },
138
+ get TRUE() {
139
+ defaultExportDeprecation();
140
+ return _cliPkgExports.TRUE;
141
+ },
142
+ get FALSE() {
143
+ defaultExportDeprecation();
144
+ return _cliPkgExports.FALSE;
145
+ },
146
+ get NULL() {
147
+ defaultExportDeprecation();
148
+ return _cliPkgExports.NULL;
149
+ },
150
+ get types() {
151
+ defaultExportDeprecation();
152
+ return _cliPkgExports.types;
153
+ },
154
+ };