Skip to content

Commit 8dfe08b

Browse files
erikkempermanphated
authored andcommitted
Breaking: Consistent directory layout
1 parent b12eca9 commit 8dfe08b

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

lib/dest/write-contents/write-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
var fo = require('../../file-operations');
4-
var readStream = require('../../src/get-contents/read-stream');
4+
var readStream = require('../../src/read-contents/read-stream');
55

66
function writeStream(file, onWritten) {
77
var opt = {

lib/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var valueOrFunction = require('value-or-function');
1111
var koalas = require('koalas');
1212

1313
var filterSince = require('../filter-since');
14-
var getContents = require('./get-contents');
14+
var readContents = require('./read-contents');
1515
var wrapWithVinylFile = require('./wrap-with-vinyl-file');
1616

1717
var boolean = valueOrFunction.boolean;
@@ -54,7 +54,7 @@ function src(glob, opt) {
5454

5555
if (read) {
5656
outputStream = outputStream
57-
.pipe(getContents(options));
57+
.pipe(readContents(options));
5858
}
5959

6060
if (options.passthrough === true) {

lib/src/get-contents/index.js renamed to lib/src/read-contents/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var readStream = require('./read-stream');
66
var readBuffer = require('./read-buffer');
77
var readSymbolicLink = require('./read-symbolic-link');
88

9-
function getContents(opt) {
9+
function readContents(opt) {
1010

1111
function readFile(file, enc, callback) {
1212
// Don't fail to read a directory
@@ -37,4 +37,4 @@ function getContents(opt) {
3737
return through2.obj(opt, readFile);
3838
}
3939

40-
module.exports = getContents;
40+
module.exports = readContents;
File renamed without changes.

lib/src/wrap-with-vinyl-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function wrapWithVinylFile(options) {
2323
// If we reach here, it means there is at least one
2424
// symlink on the path and we need to rewrite the path
2525
// to its original value.
26-
// Updated file stats will tell getContents() to actually read it.
26+
// Updated file stats will tell readContents() to actually read it.
2727
vinylFile.path = globFile.originalSymlinkPath;
2828
}
2929
return callback(null, vinylFile);

0 commit comments

Comments
 (0)