16 Commits

Author SHA1 Message Date
Clemens Lieb
a811e14d5a
Rewrite HTTP method for stream requests in GotRequester (#1602)
This prevents encountering HTTP 405 (Method not allowed) for API requests using streaming responses like Job Artifact downloads.
2021-03-12 21:27:24 -05:00
Justin Dalrymple
893dd5cb46
Removing char type possibility (#1467) 2021-01-23 19:58:05 -05:00
Justin Dalrymple
565bd15449
Removed circular references (#1387)
- Updated requester structure
- Removed duplicate pipeline jobs function
2020-12-18 14:23:49 -05:00
Justin Dalrymple
55a2261f4b
RejectUnauthorized being set incorrectly for the NodeJS release (#1252) 2020-10-20 12:38:38 +02:00
Justin Dalrymple
77d89d2026
Fix Agent-Type error due to Got update in GotRequester.ts (#1224) 2020-10-12 13:54:11 +02:00
Justin
1f2812ea35 perform retries on a wider range of error codes 2020-10-11 22:21:23 +02:00
Justin
64137764bc Wrapping error messages to avoid JSON.parse non json responses 2020-10-11 21:44:42 +02:00
Max Wittig
3f78cc36d4 feat: apply exponental backoff for 429 errors
This was implemented similarly to 1606310a88/gitlab/__init__.py (L549)
Gitlab sadly doesn't send out `Retry-After` headers anymore, so we need this workaround

Fixes #960
2020-09-27 23:39:06 +02:00
Justin
a02d815f95 Restructing the requester utils and update the related typings 2020-09-27 16:48:57 +02:00
Justin
f2eec88379 Linting 2020-09-25 17:54:35 +02:00
xieyu
1e754e0416
Response body needs parse firstly when it's type is json (#1057) 2020-08-11 15:52:27 +02:00
Justin Dalrymple
21faf97301
Fixing support for FormData requests (#1056) 2020-08-09 16:01:33 +02:00
Justin Dalrymple
67c94e0c12
Fixing encoding for requests of archive data (#954) 2020-07-12 10:20:00 +02:00
Justin Dalrymple
6426ce1fb1
Removal of esinterlop to prefer namespace imports over default exports (#893) 2020-06-16 13:37:56 +02:00
Justin Dalrymple
b89f5460db
Updating agent property based on new changes in Got (#712) 2020-04-22 21:12:27 +02:00
Justin Dalrymple
d9cd4c9a91 refactor: 💡 Migrated to a monorepo structure
Gitbeaker has been split up into 5 subpackages: gitbeaker-core, gitbeaker-node, gitbeaker-cli, gitbeaker-browser and gitbeaker-requester-utils.

gitbeaker-[node,cli,browser] are enviroment
specific sub packages. For example, if you want to use gitbeaker in a NodeJS environment, use gitbeaker-node. gitbeaker-core is where all the
base logic exists, and gitbeaker-requester-utils is a collection of utility functions for making custom requester libraries.

BREAKING CHANGE: 🧨 This migration requires users to import specific subpackages. For NodeJS
usage, that would be @gitbeaker/node.
2020-02-02 16:53:54 +01:00