Skip to content

Commit

Permalink
Rewrite vinyl.read as Promise in order to update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rianby64 authored and UltCombo committed Sep 27, 2016
1 parent 06793d7 commit 990038e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ function watch(globs, opts, cb) {

// Workaround for early read
setTimeout(function () {
vinyl.read(filepath, fileOpts, write.bind(null, event));
vinyl.read(filepath, fileOpts).then(function (file) {
write(event, null, file);
});
}, opts.readDelay);
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
"dependencies": {
"anymatch": "^1.3.0",
"chokidar": "^1.5.2",
"glob-parent": "^2.0.0",
"glob-parent": "^3.0.0",
"gulp-util": "^3.0.6",
"object-assign": "^4.1.0",
"path-is-absolute": "^1.0.0",
"readable-stream": "^2.0.1",
"vinyl": "^0.5.0",
"vinyl-file": "^1.2.1"
"vinyl": "^1.2.0",
"vinyl-file": "^2.0.0"
},
"engine": "node >= 0.10"
}

0 comments on commit 990038e

Please sign in to comment.