Skip to content

Commit

Permalink
docs(npm): explain situations where parsing resolved can fail
Browse files Browse the repository at this point in the history
  • Loading branch information
yeikel committed Apr 18, 2023
1 parent 5ff6316 commit 2917ec0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npm_and_yarn/lib/dependabot/npm_and_yarn/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def inferred_npmrc # rubocop:disable Metrics/PerceivedComplexity
uri = URI.parse(resolved)
rescue URI::InvalidURIError
# Ignoring non-URIs since they're not registries.
# This can happen if resolved is `false`, for instance
# npm6 bug https://github.com/npm/cli/issues/1138
next
end

Expand Down

0 comments on commit 2917ec0

Please sign in to comment.