broccoli-eyeglass
Advanced tools
Comparing version 2.4.3 to 3.0.0
@@ -17,2 +17,4 @@ var path = require("path"); | ||
var walkSync = require("walk-sync"); | ||
var os = require("os"); | ||
var queue = require("async-promise-queue"); | ||
@@ -277,8 +279,12 @@ require("string.prototype.startswith"); | ||
var self = this; | ||
var numConcurrentCalls = Number(process.env.JOBS) || os.cpus().length; | ||
return files.reduce(function(promise, sassFile) { | ||
return promise.then(function() { | ||
return RSVP.all(self.compileSassFile(srcPath, sassFile, destDir)); | ||
}); | ||
}, RSVP.Promise.resolve()); | ||
var worker = queue.async.asyncify(function(file) { | ||
return RSVP.all(self.compileSassFile(srcPath, file, destDir)); | ||
}); | ||
return RSVP.resolve(queue(worker, files, numConcurrentCalls) | ||
.catch(function(reason) { | ||
throw reason; | ||
} | ||
)); | ||
}; | ||
@@ -285,0 +291,0 @@ |
{ | ||
"name": "broccoli-eyeglass", | ||
"description": "Sass compiler for Broccoli with Eyeglass Integration", | ||
"version": "2.4.3", | ||
"version": "3.0.0", | ||
"author": "Chris Eppstein <chris@eppsteins.net>", | ||
@@ -24,2 +24,3 @@ "main": "lib/index.js", | ||
"async-disk-cache": "^1.0.8", | ||
"async-promise-queue": "^1.0.1", | ||
"broccoli-merge-trees": "^1.1.4", | ||
@@ -26,0 +27,0 @@ "broccoli-plugin": "^1.2.2", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
102546
2214
19
8
+ Addedasync-promise-queue@^1.0.1
+ Addedasync@2.6.4(transitive)
+ Addedasync-promise-queue@1.0.5(transitive)