npm/npm — pull request #6704 by KenanY (2014-11-13 21:53:48+00:00)
Title: Print a success message on `npm owner {add,rm}`

Originally, I had a `console.log` in both `add()` and `rm()`, but I noticed that after the message was printed there was a pause while `npm` actually hit CouchDB to update the maintainer list. So, technically, there's no success until after the record is updated, so I decided to have the message be logged after the registry is hit (somewhere in `mutate_()`). Biggest issue then was figuring out if we were adding or removing an owner, so now the count of maintainers before and after the record mutation is compared to figure out if an owner was added or removed.

Open to review :)

Closes #6169