Skip to content

Commit

Permalink
Breaking: Consistent directory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed Nov 30, 2017
1 parent b12eca9 commit 8dfe08b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/dest/write-contents/write-stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

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

function writeStream(file, onWritten) {
var opt = {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var valueOrFunction = require('value-or-function');
var koalas = require('koalas');

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

var boolean = valueOrFunction.boolean;
Expand Down Expand Up @@ -54,7 +54,7 @@ function src(glob, opt) {

if (read) {
outputStream = outputStream
.pipe(getContents(options));
.pipe(readContents(options));
}

if (options.passthrough === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var readStream = require('./read-stream');
var readBuffer = require('./read-buffer');
var readSymbolicLink = require('./read-symbolic-link');

function getContents(opt) {
function readContents(opt) {

function readFile(file, enc, callback) {
// Don't fail to read a directory
Expand Down Expand Up @@ -37,4 +37,4 @@ function getContents(opt) {
return through2.obj(opt, readFile);
}

module.exports = getContents;
module.exports = readContents;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/src/wrap-with-vinyl-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function wrapWithVinylFile(options) {
// If we reach here, it means there is at least one
// symlink on the path and we need to rewrite the path
// to its original value.
// Updated file stats will tell getContents() to actually read it.
// Updated file stats will tell readContents() to actually read it.
vinylFile.path = globFile.originalSymlinkPath;
}
return callback(null, vinylFile);
Expand Down

0 comments on commit 8dfe08b

Please sign in to comment.