Skip to content

Commit 8cfb322

Browse files
committed
Fix: Upgrade glob-stream to remove path.normalize workaround
1 parent 0878094 commit 8cfb322

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

lib/src/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
var path = require('path');
43
var assign = require('object-assign');
54
var through2 = require('through2');
65
var gs = require('glob-stream');
@@ -14,21 +13,6 @@ var isValidGlob = require('is-valid-glob');
1413
var getContents = require('./getContents');
1514
var resolveSymlinks = require('./resolveSymlinks');
1615

17-
function normalizePath(options) {
18-
19-
function normalize(globFile, enc, cb) {
20-
// TODO: probably move this somewhere
21-
// Ref https://github.com/gulpjs/vinyl/issues/80
22-
var normalizedFile = assign({}, globFile, {
23-
path: path.normalize(globFile.path),
24-
});
25-
26-
cb(null, normalizedFile);
27-
}
28-
29-
return through2.obj(options, normalize);
30-
}
31-
3216
function createFile(globFile, enc, cb) {
3317
cb(null, new File(globFile));
3418
}
@@ -56,7 +40,6 @@ function src(glob, opt) {
5640
var globStream = gs.create(glob, options);
5741

5842
var outputStream = globStream
59-
.pipe(normalizePath(options))
6043
.pipe(resolveSymlinks(options))
6144
.pipe(through2.obj(options, createFile));
6245

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"dependencies": {
1414
"duplexify": "^3.2.0",
15-
"glob-stream": "^5.2.0",
15+
"glob-stream": "^5.3.2",
1616
"graceful-fs": "^4.0.0",
1717
"gulp-sourcemaps": "^1.5.2",
1818
"is-valid-glob": "^0.3.0",

0 commit comments

Comments
 (0)