Commit cba3341
fix: npm profile refactor
- Fixes using `--otp` config option in `npm profile enable-2fa`
- Prevents trying to enable 2fa if no user is logged in
- Setting email should not require password
- Add `test/lib/profile.js` tests
- Async/await `lib/profile.js` refactor and more
- Fixes: npm/statusboard#164
PR-URL: #2373
Credit: @ruyadorno
Close: #2373
Reviewed-by: @isaacs1 parent 44d4331 commit cba3341
3 files changed
Lines changed: 1836 additions & 235 deletions
0 commit comments