pacote
pacote copied to clipboard
fix: do not switch to git+ssh for https repository links
When the URL explicitly contains https, do not try to switch to ssh. This change is necessary for npm to retain the protocol, please see the link and the referenced issues here and here reporting problems when using ssh instead of requested https.
References
Relates to https://github.com/npm/cli/pull/8703
Rebased to latest main