0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

Fix uppercase lint warning, streams use lowercase function name

This commit is contained in:
Juan Picado 2017-05-09 10:11:09 +02:00
parent 445df5b30e
commit 92df8bd178
No known key found for this signature in database
GPG key ID: 18AC54485952D158
6 changed files with 9 additions and 9 deletions

View file

@ -59,7 +59,7 @@ function write(dest, data, cb) {
}
function write_stream(name) {
let stream = MyStreams.UploadTarballStream();
let stream = MyStreams.uploadTarballStream();
let _ended = 0;
stream.on('end', function() {
@ -128,7 +128,7 @@ function read_stream(name, stream, callback) {
});
});
stream = MyStreams.ReadTarballStream();
stream = MyStreams.readTarballStream();
stream.abort = function() {
rstream.close();
};

View file

@ -391,7 +391,7 @@ class Storage {
add_tarball(name, filename) {
assert(Utils.validate_name(filename));
let stream = MyStreams.UploadTarballStream();
let stream = MyStreams.uploadTarballStream();
let _transform = stream._transform;
let length = 0;
let shasum = Crypto.createHash('sha1');
@ -482,7 +482,7 @@ class Storage {
assert(Utils.validate_name(filename));
let self = this;
let stream = MyStreams.ReadTarballStream();
let stream = MyStreams.readTarballStream();
stream.abort = function() {
if (rstream) rstream.abort();
};

View file

@ -217,7 +217,7 @@ class Storage {
* @return {Stream}
*/
get_tarball(name, filename) {
let stream = MyStreams.ReadTarballStream();
let stream = MyStreams.readTarballStream();
stream.abort = function() {};
let self = this;

View file

@ -63,5 +63,5 @@ function add_abstract_method(self, name) {
});
}
module.exports.ReadTarballStream = ReadTarball;
module.exports.UploadTarballStream = UploadTarball;
module.exports.readTarballStream = ReadTarball;
module.exports.uploadTarballStream = UploadTarball;

View file

@ -356,7 +356,7 @@ class Storage {
* @return {Stream}
*/
get_url(url) {
const stream = MyStreams.ReadTarballStream();
const stream = MyStreams.readTarballStream();
stream.abort = function() {};
let current_length = 0;
let expected_length;

View file

@ -1,6 +1,6 @@
'use strict';
let ReadTarball = require('../../lib/streams').ReadTarballStream;
let ReadTarball = require('../../lib/streams').readTarballStream;
describe('mystreams', function() {
it('should delay events', function(cb) {