Skip to content

Commit

Permalink
Breaking: Remove flag property leakage on Vinyl objects
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Nov 30, 2017
1 parent 19004c7 commit de1eced
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/dest/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function prepareWrite(folderResolver, optResolver) {

function normalize(file, enc, cb) {
var mode = optResolver.resolve('mode', file);
var flag = optResolver.resolve('flag', file);
var cwd = path.resolve(optResolver.resolve('cwd', file));

var outFolderPath = folderResolver.resolve('outFolder', file);
Expand All @@ -25,7 +24,6 @@ function prepareWrite(folderResolver, optResolver) {
// Wire up new properties
file.stat = (file.stat || new fs.Stats());
file.stat.mode = mode;
file.flag = flag;
file.cwd = cwd;
file.base = basePath;
file.path = writePath;
Expand Down
2 changes: 0 additions & 2 deletions lib/symlink/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function prepareSymlink(folderResolver, optResolver) {

function normalize(file, enc, cb) {
var mode = optResolver.resolve('mode', file);
var flag = optResolver.resolve('flag', file);
var cwd = path.resolve(optResolver.resolve('cwd', file));

var outFolderPath = folderResolver.resolve('outFolder', file);
Expand All @@ -27,7 +26,6 @@ function prepareSymlink(folderResolver, optResolver) {
// Wire up new properties
file.stat = (file.stat || new fs.Stats());
file.stat.mode = mode;
file.flag = flag;
file.cwd = cwd;
file.base = basePath;
file.path = writePath;
Expand Down

0 comments on commit de1eced

Please sign in to comment.