-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Npm: Fix quering of package details from private / scoped registries
Bump the NPM version requirement from 5.7.* to 6.* in order to be able to use the `npm view` command to query details about a package from remote registries. This lifts two severe restrictions: - The original code was only able to query package details from the public NPM registry [1]. Private registries were not supported at all. - Custom registries defined for different NPM scopes were not supported. As a bonus, `npm view` seems to return more details than querying the registry API directly even for the public NPM registry. The downside is that performance is worse now, using `npm view` seems to be roughly 4 times slower (on Linux); the command unfortunately does not support batching. However, correctness should be more important than performance here, and a future improvement could parallelize the `parsePackage()` calls in general. [1]: https://registry.npmjs.org Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
- Loading branch information
1 parent
73f9ca7
commit b38a882
Showing
6 changed files
with
22 additions
and
70 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
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