-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> When executing npm cli owner add command, [ref](https://github.com/npm/cli/blob/latest/lib/commands/owner.js#L151), it causes errors due to duplicate additions,when the selfRegistry configuration has the userPrefix option enabled. 1. 🧶 Modify the user query api to prioritize returning users from selfRegistry 2. 🧶 Ensure that the query api uniformly returns displayName --------- > npm cli 执行 owner add 时 [ref](https://github.com/npm/cli/blob/latest/lib/commands/owner.js#L151),依赖查询结果做去重,selfRegistry 配置 userPrefix 时会导致重复添加报错 1. 🧶 修改用户查询接口,优先返回 selfRegistry 内的用户 2. 🧶 查询接口统一返回 displayName
- Loading branch information
Showing
4 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters