sass-embedded
Advanced tools
Comparing version 1.49.7 to 1.49.8
@@ -122,3 +122,7 @@ "use strict"; | ||
this.prev.pop(); | ||
return { contents: '', syntax: 'scss' }; | ||
return { | ||
contents: '', | ||
syntax: 'scss', | ||
sourceMapUrl: new URL(exports.endOfLoadProtocol), | ||
}; | ||
} | ||
@@ -142,3 +146,3 @@ if (canonicalUrl.protocol === 'file:') { | ||
} | ||
return { contents, syntax }; | ||
return { contents, syntax, sourceMapUrl: canonicalUrl }; | ||
} | ||
@@ -151,2 +155,3 @@ const lastContents = this.lastContents; | ||
syntax: 'scss', | ||
sourceMapUrl: canonicalUrl, | ||
}; | ||
@@ -153,0 +158,0 @@ } |
@@ -173,6 +173,11 @@ "use strict"; | ||
} | ||
sourceMap.sources = sourceMap.sources.map(source => { | ||
sourceMap.sources = sourceMap.sources | ||
.filter(source => !source.startsWith(importer_1.endOfLoadProtocol)) | ||
.map(source => { | ||
if (source.startsWith('file://')) { | ||
return (0, utils_1.pathToUrlString)(p.relative(sourceMapDir, (0, utils_1.fileUrlToPathCrossPlatform)(source))); | ||
} | ||
else if (source.startsWith(importer_1.legacyImporterProtocol)) { | ||
return source.substring(importer_1.legacyImporterProtocol.length); | ||
} | ||
else if (source.startsWith('data:')) { | ||
@@ -179,0 +184,0 @@ return 'stdin'; |
{ | ||
"name": "sass-embedded", | ||
"version": "1.49.7", | ||
"version": "1.49.8", | ||
"protocol-version": "1.0.0", | ||
"compiler-version": "1.49.7", | ||
"compiler-version": "1.49.8", | ||
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", | ||
@@ -7,0 +7,0 @@ "repository": "sass/embedded-host-node", |
{ | ||
"name": "sass-embedded", | ||
"version": "1.49.7", | ||
"version": "1.49.8", | ||
"protocol-version": "1.0.0", | ||
"compiler-version": "1.49.7", | ||
"compiler-version": "1.49.8", | ||
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", | ||
@@ -7,0 +7,0 @@ "repository": "sass/embedded-host-node", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1166377
17282