@meniga/core

6.1.12-alpha.0 • Public • Published

@meniga/core

Core is a library for handling requests and error handling:

Exports for core work


coreConstants

A set of constants used in the core library

Exports for API requests


Request

A wrapper for Axios.get, Axios.put, Axios.delete and Axios.post

clearAllRequestTimers

Each request has a timer that triggers an event called slowApi if a request takes more than X seconds (configurable). You can call clearAllRequestTimers to force clear all the timers.

auth

Helper utility to save/remove auth token from storage

idle

Helper utilities to track idle time from the user and to show a logout warning if the user has been idle for a set time

Exports for error handling


trackSentryError, setSentryUser, clearSentryUser, sendSentryMessage

Helpers to log errors to sentry.io

ErrorBoundary

A react component that traps errors in the app and logs them in sentry.io

Readme

Keywords

none

Package Sidebar

Install

npm i @meniga/core

Weekly Downloads

177

Version

6.1.12-alpha.0

License

MIT

Unpacked Size

549 kB

Total Files

6

Last publish

Collaborators

  • meniga-npm
  • petermeniga
  • tinna