sass 1.47.0 → 1.48.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 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","immutable":"^4.0.0","source-map-js":">=0.6.2 <2.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","version":"1.47.0","bin":{"sass":"sass.js"},"main":"sass.default.dart.js","exports":{"default":"./sass.default.dart.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":">=8.9.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","version":"1.48.0","bin":{"sass":"sass.js"},"main":"sass.default.dart.js","exports":{"default":"./sass.default.dart.js"}}
package/sass.dart.js CHANGED
@@ -20032,10 +20032,11 @@ self.readline = _cli_pkg_requires.readline;
20032
20032
  }
20033
20033
  },
20034
20034
  _newRenderResult(options, result, start) {
20035
- var t3, sourceMapOption, sourceMapPath, t4, sourceMapDir, outFile, t5, file, sourceMapDirUrl, i, source, t6, t7, sourceMapBytes, buffer, indices, url, t8, t9, _null = null,
20035
+ var t3, sourceMapOption, sourceMapPath, t4, sourceMapDir, outFile, t5, file, sourceMapDirUrl, i, source, t6, t7, buffer, indices, url, t8, t9, _null = null,
20036
20036
  t1 = Date.now(),
20037
20037
  t2 = result._compile_result$_serialize,
20038
- css = t2.css;
20038
+ css = t2.css,
20039
+ sourceMapBytes = type$.Null._as(self.undefined);
20039
20040
  if (A._enableSourceMaps(options)) {
20040
20041
  t3 = J.getInterceptor$x(options);
20041
20042
  sourceMapOption = t3.get$sourceMap(options);
@@ -20101,8 +20102,7 @@ self.readline = _cli_pkg_requires.readline;
20101
20102
  }
20102
20103
  css += "\n\n/*# sourceMappingURL=" + url.toString$0(0) + " */";
20103
20104
  }
20104
- } else
20105
- sourceMapBytes = _null;
20105
+ }
20106
20106
  t2 = self.Buffer.from(css, "utf8");
20107
20107
  t3 = J.get$file$x(options);
20108
20108
  if (t3 == null)
@@ -20773,7 +20773,7 @@ self.readline = _cli_pkg_requires.readline;
20773
20773
  J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
20774
20774
  J.set$Exception$x(self.exports, $.$get$exceptionClass());
20775
20775
  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())}});
20776
- J.set$info$x(self.exports, "dart-sass\t1.47.0\t(Sass Compiler)\t[Dart]\ndart2js\t2.15.1\t(Dart Compiler)\t[Dart]");
20776
+ J.set$info$x(self.exports, "dart-sass\t1.48.0\t(Sass Compiler)\t[Dart]\ndart2js\t2.15.1\t(Dart Compiler)\t[Dart]");
20777
20777
  A.updateSourceSpanPrototype();
20778
20778
  J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
20779
20779
  J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
@@ -21432,7 +21432,7 @@ self.readline = _cli_pkg_requires.readline;
21432
21432
  switch ($async$goto) {
21433
21433
  case 0:
21434
21434
  // Function start
21435
- $async$returnValue = "1.47.0 compiled with dart2js 2.15.1";
21435
+ $async$returnValue = "1.48.0 compiled with dart2js 2.15.1";
21436
21436
  // goto return
21437
21437
  $async$goto = 1;
21438
21438
  break;
package/types/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export {
47
47
  LegacyFunction,
48
48
  LegacySyncFunction,
49
49
  LegacyValue,
50
+ NULL,
50
51
  TRUE,
51
52
  types,
52
53
  } from './legacy/function';
@@ -185,7 +185,7 @@ export type LegacyValue =
185
185
  | types.Map;
186
186
 
187
187
  /**
188
- * A shorthand for `sass.types.TRUE`.
188
+ * A shorthand for `sass.types.Boolean.TRUE`.
189
189
  *
190
190
  * @category Legacy
191
191
  * @deprecated This only works with the legacy [[render]] and [[renderSync]]
@@ -195,7 +195,7 @@ export type LegacyValue =
195
195
  export const TRUE: types.Boolean<true>;
196
196
 
197
197
  /**
198
- * A shorthand for `sass.types.FALSE`.
198
+ * A shorthand for `sass.types.Boolean.FALSE`.
199
199
  *
200
200
  * @category Legacy
201
201
  * @deprecated This only works with the legacy [[render]] and [[renderSync]]
@@ -204,6 +204,16 @@ export const TRUE: types.Boolean<true>;
204
204
  */
205
205
  export const FALSE: types.Boolean<false>;
206
206
 
207
+ /**
208
+ * A shorthand for `sass.types.Null.NULL`.
209
+ *
210
+ * @category Legacy
211
+ * @deprecated This only works with the legacy [[render]] and [[renderSync]]
212
+ * APIs. Use [[sassNull]] with [[compile]], [[compileString]], [[compileAsync]],
213
+ * and [[compileStringAsync]] instead.
214
+ */
215
+ export const NULL: types.Null;
216
+
207
217
  /**
208
218
  * The namespace for value types used in the legacy function API.
209
219
  *