Oscar Lorentzon
51f79ef802
chore: extend tslint recommended
...
Extend recommended while keeping functionality.
Remove duplicate blank lines.
2017-11-14 13:23:36 +00:00
Oscar Lorentzon
9e2d32107b
fix(api): throw informative error when no result
...
Throw error with informative error message when requesting
an image that does not exist or is filtered.
2017-06-28 16:22:31 +00:00
Oscar Lorentzon
a720d1a2df
Migrate to TS 2.1.
...
Extending Error does not create instances of the created error classes.
Act accordingly in unit test error type checks.
Upgrade three js typings for compatibility.
Error derived classes does not need to create stack trace
explicitly.
Use tilde ranges for ts dev deps for future compatibility.
2016-12-21 17:04:09 +01:00
Oscar Lorentzon
bf6179e1b4
Instantiate models in creator class.
...
Inject model creator to in APIv3 and test.
2016-11-09 14:41:46 +01:00
Oscar Lorentzon
a582ede529
API methods for all model calls.
...
Do not expose model on API. Wrap all methods in API
class to make retries simple.
Use API methods in stats component.
Unit test API.
2016-10-25 14:14:39 +02:00
Oscar Lorentzon
2ca1ae2865
Methods for invalidating API cache.
...
Unit tests.
2016-10-20 11:54:16 +02:00
Oscar Lorentzon
5bcf200286
Handle undefined imagesByH response.
...
Fill response to be equivalent to an empty response.
2016-10-18 10:39:32 +02:00
Oscar Lorentzon
fba319bfb6
Unit test API v3.
2016-10-14 14:24:12 +02:00