-
Notifications
You must be signed in to change notification settings - Fork 48
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
before
doesn't work without fullMetadata
#30
Comments
Ahh!! Ok, we looked at this and initially thought it was already fixed, but it turns out even though we're setting |
Amazingly fast turnaround, thanks! |
It helps that you posted a bug on a module that we're currently in the midst of editing for other reasons 😆 |
Makes sense. I’ll make sure to only find bugs in actively developed projects from now on. :p |
The undocumented
fullMetadata
option is required to fetch times, and without this thebefore
flag appears to not work.Repro:
fullMetadata: undefined
node -e "require('pacote').manifest('safe-write-stream@^1.0.4', { before: new Date('2017-01-01') }).then(r => console.log(r.version));"
Result: 1.0.5 ❌
fullMetadata: false
node -e "require('pacote').manifest('safe-write-stream@^1.0.4', { fullMetadata: true, before: new Date('2017-01-01') }).then(r => console.log(r.version));"
Result: 1.0.4 ✔
The text was updated successfully, but these errors were encountered: