Commit graph

17 commits

Author SHA1 Message Date
Henk vd Brink
04d08683f7
@lion/ajax: only add XSRF token on mutable requests and on same origin or whitelisted origins 2024-02-29 15:05:58 +01:00
Thijs Louisse
d129dd629d
chore: allow ajax test to work with different dev server ports 2023-11-02 15:52:50 +01:00
thepassle
570f834b85 chore: fix types 2023-09-14 09:08:23 +02:00
Kristján Oddsson
55d6c7588d add tests for AjaxFetchError 2023-08-30 13:46:21 +02:00
Joren Broekema
9cdac8e947
fix: clone response when reading the response for error (#2049) 2023-08-01 10:45:27 +02:00
Joren Broekema
7a875ef1b4
feat: parsing body for failed ajax responses (#2039) 2023-07-18 13:44:22 +02:00
thepassle
08b109b2a1 fix: avoid JSON.parsing empty responses 2023-07-06 11:38:27 +02:00
Joren Broekema
63bb012e36 fix(ajax): fetchJSON to attempt parse JSON when missing content-type header
Co-authored-by: Nikhil Hundare <nikhil.hundare@gmail.com>
2023-02-28 14:04:37 +01:00
Thomas Allmer
c1982965c3 feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
Lars den Bakker
66abd3ea4c fix(ajax): don't throw on non-JSON responses in fetchJson 2022-09-14 23:45:12 +02:00
Lars den Bakker
362ee0e2e9 fix(ajax): align intercepted and non-intercepted response behavior 2022-05-31 13:46:54 +02:00
Martin Pool
447383bd14 feat(ajax): add maxCacheSize option 2022-05-30 12:58:18 +02:00
Martin Pool
56af96f1da feat(ajax): add an option to initialize the cache interceptors even when useCache is turned off in the global options 2022-05-09 10:09:43 +02:00
Martin Pool
b291e60794 chore(ajax): add tests for response values and headers in caching calls 2022-04-28 16:26:06 +02:00
jorenbroekema
683d5c1c9c chore: upgrade to latest TSC to fix TSC bug caused by prev commit 2022-02-10 13:40:26 +01:00
Ahmet Yesil
879598506a Race condition fix for on the fly requests, improve cache implementation and tests
Co-authored-by: Goffert van Gool <ruphin@ruphin.net>
Co-authored-by: Martin Pool <martin.pool@ing.com>
2021-09-21 13:59:08 +02:00
Goffert van Gool
73d4e222f6
Update public API of ajax & refactor package (#1371)
feat(ajax): align / break public API

Co-authored-by: Ahmet Yesil <yesil.ahmet@ing.com>
2021-05-12 15:21:18 +02:00
Renamed from packages/ajax/test/AjaxClient.test.js (Browse further)