sass-embedded
Advanced tools
Comparing version 1.60.0 to 1.61.0
@@ -48,5 +48,9 @@ "use strict"; | ||
function adjustOptions(options) { | ||
var _a; | ||
if (!('file' in options && options.file) && !('data' in options)) { | ||
throw new Error('Either options.data or options.file must be set.'); | ||
} | ||
// In legacy API, the current working directory is always attempted before | ||
// any load path. | ||
options.includePaths = [process.cwd(), ...((_a = options.includePaths) !== null && _a !== void 0 ? _a : [])]; | ||
if (!isStringOptions(options) && | ||
@@ -138,3 +142,3 @@ // The `indentedSyntax` option takes precedence over the file extension in the | ||
data: options.data, | ||
includePaths: [process.cwd(), ...((_a = options.includePaths) !== null && _a !== void 0 ? _a : [])].join(p.delimiter), | ||
includePaths: ((_a = options.includePaths) !== null && _a !== void 0 ? _a : []).join(p.delimiter), | ||
precision: 10, | ||
@@ -141,0 +145,0 @@ style: 1, |
{ | ||
"name": "sass-embedded", | ||
"version": "1.60.0", | ||
"version": "1.61.0", | ||
"protocol-version": "1.2.0", | ||
"compiler-version": "1.60.0", | ||
"compiler-version": "1.61.0", | ||
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", | ||
@@ -30,10 +30,10 @@ "repository": "sass/embedded-host-node", | ||
"optionalDependencies": { | ||
"sass-embedded-darwin-arm64": "1.60.0", | ||
"sass-embedded-darwin-x64": "1.60.0", | ||
"sass-embedded-linux-arm": "1.60.0", | ||
"sass-embedded-linux-arm64": "1.60.0", | ||
"sass-embedded-linux-ia32": "1.60.0", | ||
"sass-embedded-linux-x64": "1.60.0", | ||
"sass-embedded-win32-ia32": "1.60.0", | ||
"sass-embedded-win32-x64": "1.60.0" | ||
"sass-embedded-darwin-arm64": "1.61.0", | ||
"sass-embedded-darwin-x64": "1.61.0", | ||
"sass-embedded-linux-arm": "1.61.0", | ||
"sass-embedded-linux-arm64": "1.61.0", | ||
"sass-embedded-linux-ia32": "1.61.0", | ||
"sass-embedded-linux-x64": "1.61.0", | ||
"sass-embedded-win32-ia32": "1.61.0", | ||
"sass-embedded-win32-x64": "1.61.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "dependencies": { |
{ | ||
"name": "sass-embedded", | ||
"version": "1.60.0", | ||
"version": "1.61.0", | ||
"protocol-version": "1.2.0", | ||
"compiler-version": "1.60.0", | ||
"compiler-version": "1.61.0", | ||
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", | ||
@@ -30,10 +30,10 @@ "repository": "sass/embedded-host-node", | ||
"optionalDependencies": { | ||
"sass-embedded-darwin-arm64": "1.60.0", | ||
"sass-embedded-darwin-x64": "1.60.0", | ||
"sass-embedded-linux-arm": "1.60.0", | ||
"sass-embedded-linux-arm64": "1.60.0", | ||
"sass-embedded-linux-ia32": "1.60.0", | ||
"sass-embedded-linux-x64": "1.60.0", | ||
"sass-embedded-win32-ia32": "1.60.0", | ||
"sass-embedded-win32-x64": "1.60.0" | ||
"sass-embedded-darwin-arm64": "1.61.0", | ||
"sass-embedded-darwin-x64": "1.61.0", | ||
"sass-embedded-linux-arm": "1.61.0", | ||
"sass-embedded-linux-arm64": "1.61.0", | ||
"sass-embedded-linux-ia32": "1.61.0", | ||
"sass-embedded-linux-x64": "1.61.0", | ||
"sass-embedded-win32-ia32": "1.61.0", | ||
"sass-embedded-win32-x64": "1.61.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
623677
10907