"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/adduser.js" between
npm-cli-7.16.0.tar.gz and npm-cli-7.17.0.tar.gz

About: npm is a JavaScript package manager (requires node v6 or higher).

adduser.js  (npm-cli-7.16.0):adduser.js  (npm-cli-7.17.0)
skipping to change at line 78 skipping to change at line 78
const type = authTypes[authType] const type = authTypes[authType]
if (!type) if (!type)
throw new Error('no such auth module') throw new Error('no such auth module')
return type return type
} }
async updateConfig ({ newCreds, registry, scope }) { async updateConfig ({ newCreds, registry, scope }) {
this.npm.config.delete('_token', 'user') // prevent legacy pollution this.npm.config.delete('_token', 'user') // prevent legacy pollution
this.npm.config.setCredentialsByURI(registry, newCreds)
if (scope) if (scope)
this.npm.config.set(scope + ':registry', registry, 'user') this.npm.config.set(scope + ':registry', registry, 'user')
this.npm.config.setCredentialsByURI(registry, newCreds)
await this.npm.config.save('user') await this.npm.config.save('user')
} }
} }
module.exports = AddUser module.exports = AddUser
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)