gulp-process-file-log
Advanced tools
Comparing version 1.1.3 to 1.1.4
41
index.js
@@ -13,27 +13,30 @@ var through = require('through2'); | ||
return through.obj( | ||
function (file, enc, cb) { | ||
if (!file.path) { | ||
cb(); | ||
function (file, enc, cb) { | ||
if (!file.path) { | ||
cb(); | ||
return; | ||
} | ||
return; | ||
} | ||
var asset = basenamePrefix + file.basename; | ||
var asset = basenamePrefix + file.basename; | ||
if (manifest.indexOf(asset) === -1) { | ||
manifest.push(asset); | ||
} | ||
if (manifest.indexOf(asset) === -1) { | ||
manifest.push(asset); | ||
cb(null, file); | ||
cb(null, file); | ||
}, | ||
function (cb) { | ||
if (!fileExists(path.dirname(logFile))) { | ||
mkpath.sync(path.dirname(logFile)); | ||
} | ||
return; | ||
} | ||
jsonfile.writeFile(logFile, manifest, {spaces: 2}, function (err) { | ||
cb(err); | ||
}); | ||
} | ||
cb(); | ||
}, | ||
function (cb) { | ||
if (!fileExists(path.dirname(logFile))) { | ||
mkpath.sync(path.dirname(logFile)); | ||
} | ||
jsonfile.writeFileSync(logFile, manifest, {spaces: 2}, function (err) { | ||
cb(err); | ||
}); | ||
} | ||
); | ||
}; |
{ | ||
"name": "gulp-process-file-log", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "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
33
33578