from field should be `{name}@link`
Opened this issue · 6 comments
Raynos commented
from field should be `{name}@link`
matthewwithanm commented
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. /:
Raynos commented
they should be trimmed if pointing to an npm registry and should be in the {name}@link
format if pointing to a git repository.
matthewwithanm commented
Hm…I'm using a private registry and seeing it (sometimes).
Raynos commented
@matthewwithanm you shouldn't if you use npm-shrinkwrap
, if so it's a bug in the from field trimming logic.
matthewwithanm commented
Should I open a new issue for that?
Raynos commented
Yes or leave a comment about reproduction.