37 Commits

Author SHA1 Message Date
Hazork
70e5c07ff3 refactor: concurreny fixes and refactored deferred
Also changed format settings,
fixed AxiosResponse types
and coded more tests
2021-09-20 12:04:40 -03:00
Hazork
38133a7624 refactor: requests ids can also be symbol 2021-09-20 07:58:44 -03:00
Hazork
1490bfc30b fix: concurrent requests not beeing cached 2021-09-19 20:14:44 -03:00
Hazork
6e61c0d5db refactor: renamed status constants 2021-09-19 19:31:33 -03:00
Hazork
6075a0a960 fix: a bunch of tests 2021-09-19 19:29:05 -03:00
Hazork
f1033a5959 refactor: interceptors in classes 2021-09-19 19:06:15 -03:00
Hazork
f4bbd8b832 feat: enable cache by creating or applying 2021-09-19 18:06:02 -03:00
Hazork
1f88779e46 fix: axios headers are lowercased 2021-09-16 19:11:45 -03:00
Hazork
4ad803ec0b feat: use cache: false to ignore caching 2021-09-15 20:22:51 -03:00
Arthur Fiorette
c4a2dc35b1
fix: prevented bugs with the start of id being ::id 2021-09-15 20:03:40 -03:00
Hazork
84dc522b87 refactor: init request and response tests 2021-09-13 19:20:31 -03:00
Hazork
ee36bd57b0 refactor: more tests and fixes 2021-09-13 18:39:13 -03:00
Hazork
288c11849c feat: interpreter also handles Expires header (and tests) 2021-09-13 17:46:26 -03:00
Hazork
be5ee1ea8b refactor: ttl and createdAt instead of maxAge and storage takes care of staled entries 2021-09-13 16:05:37 -03:00
Hazork
bb552c8182 tests: added cache predicate tests 2021-09-13 14:20:45 -03:00
Hazork
5ddf9ed1a6 chore: removed unused methods from memory storage 2021-09-13 13:42:02 -03:00
Hazork
7975c58645 tests: added key generator tests 2021-09-13 13:39:31 -03:00
Hazork
d09b3add31 tests: added deferred tests 2021-09-13 13:08:40 -03:00
Hazork
2bbc9cb858 fix: fixed a log of bugs and added unit tests 2021-09-13 12:08:43 -03:00
Hazork
1c10b41c98 refactor: use generics on responseMatch 2021-09-12 10:31:48 -03:00
Hazork
0d4854db83 fix: interpretHeader name conflict 2021-09-11 13:03:35 -03:00
Hazork
6ae6d8f7e5 style: prettified code 2021-09-11 12:55:28 -03:00
Hazork
892dab4a12 feat: better cache predicate 2021-09-11 12:50:11 -03:00
Hazork
d2c2a56735 refactor: eslint more strict and some minor refactors 2021-09-11 12:18:32 -03:00
Hazork
ce2b7ecb4b refactor: externalized the header interceptor 2021-09-11 10:21:53 -03:00
Hazork
2c49a49a63 fix: define an empty waiting object at creation 2021-09-11 09:13:40 -03:00
Hazork
211dd503f4 refactor: moved all "utils" to one folder 2021-09-11 09:09:50 -03:00
Hazork
ab051fc698 refactor: save all deferred to cache.waiting instead of in the storage 2021-09-10 10:39:53 -03:00
Hazork
29d79d5c84 refactor: axios.defaults.cache required 2021-09-10 09:54:30 -03:00
Hazork
dc5608578f style: use @arthurfiorette/prettier-config 2021-09-05 15:27:14 -03:00
Hazork
13eacedc02 style: formatted code 2021-09-01 16:34:54 -03:00
Hazork
4592d180c4 fix: comments to outputs and removed # path alias 2021-09-01 16:30:37 -03:00
Hazork
cc6332ff24 tag: v0.0.2 2021-09-01 16:21:48 -03:00
Hazork
5a201e3d68 chore: added eslint 2021-09-01 16:20:54 -03:00
Hazork
9f6e1a469c feat: cache working 2021-09-01 16:13:59 -03:00
Hazork
5ee2b0493b feat(WIP): structured code 2021-09-01 13:30:26 -03:00
Hazork
f373f857af init: init project 2021-09-01 10:07:10 -03:00