uber-archive/npm-shrinkwrap

from field should be `{name}@link`

Opened this issue · 6 comments

from field should be `{name}@link`

Can you clarify this a little? The README says that from fields should be trimmed.

Currently, I sometimes get a shrinkwrap without from fields and sometimes get them with from fields in the {name}@link format. /:

they should be trimmed if pointing to an npm registry and should be in the {name}@link format if pointing to a git repository.

Hm…I'm using a private registry and seeing it (sometimes).

@matthewwithanm you shouldn't if you use npm-shrinkwrap, if so it's a bug in the from field trimming logic.

Should I open a new issue for that?

Yes or leave a comment about reproduction.