From 674057b1af52db031a6dfaf77ae6d40b6c3ba67c Mon Sep 17 00:00:00 2001 From: Juan Carlos Picado Date: Wed, 7 Dec 2016 23:18:16 +0100 Subject: [PATCH 1/2] replace project names --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 3e3566b01..8cdade1ac 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -3,7 +3,7 @@ /*eslint no-sync:0*/ if (process.getuid && process.getuid() === 0) { - global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.") + global.console.error("Verdaccio doesn't need superuser privileges. Don't run it under root.") } process.title = 'verdaccio' From 6c6646873ce50de2f98b172ad59291c18a64e970 Mon Sep 17 00:00:00 2001 From: Juan Carlos Picado Date: Sun, 22 Jan 2017 22:23:30 +0100 Subject: [PATCH 2/2] Rename cleanup --- lib/plugins/htpasswd/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/htpasswd/index.js b/lib/plugins/htpasswd/index.js index ecde78c50..ce092f497 100644 --- a/lib/plugins/htpasswd/index.js +++ b/lib/plugins/htpasswd/index.js @@ -15,19 +15,19 @@ function HTPasswd(config, stuff) { self._logger = stuff.logger // sinopia main config object - self._sinopia_config = stuff.config + self._verdaccio_config = stuff.config // all this "sinopia_config" stuff is for b/w compatibility only self._maxusers = self._config.max_users - if (!self._maxusers) self._maxusers = self._sinopia_config.max_users + if (!self._maxusers) self._maxusers = self._verdaccio_config.max_users // set maxusers to Infinity if not specified if (!self._maxusers) self._maxusers = Infinity self._last_time = null var file = self._config.file - if (!file) file = self._sinopia_config.users_file + if (!file) file = self._verdaccio_config.users_file if (!file) throw new Error('should specify "file" in config') - self._path = Path.resolve(Path.dirname(self._sinopia_config.self_path), file) + self._path = Path.resolve(Path.dirname(self._verdaccio_config.self_path), file) return self }