0.12.2 • Published 4 years ago

request-registry-errors v0.12.2

Weekly downloads
102
License
-
Repository
-
Last release
4 years ago

Request Registry Errors

Helper to catch unhandled errors for logging or showing global notifications.

⚠️ Does not support IE11

Getting started

npm install --save-dev registry-request-errors

Api

onUnhandledRequestRegistyError

The onUnhandledRequestRegistyError is the main feature of this package.
It will be executed whenever a request-registry error was not handled

onUnhandledRequestRegistyError(({ response, responseContent }) => {
    console.error('Request failed', response, responseContent);
});

License

MIT license

0.12.2

4 years ago

0.12.1

4 years ago

0.12.0

5 years ago

0.11.2

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago