ProjectMirador / research-and-demos

Proofs of concept for Mirador 3
10 stars 8 forks source link

Async #10

Closed aeschylus closed 6 years ago

aeschylus commented 6 years ago

This PR adds some Asynchronous events to request and receive manifests, some tests, and some fixes to our webpack configuration to allow eslint and webpack to produce compatible results (when extending the middleware, the required AirBnB trailing comma syntax for function arguments confused webpack).

Needs a test for async code. axios, and cross-fetch did not build correctly with webpack, so this uses node-fetch for providing the fetch API in the console version.