0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

#103 Rename variables, organize methods, privates goes to the bottom

This commit is contained in:
Juan Picado @jotadeveloper 2017-05-25 13:04:09 +02:00
parent db3233075c
commit 4cb0424d23
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 3 additions and 4 deletions

View file

@ -40,11 +40,9 @@ class Storage {
/**
* Constructor
* @param {Object} config config list of properties
* @param {LocalData} localList reference
*/
constructor(config, localList) {
constructor(config) {
this.config = config;
this.localList = localList;
// local data handler is linked with the configuration handler
this.localList = new LocalData(Path.join(Path.resolve(Path.dirname(config.self_path || ''), config.storage),
// FUTURE: the database might be parameterizable from config.yaml

View file

@ -7,9 +7,9 @@ const Error = require('http-errors');
const semver = require('semver');
const Crypto = require('crypto');
const Stream = require('stream');
const LocalStorage = require('./local-storage');
const Search = require('./search');
const LocalStorage = require('./local-storage');
const Logger = require('./logger');
const MyStreams = require('./streams');
const Proxy = require('./up-storage');
@ -561,6 +561,7 @@ class Storage {
if (Object.prototype.hasOwnProperty.call(up_res.versions, i)) {
// this won't be serialized to json,
// kinda like an ES6 Symbol
// FIXME: perhaps Symbol('_verdaccio_uplink') here?
Object.defineProperty(up_res.versions[i], '_verdaccio_uplink', {
value: up.upname,
enumerable: false,