-
-
Notifications
You must be signed in to change notification settings - Fork 300
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: obey rate limits for all request types correctly #170
Conversation
@@ -1,4 +1,7 @@ | |||
import { RequestHelper } from '../../../src/infrastructure'; | |||
import Gitlab from '../../..'; |
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.
Should be '../../../src'
Please fix the import statement: https://travis-ci.org/jdalrymple/node-gitlab/jobs/419127291#L3209-L3210
I sadly had to drop the tests, as jest runs out of order and in parallel. |
src/infrastructure/RequestHelper.js
Outdated
}); | ||
try { | ||
if (type === 'get') { |
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.
wouldnt a switch statement here be better?
@jdalrymple Any blockers? I think the pipeline failure is a random occurrance. Right? |
Looks like a few of the properties changed in the application settings test. Just need to add the missing props |
🎉 This PR is included in version 3.11.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@jdalrymple Sorry I haven't found the time to adjust the tests. |
* chore: Introduce typescript * chore: Remove lodash.pick, use native js instead * chore: Add tslint and extend Airbnb ruleset * chore: Remove Babel Dependency, replace build steps with tsc * chore: change target for modern env from es2017 to es6 (async/await should be transpiled to downlevel js) * chore(package): Updating packages * fix: Fix error while throwing an error in RequestHelper (#156) * feat: Support rejectUnauthorized parameter (#164) * feat: Adding project archive abilities * fix(test): Application settings API updated (#177) * fix: Removing token requirement (#176) * chore: Removing npmignore and using files instead. * fix: obey rate limits for all request types correctly (#170) * fix: Camel casing broke the body params
Waiting for #169 to be merged