Skip to content

fix(version): fetch latest version from public npm registry API#573

Open
brianrobt wants to merge 3 commits into
di-sukharev:masterfrom
brianrobt:fix/private-npm-registry-error
Open

fix(version): fetch latest version from public npm registry API#573
brianrobt wants to merge 3 commits into
di-sukharev:masterfrom
brianrobt:fix/private-npm-registry-error

Conversation

@brianrobt

Copy link
Copy Markdown
Contributor

Avoids the startup error when the default npm registry is private (e.g. CodeArtifact) by querying registry.npmjs.org directly instead of shelling out to npm view. Failures are now silent.

Closes #571

Avoids the startup error when the default npm registry is private
(e.g. CodeArtifact) by querying registry.npmjs.org directly instead
of shelling out to `npm view`. Failures are now silent.

Closes di-sukharev#571
Condensed the multi-line `fetch` call into a single line to improve
code readability and reduce unnecessary line breaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Error while getting the latest version of opencommit" when default npm registry is not registry.npmjs.org

1 participant