Brent Erickson
7be18c8bb0
Periodically check the list of running request to see if any of them … ( #48 )
...
* Periodically check the list of running request to see if any of them have completed & not reported their changed status
We've seen cases of CORS preflight (OPTIONS) requests failing but never calling the onLoad/onError callbacks
Setup a periodic timer to check on the state of running requests & force completion if readyState has changed to 4
* Make the hung request timeout check configurable
2019-01-15 11:22:18 -08:00
Alexander T
a56501b8b7
make SendDataType more specific ( #47 )
2019-01-10 12:00:50 -08:00
Brent Erickson
215fd918f1
Prevent against potential double abort scenario ( #45 )
...
If a request is already aborted, don't send any streamingDownloadProgress data, cancel means we don't care anymore
This prevents a case where two callbacks may both try to cancel the promise (and abort the request) causing an exception
2018-12-13 11:00:31 -08:00
Brent Erickson
8ffc7ffbd9
Prevent a crash when a service return application/json response type but doesn't provide valid json ( #44 )
2018-12-10 13:50:19 -08:00
Tomatipasta
4af2f77f24
#39 : Fix for DOM Exception 12 with Legacy browsers ( #40 )
...
* Fix: responseType=json breaks XHR for Android 4 (Samsung default browser) and Safari prior to 7
* Remove xhr.responseType assignment without try-catch
* Use _.attempt instead of try catch - PR comment
2018-10-23 13:22:26 -07:00
Alexander T
847404e07c
remove useless type casting to any. improve README example. update deps. start to use npm's package-lock feature ( #41 )
2018-10-04 21:45:09 -07:00
David de Regt
4952256f51
0.2.4/0.2.5: Adding handling for when this._options.streamingDownloadProgress results in a cancellation of the task, which clears this._xhr for future handling.
2018-10-02 18:00:04 -07:00
David de Regt
e32a3f151f
0.2.3: Fixing a bug in streamingDownloadProgress
2018-09-27 22:22:31 +02:00
Maria Rekowska
d2f6ea81dc
Check for _aborted before _fire() ( #38 )
...
* Check for _aborted before _fire()
2018-09-20 17:54:06 -07:00
Brent Erickson
e62c7133d1
Fix an assertion if a request with timeout receives 2 callbacks from the Browser/OS. ( #37 )
...
This resulted in _respond being called twice, which (if the correct retry policy was applied) would result in the request being enqueued twice & this two timeout timers were setup.
2018-09-19 18:38:20 -06:00
Alexander T
3a80fcdac8
Fix tests output. Update dependencies ( #36 )
2018-09-17 09:13:10 -06:00
Brent Erickson
c94a23feab
Resolve compiler error in tests
2018-08-31 13:41:01 -07:00
Maria Rekowska
7066837898
Make blockRequestUntil work with MaxSimultaneousRequests and handle e… ( #35 )
...
* Make blockRequestUntil work with MaxSimultaneousRequests and handle errors
2018-08-31 13:35:02 -07:00
David de Regt
43f7349453
0.1.8: Adding support for streaming COMET-style hanging GETs to SimpleWebRequest
2018-08-01 19:13:31 -07:00
Brent Erickson
f7e57ef52d
Bump package.json for 0.1.7 release
2018-07-23 10:06:15 -07:00
Maria Rekowska
ef464603f6
Don't access responseText if responseType is other than text ( #34 )
2018-07-23 09:46:21 -07:00
David de Regt
5ff09fe65c
Merge pull request #33 from mariarek/mareko/add-response-text
...
Add responseType 'text'
2018-07-17 00:07:32 +02:00
Maria Rekowska
1b547850fa
Add responseType text
2018-07-16 12:26:24 -07:00
David de Regt
03c1b701e2
Merge pull request #31 from a-tarasyuk/feature/remove-require-imports-update-deps
...
Remove require imports, update deps
2018-07-06 01:31:02 -07:00
Alexander T
47e62acf77
fix xhr.send incompatible types
2018-07-05 16:19:44 +03:00
Alexander T
37d2fa4697
Remove require imports. Update deps
2018-07-05 16:01:57 +03:00
David de Regt
b293754c8d
Merge pull request #30 from iriberri/patch-1
...
Fix Node.js version selection for Travis CI
2018-05-21 10:44:37 -07:00
Carla
6bc42e9dd8
Fix Node.js version selection for Travis CI
...
See: https://docs.travis-ci.com/user/languages/javascript-with-nodejs
2018-05-21 11:16:47 +02:00
David de Regt
e63b3f3da2
Merge pull request #29 from a-tarasyuk/bug/fix-ci
...
Fix CI build
2018-05-18 15:57:06 -07:00
Alexander T
759603a71e
Fix CI build
2018-05-18 17:00:23 +03:00
David de Regt
3b4df419f4
Merge pull request #28 from a-tarasyuk/feature/tests-ci-update-readme
...
Add tests/ Add CI / Update README
2018-05-14 11:46:15 -07:00
Alexander T
012144b7b8
Add tests
2018-05-14 11:46:15 +03:00
Alexander T
cdba7d5620
update deps
2018-05-14 11:46:05 +03:00
Alexander T
66eed39ead
Add CI
2018-05-14 11:45:48 +03:00
Alexander T
fc9fc33b1b
Update README
2018-05-14 11:45:25 +03:00
David de Regt
c80f07a562
Merge pull request #25 from a-tarasyuk/feature/tests
...
Setup tests. Add basic GenericRestClient tests
2018-05-07 11:16:21 -07:00
Alexander T
733d36e5dc
remove debug info
2018-05-07 18:44:42 +03:00
Alexander T
be8d9134bc
Merge branch 'master' into feature/tests
2018-05-07 17:00:16 +03:00
Alexander T
7336a53474
Feature/add default template parameters to web response ( #24 )
...
* Add Default template parameters to WebResponse
2018-04-24 18:43:31 -07:00
David de Regt
f422577529
Merge pull request #27 from a-tarasyuk/minor-readme-change
...
Add source type to example
2018-04-18 20:10:06 -07:00
Alexander T
06859b32e9
Merge branch 'master' of https://github.com/Microsoft/SimpleRestClients into feature/tests
2018-04-18 16:06:09 +03:00
Alexander T
098cadf40c
Merge branch 'feature/tests' of https://github.com/a-tarasyuk/SimpleRestClients into feature/tests
2018-04-18 16:05:55 +03:00
Alexander T
67ba15011a
Add SimpleWebRequest first tests
2018-04-18 16:04:28 +03:00
Alexander T
22566075d4
Add source type to example
2018-04-18 12:10:27 +03:00
David de Regt
0566ff34f5
Merge pull request #26 from a-tarasyuk/feature/remove-useless-type-casts
...
Remove type casts 'as any as number'
2018-04-17 09:15:52 -07:00
Alexander T
7e0f7aa69a
Remove type casts 'as any as number'
2018-04-17 11:34:53 +03:00
Alexander T
61acdf214b
Add basic ExponentialTime tests
2018-04-16 23:18:00 +03:00
Alexander T
d199782677
Add basic ExponentialTime tests
2018-04-16 18:02:21 +03:00
Alexander T
6e5d0daeec
Add caret(^) to dependencies
2018-04-16 13:42:18 +03:00
Alexader
8a36fb9d22
Setup tests. Add basic GenericRestClient tests
2018-04-15 14:01:34 +03:00
Alexander T
0511a798a1
Rename _xhrRequestheaders -> _xhrRequestHeaders ( #23 )
2018-04-08 09:21:48 -07:00
Rafael Bravo
694296b444
Update Readme to include code sample (taken from reactxp docs) ( #14 )
2018-04-08 09:21:29 -07:00
David de Regt
7b11a60ff0
0.1.6: const enum changes
2018-03-02 02:15:07 -08:00
David de Regt
eec7ee6a56
Merge pull request #22 from plisy/plisy-remove-exported-const-enum
...
Changed exported const enum ErrorHandlingType to regular enum.
2018-03-02 02:09:38 -08:00
Peter Lisy
b93f98df7e
Removed exported const enum
2018-02-21 13:29:02 +01:00