Comparing version 2.2.0 to 2.2.1
@@ -108,9 +108,16 @@ 'use strict'; | ||
var files = existingShas.map(sha => | ||
var outFiles = existingShas.map(sha => | ||
sha && fsp.readFile(getMainFile(sha), 'utf8').then(contents => contents, noop) | ||
); | ||
return when.all(files).then(filesContents => | ||
var inFiles = existingShas.map(sha => | ||
sha && fsp.readFile(getInputFile(sha), 'utf8').then(contents => contents, noop) | ||
); | ||
return when.all([when.all(inFiles), when.all(outFiles)]) | ||
.then(fileContents => | ||
matchingCompilerShas.filter( | ||
(sha, i) => filesContents[i] && (sha.outputSha === createHash(filesContents[i])) | ||
(sha, i) => fileContents[0][i] && (sha.inputSha === createHash(fileContents[0][i])) | ||
).filter( | ||
(sha, i) => fileContents[1][i] && (sha.outputSha === createHash(fileContents[1][i])) | ||
) | ||
@@ -117,0 +124,0 @@ ); |
{ | ||
"name": "baconize", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Compile static site for production (with sourcemaps), auto-compiles files like `app.coffee -> app.js`", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
71199
1399