-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Rewrite [npm] typedefs badge using new-style service #1735
Rewrite [npm] typedefs badge using new-style service #1735
Conversation
# Conflicts: # services/base.js
# Conflicts: # lib/error-helper.js # package.json # server.js # services/appveyor/appveyor.js # services/base.js # services/errors.js
Generated by 🚫 dangerJS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing to make this more DRY
services/npm/npm.js
Outdated
const json = await this._sendAndCacheRequest(apiUrl, { | ||
headers: { 'Accept': '*/*' }, | ||
}).then(checkErrorResponse.asPromise({ notFoundMessage: 'package not found' })) | ||
.then(asJson); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I've merged #1702 you should be able to rebase this on to master and modify this to extend BaseJsonService
and replace this block with _requestJson()
. Apart from that, looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh cool, will do!
Thanks for reviewing. |
For #1358! Reviving some work from a few months back…