1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

refactor: secret key is handled in verdaccio side

This commit is contained in:
Juan Picado @jotadeveloper 2018-04-17 19:16:58 +02:00
parent dfb5bd58c0
commit 33a9df0100
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
3 changed files with 4 additions and 2 deletions

@ -16,7 +16,7 @@
},
"dependencies": {
"@verdaccio/file-locking": "0.0.5",
"@verdaccio/local-storage": "0.3.0",
"@verdaccio/local-storage": "0.4.2",
"@verdaccio/streams": "1.0.0",
"JSONStream": "1.3.2",
"async": "2.6.0",
@ -51,7 +51,7 @@
"@commitlint/cli": "6.1.3",
"@commitlint/config-conventional": "6.1.3",
"@commitlint/travis-cli": "6.1.3",
"@verdaccio/types": "2.0.4",
"@verdaccio/types": "2.0.5",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.2",

@ -50,6 +50,8 @@ class LocalStorage implements IStorage {
this.logger = logger.child({sub: 'fs'});
this.config = config;
this.localData = this._loadStorage(config, logger);
config.secret = config.checkSecretKey(this.localData.getSecret());
this.localData.setSecret(this.config.secret);
}
_loadStorage(config: Config, logger: Logger) {

BIN
yarn.lock

Binary file not shown.