Comparing version 0.2.0 to 0.2.1
10
index.js
@@ -7,9 +7,3 @@ 'use strict'; | ||
return utils.through.obj(function(file, enc, cb) { | ||
lstat(file, function(err, res) { | ||
if (err) { | ||
cb(err); | ||
return; | ||
} | ||
cb(null, res); | ||
}); | ||
lstat(file, cb); | ||
}); | ||
@@ -69,2 +63,3 @@ }; | ||
} | ||
file.lstat = stat; | ||
file.stat = stat; | ||
@@ -140,3 +135,4 @@ cb(null, file); | ||
module.exports.stat = stat; | ||
module.exports.lstat = lstat; | ||
module.exports.lstatSync = lstatSync; | ||
module.exports.statSync = statSync; |
{ | ||
"name": "file-stat", | ||
"description": "Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/jonschlinkert/file-stat", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
5689
140