Socket
Socket
Sign inDemoInstall

@meniga/core

Package Overview
Dependencies
69
Maintainers
3
Versions
118
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @meniga/core

The core meniga request package


Version published
Maintainers
3
Created

Readme

Source

@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

FAQs

Last updated on 27 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc