sonatype/nexus-npm-repository-plugin — pull request #2 by scarlucci (2014-08-18 20:10:50+00:00)
Title: [NX-633] Preserve case on npm package requests

https://issues.sonatype.org/browse/NX-633

I'm not sure if this is the best way to fix this, so this PR is more to start a discussion on how we want to deal with this. Here is a summary of the problem:

The package metadata that we pull from the registry root is case-sensitive (e.g. StringScanner). However, when a package request comes in, we convert it to lowercase before looking up the metadata. So this fails for packages that contain any capital letters (e.g. StringScanner).

We either need to convert everything to lower case before storing the metadata, or stop converting package requests to lowercase, which is the simple change that I opted for to test this out.