You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gulp-process-file-log

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-process-file-log - npm Package Compare versions

Comparing version

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",