Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-eyeglass

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-eyeglass - npm Package Compare versions

Comparing version 2.4.2 to 2.4.3

31

lib/broccoli_sass_compiler.js

@@ -17,3 +17,2 @@ var path = require("path");

var walkSync = require("walk-sync");
var os = require("os");

@@ -278,26 +277,8 @@ require("string.prototype.startswith");

var self = this;
// flatten array of promises
var promises = [];
files.forEach(function(sassFile) {
promises = promises.concat(RSVP.all(self.compileSassFile(srcPath, sassFile, destDir)));
});
// throttle number of calls to compileSassFile
var concurrentTasksPerCPU = 4;
var numConcurrentCalls = os.cpus().length * concurrentTasksPerCPU;
var promiseChunks = [];
for (var index = 0; index < promises.length; index += numConcurrentCalls) {
var chunk = promises.slice(index, index + numConcurrentCalls);
promiseChunks.push(chunk);
}
return promiseChunks.reduce(function(promise, chunk) {
return promise.then(function() {
return RSVP.allSettled(chunk).then(function(settled) {
settled.forEach(function(item) {
if (item.state === "rejected") {
throw item.reason;
}
});
});
});
}, RSVP.Promise.resolve());
return files.reduce(function(promise, sassFile) {
return promise.then(function() {
return RSVP.all(self.compileSassFile(srcPath, sassFile, destDir));
});
}, RSVP.Promise.resolve());
};

@@ -304,0 +285,0 @@

2

package.json
{
"name": "broccoli-eyeglass",
"description": "Sass compiler for Broccoli with Eyeglass Integration",
"version": "2.4.2",
"version": "2.4.3",
"author": "Chris Eppstein <chris@eppsteins.net>",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc