sass-embedded
Advanced tools
Comparing version 1.49.11 to 1.50.0
@@ -11,2 +11,3 @@ "use strict"; | ||
const p = require("path"); | ||
const util = require("util"); | ||
const resolve_path_1 = require("./resolve-path"); | ||
@@ -55,4 +56,6 @@ const utils_1 = require("../utils"); | ||
const resolved = (0, resolve_path_1.resolvePath)((0, utils_1.fileUrlToPathCrossPlatform)(url), options.fromImport); | ||
if (resolved !== null) | ||
if (resolved !== null) { | ||
this.prev.push({ url: resolved, path: true }); | ||
return (0, url_1.pathToFileURL)(resolved); | ||
} | ||
} | ||
@@ -72,2 +75,6 @@ this.expectingRelativeLoad = false; | ||
return null; | ||
if (typeof result !== 'object') { | ||
throw ('Expected importer to return an object, got ' + | ||
`${util.inspect(result)}.`); | ||
} | ||
if ('contents' in result || !('file' in result)) { | ||
@@ -74,0 +81,0 @@ this.lastContents = (_a = result.contents) !== null && _a !== void 0 ? _a : ''; |
{ | ||
"name": "sass-embedded", | ||
"version": "1.49.11", | ||
"version": "1.50.0", | ||
"protocol-version": "1.0.0", | ||
"compiler-version": "1.49.11", | ||
"compiler-version": "1.50.0", | ||
"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.11", | ||
"version": "1.50.0", | ||
"protocol-version": "1.0.0", | ||
"compiler-version": "1.49.11", | ||
"compiler-version": "1.50.0", | ||
"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
1168719
17287