67 Commits

Author SHA1 Message Date
jdalrymple
4b1589ad3b
fixes: #188: stream option is lost in any get request that is streamable (#192) 2018-09-18 14:38:07 -04:00
Justin
ce0c1fe317 perf: Conversion to Typescript (#183)
chore(package): Updating typescript  3.0.1  →  3.0.3
chore(package): Updating @semantic-release/git   ^7.0.1  →    ^7.0.3
chore(package): Updating @semantic-release/npm   ^5.0.2  →    ^5.0.4
chore(package): Updating semantic-release       ^15.9.8  →  ^15.9.12
chore(package): Updating codecov                 ^3.0.4  →    ^3.1.0
chore(package): Updating ts-jest                ^23.1.3  →   ^23.1.4
chore(package): Updating tslint-config-airbnb    ^5.9.2  →   ^5.11.0
2018-09-05 12:17:11 -04:00
jdalrymple
6d5a4b92b0
Typescript Support (#183)
* 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
2018-09-05 11:22:28 -04:00
Justin
e50f588fe8 fix: Camelcasing broke the body params 2018-08-31 08:02:03 -04:00
Max Wittig
4bc7c69d87 fix: obey rate limits for all request types correctly (#170)
Fixes #165
2018-08-27 21:33:57 -04:00
jdalrymple
e33c08ac2e
Remove token requirement (#176)
* fix: Removing token requirement #173

* chore: Updating npmignore to decrease package size
2018-08-27 21:26:43 -04:00
Joseph Petersen
01a2ce2801 feat: Expose reject unauthorized in request helper (#160)
Allows to be set service wide or on individual request
fixes #142
2018-08-15 16:46:43 -04:00
Joseph Petersen
ab14ed775c fix: Linting Master (#157) 2018-08-15 08:19:18 -04:00
Justin
177d7fdf9c fix: Fix error while throwing an error in RequestHelper (#156) 2018-08-15 06:49:46 -04:00
Justin
bc3b366ac6 fix: Handling errors before retrying request (#142) [skip-ci] 2018-08-15 05:57:01 -04:00
Pavel Birukov
b412222fc5 chore: Fixed wrong wait import (#149)
* Fix incorrectly imported 'wait'
* Updated README to mention that we assume Promise polyfilled
2018-08-14 13:49:31 -04:00
Justin
a2732b9eda feat: Making API version modifyable 2018-07-23 19:43:53 -04:00
Max Wittig
9b46250619 feat: obey the rate limit
Wait as long as specified in the retry-after header, send out by GitLab

Fixes #73
2018-07-04 09:55:06 +02:00
Justin
0d14dff49b chore: Fix linting 2018-07-02 11:49:49 -04:00
Justin
216128dc47 fix: #113, and Updating changelog and contributers list 2018-07-02 11:45:29 -04:00
Justin Dalrymple
eeec3716ad Fixing some test linting warnings, and duplicate data declaration 2018-06-06 12:53:03 -04:00
Giuseppe Angri
764fdef928 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/infrastructure/RequestHelper.js
2018-06-06 11:29:34 +02:00
Justin
da8c8313ea Linting 2018-06-05 22:25:10 -04:00
Justin
fd79421e5a Remove some white space 2018-06-05 22:19:52 -04:00
Justin
20ce703a2e Updating tests 2018-06-05 21:49:34 -04:00
Justin
d4518e237c Adding tests and updating pagination properties 2018-06-05 21:15:46 -04:00
Justin
a7163eced0 Fixing inversion 2018-06-05 18:00:59 -04:00
Giuseppe Angri
ea36fe4c1f Fix Issue #100: Show functions not working 2018-06-05 12:00:10 +02:00
Justin
3ffcbd66ff Added new option to readme, and clarified the option name 2018-06-01 20:41:18 -04:00
Justin
8f1ee03cf0 Missing bracket 2018-06-01 20:29:29 -04:00
Justin
eebff7a23b Adding pagination 2018-06-01 20:27:28 -04:00
Justin
6d8e4a6426 Merge branch 'gitlabci' 2018-05-23 18:07:55 -04:00
Justin
f97a80a948 Linting fixes 2018-05-23 17:30:55 -04:00
Justin
7fc5f1238e Linting 2018-05-22 23:06:26 -04:00
jdalrymple
c9504fb1d2
Merge pull request #92 from Defenderbass/bugfix/misspelling
misspelling
2018-05-22 15:49:01 -04:00
Igor Katsuba
85dbc7e2fb misspelling 2018-05-22 22:44:17 +03:00
Pavel Birukov
7275b11dde Remove non-standard Babel's plugins 2018-05-18 18:55:58 +03:00
Justin
c3e2307f14 Fixing null pointer problem 2018-05-14 14:41:40 -04:00
Justin
9a33511a92 Adding more tests 2018-05-09 21:38:53 -04:00
Justin
1ff645bd23 Testing updates 2018-05-09 21:38:53 -04:00
Justin
9e13c33228 Adding linting check 2018-05-09 21:29:51 -04:00
Justin
55c34f27ad Fixing #82 2018-05-09 20:36:57 -04:00
Isaac Ouellet Therrien
2c8c1a61d3 switch RequestHelper.get with getPaginated recursive call 2018-05-04 08:58:37 -04:00
Isaac Ouellet Therrien
89ccdb19ec Merge remote-tracking branch 'jdalrymple/jobs-pipeline-endpoints' into feature/jobs-pipeline-endpoints 2018-05-04 08:50:26 -04:00
Justin
9ac54751e2 Changes to decrease complexity 2018-05-03 13:25:48 -04:00
Isaac Ouellet Therrien
c6c88595fc Simplify if stream 2018-05-03 11:03:36 -04:00
Isaac Ouellet Therrien
61313ebc21 Throw an error if user is using XMLHttpRequest
Following changes from @jdalrymple in his `jobs-pipeline-endpoints` branch
2018-05-03 10:56:10 -04:00
Justin
a42d9a74dc - Set the default for the stream request option
- throw an error if the user tries to stream with xml
2018-05-03 10:22:29 -04:00
Isaac Ouellet Therrien
adc1985457 Destructuring an undefined/null object does not work 2018-05-02 15:21:21 -04:00
Justin
d9edee521e Moved some things around 2018-04-27 08:49:04 -04:00
Isaac Ouellet Therrien
8f65bb6508 Add endpoint to download single job artifact file via stream 2018-04-24 11:39:15 -04:00
Jordan Wallet
5aca0e9723 Decamelize option keys while using XHR 2018-04-17 09:18:59 -07:00
Joshua Grosso
2e5472fe74 Fix style 2018-04-16 09:01:41 -07:00
Joshua Grosso
caf8cb45d7 Reject when an XMLHttpRequester request fails 2018-04-16 09:01:41 -07:00
Jordan Wallet
1732a2c4a6 Make XmlHttpRequest respect resolveWithFullResponse 2018-04-16 09:01:26 -07:00