-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(packument): eliminate _cached field #175
Conversation
This seems reasonable. Can we add an assertion to one of the registry.js tests that ensures this got set? |
@wraithgar Thanks for the feedback! However when I went to write the test I realized this won't work, for two reasons:
|
|
Made an issue to track #183 Keep this PR open, we may just decide that removing it is a bugfix since it's a |
@wraithgar Awesome thanks! +1 for removing it is a bugfix. |
@wraithgar This would be a good time to evaluate this change as we are on the verge of a major release of |
@lukekarrys I checked again and we do not use this attribute. |
I'm interested in telling whether the result of
pacote.manifest()
came from the registry or from the cacache. Is that what the existing packument_cached
field indicates?pacote/lib/registry.js
Line 77 in 298df45
If so, does it make sense to add that field to
pacote.manifest()
results, and is this PR the correct way/location to do it?