fix(last-release): encode scoped packages

This commit is contained in:
Stephan Bönnemann 2015-07-30 17:10:06 +01:00
parent 776ffd1256
commit 76d9e3d2be

View File

@ -7,7 +7,7 @@ module.exports = function ({pkg, npm}, cb) {
npmlog.level = npm.loglevel || 'error' npmlog.level = npm.loglevel || 'error'
const client = new RegClient({log: npmlog}) const client = new RegClient({log: npmlog})
client.get(`${npm.registry}${pkg.name}`, { client.get(`${npm.registry}${pkg.name.replace('/', '%2F')}`, {
auth: npm.auth auth: npm.auth
}, (err, data) => { }, (err, data) => {
if (err && err.statusCode === 404) return cb(null, {}) if (err && err.statusCode === 404) return cb(null, {})