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:
parent
db3233075c
commit
4cb0424d23
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue