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

update to sinopia-htpasswd@0.4.3

fix possible fd leak, close #116
This commit is contained in:
Alex Kocharin 2014-09-18 03:16:58 +04:00
parent 765d3b47a7
commit 4b46bff72f
4 changed files with 11 additions and 7 deletions

@ -1,7 +1,8 @@
18 Sep 2014, version 0.11.2
18 Sep 2014, version 0.11.3
- fix 500 error in adduser in sinopia-htpasswd (issue [#121](https://github.com/rlidwka/sinopia/issues/121))
- fix 500 error in adduser function in sinopia-htpasswd (issue [#121](https://github.com/rlidwka/sinopia/issues/121))
- fix fd leak in authenticate function in sinopia-htpasswd (issue [#116](https://github.com/rlidwka/sinopia/issues/116))
15 Sep 2014, version 0.11.1

@ -115,7 +115,10 @@ HTPasswd.prototype._reload = function(callback) {
if (err) return callback(err)
if (bytesRead != st.size) return callback(new Error('st.size != bytesRead'))
self._users = utils.parse_htpasswd(buffer.toString('utf8'))
callback()
fs.close(fd, function() {
callback()
})
})
})
})

@ -1,6 +1,6 @@
{
"name" : "sinopia-htpasswd",
"version" : "0.4.2",
"version" : "0.4.3",
"description" : "auth plugin for sinopia supporting htpasswd format",
"author" : { "name": "Alex Kocharin"
@ -32,7 +32,7 @@
"crypt3": ">=0.1.5 <1.0.0-0",
"fs-ext": "*"
},
"_id" : "sinopia-htpasswd@0.4.2",
"_shasum" : "22305fec9de2f0a672158c45fc5a02165ef49849",
"_id" : "sinopia-htpasswd@0.4.3",
"_shasum" : "f69cbfe9bd347359a0ed591f66f08a60cc4ee982",
"_from" : "sinopia-htpasswd@>= 0.4.2"
}

@ -43,7 +43,7 @@ dependencies:
onscroll: '>=0.0.3 <1.0.0-0'
transition-complete: '>=0.0.2 <1.0.0-0'
helpers.less: 'git://github.com/bpeacock/helpers.less.git'
sinopia-htpasswd: '>= 0.4.2'
sinopia-htpasswd: '>= 0.4.3'
http-errors: '~1.2.0' # ferver
# TODO: not really needed