"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/src/node.dart" between
dart-sass-1.24.3.tar.gz and dart-sass-1.24.4.tar.gz

About: Dart Sass (Syntactically Awesome StyleSheets) is a CSS preprocessor (extension language), written in Dart, that adds "power and elegance" to the basic CSS language. There exist also LibSass, a Sass implementation written in C++. The original Ruby implementation of Sass reached its end of life as of 26 March 2019.

node.dart  (dart-sass-1.24.3):node.dart  (dart-sass-1.24.4)
skipping to change at line 354 skipping to change at line 354
} }
} else { } else {
result.sourceMap.targetUrl = result.sourceMap.targetUrl =
p.toUri(p.relative(options.outFile, from: sourceMapDir)).toString(); p.toUri(p.relative(options.outFile, from: sourceMapDir)).toString();
} }
var sourceMapDirUrl = p.toUri(sourceMapDir).toString(); var sourceMapDirUrl = p.toUri(sourceMapDir).toString();
for (var i = 0; i < result.sourceMap.urls.length; i++) { for (var i = 0; i < result.sourceMap.urls.length; i++) {
var source = result.sourceMap.urls[i]; var source = result.sourceMap.urls[i];
if (source == "stdin") continue; if (source == "stdin") continue;
// URLs handled by Node importers that directly return file contents are
// preserved in their original (usually relative) form. They may or may
// not be intended as `file:` URLs, but there's nothing we can do about it
// either way so we keep them as-is.
if (p.url.isRelative(source) || p.url.isRootRelative(source)) continue;
result.sourceMap.urls[i] = p.url.relative(source, from: sourceMapDirUrl); result.sourceMap.urls[i] = p.url.relative(source, from: sourceMapDirUrl);
} }
var json = result.sourceMap var json = result.sourceMap
.toJson(includeSourceContents: isTruthy(options.sourceMapContents)); .toJson(includeSourceContents: isTruthy(options.sourceMapContents));
sourceMapBytes = utf8Encode(jsonEncode(json)); sourceMapBytes = utf8Encode(jsonEncode(json));
if (!isTruthy(options.omitSourceMapUrl)) { if (!isTruthy(options.omitSourceMapUrl)) {
var url = isTruthy(options.sourceMapEmbed) var url = isTruthy(options.sourceMapEmbed)
? Uri.dataFromBytes(sourceMapBytes, mimeType: "application/json") ? Uri.dataFromBytes(sourceMapBytes, mimeType: "application/json")
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)