-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Reported percentage is lower than the last #8
Comments
Why are you giving it smaller values than previously? It's always easier to come up with an elegant solution when I know your use-case instead of just the problem. |
To my best understanding, smaller values should not come, I'm p-mapping over pacote's results... It's definitely not intentional :) |
@sindresorhus I'm hitting this same problem, running in a browser, generally after you tab away and come back. My best guess is that event handlers are all firing at once when you come back to the tab, and that order is not guaranteed. I would vote to remove the Loving |
Are you using the |
I kinda regret the "passing in percentage" interface. It would have been better to accept a |
No. @sindresorhus if you feel uneasy about MR #9 feel free to close this issue and that ninth PR, no hurt feelings. I'm grateful for all your libraries, let's concentrate on features and serious issue tickets instead. Feel free to close this issue. |
No-no, I'm fine with lifting that restriction. You're right it's not important enough to reject the promise. |
Regarding #8 (comment). I posted some thoughts in #1 (comment). |
Recently there were updates somewhere and suddenly one of my CLI's stopped working because
p-progress
threw an error complaining that the reported percentage is lower than the last reported:p-progress/index.js
Lines 78 to 86 in a24163f
I edited
p-progress
right innode_modules
and simply commenting out the throw solves the problem, that caseprogress < this._progress
can be ignored:p-progress/index.js
Line 83 in a24163f
Idea
What if we changed it to do nothing if no bigger progress is reported (no matter it's smaller or equal than previous):
App would just skip unacceptable values until a bigger value is reported. Currently, API seems too strict.
What do you think?
The text was updated successfully, but these errors were encountered: