fix(last-release): normalized registry url
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ npmconf.load({}, (err, conf) => {
|
||||
token: env.NPM_TOKEN
|
||||
},
|
||||
loglevel: log.level,
|
||||
registry
|
||||
registry: registry + (registry[registry.length - 1] !== '/' ? '/' : '')
|
||||
},
|
||||
plugins,
|
||||
(err, release) => {
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = function (pkg, npmConfig, cb) {
|
||||
npmlog.level = npmConfig.loglevel || 'error'
|
||||
const client = new RegClient({log: npmlog})
|
||||
|
||||
client.get(`${npmConfig.registry}/${pkg.name}`, {
|
||||
client.get(`${npmConfig.registry}${pkg.name}`, {
|
||||
auth: npmConfig.auth
|
||||
}, (err, data) => {
|
||||
if (err && err.statusCode === 404) return cb(null, {})
|
||||
|
||||
Reference in New Issue
Block a user