Details
Description
steps to reproduce:
- download the file http://registry.npmjs.org/crc/-/crc-3.0.0.tgz
- use the Components API - Upload file with npm (https://help.sonatype.com/repomanager3/rest-and-integration-api/components-api#ComponentsAPI-NPM)
The request will fail with a 500 Internal Server Error and the message child 'bugs' not a Map
this error is caused by the fact that in the original package.json file bugs property is a string not an object.
based on http://json.schemastore.org/package the bugs property could be an object or a plain string
uploading (using npm publish) the raw tgz file works but the shasum changes and breaks the package