Skip to content

Commit

Permalink
Breaking: Consistent modules names (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed Nov 30, 2017
1 parent 5aa245b commit 7fd3190
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/dest/write-contents/write-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var fs = require('graceful-fs');

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

function writeStream(writePath, file, written) {
var opt = {
Expand All @@ -24,7 +24,7 @@ function writeStream(writePath, file, written) {
file.contents.pipe(outStream, { end: false });

function readStreamEnd() {
streamFile(file, complete);
readStream(file, complete);
}

function end(propagatedErr) {
Expand Down
8 changes: 4 additions & 4 deletions lib/src/get-contents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

var through2 = require('through2');
var readDir = require('./read-dir');
var readStream = require('./read-stream');
var readBuffer = require('./read-buffer');
var readSymbolicLink = require('./read-symbolic-link');
var bufferFile = require('./buffer-file');
var streamFile = require('./stream-file');

function getContents(opt) {
return through2.obj(opt, function(file, enc, cb) {
Expand All @@ -20,11 +20,11 @@ function getContents(opt) {

// Read and pass full contents
if (opt.buffer !== false) {
return bufferFile(file, opt, cb);
return readBuffer(file, opt, cb);
}

// Don't buffer anything - just pass streams
return streamFile(file, opt, cb);
return readStream(file, opt, cb);
});
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 7fd3190

Please sign in to comment.