georgy / nexus-npm-repository-plugin

Sonatype Nexus OSS plugin for npm (https://www.npmjs.org) repository suport
25 stars 7 forks source link

NX-685: Improve "incomplete" document detection #19

Closed cstamas closed 10 years ago

cstamas commented 10 years ago

Instead of special handling of tags "latest", "stable", etc just accept the fact that versions map might be Map of String-String and in that case create incomplete documents for all entries.

Same for shrinking: instead of expecting the existence of dist-tags and one single tag (which is not even required to exist, or, users might define any other "own" special tags) just shrink the complete versions map making it versionString-tagString map (or version where tag for given version does not exists).

This fixes the NX-685, as it was caused by the problem that document was not detected as incomplete, hence, on package root fetch the document was not refetched from registry (as incomplete documents should be) to get the non-incomplete version.

Issue https://issues.sonatype.org/browse/NX-685

cstamas commented 10 years ago

Changed PR description to better explain what the change is about. Also, the PR is "ready for merge", the WIP marker is removed.