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:
parent
445df5b30e
commit
92df8bd178
6 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue